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. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.71 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 | # |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
| 9 | # Inc. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10 | # |
| 11 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # This configure script is free software; the Free Software Foundation |
| 13 | # gives unlimited permission to copy, distribute and modify it. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14 | ## -------------------- ## |
| 15 | ## M4sh Initialization. ## |
| 16 | ## -------------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18 | # Be more Bourne compatible |
| 19 | DUALCASE=1; export DUALCASE # for MKS sh |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20 | as_nop=: |
| 21 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 22 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23 | emulate sh |
| 24 | NULLCMD=: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26 | # is contrary to our usage. Disable this feature. |
| 27 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 28 | setopt NO_GLOB_SUBST |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 29 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 30 | case `(set -o) 2>/dev/null` in #( |
| 31 | *posix*) : |
| 32 | set -o posix ;; #( |
| 33 | *) : |
| 34 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 35 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 37 | |
| 38 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 39 | |
| 40 | # Reset variables that may have inherited troublesome values from |
| 41 | # the environment. |
| 42 | |
| 43 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 44 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 45 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 46 | # Quoting is to prevent editors from complaining about space-tab. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 47 | as_nl=' |
| 48 | ' |
| 49 | export as_nl |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 50 | IFS=" "" $as_nl" |
| 51 | |
| 52 | PS1='$ ' |
| 53 | PS2='> ' |
| 54 | PS4='+ ' |
| 55 | |
| 56 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 57 | LC_ALL=C |
| 58 | export LC_ALL |
| 59 | LANGUAGE=C |
| 60 | export LANGUAGE |
| 61 | |
| 62 | # We cannot yet rely on "unset" to work, but we need these variables |
| 63 | # to be unset--not just set to an empty or harmless value--now, to |
| 64 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 65 | # also avoids known problems related to "unset" and subshell syntax |
| 66 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 67 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 68 | do eval test \${$as_var+y} \ |
| 69 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 70 | done |
| 71 | |
| 72 | # Ensure that fds 0, 1, and 2 are open. |
| 73 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 74 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 75 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 76 | |
| 77 | # The user is always right. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 78 | if ${PATH_SEPARATOR+false} :; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 79 | PATH_SEPARATOR=: |
| 80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 82 | PATH_SEPARATOR=';' |
| 83 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 84 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 85 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 86 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 87 | # 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] | 88 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 89 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 90 | *[\\/]* ) as_myself=$0 ;; |
| 91 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 92 | for as_dir in $PATH |
| 93 | do |
| 94 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 95 | case $as_dir in #((( |
| 96 | '') as_dir=./ ;; |
| 97 | */) ;; |
| 98 | *) as_dir=$as_dir/ ;; |
| 99 | esac |
| 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 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 112 | printf "%s\n" "$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 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 116 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 117 | # Use a proper internal environment variable to ensure we don't fall |
| 118 | # into an infinite loop, continuously re-executing ourselves. |
| 119 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 120 | _as_can_reexec=no; export _as_can_reexec; |
| 121 | # We cannot yet assume a decent shell, so we have to provide a |
| 122 | # neutralization value for shells without unset; and this also |
| 123 | # works around shells that cannot unset nonexistent variables. |
| 124 | # Preserve -v and -x to the replacement shell. |
| 125 | BASH_ENV=/dev/null |
| 126 | ENV=/dev/null |
| 127 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 128 | case $- in # (((( |
| 129 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 130 | *v* ) as_opts=-v ;; |
| 131 | *x* ) as_opts=-x ;; |
| 132 | * ) as_opts= ;; |
| 133 | esac |
| 134 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 135 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 136 | # out after a failed `exec'. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 137 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 138 | exit 255 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 139 | fi |
| 140 | # We don't want this to propagate to other subprocesses. |
| 141 | { _as_can_reexec=; unset _as_can_reexec;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 142 | if test "x$CONFIG_SHELL" = x; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 143 | as_bourne_compatible="as_nop=: |
| 144 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 145 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 146 | emulate sh |
| 147 | NULLCMD=: |
| 148 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 149 | # is contrary to our usage. Disable this feature. |
| 150 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 151 | setopt NO_GLOB_SUBST |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 152 | else \$as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 153 | case \`(set -o) 2>/dev/null\` in #( |
| 154 | *posix*) : |
| 155 | set -o posix ;; #( |
| 156 | *) : |
| 157 | ;; |
| 158 | esac |
| 159 | fi |
| 160 | " |
| 161 | as_required="as_fn_return () { (exit \$1); } |
| 162 | as_fn_success () { as_fn_return 0; } |
| 163 | as_fn_failure () { as_fn_return 1; } |
| 164 | as_fn_ret_success () { return 0; } |
| 165 | as_fn_ret_failure () { return 1; } |
| 166 | |
| 167 | exitcode=0 |
| 168 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 169 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 170 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 171 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 172 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 173 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 174 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 175 | else \$as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 176 | exitcode=1; echo positional parameters were not saved. |
| 177 | fi |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 178 | test x\$exitcode = x0 || exit 1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 179 | blah=\$(echo \$(echo blah)) |
| 180 | test x\"\$blah\" = xblah || exit 1 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 181 | test -x / || exit 1" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 182 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 183 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 184 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 185 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 186 | test \$(( 1 + 1 )) = 2 || exit 1" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 187 | if (eval "$as_required") 2>/dev/null |
| 188 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 189 | as_have_required=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 190 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 191 | as_have_required=no |
| 192 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 193 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 194 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 195 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 196 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 198 | as_found=false |
| 199 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 200 | do |
| 201 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 202 | case $as_dir in #((( |
| 203 | '') as_dir=./ ;; |
| 204 | */) ;; |
| 205 | *) as_dir=$as_dir/ ;; |
| 206 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 207 | as_found=: |
| 208 | case $as_dir in #( |
| 209 | /*) |
| 210 | for as_base in sh bash ksh sh5; do |
| 211 | # Try only shells that exist, to save several forks. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 212 | as_shell=$as_dir$as_base |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 213 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 214 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 215 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 216 | CONFIG_SHELL=$as_shell as_have_required=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 217 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 218 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 219 | break 2 |
| 220 | fi |
| 221 | fi |
| 222 | done;; |
| 223 | esac |
| 224 | as_found=false |
| 225 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 226 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 227 | if $as_found |
| 228 | then : |
| 229 | |
| 230 | else $as_nop |
| 231 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 233 | then : |
| 234 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 235 | fi |
| 236 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 237 | |
| 238 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 239 | if test "x$CONFIG_SHELL" != x |
| 240 | 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'. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 258 | printf "%s\n" "$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 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 262 | if test x$as_have_required = xno |
| 263 | then : |
| 264 | printf "%s\n" "$0: This script requires a shell more modern than all" |
| 265 | printf "%s\n" "$0: the shells that I found on your system." |
| 266 | if test ${ZSH_VERSION+y} ; then |
| 267 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 268 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 269 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 270 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 271 | $0: https://bugs.python.org/ about your system, including |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 272 | $0: any error possibly output before this message. Then |
| 273 | $0: install a modern shell, or manually run the script |
| 274 | $0: under such a shell if you do have one." |
| 275 | fi |
| 276 | exit 1 |
| 277 | fi |
| 278 | fi |
| 279 | fi |
| 280 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 281 | export SHELL |
| 282 | # Unset more variables known to interfere with behavior of common tools. |
| 283 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 284 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 285 | |
| 286 | ## --------------------- ## |
| 287 | ## M4sh Shell Functions. ## |
| 288 | ## --------------------- ## |
| 289 | # as_fn_unset VAR |
| 290 | # --------------- |
| 291 | # Portably unset VAR. |
| 292 | as_fn_unset () |
| 293 | { |
| 294 | { eval $1=; unset $1;} |
| 295 | } |
| 296 | as_unset=as_fn_unset |
| 297 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 298 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 299 | # as_fn_set_status STATUS |
| 300 | # ----------------------- |
| 301 | # Set $? to STATUS, without forking. |
| 302 | as_fn_set_status () |
| 303 | { |
| 304 | return $1 |
| 305 | } # as_fn_set_status |
| 306 | |
| 307 | # as_fn_exit STATUS |
| 308 | # ----------------- |
| 309 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 310 | as_fn_exit () |
| 311 | { |
| 312 | set +e |
| 313 | as_fn_set_status $1 |
| 314 | exit $1 |
| 315 | } # as_fn_exit |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 316 | # as_fn_nop |
| 317 | # --------- |
| 318 | # Do nothing but, unlike ":", preserve the value of $?. |
| 319 | as_fn_nop () |
| 320 | { |
| 321 | return $? |
| 322 | } |
| 323 | as_nop=as_fn_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 324 | |
| 325 | # as_fn_mkdir_p |
| 326 | # ------------- |
| 327 | # Create "$as_dir" as a directory, including parents if necessary. |
| 328 | as_fn_mkdir_p () |
| 329 | { |
| 330 | |
| 331 | case $as_dir in #( |
| 332 | -*) as_dir=./$as_dir;; |
| 333 | esac |
| 334 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 335 | as_dirs= |
| 336 | while :; do |
| 337 | case $as_dir in #( |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 338 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 339 | *) as_qdir=$as_dir;; |
| 340 | esac |
| 341 | as_dirs="'$as_qdir' $as_dirs" |
| 342 | as_dir=`$as_dirname -- "$as_dir" || |
| 343 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 344 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 345 | X"$as_dir" : 'X\(//\)$' \| \ |
| 346 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 347 | printf "%s\n" X"$as_dir" | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 348 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 349 | s//\1/ |
| 350 | q |
| 351 | } |
| 352 | /^X\(\/\/\)[^/].*/{ |
| 353 | s//\1/ |
| 354 | q |
| 355 | } |
| 356 | /^X\(\/\/\)$/{ |
| 357 | s//\1/ |
| 358 | q |
| 359 | } |
| 360 | /^X\(\/\).*/{ |
| 361 | s//\1/ |
| 362 | q |
| 363 | } |
| 364 | s/.*/./; q'` |
| 365 | test -d "$as_dir" && break |
| 366 | done |
| 367 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 368 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 369 | |
| 370 | |
| 371 | } # as_fn_mkdir_p |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 372 | |
| 373 | # as_fn_executable_p FILE |
| 374 | # ----------------------- |
| 375 | # Test if FILE is an executable regular file. |
| 376 | as_fn_executable_p () |
| 377 | { |
| 378 | test -f "$1" && test -x "$1" |
| 379 | } # as_fn_executable_p |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 380 | # as_fn_append VAR VALUE |
| 381 | # ---------------------- |
| 382 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 383 | # advantage of any shell optimizations that allow amortized linear growth over |
| 384 | # repeated appends, instead of the typical quadratic growth present in naive |
| 385 | # implementations. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 386 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 387 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 388 | eval 'as_fn_append () |
| 389 | { |
| 390 | eval $1+=\$2 |
| 391 | }' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 392 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 393 | as_fn_append () |
| 394 | { |
| 395 | eval $1=\$$1\$2 |
| 396 | } |
| 397 | fi # as_fn_append |
| 398 | |
| 399 | # as_fn_arith ARG... |
| 400 | # ------------------ |
| 401 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 402 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 403 | # must be portable across $(()) and expr. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 404 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 405 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 406 | eval 'as_fn_arith () |
| 407 | { |
| 408 | as_val=$(( $* )) |
| 409 | }' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 410 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 411 | as_fn_arith () |
| 412 | { |
| 413 | as_val=`expr "$@" || test $? -eq 1` |
| 414 | } |
| 415 | fi # as_fn_arith |
| 416 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 417 | # as_fn_nop |
| 418 | # --------- |
| 419 | # Do nothing but, unlike ":", preserve the value of $?. |
| 420 | as_fn_nop () |
| 421 | { |
| 422 | return $? |
| 423 | } |
| 424 | as_nop=as_fn_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 425 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 426 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 427 | # ---------------------------------------- |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 428 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 429 | # 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] | 430 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 431 | as_fn_error () |
| 432 | { |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 433 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 434 | if test "$4"; then |
| 435 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 436 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 437 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 438 | printf "%s\n" "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 439 | as_fn_exit $as_status |
| 440 | } # as_fn_error |
| 441 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 442 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 443 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 444 | as_expr=expr |
| 445 | else |
| 446 | as_expr=false |
| 447 | fi |
| 448 | |
| 449 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 450 | as_basename=basename |
| 451 | else |
| 452 | as_basename=false |
| 453 | fi |
| 454 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 455 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 456 | as_dirname=dirname |
| 457 | else |
| 458 | as_dirname=false |
| 459 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 460 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 461 | as_me=`$as_basename -- "$0" || |
| 462 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 463 | X"$0" : 'X\(//\)$' \| \ |
| 464 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 465 | printf "%s\n" X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 466 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 467 | s//\1/ |
| 468 | q |
| 469 | } |
| 470 | /^X\/\(\/\/\)$/{ |
| 471 | s//\1/ |
| 472 | q |
| 473 | } |
| 474 | /^X\/\(\/\).*/{ |
| 475 | s//\1/ |
| 476 | q |
| 477 | } |
| 478 | s/.*/./; q'` |
| 479 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 480 | # Avoid depending upon Character Ranges. |
| 481 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 482 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 483 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 484 | as_cr_digits='0123456789' |
| 485 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 486 | |
| 487 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 488 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 489 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 490 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 491 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 492 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 493 | sed -n ' |
| 494 | p |
| 495 | /[$]LINENO/= |
| 496 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 497 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 498 | s/[$]LINENO.*/&-/ |
| 499 | t lineno |
| 500 | b |
| 501 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 502 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 503 | :loop |
| 504 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 505 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 506 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 507 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 508 | chmod +x "$as_me.lineno" || |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 509 | { printf "%s\n" "$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] | 510 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 511 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 512 | # already done that, so ensure we don't try to do so again and fall |
| 513 | # in an infinite loop. This has already happened in practice. |
| 514 | _as_can_reexec=no; export _as_can_reexec |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 515 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 516 | # (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] | 517 | # original and so on. Autoconf is especially sensitive to this). |
| 518 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 519 | # Exit status is that of the last command. |
| 520 | exit |
| 521 | } |
| 522 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 523 | |
| 524 | # Determine whether it's possible to make 'echo' print without a newline. |
| 525 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 526 | # for compatibility with existing Makefiles. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 527 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 528 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 529 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 530 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 531 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 532 | xy) ECHO_C='\c';; |
| 533 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 534 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 535 | esac;; |
| 536 | *) |
| 537 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 539 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 540 | # For backward compatibility with old third-party macros, we provide |
| 541 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 542 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 543 | as_echo='printf %s\n' |
| 544 | as_echo_n='printf %s' |
| 545 | |
| 546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 547 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 548 | if test -d conf$$.dir; then |
| 549 | rm -f conf$$.dir/conf$$.file |
| 550 | else |
| 551 | rm -f conf$$.dir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 552 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 553 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 554 | if (echo >conf$$.file) 2>/dev/null; then |
| 555 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 556 | as_ln_s='ln -s' |
| 557 | # ... but there are two gotchas: |
| 558 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 559 | # 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] | 560 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 561 | 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] | 562 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 563 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 564 | as_ln_s=ln |
| 565 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 566 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 567 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 568 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 569 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 570 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 571 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 572 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 573 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 574 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 575 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 576 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 577 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 578 | as_mkdir_p=false |
| 579 | fi |
| 580 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 581 | as_test_x='test -x' |
| 582 | as_executable_p=as_fn_executable_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 583 | |
| 584 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 585 | 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] | 586 | |
| 587 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 588 | 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] | 589 | |
| 590 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 591 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 592 | exec 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | |
| 594 | # Name of the host. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 595 | # 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] | 596 | # so uname gets run too. |
| 597 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 599 | # |
| 600 | # Initializations. |
| 601 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 602 | ac_default_prefix=/usr/local |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 603 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 604 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 605 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 606 | cross_compiling=no |
| 607 | subdirs= |
| 608 | MFLAGS= |
| 609 | MAKEFLAGS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 611 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 612 | PACKAGE_NAME='python' |
| 613 | PACKAGE_TARNAME='python' |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 614 | PACKAGE_VERSION='3.10' |
| 615 | PACKAGE_STRING='python 3.10' |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 616 | PACKAGE_BUGREPORT='https://bugs.python.org/' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 617 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 618 | |
| 619 | ac_unique_file="Include/object.h" |
| 620 | # Factoring default headers for most tests. |
| 621 | ac_includes_default="\ |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 622 | #include <stddef.h> |
| 623 | #ifdef HAVE_STDIO_H |
| 624 | # include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 625 | #endif |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 626 | #ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 627 | # include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 628 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 629 | #ifdef HAVE_STRING_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 630 | # include <string.h> |
| 631 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 632 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 633 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 634 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 635 | #ifdef HAVE_STDINT_H |
| 636 | # include <stdint.h> |
| 637 | #endif |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 638 | #ifdef HAVE_STRINGS_H |
| 639 | # include <strings.h> |
| 640 | #endif |
| 641 | #ifdef HAVE_SYS_TYPES_H |
| 642 | # include <sys/types.h> |
| 643 | #endif |
| 644 | #ifdef HAVE_SYS_STAT_H |
| 645 | # include <sys/stat.h> |
| 646 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 647 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 648 | # include <unistd.h> |
| 649 | #endif" |
| 650 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 651 | ac_header_c_list= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 652 | ac_subst_vars='LTLIBOBJS |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 653 | TEST_MODULES |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 654 | LIBRARY_DEPS |
| 655 | STATIC_LIBPYTHON |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 656 | OPENSSL_LDFLAGS |
| 657 | OPENSSL_LIBS |
| 658 | OPENSSL_INCLUDES |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 659 | ENSUREPIP |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 660 | SRCDIRS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 661 | THREADHEADERS |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 662 | WHEEL_PKG_DIR |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 663 | LIBPL |
| 664 | PY_ENABLE_SHARED |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 665 | PLATLIBDIR |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 666 | BINLIBDEST |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 667 | LIBPYTHON |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 668 | EXT_SUFFIX |
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 669 | ALT_SOABI |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 670 | SOABI |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 671 | LIBC |
| 672 | LIBM |
| 673 | HAVE_GETHOSTBYNAME |
| 674 | HAVE_GETHOSTBYNAME_R |
| 675 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 676 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 677 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 678 | LIBOBJS |
| 679 | TRUE |
| 680 | MACHDEP_OBJS |
| 681 | DYNLOADFILE |
| 682 | DLINCLDIR |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 683 | DTRACE_OBJS |
| 684 | DTRACE_HEADERS |
| 685 | DFLAGS |
| 686 | DTRACE |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 687 | TCLTK_LIBS |
| 688 | TCLTK_INCLUDES |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 689 | LIBFFI_INCLUDEDIR |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 690 | PKG_CONFIG_LIBDIR |
| 691 | PKG_CONFIG_PATH |
| 692 | PKG_CONFIG |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 693 | TZPATH |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 694 | SHLIBS |
| 695 | CFLAGSFORSHARED |
| 696 | LINKFORSHARED |
| 697 | CCSHARED |
| 698 | BLDSHARED |
| 699 | LDCXXSHARED |
| 700 | LDSHARED |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 701 | SHLIB_SUFFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 702 | LIBTOOL_CRUFT |
| 703 | OTHER_LIBTOOL_OPT |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 704 | EGREP |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 705 | UNIVERSAL_ARCH_FLAGS |
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 706 | LDFLAGS_NODIST |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 707 | CFLAGS_NODIST |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 708 | BASECFLAGS |
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 709 | CFLAGS_ALIASING |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 710 | OPT |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 711 | LLVM_PROF_FOUND |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 712 | LLVM_PROFDATA |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 713 | LLVM_PROF_ERR |
| 714 | LLVM_PROF_FILE |
| 715 | LLVM_PROF_MERGER |
| 716 | PGO_PROF_USE_FLAG |
| 717 | PGO_PROF_GEN_FLAG |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 718 | LLVM_AR_FOUND |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 719 | LLVM_AR |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 720 | PROFILE_TASK |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 721 | DEF_MAKE_RULE |
| 722 | DEF_MAKE_ALL_RULE |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 723 | ABIFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 724 | LN |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 725 | MKDIR_P |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 726 | INSTALL_DATA |
| 727 | INSTALL_SCRIPT |
| 728 | INSTALL_PROGRAM |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 729 | ac_ct_READELF |
| 730 | READELF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 731 | ARFLAGS |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 732 | ac_ct_AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 733 | AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 734 | GNULD |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 735 | EXPORTSFROM |
| 736 | EXPORTSYMS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 737 | LINKCC |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 738 | LDVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 739 | RUNSHARED |
| 740 | INSTSONAME |
| 741 | LDLIBRARYDIR |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 742 | PY3LIBRARY |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 743 | BLDLIBRARY |
| 744 | DLLLIBRARY |
| 745 | LDLIBRARY |
| 746 | LIBRARY |
| 747 | BUILDEXEEXT |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 748 | NO_AS_NEEDED |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 749 | MULTIARCH_CPPFLAGS |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 750 | PLATFORM_TRIPLET |
| 751 | MULTIARCH |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 752 | ac_ct_CXX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 753 | MAINCC |
| 754 | CXX |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 755 | SED |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 756 | GREP |
| 757 | CPP |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 758 | OBJEXT |
| 759 | EXEEXT |
| 760 | ac_ct_CC |
| 761 | CPPFLAGS |
| 762 | LDFLAGS |
| 763 | CFLAGS |
| 764 | CC |
| 765 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 766 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 767 | _PYTHON_HOST_PLATFORM |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 768 | MACHDEP |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 769 | FRAMEWORKINSTALLAPPSPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 770 | FRAMEWORKUNIXTOOLSPREFIX |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 771 | FRAMEWORKPYTHONW |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 772 | FRAMEWORKALTINSTALLLAST |
| 773 | FRAMEWORKALTINSTALLFIRST |
| 774 | FRAMEWORKINSTALLLAST |
| 775 | FRAMEWORKINSTALLFIRST |
| 776 | PYTHONFRAMEWORKINSTALLDIR |
| 777 | PYTHONFRAMEWORKPREFIX |
| 778 | PYTHONFRAMEWORKDIR |
| 779 | PYTHONFRAMEWORKIDENTIFIER |
| 780 | PYTHONFRAMEWORK |
| 781 | LIPO_32BIT_FLAGS |
| 782 | ARCH_RUN_32BIT |
| 783 | UNIVERSALSDK |
| 784 | CONFIG_ARGS |
| 785 | SOVERSION |
| 786 | VERSION |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 787 | PYTHON_FOR_BUILD |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 788 | PYTHON_FOR_REGEN |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 789 | host_os |
| 790 | host_vendor |
| 791 | host_cpu |
| 792 | host |
| 793 | build_os |
| 794 | build_vendor |
| 795 | build_cpu |
| 796 | build |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 797 | HAS_GIT |
| 798 | GITBRANCH |
| 799 | GITTAG |
| 800 | GITVERSION |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 801 | BASECPPFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 802 | target_alias |
| 803 | host_alias |
| 804 | build_alias |
| 805 | LIBS |
| 806 | ECHO_T |
| 807 | ECHO_N |
| 808 | ECHO_C |
| 809 | DEFS |
| 810 | mandir |
| 811 | localedir |
| 812 | libdir |
| 813 | psdir |
| 814 | pdfdir |
| 815 | dvidir |
| 816 | htmldir |
| 817 | infodir |
| 818 | docdir |
| 819 | oldincludedir |
| 820 | includedir |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 821 | runstatedir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 822 | localstatedir |
| 823 | sharedstatedir |
| 824 | sysconfdir |
| 825 | datadir |
| 826 | datarootdir |
| 827 | libexecdir |
| 828 | sbindir |
| 829 | bindir |
| 830 | program_transform_name |
| 831 | prefix |
| 832 | exec_prefix |
| 833 | PACKAGE_URL |
| 834 | PACKAGE_BUGREPORT |
| 835 | PACKAGE_STRING |
| 836 | PACKAGE_VERSION |
| 837 | PACKAGE_TARNAME |
| 838 | PACKAGE_NAME |
| 839 | PATH_SEPARATOR |
| 840 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 841 | ac_subst_files='' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 842 | ac_user_opts=' |
| 843 | enable_option_checking |
| 844 | enable_universalsdk |
| 845 | with_universal_archs |
| 846 | with_framework_name |
| 847 | enable_framework |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 848 | with_cxx_main |
| 849 | with_suffix |
| 850 | enable_shared |
| 851 | enable_profiling |
| 852 | with_pydebug |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 853 | with_trace_refs |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 854 | with_assertions |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 855 | enable_optimizations |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 856 | with_lto |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 857 | with_hash_algorithm |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 858 | with_tzpath |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 859 | with_address_sanitizer |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 860 | with_memory_sanitizer |
| 861 | with_undefined_behavior_sanitizer |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 862 | with_libs |
| 863 | with_system_expat |
| 864 | with_system_ffi |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 865 | with_system_libmpdec |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 866 | with_decimal_contextvar |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 867 | enable_loadable_sqlite_extensions |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 868 | with_tcltk_includes |
| 869 | with_tcltk_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 870 | with_dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 871 | enable_ipv6 |
| 872 | with_doc_strings |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 873 | with_pymalloc |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 874 | with_c_locale_coercion |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 875 | with_valgrind |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 876 | with_dtrace |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 877 | with_libm |
| 878 | with_libc |
| 879 | enable_big_digits |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 880 | with_platlibdir |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 881 | with_wheel_pkg_dir |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 882 | with_readline |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 883 | with_computed_gotos |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 884 | with_ensurepip |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 885 | with_openssl |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 886 | with_ssl_default_suites |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 887 | with_builtin_hashlib_hashes |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 888 | with_experimental_isolated_subinterpreters |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 889 | with_static_libpython |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 890 | enable_test_modules |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 891 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 892 | ac_precious_vars='build_alias |
| 893 | host_alias |
| 894 | target_alias |
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 895 | MACHDEP |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 896 | CC |
| 897 | CFLAGS |
| 898 | LDFLAGS |
| 899 | LIBS |
| 900 | CPPFLAGS |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 901 | CPP |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 902 | PROFILE_TASK |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 903 | PKG_CONFIG |
| 904 | PKG_CONFIG_PATH |
| 905 | PKG_CONFIG_LIBDIR' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 906 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 907 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 908 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 909 | ac_init_help= |
| 910 | ac_init_version=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 911 | ac_unrecognized_opts= |
| 912 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 913 | # The variables have the same names as the options, with |
| 914 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 915 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 916 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 917 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 918 | no_recursion= |
| 919 | prefix=NONE |
| 920 | program_prefix=NONE |
| 921 | program_suffix=NONE |
| 922 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 923 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 924 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 925 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 926 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 927 | x_includes=NONE |
| 928 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 929 | |
| 930 | # Installation directory options. |
| 931 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 932 | # and all the variables that are supposed to be based on exec_prefix |
| 933 | # by default will actually change. |
| 934 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 935 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 936 | bindir='${exec_prefix}/bin' |
| 937 | sbindir='${exec_prefix}/sbin' |
| 938 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 939 | datarootdir='${prefix}/share' |
| 940 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 941 | sysconfdir='${prefix}/etc' |
| 942 | sharedstatedir='${prefix}/com' |
| 943 | localstatedir='${prefix}/var' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 944 | runstatedir='${localstatedir}/run' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 945 | includedir='${prefix}/include' |
| 946 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 947 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 948 | infodir='${datarootdir}/info' |
| 949 | htmldir='${docdir}' |
| 950 | dvidir='${docdir}' |
| 951 | pdfdir='${docdir}' |
| 952 | psdir='${docdir}' |
| 953 | libdir='${exec_prefix}/lib' |
| 954 | localedir='${datarootdir}/locale' |
| 955 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 956 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 957 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 958 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 959 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 960 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 961 | # If the previous option needs an argument, assign it. |
| 962 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 963 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 964 | ac_prev= |
| 965 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 966 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 967 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 968 | case $ac_option in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 969 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 970 | *=) ac_optarg= ;; |
| 971 | *) ac_optarg=yes ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 972 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 973 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 974 | case $ac_dashdash$ac_option in |
| 975 | --) |
| 976 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 977 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 978 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 979 | ac_prev=bindir ;; |
| 980 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 981 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 982 | |
| 983 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 984 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 985 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 986 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 987 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 988 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 989 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 990 | ac_prev=cache_file ;; |
| 991 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 992 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 993 | cache_file=$ac_optarg ;; |
| 994 | |
| 995 | --config-cache | -C) |
| 996 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 997 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 998 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 999 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1000 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1001 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1002 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1003 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1004 | | --dataroo | --dataro | --datar) |
| 1005 | ac_prev=datarootdir ;; |
| 1006 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1007 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1008 | datarootdir=$ac_optarg ;; |
| 1009 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1010 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1011 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1012 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1013 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1014 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1015 | ac_useropt_orig=$ac_useropt |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1016 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1017 | case $ac_user_opts in |
| 1018 | *" |
| 1019 | "enable_$ac_useropt" |
| 1020 | "*) ;; |
| 1021 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1022 | ac_unrecognized_sep=', ';; |
| 1023 | esac |
| 1024 | eval enable_$ac_useropt=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1025 | |
| 1026 | -docdir | --docdir | --docdi | --doc | --do) |
| 1027 | ac_prev=docdir ;; |
| 1028 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1029 | docdir=$ac_optarg ;; |
| 1030 | |
| 1031 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1032 | ac_prev=dvidir ;; |
| 1033 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1034 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1035 | |
| 1036 | -enable-* | --enable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1037 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1038 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1039 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1040 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1041 | ac_useropt_orig=$ac_useropt |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1042 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1043 | case $ac_user_opts in |
| 1044 | *" |
| 1045 | "enable_$ac_useropt" |
| 1046 | "*) ;; |
| 1047 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1048 | ac_unrecognized_sep=', ';; |
| 1049 | esac |
| 1050 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1051 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1052 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1053 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1054 | | --exec | --exe | --ex) |
| 1055 | ac_prev=exec_prefix ;; |
| 1056 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1057 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1058 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1060 | |
| 1061 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1062 | # Obsolete; use --with-gas. |
| 1063 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | -help | --help | --hel | --he | -h) |
| 1066 | ac_init_help=long ;; |
| 1067 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1068 | ac_init_help=recursive ;; |
| 1069 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1070 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1071 | |
| 1072 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1074 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1075 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1076 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1077 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1078 | ac_prev=htmldir ;; |
| 1079 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1080 | | --ht=*) |
| 1081 | htmldir=$ac_optarg ;; |
| 1082 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1083 | -includedir | --includedir | --includedi | --included | --include \ |
| 1084 | | --includ | --inclu | --incl | --inc) |
| 1085 | ac_prev=includedir ;; |
| 1086 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1087 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1088 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1089 | |
| 1090 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1091 | ac_prev=infodir ;; |
| 1092 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1093 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1094 | |
| 1095 | -libdir | --libdir | --libdi | --libd) |
| 1096 | ac_prev=libdir ;; |
| 1097 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1098 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1099 | |
| 1100 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1101 | | --libexe | --libex | --libe) |
| 1102 | ac_prev=libexecdir ;; |
| 1103 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1104 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1105 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1106 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1107 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1108 | ac_prev=localedir ;; |
| 1109 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1110 | localedir=$ac_optarg ;; |
| 1111 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1112 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1113 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1114 | ac_prev=localstatedir ;; |
| 1115 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1116 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1117 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1118 | |
| 1119 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1120 | ac_prev=mandir ;; |
| 1121 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1122 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1123 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1124 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1125 | # Obsolete; use --without-fp. |
| 1126 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1127 | |
| 1128 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1129 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1130 | no_create=yes ;; |
| 1131 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1132 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1133 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1134 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1135 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1136 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1137 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1138 | | --oldin | --oldi | --old | --ol | --o) |
| 1139 | ac_prev=oldincludedir ;; |
| 1140 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1141 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1142 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1143 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1144 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1145 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1146 | ac_prev=prefix ;; |
| 1147 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1148 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1149 | |
| 1150 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1151 | | --program-pre | --program-pr | --program-p) |
| 1152 | ac_prev=program_prefix ;; |
| 1153 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1154 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1155 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1156 | |
| 1157 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1158 | | --program-suf | --program-su | --program-s) |
| 1159 | ac_prev=program_suffix ;; |
| 1160 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1161 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1162 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1163 | |
| 1164 | -program-transform-name | --program-transform-name \ |
| 1165 | | --program-transform-nam | --program-transform-na \ |
| 1166 | | --program-transform-n | --program-transform- \ |
| 1167 | | --program-transform | --program-transfor \ |
| 1168 | | --program-transfo | --program-transf \ |
| 1169 | | --program-trans | --program-tran \ |
| 1170 | | --progr-tra | --program-tr | --program-t) |
| 1171 | ac_prev=program_transform_name ;; |
| 1172 | -program-transform-name=* | --program-transform-name=* \ |
| 1173 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1174 | | --program-transform-n=* | --program-transform-=* \ |
| 1175 | | --program-transform=* | --program-transfor=* \ |
| 1176 | | --program-transfo=* | --program-transf=* \ |
| 1177 | | --program-trans=* | --program-tran=* \ |
| 1178 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1179 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1180 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1181 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1182 | ac_prev=pdfdir ;; |
| 1183 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1184 | pdfdir=$ac_optarg ;; |
| 1185 | |
| 1186 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1187 | ac_prev=psdir ;; |
| 1188 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1189 | psdir=$ac_optarg ;; |
| 1190 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1191 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1192 | | -silent | --silent | --silen | --sile | --sil) |
| 1193 | silent=yes ;; |
| 1194 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1195 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1196 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1197 | | --run | --ru | --r) |
| 1198 | ac_prev=runstatedir ;; |
| 1199 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1200 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1201 | | --run=* | --ru=* | --r=*) |
| 1202 | runstatedir=$ac_optarg ;; |
| 1203 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1204 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1205 | ac_prev=sbindir ;; |
| 1206 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1207 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1208 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1209 | |
| 1210 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1211 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1212 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1213 | | --sha | --sh) |
| 1214 | ac_prev=sharedstatedir ;; |
| 1215 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1216 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1217 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1218 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1219 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1220 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1221 | -site | --site | --sit) |
| 1222 | ac_prev=site ;; |
| 1223 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1224 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1225 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1226 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1227 | ac_prev=srcdir ;; |
| 1228 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1229 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1230 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1231 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1232 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1233 | ac_prev=sysconfdir ;; |
| 1234 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1235 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1236 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1237 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1238 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1239 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1240 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1241 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1242 | |
| 1243 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1244 | verbose=yes ;; |
| 1245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1246 | -version | --version | --versio | --versi | --vers | -V) |
| 1247 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1248 | |
| 1249 | -with-* | --with-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1250 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1251 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1252 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1253 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1254 | ac_useropt_orig=$ac_useropt |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1255 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1256 | case $ac_user_opts in |
| 1257 | *" |
| 1258 | "with_$ac_useropt" |
| 1259 | "*) ;; |
| 1260 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1261 | ac_unrecognized_sep=', ';; |
| 1262 | esac |
| 1263 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1264 | |
| 1265 | -without-* | --without-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1266 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1267 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1268 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1269 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1270 | ac_useropt_orig=$ac_useropt |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1271 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1272 | case $ac_user_opts in |
| 1273 | *" |
| 1274 | "with_$ac_useropt" |
| 1275 | "*) ;; |
| 1276 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1277 | ac_unrecognized_sep=', ';; |
| 1278 | esac |
| 1279 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1280 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1281 | --x) |
| 1282 | # Obsolete; use --with-x. |
| 1283 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1284 | |
| 1285 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1286 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1287 | ac_prev=x_includes ;; |
| 1288 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1289 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1290 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1291 | |
| 1292 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1293 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1294 | ac_prev=x_libraries ;; |
| 1295 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1296 | | --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] | 1297 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1298 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1299 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1300 | Try \`$0 --help' for more information" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1301 | ;; |
| 1302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1303 | *=*) |
| 1304 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1305 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1306 | case $ac_envvar in #( |
| 1307 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1308 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1309 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1310 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1311 | export $ac_envvar ;; |
| 1312 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1313 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1314 | # FIXME: should be removed in autoconf 3.0. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1315 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1316 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1317 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1318 | : "${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] | 1319 | ;; |
| 1320 | |
| 1321 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1322 | done |
| 1323 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1324 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1325 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1326 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1327 | fi |
| 1328 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1329 | if test -n "$ac_unrecognized_opts"; then |
| 1330 | case $enable_option_checking in |
| 1331 | no) ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1332 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1333 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1334 | esac |
| 1335 | fi |
| 1336 | |
| 1337 | # Check all directory arguments for consistency. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1338 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1339 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1340 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1341 | libdir localedir mandir runstatedir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1342 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1343 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1344 | # Remove trailing slashes. |
| 1345 | case $ac_val in |
| 1346 | */ ) |
| 1347 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1348 | eval $ac_var=\$ac_val;; |
| 1349 | esac |
| 1350 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1351 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1352 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1353 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1354 | esac |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1355 | 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] | 1356 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1358 | # There might be people who depend on the old broken behavior: `$host' |
| 1359 | # used to hold the argument of --host etc. |
| 1360 | # FIXME: To remove some day. |
| 1361 | build=$build_alias |
| 1362 | host=$host_alias |
| 1363 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1365 | # FIXME: To remove some day. |
| 1366 | if test "x$host_alias" != x; then |
| 1367 | if test "x$build_alias" = x; then |
| 1368 | cross_compiling=maybe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | elif test "x$build_alias" != "x$host_alias"; then |
| 1370 | cross_compiling=yes |
| 1371 | fi |
| 1372 | fi |
| 1373 | |
| 1374 | ac_tool_prefix= |
| 1375 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1376 | |
| 1377 | test "$silent" = yes && exec 6>/dev/null |
| 1378 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1379 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1380 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1381 | ac_ls_di=`ls -di .` && |
| 1382 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1383 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1384 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1385 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1386 | |
| 1387 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1388 | # Find the source files, if location was not specified. |
| 1389 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1390 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1391 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1392 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1393 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1394 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1395 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1396 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1397 | printf "%s\n" X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1398 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1399 | s//\1/ |
| 1400 | q |
| 1401 | } |
| 1402 | /^X\(\/\/\)[^/].*/{ |
| 1403 | s//\1/ |
| 1404 | q |
| 1405 | } |
| 1406 | /^X\(\/\/\)$/{ |
| 1407 | s//\1/ |
| 1408 | q |
| 1409 | } |
| 1410 | /^X\(\/\).*/{ |
| 1411 | s//\1/ |
| 1412 | q |
| 1413 | } |
| 1414 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1415 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1416 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1417 | srcdir=.. |
| 1418 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1419 | else |
| 1420 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1421 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1422 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1423 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1424 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1425 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1426 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1427 | ac_abs_confdir=`( |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1428 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1429 | pwd)` |
| 1430 | # When building in place, set srcdir=. |
| 1431 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1432 | srcdir=. |
| 1433 | fi |
| 1434 | # Remove unnecessary trailing slashes from srcdir. |
| 1435 | # Double slashes in file names in object file debugging info |
| 1436 | # mess up M-x gdb in Emacs. |
| 1437 | case $srcdir in |
| 1438 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1439 | esac |
| 1440 | for ac_var in $ac_precious_vars; do |
| 1441 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1442 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1443 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1444 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1445 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1447 | # |
| 1448 | # Report the --help message. |
| 1449 | # |
| 1450 | if test "$ac_init_help" = "long"; then |
| 1451 | # Omit some internal or obsolete options to make the list less imposing. |
| 1452 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1453 | cat <<_ACEOF |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1454 | \`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] | 1455 | |
| 1456 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1457 | |
| 1458 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1459 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1460 | |
| 1461 | Defaults for the options are specified in brackets. |
| 1462 | |
| 1463 | Configuration: |
| 1464 | -h, --help display this help and exit |
| 1465 | --help=short display options specific to this package |
| 1466 | --help=recursive display the short help of all the included packages |
| 1467 | -V, --version display version information and exit |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1468 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1469 | --cache-file=FILE cache test results in FILE [disabled] |
| 1470 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1471 | -n, --no-create do not create output files |
| 1472 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1473 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1474 | Installation directories: |
| 1475 | --prefix=PREFIX install architecture-independent files in PREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1476 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1477 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1478 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1479 | |
| 1480 | By default, \`make install' will install all the files in |
| 1481 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1482 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1483 | for instance \`--prefix=\$HOME'. |
| 1484 | |
| 1485 | For better control, use the options below. |
| 1486 | |
| 1487 | Fine tuning of the installation directories: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1488 | --bindir=DIR user executables [EPREFIX/bin] |
| 1489 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1490 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1491 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1492 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1493 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1494 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1495 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1496 | --includedir=DIR C header files [PREFIX/include] |
| 1497 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1498 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1499 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1500 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1501 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1502 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1503 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1504 | --htmldir=DIR html documentation [DOCDIR] |
| 1505 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1506 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1507 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1508 | _ACEOF |
| 1509 | |
| 1510 | cat <<\_ACEOF |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1511 | |
| 1512 | System types: |
| 1513 | --build=BUILD configure for building on BUILD [guessed] |
| 1514 | --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] | 1515 | _ACEOF |
| 1516 | fi |
| 1517 | |
| 1518 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1519 | case $ac_init_help in |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1520 | short | recursive ) echo "Configuration of python 3.10:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1521 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1522 | cat <<\_ACEOF |
| 1523 | |
| 1524 | Optional Features: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1525 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1526 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1527 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1528 | --enable-universalsdk[=SDKDIR] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1529 | create a universal binary build. SDKDIR specifies |
| 1530 | which macOS SDK should be used to perform the build, |
| 1531 | see Mac/README.rst. (default is no) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1532 | --enable-framework[=INSTALLDIR] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1533 | create a Python.framework rather than a traditional |
| 1534 | Unix install. optional INSTALLDIR specifies the |
| 1535 | installation path. see Mac/README.rst (default is |
| 1536 | no) |
| 1537 | --enable-shared enable building a shared Python library (default is |
| 1538 | no) |
| 1539 | --enable-profiling enable C-level code profiling with gprof (default is |
| 1540 | no) |
| 1541 | --enable-optimizations enable expensive, stable optimizations (PGO, etc.) |
| 1542 | (default is no) |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1543 | --enable-loadable-sqlite-extensions |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1544 | support loadable extensions in _sqlite module, see |
| 1545 | Doc/library/sqlite3.rst (default is no) |
| 1546 | --enable-ipv6 enable ipv6 (with ipv4) support, see |
| 1547 | Doc/library/socket.rst (default is yes if supported) |
| 1548 | --enable-big-digits[=15|30] |
| 1549 | use big digits (30 or 15 bits) for Python longs |
| 1550 | (default is system-dependent)] |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 1551 | --disable-test-modules don't build nor install test modules |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1552 | |
| 1553 | Optional Packages: |
| 1554 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1555 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1556 | --with-universal-archs=ARCH |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1557 | specify the kind of universal binary that should be |
| 1558 | created. this option is only valid when |
| 1559 | --enable-universalsdk is set; options are: |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 1560 | ("universal2", "32-bit", "64-bit", "3-way", "intel", |
| 1561 | "intel-32", "intel-64", or "all") see Mac/README.rst |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1562 | --with-framework-name=FRAMEWORK |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1563 | specify the name for the python framework on macOS |
| 1564 | only valid when --enable-framework is set. see |
| 1565 | Mac/README.rst (default is 'Python') |
| 1566 | --with-cxx-main[=COMPILER] |
| 1567 | compile main() and link Python executable with C++ |
| 1568 | compiler specified in COMPILER (default is $CXX) |
| 1569 | --with-suffix=SUFFIX set executable suffix to SUFFIX (default is '.exe') |
| 1570 | --with-pydebug build with Py_DEBUG defined (default is no) |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 1571 | --with-trace-refs enable tracing references for debugging purpose |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1572 | (default is no) |
| 1573 | --with-assertions build with C assertions enabled (default is no) |
| 1574 | --with-lto enable Link-Time-Optimization in any build (default |
| 1575 | is no) |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1576 | --with-hash-algorithm=[fnv|siphash24] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1577 | select hash algorithm for use in Python/pyhash.c |
| 1578 | (default is SipHash24) |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 1579 | --with-tzpath=<list of absolute paths separated by pathsep> |
| 1580 | Select the default time zone search path for zoneinfo.TZPATH |
| 1581 | |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1582 | --with-address-sanitizer |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1583 | enable AddressSanitizer memory error detector, |
| 1584 | 'asan' (default is no) |
| 1585 | --with-memory-sanitizer enable MemorySanitizer allocation error detector, |
| 1586 | 'msan' (default is no) |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 1587 | --with-undefined-behavior-sanitizer |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1588 | enable UndefinedBehaviorSanitizer undefined |
| 1589 | behaviour detector, 'ubsan' (default is no) |
| 1590 | --with-libs='lib1 ...' link against additional libs (default is no) |
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1591 | --with-system-expat build pyexpat module using an installed expat |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1592 | library, see Doc/library/pyexpat.rst (default is no) |
| 1593 | --with-system-ffi build _ctypes module using an installed ffi library, |
| 1594 | see Doc/library/ctypes.rst (default is |
| 1595 | system-dependent) |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1596 | --with-system-libmpdec build _decimal module using an installed libmpdec |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1597 | library, see Doc/library/decimal.rst (default is no) |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 1598 | --with-decimal-contextvar |
| 1599 | build _decimal module using a coroutine-local rather |
| 1600 | than a thread-local context (default is yes) |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1601 | --with-tcltk-includes='-I...' |
| 1602 | override search for Tcl and Tk include files |
| 1603 | --with-tcltk-libs='-L...' |
| 1604 | override search for Tcl and Tk libs |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1605 | --with-dbmliborder=db1:db2:... |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1606 | override order to check db backends for dbm; a valid |
| 1607 | value is a colon separated string with the backend |
| 1608 | names `ndbm', `gdbm' and `bdb'. |
| 1609 | --with-doc-strings enable documentation strings (default is yes) |
| 1610 | --with-pymalloc enable specialized mallocs (default is yes) |
| 1611 | --with-c-locale-coercion |
| 1612 | enable C locale coercion to a UTF-8 based locale |
| 1613 | (default is yes) |
| 1614 | --with-valgrind enable Valgrind support (default is no) |
| 1615 | --with-dtrace enable DTrace support (default is no) |
| 1616 | --with-libm=STRING override libm math library to STRING (default is |
| 1617 | system-dependent) |
| 1618 | --with-libc=STRING override libc C library to STRING (default is |
| 1619 | system-dependent) |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 1620 | --with-platlibdir=DIRNAME |
| 1621 | Python library directory name (default is "lib") |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 1622 | --with-wheel-pkg-dir=PATH |
| 1623 | Directory of wheel packages used by ensurepip |
| 1624 | (default: none) |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 1625 | --with(out)-readline[=editline] |
| 1626 | use Editline for backend or disable readline module |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1627 | --with-computed-gotos enable computed gotos in evaluation loop (enabled by |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1628 | default on supported compilers) |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1629 | --with-ensurepip[=install|upgrade|no] |
| 1630 | "install" or "upgrade" using bundled pip (default is |
| 1631 | upgrade) |
| 1632 | --with-openssl=DIR override root of the OpenSSL directory to DIR |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 1633 | --with-ssl-default-suites=[python|openssl|STRING] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1634 | override default cipher suites string, python: use |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 1635 | Python's preferred selection (default), openssl: |
| 1636 | leave OpenSSL's defaults untouched, STRING: use a |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1637 | custom string, PROTOCOL_SSLv2 ignores the setting, |
| 1638 | see Doc/library/ssl.rst |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 1639 | --with-builtin-hashlib-hashes=md5,sha1,sha256,sha512,sha3,blake2 |
| 1640 | builtin hash modules, md5, sha1, sha256, sha512, |
| 1641 | sha3 (with shake), blake2 |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 1642 | --with-experimental-isolated-subinterpreters |
| 1643 | better isolate subinterpreters, experimental build |
| 1644 | mode (default is no) |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 1645 | --without-static-libpython |
| 1646 | do not build libpythonMAJOR.MINOR.a and do not |
| 1647 | install python.o (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1648 | |
| 1649 | Some influential environment variables: |
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1650 | MACHDEP name for machine-dependent library files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1651 | CC C compiler command |
| 1652 | CFLAGS C compiler flags |
| 1653 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1654 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1655 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1656 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1657 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1658 | CPP C preprocessor |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 1659 | PROFILE_TASK |
| 1660 | Python args for PGO generation task |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 1661 | PKG_CONFIG path to pkg-config utility |
| 1662 | PKG_CONFIG_PATH |
| 1663 | directories to add to pkg-config's search path |
| 1664 | PKG_CONFIG_LIBDIR |
| 1665 | path overriding pkg-config's built-in search path |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1666 | |
| 1667 | Use these variables to override the choices made by `configure' or to help |
| 1668 | it to find libraries and programs with nonstandard names/locations. |
| 1669 | |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1670 | Report bugs to <https://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1671 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1672 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1673 | fi |
| 1674 | |
| 1675 | if test "$ac_init_help" = "recursive"; then |
| 1676 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1677 | 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] | 1678 | test -d "$ac_dir" || |
| 1679 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1680 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1681 | ac_builddir=. |
| 1682 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1683 | case "$ac_dir" in |
| 1684 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1685 | *) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1686 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1687 | # A ".." for each directory in $ac_dir_suffix. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1688 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1689 | case $ac_top_builddir_sub in |
| 1690 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1691 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1692 | esac ;; |
| 1693 | esac |
| 1694 | ac_abs_top_builddir=$ac_pwd |
| 1695 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1696 | # for backward compatibility: |
| 1697 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1698 | |
| 1699 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1700 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1701 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1702 | ac_top_srcdir=$ac_top_builddir_sub |
| 1703 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1704 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1705 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1706 | ac_top_srcdir=$srcdir |
| 1707 | ac_abs_top_srcdir=$srcdir ;; |
| 1708 | *) # Relative name. |
| 1709 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1710 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1711 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1712 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1713 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1714 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1715 | cd "$ac_dir" || { ac_status=$?; continue; } |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1716 | # Check for configure.gnu first; this name is used for a wrapper for |
| 1717 | # Metaconfig's "Configure" on case-insensitive file systems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1718 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1719 | echo && |
| 1720 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1721 | elif test -f "$ac_srcdir/configure"; then |
| 1722 | echo && |
| 1723 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1724 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1725 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1726 | fi || ac_status=$? |
| 1727 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1728 | done |
| 1729 | fi |
| 1730 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1731 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1732 | if $ac_init_version; then |
| 1733 | cat <<\_ACEOF |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1734 | python configure 3.10 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1735 | generated by GNU Autoconf 2.71 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1736 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1737 | Copyright (C) 2021 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1738 | This configure script is free software; the Free Software Foundation |
| 1739 | gives unlimited permission to copy, distribute and modify it. |
| 1740 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1741 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1742 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1743 | |
| 1744 | ## ------------------------ ## |
| 1745 | ## Autoconf initialization. ## |
| 1746 | ## ------------------------ ## |
| 1747 | |
| 1748 | # ac_fn_c_try_compile LINENO |
| 1749 | # -------------------------- |
| 1750 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1751 | ac_fn_c_try_compile () |
| 1752 | { |
| 1753 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1754 | rm -f conftest.$ac_objext conftest.beam |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1755 | if { { ac_try="$ac_compile" |
| 1756 | case "(($ac_try" in |
| 1757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1758 | *) ac_try_echo=$ac_try;; |
| 1759 | esac |
| 1760 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1761 | printf "%s\n" "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1762 | (eval "$ac_compile") 2>conftest.err |
| 1763 | ac_status=$? |
| 1764 | if test -s conftest.err; then |
| 1765 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1766 | cat conftest.er1 >&5 |
| 1767 | mv -f conftest.er1 conftest.err |
| 1768 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1769 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1770 | test $ac_status = 0; } && { |
| 1771 | test -z "$ac_c_werror_flag" || |
| 1772 | test ! -s conftest.err |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1773 | } && test -s conftest.$ac_objext |
| 1774 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1775 | ac_retval=0 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1776 | else $as_nop |
| 1777 | printf "%s\n" "$as_me: failed program was:" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1779 | |
| 1780 | ac_retval=1 |
| 1781 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1782 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1783 | as_fn_set_status $ac_retval |
| 1784 | |
| 1785 | } # ac_fn_c_try_compile |
| 1786 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1787 | # ac_fn_c_try_cpp LINENO |
| 1788 | # ---------------------- |
| 1789 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1790 | ac_fn_c_try_cpp () |
| 1791 | { |
| 1792 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1793 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1794 | case "(($ac_try" in |
| 1795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1796 | *) ac_try_echo=$ac_try;; |
| 1797 | esac |
| 1798 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1799 | printf "%s\n" "$ac_try_echo"; } >&5 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1800 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1801 | ac_status=$? |
| 1802 | if test -s conftest.err; then |
| 1803 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1804 | cat conftest.er1 >&5 |
| 1805 | mv -f conftest.er1 conftest.err |
| 1806 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1807 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1808 | test $ac_status = 0; } > conftest.i && { |
| 1809 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1810 | test ! -s conftest.err |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1811 | } |
| 1812 | then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1813 | ac_retval=0 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1814 | else $as_nop |
| 1815 | printf "%s\n" "$as_me: failed program was:" >&5 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1817 | |
| 1818 | ac_retval=1 |
| 1819 | fi |
| 1820 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1821 | as_fn_set_status $ac_retval |
| 1822 | |
| 1823 | } # ac_fn_c_try_cpp |
| 1824 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1825 | # ac_fn_c_try_link LINENO |
| 1826 | # ----------------------- |
| 1827 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1828 | ac_fn_c_try_link () |
| 1829 | { |
| 1830 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1831 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1832 | if { { ac_try="$ac_link" |
| 1833 | case "(($ac_try" in |
| 1834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1835 | *) ac_try_echo=$ac_try;; |
| 1836 | esac |
| 1837 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1838 | printf "%s\n" "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1839 | (eval "$ac_link") 2>conftest.err |
| 1840 | ac_status=$? |
| 1841 | if test -s conftest.err; then |
| 1842 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1843 | cat conftest.er1 >&5 |
| 1844 | mv -f conftest.er1 conftest.err |
| 1845 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1846 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1847 | test $ac_status = 0; } && { |
| 1848 | test -z "$ac_c_werror_flag" || |
| 1849 | test ! -s conftest.err |
| 1850 | } && test -s conftest$ac_exeext && { |
| 1851 | test "$cross_compiling" = yes || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1852 | test -x conftest$ac_exeext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1853 | } |
| 1854 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1855 | ac_retval=0 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1856 | else $as_nop |
| 1857 | printf "%s\n" "$as_me: failed program was:" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1859 | |
| 1860 | ac_retval=1 |
| 1861 | fi |
| 1862 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1863 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1864 | # interfere with the next link command; also delete a directory that is |
| 1865 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1866 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1867 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1868 | as_fn_set_status $ac_retval |
| 1869 | |
| 1870 | } # ac_fn_c_try_link |
| 1871 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1872 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1873 | # ------------------------------------------------------- |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1874 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1875 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1876 | ac_fn_c_check_header_compile () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1877 | { |
| 1878 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1879 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1880 | printf %s "checking for $2... " >&6; } |
| 1881 | if eval test \${$3+y} |
| 1882 | then : |
| 1883 | printf %s "(cached) " >&6 |
| 1884 | else $as_nop |
| 1885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1886 | /* end confdefs.h. */ |
| 1887 | $4 |
| 1888 | #include <$2> |
| 1889 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1890 | if ac_fn_c_try_compile "$LINENO" |
| 1891 | then : |
| 1892 | eval "$3=yes" |
| 1893 | else $as_nop |
| 1894 | eval "$3=no" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1895 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1896 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1897 | fi |
| 1898 | eval ac_res=\$$3 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1900 | printf "%s\n" "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1901 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1902 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1903 | } # ac_fn_c_check_header_compile |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1904 | |
| 1905 | # ac_fn_c_try_run LINENO |
| 1906 | # ---------------------- |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1907 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 1908 | # executables *can* be run. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1909 | ac_fn_c_try_run () |
| 1910 | { |
| 1911 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1912 | if { { ac_try="$ac_link" |
| 1913 | case "(($ac_try" in |
| 1914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1915 | *) ac_try_echo=$ac_try;; |
| 1916 | esac |
| 1917 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1918 | printf "%s\n" "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1919 | (eval "$ac_link") 2>&5 |
| 1920 | ac_status=$? |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1921 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1922 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1923 | { { case "(($ac_try" in |
| 1924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1925 | *) ac_try_echo=$ac_try;; |
| 1926 | esac |
| 1927 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1928 | printf "%s\n" "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1929 | (eval "$ac_try") 2>&5 |
| 1930 | ac_status=$? |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1931 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1932 | test $ac_status = 0; }; } |
| 1933 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1934 | ac_retval=0 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1935 | else $as_nop |
| 1936 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 1937 | printf "%s\n" "$as_me: failed program was:" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1939 | |
| 1940 | ac_retval=$ac_status |
| 1941 | fi |
| 1942 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1943 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1944 | as_fn_set_status $ac_retval |
| 1945 | |
| 1946 | } # ac_fn_c_try_run |
| 1947 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1948 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1949 | # ------------------------------------------- |
| 1950 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1951 | # variable VAR accordingly. |
| 1952 | ac_fn_c_check_type () |
| 1953 | { |
| 1954 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1955 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1956 | printf %s "checking for $2... " >&6; } |
| 1957 | if eval test \${$3+y} |
| 1958 | then : |
| 1959 | printf %s "(cached) " >&6 |
| 1960 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1961 | eval "$3=no" |
| 1962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1963 | /* end confdefs.h. */ |
| 1964 | $4 |
| 1965 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1966 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1967 | { |
| 1968 | if (sizeof ($2)) |
| 1969 | return 0; |
| 1970 | ; |
| 1971 | return 0; |
| 1972 | } |
| 1973 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1974 | if ac_fn_c_try_compile "$LINENO" |
| 1975 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1977 | /* end confdefs.h. */ |
| 1978 | $4 |
| 1979 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1980 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1981 | { |
| 1982 | if (sizeof (($2))) |
| 1983 | return 0; |
| 1984 | ; |
| 1985 | return 0; |
| 1986 | } |
| 1987 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1988 | if ac_fn_c_try_compile "$LINENO" |
| 1989 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1990 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1991 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1992 | eval "$3=yes" |
| 1993 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1994 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1995 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1996 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1997 | fi |
| 1998 | eval ac_res=\$$3 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 1999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2000 | printf "%s\n" "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2001 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2002 | |
| 2003 | } # ac_fn_c_check_type |
| 2004 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2005 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2006 | # -------------------------------------------- |
| 2007 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2008 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2009 | # computed |
| 2010 | ac_fn_c_compute_int () |
| 2011 | { |
| 2012 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2013 | if test "$cross_compiling" = yes; then |
| 2014 | # Depending upon the size, compute the lo and hi bounds. |
| 2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2016 | /* end confdefs.h. */ |
| 2017 | $4 |
| 2018 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2019 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2020 | { |
| 2021 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2022 | test_array [0] = 0; |
| 2023 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2024 | |
| 2025 | ; |
| 2026 | return 0; |
| 2027 | } |
| 2028 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2029 | if ac_fn_c_try_compile "$LINENO" |
| 2030 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2031 | ac_lo=0 ac_mid=0 |
| 2032 | while :; do |
| 2033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2034 | /* end confdefs.h. */ |
| 2035 | $4 |
| 2036 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2037 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2038 | { |
| 2039 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2040 | test_array [0] = 0; |
| 2041 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2042 | |
| 2043 | ; |
| 2044 | return 0; |
| 2045 | } |
| 2046 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2047 | if ac_fn_c_try_compile "$LINENO" |
| 2048 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2049 | ac_hi=$ac_mid; break |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2050 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2051 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2052 | if test $ac_lo -le $ac_mid; then |
| 2053 | ac_lo= ac_hi= |
| 2054 | break |
| 2055 | fi |
| 2056 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2057 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2058 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2059 | done |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2060 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2062 | /* end confdefs.h. */ |
| 2063 | $4 |
| 2064 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2065 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2066 | { |
| 2067 | static int test_array [1 - 2 * !(($2) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2068 | test_array [0] = 0; |
| 2069 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2070 | |
| 2071 | ; |
| 2072 | return 0; |
| 2073 | } |
| 2074 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2075 | if ac_fn_c_try_compile "$LINENO" |
| 2076 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2077 | ac_hi=-1 ac_mid=-1 |
| 2078 | while :; do |
| 2079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2080 | /* end confdefs.h. */ |
| 2081 | $4 |
| 2082 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2083 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2084 | { |
| 2085 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2086 | test_array [0] = 0; |
| 2087 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2088 | |
| 2089 | ; |
| 2090 | return 0; |
| 2091 | } |
| 2092 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2093 | if ac_fn_c_try_compile "$LINENO" |
| 2094 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2095 | ac_lo=$ac_mid; break |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2096 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2097 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2098 | if test $ac_mid -le $ac_hi; then |
| 2099 | ac_lo= ac_hi= |
| 2100 | break |
| 2101 | fi |
| 2102 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2103 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2104 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2105 | done |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2106 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2107 | ac_lo= ac_hi= |
| 2108 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2109 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2110 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2111 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2112 | # Binary search between lo and hi bounds. |
| 2113 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2114 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2116 | /* end confdefs.h. */ |
| 2117 | $4 |
| 2118 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2119 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2120 | { |
| 2121 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2122 | test_array [0] = 0; |
| 2123 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2124 | |
| 2125 | ; |
| 2126 | return 0; |
| 2127 | } |
| 2128 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2129 | if ac_fn_c_try_compile "$LINENO" |
| 2130 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2131 | ac_hi=$ac_mid |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2132 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2133 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2134 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2135 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2136 | done |
| 2137 | case $ac_lo in #(( |
| 2138 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2139 | '') ac_retval=1 ;; |
| 2140 | esac |
| 2141 | else |
| 2142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2143 | /* end confdefs.h. */ |
| 2144 | $4 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2145 | static long int longval (void) { return $2; } |
| 2146 | static unsigned long int ulongval (void) { return $2; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2147 | #include <stdio.h> |
| 2148 | #include <stdlib.h> |
| 2149 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2150 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2151 | { |
| 2152 | |
| 2153 | FILE *f = fopen ("conftest.val", "w"); |
| 2154 | if (! f) |
| 2155 | return 1; |
| 2156 | if (($2) < 0) |
| 2157 | { |
| 2158 | long int i = longval (); |
| 2159 | if (i != ($2)) |
| 2160 | return 1; |
| 2161 | fprintf (f, "%ld", i); |
| 2162 | } |
| 2163 | else |
| 2164 | { |
| 2165 | unsigned long int i = ulongval (); |
| 2166 | if (i != ($2)) |
| 2167 | return 1; |
| 2168 | fprintf (f, "%lu", i); |
| 2169 | } |
| 2170 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2171 | on some platforms. */ |
| 2172 | return ferror (f) || fclose (f) != 0; |
| 2173 | |
| 2174 | ; |
| 2175 | return 0; |
| 2176 | } |
| 2177 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2178 | if ac_fn_c_try_run "$LINENO" |
| 2179 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2180 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2181 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2182 | ac_retval=1 |
| 2183 | fi |
| 2184 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2185 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2186 | rm -f conftest.val |
| 2187 | |
| 2188 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2189 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2190 | as_fn_set_status $ac_retval |
| 2191 | |
| 2192 | } # ac_fn_c_compute_int |
| 2193 | |
| 2194 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2195 | # ---------------------------------- |
| 2196 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2197 | ac_fn_c_check_func () |
| 2198 | { |
| 2199 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2200 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2201 | printf %s "checking for $2... " >&6; } |
| 2202 | if eval test \${$3+y} |
| 2203 | then : |
| 2204 | printf %s "(cached) " >&6 |
| 2205 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2207 | /* end confdefs.h. */ |
| 2208 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2209 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2210 | #define $2 innocuous_$2 |
| 2211 | |
| 2212 | /* System header to define __stub macros and hopefully few prototypes, |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2213 | which can conflict with char $2 (); below. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2214 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2215 | #include <limits.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2216 | #undef $2 |
| 2217 | |
| 2218 | /* Override any GCC internal prototype to avoid an error. |
| 2219 | Use char because int might match the return type of a GCC |
| 2220 | builtin and then its argument prototype would still apply. */ |
| 2221 | #ifdef __cplusplus |
| 2222 | extern "C" |
| 2223 | #endif |
| 2224 | char $2 (); |
| 2225 | /* The GNU C library defines this for functions which it implements |
| 2226 | to always fail with ENOSYS. Some functions are actually named |
| 2227 | something starting with __ and the normal name is an alias. */ |
| 2228 | #if defined __stub_$2 || defined __stub___$2 |
| 2229 | choke me |
| 2230 | #endif |
| 2231 | |
| 2232 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2233 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2234 | { |
| 2235 | return $2 (); |
| 2236 | ; |
| 2237 | return 0; |
| 2238 | } |
| 2239 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2240 | if ac_fn_c_try_link "$LINENO" |
| 2241 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2242 | eval "$3=yes" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2243 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2244 | eval "$3=no" |
| 2245 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2246 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2247 | conftest$ac_exeext conftest.$ac_ext |
| 2248 | fi |
| 2249 | eval ac_res=\$$3 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2251 | printf "%s\n" "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2252 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2253 | |
| 2254 | } # ac_fn_c_check_func |
| 2255 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2256 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
| 2257 | # ------------------------------------------------------------------ |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2258 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2259 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
| 2260 | ac_fn_check_decl () |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2261 | { |
| 2262 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2263 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2264 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2265 | printf %s "checking whether $as_decl_name is declared... " >&6; } |
| 2266 | if eval test \${$3+y} |
| 2267 | then : |
| 2268 | printf %s "(cached) " >&6 |
| 2269 | else $as_nop |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2270 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2271 | eval ac_save_FLAGS=\$$6 |
| 2272 | as_fn_append $6 " $5" |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2274 | /* end confdefs.h. */ |
| 2275 | $4 |
| 2276 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2277 | main (void) |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2278 | { |
| 2279 | #ifndef $as_decl_name |
| 2280 | #ifdef __cplusplus |
| 2281 | (void) $as_decl_use; |
| 2282 | #else |
| 2283 | (void) $as_decl_name; |
| 2284 | #endif |
| 2285 | #endif |
| 2286 | |
| 2287 | ; |
| 2288 | return 0; |
| 2289 | } |
| 2290 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2291 | if ac_fn_c_try_compile "$LINENO" |
| 2292 | then : |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2293 | eval "$3=yes" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2294 | else $as_nop |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2295 | eval "$3=no" |
| 2296 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2297 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2298 | eval $6=\$ac_save_FLAGS |
| 2299 | |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2300 | fi |
| 2301 | eval ac_res=\$$3 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2303 | printf "%s\n" "$ac_res" >&6; } |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2304 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2305 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2306 | } # ac_fn_check_decl |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2307 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2308 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2309 | # ---------------------------------------------------- |
| 2310 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2311 | # INCLUDES, setting cache variable VAR accordingly. |
| 2312 | ac_fn_c_check_member () |
| 2313 | { |
| 2314 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2315 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2316 | printf %s "checking for $2.$3... " >&6; } |
| 2317 | if eval test \${$4+y} |
| 2318 | then : |
| 2319 | printf %s "(cached) " >&6 |
| 2320 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2322 | /* end confdefs.h. */ |
| 2323 | $5 |
| 2324 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2325 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2326 | { |
| 2327 | static $2 ac_aggr; |
| 2328 | if (ac_aggr.$3) |
| 2329 | return 0; |
| 2330 | ; |
| 2331 | return 0; |
| 2332 | } |
| 2333 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2334 | if ac_fn_c_try_compile "$LINENO" |
| 2335 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2336 | eval "$4=yes" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2337 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2339 | /* end confdefs.h. */ |
| 2340 | $5 |
| 2341 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2342 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2343 | { |
| 2344 | static $2 ac_aggr; |
| 2345 | if (sizeof ac_aggr.$3) |
| 2346 | return 0; |
| 2347 | ; |
| 2348 | return 0; |
| 2349 | } |
| 2350 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2351 | if ac_fn_c_try_compile "$LINENO" |
| 2352 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2353 | eval "$4=yes" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2354 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2355 | eval "$4=no" |
| 2356 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2357 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2358 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2359 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2360 | fi |
| 2361 | eval ac_res=\$$4 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2363 | printf "%s\n" "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2364 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2365 | |
| 2366 | } # ac_fn_c_check_member |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2367 | ac_configure_args_raw= |
| 2368 | for ac_arg |
| 2369 | do |
| 2370 | case $ac_arg in |
| 2371 | *\'*) |
| 2372 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2373 | esac |
| 2374 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 2375 | done |
| 2376 | |
| 2377 | case $ac_configure_args_raw in |
| 2378 | *$as_nl*) |
| 2379 | ac_safe_unquote= ;; |
| 2380 | *) |
| 2381 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2382 | ac_unsafe_a="$ac_unsafe_z#~" |
| 2383 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2384 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2385 | esac |
| 2386 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2387 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2388 | This file contains any messages produced by compilers while |
| 2389 | running configure, to aid debugging if configure makes a mistake. |
| 2390 | |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 2391 | It was created by python $as_me 3.10, which was |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2392 | generated by GNU Autoconf 2.71. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2393 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2394 | $ $0$ac_configure_args_raw |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2395 | |
| 2396 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2397 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2398 | { |
| 2399 | cat <<_ASUNAME |
| 2400 | ## --------- ## |
| 2401 | ## Platform. ## |
| 2402 | ## --------- ## |
| 2403 | |
| 2404 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2405 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2406 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2407 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2408 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2409 | |
| 2410 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2411 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2412 | |
| 2413 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2414 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2415 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2416 | /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] | 2417 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2418 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2419 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2420 | |
| 2421 | _ASUNAME |
| 2422 | |
| 2423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2424 | for as_dir in $PATH |
| 2425 | do |
| 2426 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2427 | case $as_dir in #((( |
| 2428 | '') as_dir=./ ;; |
| 2429 | */) ;; |
| 2430 | *) as_dir=$as_dir/ ;; |
| 2431 | esac |
| 2432 | printf "%s\n" "PATH: $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2433 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2434 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2435 | |
| 2436 | } >&5 |
| 2437 | |
| 2438 | cat >&5 <<_ACEOF |
| 2439 | |
| 2440 | |
| 2441 | ## ----------- ## |
| 2442 | ## Core tests. ## |
| 2443 | ## ----------- ## |
| 2444 | |
| 2445 | _ACEOF |
| 2446 | |
| 2447 | |
| 2448 | # Keep a trace of the command line. |
| 2449 | # 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] | 2450 | # 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] | 2451 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2452 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2453 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2454 | ac_configure_args0= |
| 2455 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2456 | ac_must_keep_next=false |
| 2457 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2458 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2459 | for ac_arg |
| 2460 | do |
| 2461 | case $ac_arg in |
| 2462 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2463 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2464 | | -silent | --silent | --silen | --sile | --sil) |
| 2465 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2466 | *\'*) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2467 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2468 | esac |
| 2469 | case $ac_pass in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2470 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2471 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2472 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2473 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2474 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2475 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2476 | case $ac_arg in |
| 2477 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2478 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2479 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2480 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2481 | case "$ac_configure_args0 " in |
| 2482 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2483 | esac |
| 2484 | ;; |
| 2485 | -* ) ac_must_keep_next=true ;; |
| 2486 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2487 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2488 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2489 | ;; |
| 2490 | esac |
| 2491 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2492 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2493 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2494 | { ac_configure_args1=; unset ac_configure_args1;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2495 | |
| 2496 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2497 | # config.log. We remove comments because anyway the quotes in there |
| 2498 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2499 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2500 | # 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] | 2501 | trap 'exit_status=$? |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2502 | # Sanitize IFS. |
| 2503 | IFS=" "" $as_nl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2504 | # Save into config.log some information that might help in debugging. |
| 2505 | { |
| 2506 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2507 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2508 | printf "%s\n" "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2509 | ## Cache variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2510 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2511 | echo |
| 2512 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2513 | ( |
| 2514 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2515 | eval ac_val=\$$ac_var |
| 2516 | case $ac_val in #( |
| 2517 | *${as_nl}*) |
| 2518 | case $ac_var in #( |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2519 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2520 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2521 | esac |
| 2522 | case $ac_var in #( |
| 2523 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2524 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2525 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2526 | esac ;; |
| 2527 | esac |
| 2528 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2529 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2530 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2531 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2533 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2534 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2535 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2536 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2537 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2538 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2539 | esac | |
| 2540 | sort |
| 2541 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2542 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2543 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2544 | printf "%s\n" "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2545 | ## Output variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2546 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2547 | echo |
| 2548 | for ac_var in $ac_subst_vars |
| 2549 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2550 | eval ac_val=\$$ac_var |
| 2551 | case $ac_val in |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2552 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2553 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2554 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2555 | done | sort |
| 2556 | echo |
| 2557 | |
| 2558 | if test -n "$ac_subst_files"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2559 | printf "%s\n" "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2560 | ## File substitutions. ## |
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_files |
| 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 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2567 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2568 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2569 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2570 | done | sort |
| 2571 | echo |
| 2572 | fi |
| 2573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2574 | if test -s confdefs.h; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2575 | printf "%s\n" "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2576 | ## confdefs.h. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2577 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2578 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2579 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2580 | echo |
| 2581 | fi |
| 2582 | test "$ac_signal" != 0 && |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2583 | printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2584 | printf "%s\n" "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2585 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2586 | rm -f core *.core core.conftest.* && |
| 2587 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2588 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2589 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2590 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2591 | 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] | 2592 | done |
| 2593 | ac_signal=0 |
| 2594 | |
| 2595 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2596 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2597 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2598 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2600 | # Predefined preprocessor variables. |
| 2601 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2602 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2603 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2604 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2605 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2606 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2607 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2608 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2609 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2610 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2611 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2612 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | |
| 2615 | # 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] | 2616 | # Prefer an explicitly selected file to automatically selected ones. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2617 | if test -n "$CONFIG_SITE"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2618 | ac_site_files="$CONFIG_SITE" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2619 | elif test "x$prefix" != xNONE; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2620 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2621 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2622 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2623 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2624 | |
| 2625 | for ac_site_file in $ac_site_files |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2626 | do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2627 | case $ac_site_file in #( |
| 2628 | */*) : |
| 2629 | ;; #( |
| 2630 | *) : |
| 2631 | ac_site_file=./$ac_site_file ;; |
| 2632 | esac |
| 2633 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2635 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2636 | sed 's/^/| /' "$ac_site_file" >&5 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2637 | . "$ac_site_file" \ |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2638 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2639 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2640 | as_fn_error $? "failed to load site script $ac_site_file |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2641 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2642 | fi |
| 2643 | done |
| 2644 | |
| 2645 | if test -r "$cache_file"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2646 | # Some versions of bash will fail to source /dev/null (special files |
| 2647 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2648 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2650 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2651 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2652 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2653 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2654 | esac |
| 2655 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2656 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2658 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2659 | >$cache_file |
| 2660 | fi |
| 2661 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 2662 | # Test code for whether the C compiler supports C89 (global declarations) |
| 2663 | ac_c_conftest_c89_globals=' |
| 2664 | /* Does the compiler advertise C89 conformance? |
| 2665 | Do not test the value of __STDC__, because some compilers set it to 0 |
| 2666 | while being otherwise adequately conformant. */ |
| 2667 | #if !defined __STDC__ |
| 2668 | # error "Compiler does not advertise C89 conformance" |
| 2669 | #endif |
| 2670 | |
| 2671 | #include <stddef.h> |
| 2672 | #include <stdarg.h> |
| 2673 | struct stat; |
| 2674 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2675 | struct buf { int x; }; |
| 2676 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2677 | static char *e (p, i) |
| 2678 | char **p; |
| 2679 | int i; |
| 2680 | { |
| 2681 | return p[i]; |
| 2682 | } |
| 2683 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2684 | { |
| 2685 | char *s; |
| 2686 | va_list v; |
| 2687 | va_start (v,p); |
| 2688 | s = g (p, va_arg (v,int)); |
| 2689 | va_end (v); |
| 2690 | return s; |
| 2691 | } |
| 2692 | |
| 2693 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2694 | function prototypes and stuff, but not \xHH hex character constants. |
| 2695 | These do not provoke an error unfortunately, instead are silently treated |
| 2696 | as an "x". The following induces an error, until -std is added to get |
| 2697 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2698 | array size at least. It is necessary to write \x00 == 0 to get something |
| 2699 | that is true only with -std. */ |
| 2700 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2701 | |
| 2702 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2703 | inside strings and character constants. */ |
| 2704 | #define FOO(x) '\''x'\'' |
| 2705 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2706 | |
| 2707 | int test (int i, double x); |
| 2708 | struct s1 {int (*f) (int a);}; |
| 2709 | struct s2 {int (*f) (double a);}; |
| 2710 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2711 | int, int);' |
| 2712 | |
| 2713 | # Test code for whether the C compiler supports C89 (body of main). |
| 2714 | ac_c_conftest_c89_main=' |
| 2715 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2716 | ' |
| 2717 | |
| 2718 | # Test code for whether the C compiler supports C99 (global declarations) |
| 2719 | ac_c_conftest_c99_globals=' |
| 2720 | // Does the compiler advertise C99 conformance? |
| 2721 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2722 | # error "Compiler does not advertise C99 conformance" |
| 2723 | #endif |
| 2724 | |
| 2725 | #include <stdbool.h> |
| 2726 | extern int puts (const char *); |
| 2727 | extern int printf (const char *, ...); |
| 2728 | extern int dprintf (int, const char *, ...); |
| 2729 | extern void *malloc (size_t); |
| 2730 | |
| 2731 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2732 | // dprintf is used instead of fprintf to avoid needing to declare |
| 2733 | // FILE and stderr. |
| 2734 | #define debug(...) dprintf (2, __VA_ARGS__) |
| 2735 | #define showlist(...) puts (#__VA_ARGS__) |
| 2736 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2737 | static void |
| 2738 | test_varargs_macros (void) |
| 2739 | { |
| 2740 | int x = 1234; |
| 2741 | int y = 5678; |
| 2742 | debug ("Flag"); |
| 2743 | debug ("X = %d\n", x); |
| 2744 | showlist (The first, second, and third items.); |
| 2745 | report (x>y, "x is %d but y is %d", x, y); |
| 2746 | } |
| 2747 | |
| 2748 | // Check long long types. |
| 2749 | #define BIG64 18446744073709551615ull |
| 2750 | #define BIG32 4294967295ul |
| 2751 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2752 | #if !BIG_OK |
| 2753 | #error "your preprocessor is broken" |
| 2754 | #endif |
| 2755 | #if BIG_OK |
| 2756 | #else |
| 2757 | #error "your preprocessor is broken" |
| 2758 | #endif |
| 2759 | static long long int bignum = -9223372036854775807LL; |
| 2760 | static unsigned long long int ubignum = BIG64; |
| 2761 | |
| 2762 | struct incomplete_array |
| 2763 | { |
| 2764 | int datasize; |
| 2765 | double data[]; |
| 2766 | }; |
| 2767 | |
| 2768 | struct named_init { |
| 2769 | int number; |
| 2770 | const wchar_t *name; |
| 2771 | double average; |
| 2772 | }; |
| 2773 | |
| 2774 | typedef const char *ccp; |
| 2775 | |
| 2776 | static inline int |
| 2777 | test_restrict (ccp restrict text) |
| 2778 | { |
| 2779 | // See if C++-style comments work. |
| 2780 | // Iterate through items via the restricted pointer. |
| 2781 | // Also check for declarations in for loops. |
| 2782 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2783 | continue; |
| 2784 | return 0; |
| 2785 | } |
| 2786 | |
| 2787 | // Check varargs and va_copy. |
| 2788 | static bool |
| 2789 | test_varargs (const char *format, ...) |
| 2790 | { |
| 2791 | va_list args; |
| 2792 | va_start (args, format); |
| 2793 | va_list args_copy; |
| 2794 | va_copy (args_copy, args); |
| 2795 | |
| 2796 | const char *str = ""; |
| 2797 | int number = 0; |
| 2798 | float fnumber = 0; |
| 2799 | |
| 2800 | while (*format) |
| 2801 | { |
| 2802 | switch (*format++) |
| 2803 | { |
| 2804 | case '\''s'\'': // string |
| 2805 | str = va_arg (args_copy, const char *); |
| 2806 | break; |
| 2807 | case '\''d'\'': // int |
| 2808 | number = va_arg (args_copy, int); |
| 2809 | break; |
| 2810 | case '\''f'\'': // float |
| 2811 | fnumber = va_arg (args_copy, double); |
| 2812 | break; |
| 2813 | default: |
| 2814 | break; |
| 2815 | } |
| 2816 | } |
| 2817 | va_end (args_copy); |
| 2818 | va_end (args); |
| 2819 | |
| 2820 | return *str && number && fnumber; |
| 2821 | } |
| 2822 | ' |
| 2823 | |
| 2824 | # Test code for whether the C compiler supports C99 (body of main). |
| 2825 | ac_c_conftest_c99_main=' |
| 2826 | // Check bool. |
| 2827 | _Bool success = false; |
| 2828 | success |= (argc != 0); |
| 2829 | |
| 2830 | // Check restrict. |
| 2831 | if (test_restrict ("String literal") == 0) |
| 2832 | success = true; |
| 2833 | char *restrict newvar = "Another string"; |
| 2834 | |
| 2835 | // Check varargs. |
| 2836 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2837 | test_varargs_macros (); |
| 2838 | |
| 2839 | // Check flexible array members. |
| 2840 | struct incomplete_array *ia = |
| 2841 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2842 | ia->datasize = 10; |
| 2843 | for (int i = 0; i < ia->datasize; ++i) |
| 2844 | ia->data[i] = i * 1.234; |
| 2845 | |
| 2846 | // Check named initializers. |
| 2847 | struct named_init ni = { |
| 2848 | .number = 34, |
| 2849 | .name = L"Test wide string", |
| 2850 | .average = 543.34343, |
| 2851 | }; |
| 2852 | |
| 2853 | ni.number = 58; |
| 2854 | |
| 2855 | int dynamic_array[ni.number]; |
| 2856 | dynamic_array[0] = argv[0][0]; |
| 2857 | dynamic_array[ni.number - 1] = 543; |
| 2858 | |
| 2859 | // work around unused variable warnings |
| 2860 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2861 | || dynamic_array[ni.number - 1] != 543); |
| 2862 | ' |
| 2863 | |
| 2864 | # Test code for whether the C compiler supports C11 (global declarations) |
| 2865 | ac_c_conftest_c11_globals=' |
| 2866 | // Does the compiler advertise C11 conformance? |
| 2867 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2868 | # error "Compiler does not advertise C11 conformance" |
| 2869 | #endif |
| 2870 | |
| 2871 | // Check _Alignas. |
| 2872 | char _Alignas (double) aligned_as_double; |
| 2873 | char _Alignas (0) no_special_alignment; |
| 2874 | extern char aligned_as_int; |
| 2875 | char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2876 | |
| 2877 | // Check _Alignof. |
| 2878 | enum |
| 2879 | { |
| 2880 | int_alignment = _Alignof (int), |
| 2881 | int_array_alignment = _Alignof (int[100]), |
| 2882 | char_alignment = _Alignof (char) |
| 2883 | }; |
| 2884 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2885 | |
| 2886 | // Check _Noreturn. |
| 2887 | int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2888 | |
| 2889 | // Check _Static_assert. |
| 2890 | struct test_static_assert |
| 2891 | { |
| 2892 | int x; |
| 2893 | _Static_assert (sizeof (int) <= sizeof (long int), |
| 2894 | "_Static_assert does not work in struct"); |
| 2895 | long int y; |
| 2896 | }; |
| 2897 | |
| 2898 | // Check UTF-8 literals. |
| 2899 | #define u8 syntax error! |
| 2900 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2901 | |
| 2902 | // Check duplicate typedefs. |
| 2903 | typedef long *long_ptr; |
| 2904 | typedef long int *long_ptr; |
| 2905 | typedef long_ptr long_ptr; |
| 2906 | |
| 2907 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2908 | struct anonymous |
| 2909 | { |
| 2910 | union { |
| 2911 | struct { int i; int j; }; |
| 2912 | struct { int k; long int l; } w; |
| 2913 | }; |
| 2914 | int m; |
| 2915 | } v1; |
| 2916 | ' |
| 2917 | |
| 2918 | # Test code for whether the C compiler supports C11 (body of main). |
| 2919 | ac_c_conftest_c11_main=' |
| 2920 | _Static_assert ((offsetof (struct anonymous, i) |
| 2921 | == offsetof (struct anonymous, w.k)), |
| 2922 | "Anonymous union alignment botch"); |
| 2923 | v1.i = 2; |
| 2924 | v1.w.k = 5; |
| 2925 | ok |= v1.i != 5; |
| 2926 | ' |
| 2927 | |
| 2928 | # Test code for whether the C compiler supports C11 (complete). |
| 2929 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 2930 | ${ac_c_conftest_c99_globals} |
| 2931 | ${ac_c_conftest_c11_globals} |
| 2932 | |
| 2933 | int |
| 2934 | main (int argc, char **argv) |
| 2935 | { |
| 2936 | int ok = 0; |
| 2937 | ${ac_c_conftest_c89_main} |
| 2938 | ${ac_c_conftest_c99_main} |
| 2939 | ${ac_c_conftest_c11_main} |
| 2940 | return ok; |
| 2941 | } |
| 2942 | " |
| 2943 | |
| 2944 | # Test code for whether the C compiler supports C99 (complete). |
| 2945 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 2946 | ${ac_c_conftest_c99_globals} |
| 2947 | |
| 2948 | int |
| 2949 | main (int argc, char **argv) |
| 2950 | { |
| 2951 | int ok = 0; |
| 2952 | ${ac_c_conftest_c89_main} |
| 2953 | ${ac_c_conftest_c99_main} |
| 2954 | return ok; |
| 2955 | } |
| 2956 | " |
| 2957 | |
| 2958 | # Test code for whether the C compiler supports C89 (complete). |
| 2959 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 2960 | |
| 2961 | int |
| 2962 | main (int argc, char **argv) |
| 2963 | { |
| 2964 | int ok = 0; |
| 2965 | ${ac_c_conftest_c89_main} |
| 2966 | return ok; |
| 2967 | } |
| 2968 | " |
| 2969 | |
| 2970 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 2971 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 2972 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 2973 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 2974 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 2975 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 2976 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 2977 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 2978 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 2979 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
| 2980 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
| 2981 | as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" |
| 2982 | |
| 2983 | # Auxiliary files required by this configure script. |
| 2984 | ac_aux_files="install-sh config.guess config.sub" |
| 2985 | |
| 2986 | # Locations in which to look for auxiliary files. |
| 2987 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
| 2988 | |
| 2989 | # Search for a directory containing all of the required auxiliary files, |
| 2990 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 2991 | # If we don't find one directory that contains all the files we need, |
| 2992 | # we report the set of missing files from the *first* directory in |
| 2993 | # $ac_aux_dir_candidates and give up. |
| 2994 | ac_missing_aux_files="" |
| 2995 | ac_first_candidate=: |
| 2996 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 2997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2998 | as_found=false |
| 2999 | for as_dir in $ac_aux_dir_candidates |
| 3000 | do |
| 3001 | IFS=$as_save_IFS |
| 3002 | case $as_dir in #((( |
| 3003 | '') as_dir=./ ;; |
| 3004 | */) ;; |
| 3005 | *) as_dir=$as_dir/ ;; |
| 3006 | esac |
| 3007 | as_found=: |
| 3008 | |
| 3009 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 3010 | ac_aux_dir_found=yes |
| 3011 | ac_install_sh= |
| 3012 | for ac_aux in $ac_aux_files |
| 3013 | do |
| 3014 | # As a special case, if "install-sh" is required, that requirement |
| 3015 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 3016 | # and $ac_install_sh is set appropriately for whichever one is found. |
| 3017 | if test x"$ac_aux" = x"install-sh" |
| 3018 | then |
| 3019 | if test -f "${as_dir}install-sh"; then |
| 3020 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 3021 | ac_install_sh="${as_dir}install-sh -c" |
| 3022 | elif test -f "${as_dir}install.sh"; then |
| 3023 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 3024 | ac_install_sh="${as_dir}install.sh -c" |
| 3025 | elif test -f "${as_dir}shtool"; then |
| 3026 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 3027 | ac_install_sh="${as_dir}shtool install -c" |
| 3028 | else |
| 3029 | ac_aux_dir_found=no |
| 3030 | if $ac_first_candidate; then |
| 3031 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 3032 | else |
| 3033 | break |
| 3034 | fi |
| 3035 | fi |
| 3036 | else |
| 3037 | if test -f "${as_dir}${ac_aux}"; then |
| 3038 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 3039 | else |
| 3040 | ac_aux_dir_found=no |
| 3041 | if $ac_first_candidate; then |
| 3042 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 3043 | else |
| 3044 | break |
| 3045 | fi |
| 3046 | fi |
| 3047 | fi |
| 3048 | done |
| 3049 | if test "$ac_aux_dir_found" = yes; then |
| 3050 | ac_aux_dir="$as_dir" |
| 3051 | break |
| 3052 | fi |
| 3053 | ac_first_candidate=false |
| 3054 | |
| 3055 | as_found=false |
| 3056 | done |
| 3057 | IFS=$as_save_IFS |
| 3058 | if $as_found |
| 3059 | then : |
| 3060 | |
| 3061 | else $as_nop |
| 3062 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
| 3063 | fi |
| 3064 | |
| 3065 | |
| 3066 | # These three variables are undocumented and unsupported, |
| 3067 | # and are intended to be withdrawn in a future Autoconf release. |
| 3068 | # They can cause serious problems if a builder's source tree is in a directory |
| 3069 | # whose full name contains unusual characters. |
| 3070 | if test -f "${ac_aux_dir}config.guess"; then |
| 3071 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 3072 | fi |
| 3073 | if test -f "${ac_aux_dir}config.sub"; then |
| 3074 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 3075 | fi |
| 3076 | if test -f "$ac_aux_dir/configure"; then |
| 3077 | ac_configure="$SHELL ${ac_aux_dir}configure" |
| 3078 | fi |
| 3079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3080 | # Check that the precious variables saved in the cache have kept the same |
| 3081 | # value. |
| 3082 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3083 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3084 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3085 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3086 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3087 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3088 | case $ac_old_set,$ac_new_set in |
| 3089 | set,) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 3091 | printf "%s\n" "$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] | 3092 | ac_cache_corrupted=: ;; |
| 3093 | ,set) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3094 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 3095 | printf "%s\n" "$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] | 3096 | ac_cache_corrupted=: ;; |
| 3097 | ,);; |
| 3098 | *) |
| 3099 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3100 | # differences in whitespace do not lead to failure. |
| 3101 | ac_old_val_w=`echo x $ac_old_val` |
| 3102 | ac_new_val_w=`echo x $ac_new_val` |
| 3103 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 3105 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3106 | ac_cache_corrupted=: |
| 3107 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3108 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 3109 | printf "%s\n" "$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] | 3110 | eval $ac_var=\$ac_old_val |
| 3111 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3112 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 3113 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
| 3114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 3115 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3116 | fi;; |
| 3117 | esac |
| 3118 | # Pass precious variables to config.status. |
| 3119 | if test "$ac_new_set" = set; then |
| 3120 | case $ac_new_val in |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3121 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3122 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 3123 | esac |
| 3124 | case " $ac_configure_args " in |
| 3125 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3126 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3127 | esac |
| 3128 | fi |
| 3129 | done |
| 3130 | if $ac_cache_corrupted; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3131 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3132 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3134 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3135 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
| 3136 | and start over" "$LINENO" 5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3137 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3138 | ## -------------------- ## |
| 3139 | ## Main body of script. ## |
| 3140 | ## -------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3141 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3142 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3143 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3147 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3148 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3149 | |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 3150 | |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 3151 | |
| 3152 | |
Martin Panter | c5ee3ca | 2016-09-12 01:32:03 +0000 | [diff] [blame] | 3153 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 3154 | # If we're building out-of-tree, we need to make sure the following |
| 3155 | # resources get picked up before their $srcdir counterparts. |
| 3156 | # Objects/ -> typeslots.inc |
Lysandros Nikolaou | 314858e | 2020-06-20 21:07:25 +0300 | [diff] [blame] | 3157 | # Include/ -> Python-ast.h |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 3158 | # Python/ -> importlib.h |
| 3159 | # (A side effect of this is that these resources will automatically be |
| 3160 | # regenerated when building out-of-tree, regardless of whether or not |
| 3161 | # the $srcdir counterpart is up-to-date. This is an acceptable trade |
| 3162 | # off.) |
| 3163 | BASECPPFLAGS="-IObjects -IInclude -IPython" |
| 3164 | else |
| 3165 | BASECPPFLAGS="" |
| 3166 | fi |
| 3167 | |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3168 | |
| 3169 | |
| 3170 | |
| 3171 | |
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 3172 | if test -e $srcdir/.git |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3173 | then |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3174 | # Extract the first word of "git", so it can be a program name with args. |
| 3175 | set dummy git; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3176 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3177 | printf %s "checking for $ac_word... " >&6; } |
| 3178 | if test ${ac_cv_prog_HAS_GIT+y} |
| 3179 | then : |
| 3180 | printf %s "(cached) " >&6 |
| 3181 | else $as_nop |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3182 | if test -n "$HAS_GIT"; then |
| 3183 | 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] | 3184 | else |
| 3185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3186 | for as_dir in $PATH |
| 3187 | do |
| 3188 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3189 | case $as_dir in #((( |
| 3190 | '') as_dir=./ ;; |
| 3191 | */) ;; |
| 3192 | *) as_dir=$as_dir/ ;; |
| 3193 | esac |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3194 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3195 | 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] | 3196 | ac_cv_prog_HAS_GIT="found" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3197 | printf "%s\n" "$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] | 3198 | break 2 |
| 3199 | fi |
| 3200 | done |
| 3201 | done |
| 3202 | IFS=$as_save_IFS |
| 3203 | |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3204 | 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] | 3205 | fi |
| 3206 | fi |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3207 | HAS_GIT=$ac_cv_prog_HAS_GIT |
| 3208 | if test -n "$HAS_GIT"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3209 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 |
| 3210 | printf "%s\n" "$HAS_GIT" >&6; } |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3211 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3212 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3213 | printf "%s\n" "no" >&6; } |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3214 | fi |
| 3215 | |
| 3216 | |
| 3217 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3218 | HAS_GIT=no-repository |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3219 | fi |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3220 | if test $HAS_GIT = found |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3221 | then |
Xiang Zhang | 4c85557 | 2018-08-20 22:36:19 +0800 | [diff] [blame] | 3222 | GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" |
| 3223 | GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" |
| 3224 | GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3225 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3226 | GITVERSION="" |
| 3227 | GITTAG="" |
| 3228 | GITBRANCH="" |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3229 | fi |
| 3230 | |
| 3231 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3232 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3233 | |
| 3234 | |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3235 | |
| 3236 | |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3237 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3238 | # Make sure we can run config.sub. |
| 3239 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 3240 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 3241 | |
| 3242 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3243 | printf %s "checking build system type... " >&6; } |
| 3244 | if test ${ac_cv_build+y} |
| 3245 | then : |
| 3246 | printf %s "(cached) " >&6 |
| 3247 | else $as_nop |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3248 | ac_build_alias=$build_alias |
| 3249 | test "x$ac_build_alias" = x && |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3250 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3251 | test "x$ac_build_alias" = x && |
| 3252 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3253 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 3254 | 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] | 3255 | |
| 3256 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3258 | printf "%s\n" "$ac_cv_build" >&6; } |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3259 | case $ac_cv_build in |
| 3260 | *-*-*) ;; |
| 3261 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 3262 | esac |
| 3263 | build=$ac_cv_build |
| 3264 | ac_save_IFS=$IFS; IFS='-' |
| 3265 | set x $ac_cv_build |
| 3266 | shift |
| 3267 | build_cpu=$1 |
| 3268 | build_vendor=$2 |
| 3269 | shift; shift |
| 3270 | # Remember, the first character of IFS is used to create $*, |
| 3271 | # except with old shells: |
| 3272 | build_os=$* |
| 3273 | IFS=$ac_save_IFS |
| 3274 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3275 | |
| 3276 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3278 | printf %s "checking host system type... " >&6; } |
| 3279 | if test ${ac_cv_host+y} |
| 3280 | then : |
| 3281 | printf %s "(cached) " >&6 |
| 3282 | else $as_nop |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3283 | if test "x$host_alias" = x; then |
| 3284 | ac_cv_host=$ac_cv_build |
| 3285 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3286 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 3287 | 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] | 3288 | fi |
| 3289 | |
| 3290 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3291 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3292 | printf "%s\n" "$ac_cv_host" >&6; } |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3293 | case $ac_cv_host in |
| 3294 | *-*-*) ;; |
| 3295 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 3296 | esac |
| 3297 | host=$ac_cv_host |
| 3298 | ac_save_IFS=$IFS; IFS='-' |
| 3299 | set x $ac_cv_host |
| 3300 | shift |
| 3301 | host_cpu=$1 |
| 3302 | host_vendor=$2 |
| 3303 | shift; shift |
| 3304 | # Remember, the first character of IFS is used to create $*, |
| 3305 | # except with old shells: |
| 3306 | host_os=$* |
| 3307 | IFS=$ac_save_IFS |
| 3308 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3309 | |
| 3310 | |
| 3311 | |
doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 3312 | |
| 3313 | |
Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 3314 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile |
| 3315 | rm -f pybuilddir.txt |
| 3316 | |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3317 | for ac_prog in python$PACKAGE_VERSION python3 python |
| 3318 | do |
| 3319 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3320 | set dummy $ac_prog; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3321 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3322 | printf %s "checking for $ac_word... " >&6; } |
| 3323 | if test ${ac_cv_prog_PYTHON_FOR_REGEN+y} |
| 3324 | then : |
| 3325 | printf %s "(cached) " >&6 |
| 3326 | else $as_nop |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 3327 | if test -n "$PYTHON_FOR_REGEN"; then |
| 3328 | 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] | 3329 | else |
| 3330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3331 | for as_dir in $PATH |
| 3332 | do |
| 3333 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3334 | case $as_dir in #((( |
| 3335 | '') as_dir=./ ;; |
| 3336 | */) ;; |
| 3337 | *) as_dir=$as_dir/ ;; |
| 3338 | esac |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3339 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3340 | 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] | 3341 | ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3342 | printf "%s\n" "$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] | 3343 | break 2 |
| 3344 | fi |
| 3345 | done |
| 3346 | done |
| 3347 | IFS=$as_save_IFS |
| 3348 | |
| 3349 | fi |
| 3350 | fi |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 3351 | PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN |
| 3352 | if test -n "$PYTHON_FOR_REGEN"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3353 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 |
| 3354 | printf "%s\n" "$PYTHON_FOR_REGEN" >&6; } |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3355 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3357 | printf "%s\n" "no" >&6; } |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3358 | fi |
| 3359 | |
| 3360 | |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 3361 | test -n "$PYTHON_FOR_REGEN" && break |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3362 | done |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 3363 | test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3364 | |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3365 | |
| 3366 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3367 | if test "$cross_compiling" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3368 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 |
| 3369 | printf %s "checking for python interpreter for cross build... " >&6; } |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3370 | if test -z "$PYTHON_FOR_BUILD"; then |
| 3371 | for interp in python$PACKAGE_VERSION python3 python; do |
| 3372 | which $interp >/dev/null 2>&1 || continue |
Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 3373 | 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] | 3374 | break |
| 3375 | fi |
| 3376 | interp= |
| 3377 | done |
| 3378 | if test x$interp = x; then |
| 3379 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 |
| 3380 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3381 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 |
| 3382 | printf "%s\n" "$interp" >&6; } |
Xavier de Gaye | 92dec54 | 2016-09-11 22:22:24 +0200 | [diff] [blame] | 3383 | 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] | 3384 | fi |
Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 3385 | elif test "$cross_compiling" = maybe; then |
| 3386 | 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] | 3387 | else |
| 3388 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' |
| 3389 | fi |
| 3390 | |
| 3391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3392 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 3393 | if test "$prefix" != "/"; then |
| 3394 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 3395 | fi |
| 3396 | |
| 3397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3398 | |
| 3399 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 3400 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 3401 | # with other autoconf-based packages that include Python.h |
| 3402 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 3403 | rm confdefs.h |
| 3404 | mv confdefs.h.new confdefs.h |
| 3405 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 3406 | |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 3407 | VERSION=3.10 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 3408 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 3409 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3410 | |
| 3411 | SOVERSION=1.0 |
| 3412 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3413 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 3414 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 3415 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3416 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3417 | |
| 3418 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3419 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 3420 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 3421 | # them. |
| 3422 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3423 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3424 | |
| 3425 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3426 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 3427 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 3428 | # them. |
| 3429 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3430 | printf "%s\n" "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3431 | |
| 3432 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3433 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3434 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 3435 | # them. |
| 3436 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3437 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3438 | |
| 3439 | |
| 3440 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3441 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3442 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3443 | # Arguments passed to configure. |
| 3444 | |
| 3445 | CONFIG_ARGS="$ac_configure_args" |
| 3446 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3447 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
| 3448 | printf %s "checking for --enable-universalsdk... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3449 | # Check whether --enable-universalsdk was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3450 | if test ${enable_universalsdk+y} |
| 3451 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3452 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3453 | case $enableval in |
| 3454 | yes) |
Serhiy Storchaka | 88cc339 | 2018-06-04 08:20:25 +0300 | [diff] [blame] | 3455 | # Locate the best usable SDK, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3456 | # information |
| 3457 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3458 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3459 | then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3460 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 3461 | if test ! -d "${enableval}" |
| 3462 | then |
| 3463 | enableval=/ |
| 3464 | fi |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3465 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3466 | ;; |
| 3467 | esac |
| 3468 | case $enableval in |
| 3469 | no) |
| 3470 | UNIVERSALSDK= |
| 3471 | enable_universalsdk= |
| 3472 | ;; |
| 3473 | *) |
| 3474 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3475 | if test ! -d "${UNIVERSALSDK}" |
| 3476 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3477 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3478 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3479 | ;; |
| 3480 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3481 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3482 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3483 | else $as_nop |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3484 | |
| 3485 | UNIVERSALSDK= |
| 3486 | enable_universalsdk= |
| 3487 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3488 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3489 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3490 | if test -n "${UNIVERSALSDK}" |
| 3491 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
| 3493 | printf "%s\n" "${UNIVERSALSDK}" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3494 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3495 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3496 | printf "%s\n" "no" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3497 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3498 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3499 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3500 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3501 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3502 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3503 | # For backward compatibility reasons we prefer to select '32-bit' if available, |
| 3504 | # otherwise use 'intel' |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3505 | UNIVERSAL_ARCHS="32-bit" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3506 | if test "`uname -s`" = "Darwin" |
| 3507 | then |
| 3508 | if test -n "${UNIVERSALSDK}" |
| 3509 | then |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3510 | 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] | 3511 | then |
| 3512 | UNIVERSAL_ARCHS="intel" |
| 3513 | fi |
| 3514 | fi |
| 3515 | fi |
| 3516 | |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3517 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3518 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
| 3519 | printf %s "checking for --with-universal-archs... " >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3520 | |
| 3521 | # Check whether --with-universal-archs was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3522 | if test ${with_universal_archs+y} |
| 3523 | then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3524 | withval=$with_universal_archs; |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3525 | UNIVERSAL_ARCHS="$withval" |
| 3526 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3527 | fi |
| 3528 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3529 | if test -n "${UNIVERSALSDK}" |
| 3530 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3531 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 |
| 3532 | printf "%s\n" "${UNIVERSAL_ARCHS}" >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3533 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3534 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3535 | printf "%s\n" "no" >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3536 | fi |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3537 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3538 | |
| 3539 | # Check whether --with-framework-name was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3540 | if test ${with_framework_name+y} |
| 3541 | then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3542 | withval=$with_framework_name; |
| 3543 | PYTHONFRAMEWORK=${withval} |
| 3544 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 3545 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 3546 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3547 | else $as_nop |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3548 | |
| 3549 | PYTHONFRAMEWORK=Python |
| 3550 | PYTHONFRAMEWORKDIR=Python.framework |
| 3551 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 3552 | |
| 3553 | fi |
| 3554 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3555 | # Check whether --enable-framework was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3556 | if test ${enable_framework+y} |
| 3557 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3558 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3559 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3560 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3561 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3562 | esac |
| 3563 | case $enableval in |
| 3564 | no) |
| 3565 | PYTHONFRAMEWORK= |
| 3566 | PYTHONFRAMEWORKDIR=no-framework |
| 3567 | PYTHONFRAMEWORKPREFIX= |
| 3568 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3569 | FRAMEWORKINSTALLFIRST= |
| 3570 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3571 | FRAMEWORKALTINSTALLFIRST= |
| 3572 | FRAMEWORKALTINSTALLLAST= |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3573 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3574 | if test "x${prefix}" = "xNONE"; then |
| 3575 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 3576 | else |
| 3577 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3578 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3579 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3580 | ;; |
| 3581 | *) |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3582 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3583 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3584 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3585 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3586 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 3587 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3588 | FRAMEWORKPYTHONW="frameworkpythonw" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3589 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3590 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3591 | if test "x${prefix}" = "xNONE" ; then |
| 3592 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3593 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3594 | else |
| 3595 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3596 | fi |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3597 | |
| 3598 | case "${enableval}" in |
| 3599 | /System*) |
| 3600 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3601 | if test "${prefix}" = "NONE" ; then |
| 3602 | # See below |
| 3603 | FRAMEWORKUNIXTOOLSPREFIX="/usr" |
| 3604 | fi |
| 3605 | ;; |
| 3606 | |
| 3607 | /Library*) |
| 3608 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3609 | ;; |
| 3610 | |
| 3611 | */Library/Frameworks) |
| 3612 | MDIR="`dirname "${enableval}"`" |
| 3613 | MDIR="`dirname "${MDIR}"`" |
| 3614 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" |
| 3615 | |
| 3616 | if test "${prefix}" = "NONE"; then |
| 3617 | # User hasn't specified the |
| 3618 | # --prefix option, but wants to install |
| 3619 | # the framework in a non-default location, |
| 3620 | # ensure that the compatibility links get |
| 3621 | # installed relative to that prefix as well |
| 3622 | # instead of in /usr/local. |
| 3623 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" |
| 3624 | fi |
| 3625 | ;; |
| 3626 | |
| 3627 | *) |
| 3628 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3629 | ;; |
| 3630 | esac |
| 3631 | |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3632 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3633 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3634 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3635 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3636 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3637 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3638 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3639 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3640 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 3641 | |
| 3642 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 3643 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3644 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3645 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3646 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3647 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3648 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3649 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3650 | PYTHONFRAMEWORKPREFIX= |
| 3651 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3652 | FRAMEWORKINSTALLFIRST= |
| 3653 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3654 | FRAMEWORKALTINSTALLFIRST= |
| 3655 | FRAMEWORKALTINSTALLLAST= |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3656 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3657 | if test "x${prefix}" = "xNONE" ; then |
| 3658 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 3659 | else |
| 3660 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3661 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3662 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3663 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3664 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3665 | fi |
| 3666 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3667 | |
| 3668 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3669 | |
| 3670 | |
| 3671 | |
| 3672 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3673 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3674 | |
| 3675 | |
| 3676 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3677 | |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3678 | |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3679 | |
INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3680 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3681 | printf "%s\n" "#define _PYTHONFRAMEWORK \"${PYTHONFRAMEWORK}\"" >>confdefs.h |
INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3682 | |
| 3683 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3684 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3685 | ## AS_HELP_STRING([--with-dyld], |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 3686 | ## [use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3687 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3688 | # Set name for machine-dependent library files |
| 3689 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3690 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
| 3691 | printf %s "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3692 | if test -z "$MACHDEP" |
| 3693 | then |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3694 | # avoid using uname for cross builds |
| 3695 | if test "$cross_compiling" = yes; then |
doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3696 | # ac_sys_system and ac_sys_release are used for setting |
| 3697 | # a lot of different things including 'define_xopen_source' |
| 3698 | # in the case statement below. |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3699 | case "$host" in |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 3700 | *-*-linux-android*) |
| 3701 | ac_sys_system=Linux-android |
| 3702 | ;; |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3703 | *-*-linux*) |
| 3704 | ac_sys_system=Linux |
| 3705 | ;; |
| 3706 | *-*-cygwin*) |
| 3707 | ac_sys_system=Cygwin |
| 3708 | ;; |
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 3709 | *-*-vxworks*) |
| 3710 | ac_sys_system=VxWorks |
| 3711 | ;; |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3712 | *) |
| 3713 | # for now, limit cross builds to known configurations |
| 3714 | MACHDEP="unknown" |
| 3715 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 |
| 3716 | esac |
| 3717 | ac_sys_release= |
| 3718 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3719 | ac_sys_system=`uname -s` |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3720 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3721 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3722 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3723 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3724 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3725 | fi |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3726 | fi |
| 3727 | ac_md_system=`echo $ac_sys_system | |
| 3728 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 3729 | ac_md_release=`echo $ac_sys_release | |
| 3730 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
| 3731 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3732 | |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3733 | case $MACHDEP in |
Michael Felt | 9d949f7 | 2019-04-12 16:15:32 +0200 | [diff] [blame] | 3734 | aix*) MACHDEP="aix";; |
Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3735 | linux*) MACHDEP="linux";; |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3736 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3737 | darwin*) MACHDEP="darwin";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3738 | '') MACHDEP="unknown";; |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3739 | esac |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3740 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5 |
| 3742 | printf "%s\n" "\"$MACHDEP\"" >&6; } |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3743 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3744 | |
| 3745 | if test "$cross_compiling" = yes; then |
| 3746 | case "$host" in |
| 3747 | *-*-linux*) |
| 3748 | case "$host_cpu" in |
| 3749 | arm*) |
| 3750 | _host_cpu=arm |
| 3751 | ;; |
| 3752 | *) |
| 3753 | _host_cpu=$host_cpu |
| 3754 | esac |
| 3755 | ;; |
| 3756 | *-*-cygwin*) |
| 3757 | _host_cpu= |
| 3758 | ;; |
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 3759 | *-*-vxworks*) |
| 3760 | _host_cpu=$host_cpu |
| 3761 | ;; |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3762 | *) |
| 3763 | # for now, limit cross builds to known configurations |
| 3764 | MACHDEP="unknown" |
| 3765 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 |
| 3766 | esac |
| 3767 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" |
| 3768 | fi |
| 3769 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3770 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 3771 | # disable features if it is defined, without any means to access these |
| 3772 | # features as extensions. For these systems, we skip the definition of |
| 3773 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 3774 | # some feature, make sure there is no alternative way to access this |
| 3775 | # feature. Also, when using wildcards, make sure you have verified the |
| 3776 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 3777 | # wildcard, and that the wildcard does not include future systems |
| 3778 | # (which may remove their limitations). |
| 3779 | case $ac_sys_system/$ac_sys_release in |
| 3780 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 3781 | # 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] | 3782 | # 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] | 3783 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 3784 | # OpenBSD 4.6, but is fixed in 4.7. |
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3785 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3786 | define_xopen_source=no |
| 3787 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3788 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3789 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3790 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3791 | printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3792 | |
| 3793 | ;; |
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3794 | OpenBSD/*) |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3795 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3796 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3797 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3798 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3799 | printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3800 | |
| 3801 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3802 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 3803 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 3804 | # Marc Recht |
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3805 | 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] | 3806 | define_xopen_source=no;; |
Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3807 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
| 3808 | # request to enable features supported by the standard as a request |
| 3809 | # to disable features not supported by the standard. The best way |
| 3810 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out |
| 3811 | # entirely and define __EXTENSIONS__ instead. |
| 3812 | SunOS/*) |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3813 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3814 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 3815 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3816 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3817 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3818 | define_xopen_source=no;; |
| 3819 | # 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] | 3820 | # 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] | 3821 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3822 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3823 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 3824 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 3825 | # identifies itself as Darwin/7.* |
| 3826 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3827 | # disables platform specific features beyond repair. |
| 3828 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3829 | # has no effect, don't bother defining them |
| 3830 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3831 | define_xopen_source=no;; |
Ronald Oussoren | 8ea6353 | 2020-06-25 16:55:48 +0200 | [diff] [blame] | 3832 | Darwin/[12][0-9].*) |
Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3833 | define_xopen_source=no;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3834 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 3835 | # defining NI_NUMERICHOST. |
| 3836 | QNX/6.3.2) |
| 3837 | define_xopen_source=no |
| 3838 | ;; |
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 3839 | # On VxWorks, defining _XOPEN_SOURCE causes compile failures |
| 3840 | # in network headers still using system V types. |
| 3841 | VxWorks/*) |
| 3842 | define_xopen_source=no |
| 3843 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3844 | |
Ian Norton | a9edf44 | 2020-02-14 03:09:11 +0000 | [diff] [blame] | 3845 | # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides |
| 3846 | # chroot() and other functions |
| 3847 | hp*|HP*) |
| 3848 | define_xopen_source=no |
| 3849 | ;; |
| 3850 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3851 | esac |
| 3852 | |
| 3853 | if test $define_xopen_source = yes |
| 3854 | then |
Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3855 | # X/Open 7, incorporating POSIX.1-2008 |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3856 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3857 | printf "%s\n" "#define _XOPEN_SOURCE 700" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3858 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3859 | |
| 3860 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 3861 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 3862 | # several APIs are not declared. Since this is also needed in some |
| 3863 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3864 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3865 | printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3866 | |
| 3867 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3868 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3869 | printf "%s\n" "#define _POSIX_C_SOURCE 200809L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3870 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3871 | fi |
| 3872 | |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3873 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE |
| 3874 | case $ac_sys_system in |
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3875 | hp*|HP*) |
| 3876 | define_stdc_a1=yes;; |
| 3877 | *) |
| 3878 | define_stdc_a1=no;; |
| 3879 | esac |
| 3880 | |
| 3881 | if test $define_stdc_a1 = yes |
| 3882 | then |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3883 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3884 | printf "%s\n" "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3885 | |
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3886 | fi |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3887 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3888 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 3889 | # it may influence the way we can build extensions, so distutils |
| 3890 | # needs to check it |
| 3891 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3892 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3893 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3894 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3895 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3896 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3897 | |
| 3898 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 3899 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 3900 | # just to get things to compile and link. Users are free to override OPT |
| 3901 | # when running configure or make. The build should not break if they do. |
| 3902 | # BASECFLAGS should generally not be messed with, however. |
| 3903 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3904 | # If the user switches compilers, we can't believe the cache |
| 3905 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 3906 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3907 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3908 | (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] | 3909 | fi |
| 3910 | |
Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3911 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 |
| 3912 | # when the compiler supports them, but we don't always want -O2, and |
| 3913 | # we set -g later. |
| 3914 | if test -z "$CFLAGS"; then |
| 3915 | CFLAGS= |
| 3916 | fi |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3917 | |
| 3918 | if test "$ac_sys_system" = "Darwin" |
| 3919 | then |
| 3920 | # Compiler selection on MacOSX is more complicated than |
Serhiy Storchaka | 88cc339 | 2018-06-04 08:20:25 +0300 | [diff] [blame] | 3921 | # AC_PROG_CC can handle, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3922 | # information |
| 3923 | if test -z "${CC}" |
| 3924 | then |
| 3925 | found_gcc= |
| 3926 | found_clang= |
| 3927 | as_save_IFS=$IFS; IFS=: |
| 3928 | for as_dir in $PATH |
| 3929 | do |
| 3930 | IFS=$as_save_IFS |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3931 | if test -x "${as_dir}/gcc"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3932 | if test -z "${found_gcc}"; then |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3933 | found_gcc="${as_dir}/gcc" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3934 | fi |
| 3935 | fi |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3936 | if test -x "${as_dir}/clang"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3937 | if test -z "${found_clang}"; then |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3938 | found_clang="${as_dir}/clang" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3939 | fi |
| 3940 | fi |
| 3941 | done |
| 3942 | IFS=$as_save_IFS |
| 3943 | |
| 3944 | if test -n "$found_gcc" -a -n "$found_clang" |
| 3945 | then |
| 3946 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" |
| 3947 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 |
| 3949 | printf "%s\n" "$as_me: Detected llvm-gcc, falling back to clang" >&6;} |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3950 | CC="$found_clang" |
| 3951 | CXX="$found_clang++" |
| 3952 | fi |
| 3953 | |
| 3954 | |
| 3955 | elif test -z "$found_gcc" -a -n "$found_clang" |
| 3956 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3957 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 |
| 3958 | printf "%s\n" "$as_me: No GCC found, use CLANG" >&6;} |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3959 | CC="$found_clang" |
| 3960 | CXX="$found_clang++" |
| 3961 | |
| 3962 | elif test -z "$found_gcc" -a -z "$found_clang" |
| 3963 | then |
| 3964 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` |
| 3965 | if test -n "${found_clang}" |
| 3966 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 |
| 3968 | printf "%s\n" "$as_me: Using clang from Xcode.app" >&6;} |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3969 | CC="${found_clang}" |
| 3970 | CXX="`/usr/bin/xcrun -find clang++`" |
| 3971 | |
| 3972 | # else: use default behaviour |
| 3973 | fi |
| 3974 | fi |
| 3975 | fi |
| 3976 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3977 | |
| 3978 | |
| 3979 | |
| 3980 | |
| 3981 | |
| 3982 | |
| 3983 | |
| 3984 | |
| 3985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3986 | ac_ext=c |
| 3987 | ac_cpp='$CPP $CPPFLAGS' |
| 3988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3991 | if test -n "$ac_tool_prefix"; then |
| 3992 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3993 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 3994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3995 | printf %s "checking for $ac_word... " >&6; } |
| 3996 | if test ${ac_cv_prog_CC+y} |
| 3997 | then : |
| 3998 | printf %s "(cached) " >&6 |
| 3999 | else $as_nop |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4000 | if test -n "$CC"; then |
| 4001 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4004 | for as_dir in $PATH |
| 4005 | do |
| 4006 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4007 | case $as_dir in #((( |
| 4008 | '') as_dir=./ ;; |
| 4009 | */) ;; |
| 4010 | *) as_dir=$as_dir/ ;; |
| 4011 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4012 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4013 | 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] | 4014 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4015 | printf "%s\n" "$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] | 4016 | break 2 |
| 4017 | fi |
| 4018 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4019 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4020 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4021 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4022 | fi |
| 4023 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4024 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4025 | if test -n "$CC"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4027 | printf "%s\n" "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4028 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4030 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4031 | fi |
| 4032 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4034 | fi |
| 4035 | if test -z "$ac_cv_prog_CC"; then |
| 4036 | ac_ct_CC=$CC |
| 4037 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4038 | set dummy gcc; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4040 | printf %s "checking for $ac_word... " >&6; } |
| 4041 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4042 | then : |
| 4043 | printf %s "(cached) " >&6 |
| 4044 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4045 | if test -n "$ac_ct_CC"; then |
| 4046 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4047 | else |
| 4048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4049 | for as_dir in $PATH |
| 4050 | do |
| 4051 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4052 | case $as_dir in #((( |
| 4053 | '') as_dir=./ ;; |
| 4054 | */) ;; |
| 4055 | *) as_dir=$as_dir/ ;; |
| 4056 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4057 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4058 | 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] | 4059 | ac_cv_prog_ac_ct_CC="gcc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4060 | printf "%s\n" "$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] | 4061 | break 2 |
| 4062 | fi |
| 4063 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4064 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4065 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4066 | |
| 4067 | fi |
| 4068 | fi |
| 4069 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4070 | if test -n "$ac_ct_CC"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4071 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4072 | printf "%s\n" "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4073 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4075 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4076 | fi |
| 4077 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4078 | if test "x$ac_ct_CC" = x; then |
| 4079 | CC="" |
| 4080 | else |
| 4081 | case $cross_compiling:$ac_tool_warned in |
| 4082 | yes:) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4083 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4084 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4085 | ac_tool_warned=yes ;; |
| 4086 | esac |
| 4087 | CC=$ac_ct_CC |
| 4088 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4089 | else |
| 4090 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4091 | fi |
| 4092 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4093 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4094 | if test -n "$ac_tool_prefix"; then |
| 4095 | # 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] | 4096 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4097 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4098 | printf %s "checking for $ac_word... " >&6; } |
| 4099 | if test ${ac_cv_prog_CC+y} |
| 4100 | then : |
| 4101 | printf %s "(cached) " >&6 |
| 4102 | else $as_nop |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4103 | if test -n "$CC"; then |
| 4104 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4105 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4107 | for as_dir in $PATH |
| 4108 | do |
| 4109 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4110 | case $as_dir in #((( |
| 4111 | '') as_dir=./ ;; |
| 4112 | */) ;; |
| 4113 | *) as_dir=$as_dir/ ;; |
| 4114 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4115 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4116 | 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] | 4117 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4118 | printf "%s\n" "$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] | 4119 | break 2 |
| 4120 | fi |
| 4121 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4122 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4123 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4124 | |
| 4125 | fi |
| 4126 | fi |
| 4127 | CC=$ac_cv_prog_CC |
| 4128 | if test -n "$CC"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4129 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4130 | printf "%s\n" "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4131 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4133 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4134 | fi |
| 4135 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4137 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4138 | fi |
| 4139 | if test -z "$CC"; then |
| 4140 | # Extract the first word of "cc", so it can be a program name with args. |
| 4141 | set dummy cc; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4142 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4143 | printf %s "checking for $ac_word... " >&6; } |
| 4144 | if test ${ac_cv_prog_CC+y} |
| 4145 | then : |
| 4146 | printf %s "(cached) " >&6 |
| 4147 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4148 | if test -n "$CC"; then |
| 4149 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4150 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4151 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4153 | for as_dir in $PATH |
| 4154 | do |
| 4155 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4156 | case $as_dir in #((( |
| 4157 | '') as_dir=./ ;; |
| 4158 | */) ;; |
| 4159 | *) as_dir=$as_dir/ ;; |
| 4160 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4161 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4162 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4163 | 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] | 4164 | ac_prog_rejected=yes |
| 4165 | continue |
| 4166 | fi |
| 4167 | ac_cv_prog_CC="cc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4168 | printf "%s\n" "$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] | 4169 | break 2 |
| 4170 | fi |
| 4171 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4172 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4173 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4174 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4175 | if test $ac_prog_rejected = yes; then |
| 4176 | # We found a bogon in the path, so make sure we never use it. |
| 4177 | set dummy $ac_cv_prog_CC |
| 4178 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4179 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4180 | # We chose a different compiler from the bogus one. |
| 4181 | # However, it has the same basename, so the bogon will be chosen |
| 4182 | # first if we set CC to just the basename; use the full file name. |
| 4183 | shift |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4184 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4185 | fi |
| 4186 | fi |
| 4187 | fi |
| 4188 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4189 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4190 | if test -n "$CC"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4191 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4192 | printf "%s\n" "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4193 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4194 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4195 | printf "%s\n" "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4196 | fi |
| 4197 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4199 | fi |
| 4200 | if test -z "$CC"; then |
| 4201 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4202 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4203 | do |
| 4204 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4205 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4207 | printf %s "checking for $ac_word... " >&6; } |
| 4208 | if test ${ac_cv_prog_CC+y} |
| 4209 | then : |
| 4210 | printf %s "(cached) " >&6 |
| 4211 | else $as_nop |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4212 | if test -n "$CC"; then |
| 4213 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4214 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4216 | for as_dir in $PATH |
| 4217 | do |
| 4218 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4219 | case $as_dir in #((( |
| 4220 | '') as_dir=./ ;; |
| 4221 | */) ;; |
| 4222 | *) as_dir=$as_dir/ ;; |
| 4223 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4224 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4225 | 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] | 4226 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4227 | printf "%s\n" "$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] | 4228 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4229 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4230 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4231 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4232 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4233 | |
| 4234 | fi |
| 4235 | fi |
| 4236 | CC=$ac_cv_prog_CC |
| 4237 | if test -n "$CC"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4239 | printf "%s\n" "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4240 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4241 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4242 | printf "%s\n" "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4243 | fi |
| 4244 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4246 | test -n "$CC" && break |
| 4247 | done |
| 4248 | fi |
| 4249 | if test -z "$CC"; then |
| 4250 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4251 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4252 | do |
| 4253 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4254 | set dummy $ac_prog; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4255 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4256 | printf %s "checking for $ac_word... " >&6; } |
| 4257 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4258 | then : |
| 4259 | printf %s "(cached) " >&6 |
| 4260 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4261 | if test -n "$ac_ct_CC"; then |
| 4262 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4263 | else |
| 4264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4265 | for as_dir in $PATH |
| 4266 | do |
| 4267 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4268 | case $as_dir in #((( |
| 4269 | '') as_dir=./ ;; |
| 4270 | */) ;; |
| 4271 | *) as_dir=$as_dir/ ;; |
| 4272 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4273 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4274 | 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] | 4275 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4276 | printf "%s\n" "$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] | 4277 | break 2 |
| 4278 | fi |
| 4279 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4280 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4281 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4283 | fi |
| 4284 | fi |
| 4285 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4286 | if test -n "$ac_ct_CC"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4287 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4288 | printf "%s\n" "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4289 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4291 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4292 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4293 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4295 | test -n "$ac_ct_CC" && break |
| 4296 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4297 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4298 | if test "x$ac_ct_CC" = x; then |
| 4299 | CC="" |
| 4300 | else |
| 4301 | case $cross_compiling:$ac_tool_warned in |
| 4302 | yes:) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4303 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4304 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4305 | ac_tool_warned=yes ;; |
| 4306 | esac |
| 4307 | CC=$ac_ct_CC |
| 4308 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4309 | fi |
| 4310 | |
| 4311 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4312 | if test -z "$CC"; then |
| 4313 | if test -n "$ac_tool_prefix"; then |
| 4314 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 4315 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 4316 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4317 | printf %s "checking for $ac_word... " >&6; } |
| 4318 | if test ${ac_cv_prog_CC+y} |
| 4319 | then : |
| 4320 | printf %s "(cached) " >&6 |
| 4321 | else $as_nop |
| 4322 | if test -n "$CC"; then |
| 4323 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4324 | else |
| 4325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4326 | for as_dir in $PATH |
| 4327 | do |
| 4328 | IFS=$as_save_IFS |
| 4329 | case $as_dir in #((( |
| 4330 | '') as_dir=./ ;; |
| 4331 | */) ;; |
| 4332 | *) as_dir=$as_dir/ ;; |
| 4333 | esac |
| 4334 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4335 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4336 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 4337 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4338 | break 2 |
| 4339 | fi |
| 4340 | done |
| 4341 | done |
| 4342 | IFS=$as_save_IFS |
| 4343 | |
| 4344 | fi |
| 4345 | fi |
| 4346 | CC=$ac_cv_prog_CC |
| 4347 | if test -n "$CC"; then |
| 4348 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4349 | printf "%s\n" "$CC" >&6; } |
| 4350 | else |
| 4351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4352 | printf "%s\n" "no" >&6; } |
| 4353 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4354 | |
| 4355 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4356 | fi |
| 4357 | if test -z "$ac_cv_prog_CC"; then |
| 4358 | ac_ct_CC=$CC |
| 4359 | # Extract the first word of "clang", so it can be a program name with args. |
| 4360 | set dummy clang; ac_word=$2 |
| 4361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4362 | printf %s "checking for $ac_word... " >&6; } |
| 4363 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4364 | then : |
| 4365 | printf %s "(cached) " >&6 |
| 4366 | else $as_nop |
| 4367 | if test -n "$ac_ct_CC"; then |
| 4368 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4369 | else |
| 4370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4371 | for as_dir in $PATH |
| 4372 | do |
| 4373 | IFS=$as_save_IFS |
| 4374 | case $as_dir in #((( |
| 4375 | '') as_dir=./ ;; |
| 4376 | */) ;; |
| 4377 | *) as_dir=$as_dir/ ;; |
| 4378 | esac |
| 4379 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4380 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4381 | ac_cv_prog_ac_ct_CC="clang" |
| 4382 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4383 | break 2 |
| 4384 | fi |
| 4385 | done |
| 4386 | done |
| 4387 | IFS=$as_save_IFS |
| 4388 | |
| 4389 | fi |
| 4390 | fi |
| 4391 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4392 | if test -n "$ac_ct_CC"; then |
| 4393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4394 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4395 | else |
| 4396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4397 | printf "%s\n" "no" >&6; } |
| 4398 | fi |
| 4399 | |
| 4400 | if test "x$ac_ct_CC" = x; then |
| 4401 | CC="" |
| 4402 | else |
| 4403 | case $cross_compiling:$ac_tool_warned in |
| 4404 | yes:) |
| 4405 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4406 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4407 | ac_tool_warned=yes ;; |
| 4408 | esac |
| 4409 | CC=$ac_ct_CC |
| 4410 | fi |
| 4411 | else |
| 4412 | CC="$ac_cv_prog_CC" |
| 4413 | fi |
| 4414 | |
| 4415 | fi |
| 4416 | |
| 4417 | |
| 4418 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4419 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4420 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4421 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4422 | |
| 4423 | # Provide some information about the compiler. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4424 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4425 | set X $ac_compile |
| 4426 | ac_compiler=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4427 | for ac_option in --version -v -V -qversion -version; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4428 | { { ac_try="$ac_compiler $ac_option >&5" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4429 | case "(($ac_try" in |
| 4430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4431 | *) ac_try_echo=$ac_try;; |
| 4432 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4433 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4434 | printf "%s\n" "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4435 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4436 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4437 | if test -s conftest.err; then |
| 4438 | sed '10a\ |
| 4439 | ... rest of stderr output deleted ... |
| 4440 | 10q' conftest.err >conftest.er1 |
| 4441 | cat conftest.er1 >&5 |
| 4442 | fi |
| 4443 | rm -f conftest.er1 conftest.err |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4444 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4445 | test $ac_status = 0; } |
| 4446 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4447 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4449 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4451 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4452 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4453 | { |
| 4454 | |
| 4455 | ; |
| 4456 | return 0; |
| 4457 | } |
| 4458 | _ACEOF |
| 4459 | ac_clean_files_save=$ac_clean_files |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4460 | 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] | 4461 | # Try to create an executable without -o first, disregard a.out. |
| 4462 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4463 | # of exeext. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4464 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4465 | printf %s "checking whether the C compiler works... " >&6; } |
| 4466 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4467 | |
| 4468 | # The possible output files: |
| 4469 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4470 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4471 | ac_rmfiles= |
| 4472 | for ac_file in $ac_files |
| 4473 | do |
| 4474 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4475 | *.$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] | 4476 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4477 | esac |
| 4478 | done |
| 4479 | rm -f $ac_rmfiles |
| 4480 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4481 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4482 | case "(($ac_try" in |
| 4483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4484 | *) ac_try_echo=$ac_try;; |
| 4485 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4486 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4487 | printf "%s\n" "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4488 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4489 | ac_status=$? |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4490 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4491 | test $ac_status = 0; } |
| 4492 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4493 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4494 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4495 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4496 | # so that the user can short-circuit this test for compilers unknown to |
| 4497 | # Autoconf. |
| 4498 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4499 | do |
| 4500 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4501 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4502 | *.$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] | 4503 | ;; |
| 4504 | [ab].out ) |
| 4505 | # We found the default executable, but exeext='' is most |
| 4506 | # certainly right. |
| 4507 | break;; |
| 4508 | *.* ) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4509 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4510 | then :; else |
| 4511 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4512 | fi |
| 4513 | # We set ac_cv_exeext here because the later test for it is not |
| 4514 | # safe: cross compilers may not add the suffix if given an `-o' |
| 4515 | # argument, so we may need to know it at that point already. |
| 4516 | # Even if this section looks crufty: it has the advantage of |
| 4517 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4518 | break;; |
| 4519 | * ) |
| 4520 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4521 | esac |
| 4522 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4523 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4524 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4525 | else $as_nop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4526 | ac_file='' |
| 4527 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4528 | if test -z "$ac_file" |
| 4529 | then : |
| 4530 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4531 | printf "%s\n" "no" >&6; } |
| 4532 | printf "%s\n" "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4534 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4535 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4536 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4537 | as_fn_error 77 "C compiler cannot create executables |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4538 | See \`config.log' for more details" "$LINENO" 5; } |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4539 | else $as_nop |
| 4540 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4541 | printf "%s\n" "yes" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4542 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4543 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4544 | printf %s "checking for C compiler default output file name... " >&6; } |
| 4545 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4546 | printf "%s\n" "$ac_file" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4547 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4548 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4549 | 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] | 4550 | ac_clean_files=$ac_clean_files_save |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4552 | printf %s "checking for suffix of executables... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4553 | if { { ac_try="$ac_link" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4554 | case "(($ac_try" in |
| 4555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4556 | *) ac_try_echo=$ac_try;; |
| 4557 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4558 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4559 | printf "%s\n" "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4560 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4561 | ac_status=$? |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4562 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4563 | test $ac_status = 0; } |
| 4564 | then : |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4565 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4566 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4567 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4568 | # `rm'. |
| 4569 | for ac_file in conftest.exe conftest conftest.*; do |
| 4570 | test -f "$ac_file" || continue |
| 4571 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4572 | *.$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] | 4573 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4574 | break;; |
| 4575 | * ) break;; |
| 4576 | esac |
| 4577 | done |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4578 | else $as_nop |
| 4579 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4580 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4581 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4582 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4583 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4584 | rm -f conftest conftest$ac_cv_exeext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4585 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4586 | printf "%s\n" "$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4587 | |
| 4588 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4589 | EXEEXT=$ac_cv_exeext |
| 4590 | ac_exeext=$EXEEXT |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4592 | /* end confdefs.h. */ |
| 4593 | #include <stdio.h> |
| 4594 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4595 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4596 | { |
| 4597 | FILE *f = fopen ("conftest.out", "w"); |
| 4598 | return ferror (f) || fclose (f) != 0; |
| 4599 | |
| 4600 | ; |
| 4601 | return 0; |
| 4602 | } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4603 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4604 | ac_clean_files="$ac_clean_files conftest.out" |
| 4605 | # Check that the compiler produces executables we can run. If not, either |
| 4606 | # the compiler is broken, or we cross compile. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4607 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4608 | printf %s "checking whether we are cross compiling... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4609 | if test "$cross_compiling" != yes; then |
| 4610 | { { ac_try="$ac_link" |
| 4611 | case "(($ac_try" in |
| 4612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4613 | *) ac_try_echo=$ac_try;; |
| 4614 | esac |
| 4615 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4616 | printf "%s\n" "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4617 | (eval "$ac_link") 2>&5 |
| 4618 | ac_status=$? |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4619 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4620 | test $ac_status = 0; } |
| 4621 | if { ac_try='./conftest$ac_cv_exeext' |
| 4622 | { { case "(($ac_try" in |
| 4623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4624 | *) ac_try_echo=$ac_try;; |
| 4625 | esac |
| 4626 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4627 | printf "%s\n" "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4628 | (eval "$ac_try") 2>&5 |
| 4629 | ac_status=$? |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4630 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4631 | test $ac_status = 0; }; }; then |
| 4632 | cross_compiling=no |
| 4633 | else |
| 4634 | if test "$cross_compiling" = maybe; then |
| 4635 | cross_compiling=yes |
| 4636 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4637 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4638 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4639 | as_fn_error 77 "cannot run C compiled programs. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4640 | If you meant to cross compile, use \`--host'. |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4641 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4642 | fi |
| 4643 | fi |
| 4644 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4645 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4646 | printf "%s\n" "$cross_compiling" >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4647 | |
| 4648 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4649 | ac_clean_files=$ac_clean_files_save |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4650 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4651 | printf %s "checking for suffix of object files... " >&6; } |
| 4652 | if test ${ac_cv_objext+y} |
| 4653 | then : |
| 4654 | printf %s "(cached) " >&6 |
| 4655 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4657 | /* end confdefs.h. */ |
| 4658 | |
| 4659 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4660 | main (void) |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4661 | { |
| 4662 | |
| 4663 | ; |
| 4664 | return 0; |
| 4665 | } |
| 4666 | _ACEOF |
| 4667 | rm -f conftest.o conftest.obj |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4668 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4669 | case "(($ac_try" in |
| 4670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4671 | *) ac_try_echo=$ac_try;; |
| 4672 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4673 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4674 | printf "%s\n" "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4675 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4676 | ac_status=$? |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4677 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4678 | test $ac_status = 0; } |
| 4679 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4680 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4681 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4682 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4683 | *.$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] | 4684 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4685 | break;; |
| 4686 | esac |
| 4687 | done |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4688 | else $as_nop |
| 4689 | printf "%s\n" "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4691 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4692 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4693 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4694 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4695 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4696 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4697 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4698 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4699 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4700 | printf "%s\n" "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4701 | OBJEXT=$ac_cv_objext |
| 4702 | ac_objext=$OBJEXT |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 4704 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 4705 | if test ${ac_cv_c_compiler_gnu+y} |
| 4706 | then : |
| 4707 | printf %s "(cached) " >&6 |
| 4708 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4710 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4712 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4713 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4714 | { |
| 4715 | #ifndef __GNUC__ |
| 4716 | choke me |
| 4717 | #endif |
| 4718 | |
| 4719 | ; |
| 4720 | return 0; |
| 4721 | } |
| 4722 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4723 | if ac_fn_c_try_compile "$LINENO" |
| 4724 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4725 | ac_compiler_gnu=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4726 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4727 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4728 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4729 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4730 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4731 | |
| 4732 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4733 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4734 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 4735 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4736 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4737 | if test $ac_compiler_gnu = yes; then |
| 4738 | GCC=yes |
| 4739 | else |
| 4740 | GCC= |
| 4741 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4742 | ac_test_CFLAGS=${CFLAGS+y} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4743 | ac_save_CFLAGS=$CFLAGS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4744 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4745 | printf %s "checking whether $CC accepts -g... " >&6; } |
| 4746 | if test ${ac_cv_prog_cc_g+y} |
| 4747 | then : |
| 4748 | printf %s "(cached) " >&6 |
| 4749 | else $as_nop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4750 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4751 | ac_c_werror_flag=yes |
| 4752 | ac_cv_prog_cc_g=no |
| 4753 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4755 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4757 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4758 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4759 | { |
| 4760 | |
| 4761 | ; |
| 4762 | return 0; |
| 4763 | } |
| 4764 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4765 | if ac_fn_c_try_compile "$LINENO" |
| 4766 | then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4767 | ac_cv_prog_cc_g=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4768 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4769 | CFLAGS="" |
| 4770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4771 | /* end confdefs.h. */ |
| 4772 | |
| 4773 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4774 | main (void) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4775 | { |
| 4776 | |
| 4777 | ; |
| 4778 | return 0; |
| 4779 | } |
| 4780 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4781 | if ac_fn_c_try_compile "$LINENO" |
| 4782 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4783 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4784 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4785 | ac_c_werror_flag=$ac_save_c_werror_flag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4786 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4788 | /* end confdefs.h. */ |
| 4789 | |
| 4790 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4791 | main (void) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4792 | { |
| 4793 | |
| 4794 | ; |
| 4795 | return 0; |
| 4796 | } |
| 4797 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4798 | if ac_fn_c_try_compile "$LINENO" |
| 4799 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4800 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4801 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4802 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4803 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4804 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4805 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4806 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4807 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4808 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4809 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4810 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 4811 | if test $ac_test_CFLAGS; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4812 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4813 | elif test $ac_cv_prog_cc_g = yes; then |
| 4814 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4815 | CFLAGS="-g -O2" |
| 4816 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4817 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4818 | fi |
| 4819 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4820 | if test "$GCC" = yes; then |
| 4821 | CFLAGS="-O2" |
| 4822 | else |
| 4823 | CFLAGS= |
| 4824 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4825 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4826 | ac_prog_cc_stdc=no |
| 4827 | if test x$ac_prog_cc_stdc = xno |
| 4828 | then : |
| 4829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 4830 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 4831 | if test ${ac_cv_prog_cc_c11+y} |
| 4832 | then : |
| 4833 | printf %s "(cached) " >&6 |
| 4834 | else $as_nop |
| 4835 | ac_cv_prog_cc_c11=no |
| 4836 | ac_save_CC=$CC |
| 4837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4838 | /* end confdefs.h. */ |
| 4839 | $ac_c_conftest_c11_program |
| 4840 | _ACEOF |
| 4841 | for ac_arg in '' -std=gnu11 |
| 4842 | do |
| 4843 | CC="$ac_save_CC $ac_arg" |
| 4844 | if ac_fn_c_try_compile "$LINENO" |
| 4845 | then : |
| 4846 | ac_cv_prog_cc_c11=$ac_arg |
| 4847 | fi |
| 4848 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4849 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 4850 | done |
| 4851 | rm -f conftest.$ac_ext |
| 4852 | CC=$ac_save_CC |
| 4853 | fi |
| 4854 | |
| 4855 | if test "x$ac_cv_prog_cc_c11" = xno |
| 4856 | then : |
| 4857 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4858 | printf "%s\n" "unsupported" >&6; } |
| 4859 | else $as_nop |
| 4860 | if test "x$ac_cv_prog_cc_c11" = x |
| 4861 | then : |
| 4862 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4863 | printf "%s\n" "none needed" >&6; } |
| 4864 | else $as_nop |
| 4865 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 4866 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 4867 | CC="$CC $ac_cv_prog_cc_c11" |
| 4868 | fi |
| 4869 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 4870 | ac_prog_cc_stdc=c11 |
| 4871 | fi |
| 4872 | fi |
| 4873 | if test x$ac_prog_cc_stdc = xno |
| 4874 | then : |
| 4875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 4876 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 4877 | if test ${ac_cv_prog_cc_c99+y} |
| 4878 | then : |
| 4879 | printf %s "(cached) " >&6 |
| 4880 | else $as_nop |
| 4881 | ac_cv_prog_cc_c99=no |
| 4882 | ac_save_CC=$CC |
| 4883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4884 | /* end confdefs.h. */ |
| 4885 | $ac_c_conftest_c99_program |
| 4886 | _ACEOF |
| 4887 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 4888 | do |
| 4889 | CC="$ac_save_CC $ac_arg" |
| 4890 | if ac_fn_c_try_compile "$LINENO" |
| 4891 | then : |
| 4892 | ac_cv_prog_cc_c99=$ac_arg |
| 4893 | fi |
| 4894 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4895 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 4896 | done |
| 4897 | rm -f conftest.$ac_ext |
| 4898 | CC=$ac_save_CC |
| 4899 | fi |
| 4900 | |
| 4901 | if test "x$ac_cv_prog_cc_c99" = xno |
| 4902 | then : |
| 4903 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4904 | printf "%s\n" "unsupported" >&6; } |
| 4905 | else $as_nop |
| 4906 | if test "x$ac_cv_prog_cc_c99" = x |
| 4907 | then : |
| 4908 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4909 | printf "%s\n" "none needed" >&6; } |
| 4910 | else $as_nop |
| 4911 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 4912 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 4913 | CC="$CC $ac_cv_prog_cc_c99" |
| 4914 | fi |
| 4915 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 4916 | ac_prog_cc_stdc=c99 |
| 4917 | fi |
| 4918 | fi |
| 4919 | if test x$ac_prog_cc_stdc = xno |
| 4920 | then : |
| 4921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 4922 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 4923 | if test ${ac_cv_prog_cc_c89+y} |
| 4924 | then : |
| 4925 | printf %s "(cached) " >&6 |
| 4926 | else $as_nop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4927 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4928 | ac_save_CC=$CC |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4930 | /* end confdefs.h. */ |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4931 | $ac_c_conftest_c89_program |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4932 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4933 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4934 | do |
| 4935 | CC="$ac_save_CC $ac_arg" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4936 | if ac_fn_c_try_compile "$LINENO" |
| 4937 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4938 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4939 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4940 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4941 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4942 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4943 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4944 | CC=$ac_save_CC |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4945 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4946 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4947 | if test "x$ac_cv_prog_cc_c89" = xno |
| 4948 | then : |
| 4949 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4950 | printf "%s\n" "unsupported" >&6; } |
| 4951 | else $as_nop |
| 4952 | if test "x$ac_cv_prog_cc_c89" = x |
| 4953 | then : |
| 4954 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4955 | printf "%s\n" "none needed" >&6; } |
| 4956 | else $as_nop |
| 4957 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4958 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 4959 | CC="$CC $ac_cv_prog_cc_c89" |
| 4960 | fi |
| 4961 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 4962 | ac_prog_cc_stdc=c89 |
| 4963 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4964 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4966 | ac_ext=c |
| 4967 | ac_cpp='$CPP $CPPFLAGS' |
| 4968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4971 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4972 | ac_ext=c |
| 4973 | ac_cpp='$CPP $CPPFLAGS' |
| 4974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4978 | printf %s "checking how to run the C preprocessor... " >&6; } |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4979 | # On Suns, sometimes $CPP names a directory. |
| 4980 | if test -n "$CPP" && test -d "$CPP"; then |
| 4981 | CPP= |
| 4982 | fi |
| 4983 | if test -z "$CPP"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 4984 | if test ${ac_cv_prog_CPP+y} |
| 4985 | then : |
| 4986 | printf %s "(cached) " >&6 |
| 4987 | else $as_nop |
| 4988 | # Double quotes because $CC needs to be expanded |
| 4989 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4990 | do |
| 4991 | ac_preproc_ok=false |
| 4992 | for ac_c_preproc_warn_flag in '' yes |
| 4993 | do |
| 4994 | # Use a header file that comes with gcc, so configuring glibc |
| 4995 | # with a fresh cross-compiler works. |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4996 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4997 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4999 | /* end confdefs.h. */ |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5000 | #include <limits.h> |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5001 | Syntax error |
| 5002 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5003 | if ac_fn_c_try_cpp "$LINENO" |
| 5004 | then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5005 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5006 | else $as_nop |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5007 | # Broken: fails on valid input. |
| 5008 | continue |
| 5009 | fi |
| 5010 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5011 | |
| 5012 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5013 | # can be detected and how. |
| 5014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5015 | /* end confdefs.h. */ |
| 5016 | #include <ac_nonexistent.h> |
| 5017 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5018 | if ac_fn_c_try_cpp "$LINENO" |
| 5019 | then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5020 | # Broken: success on invalid input. |
| 5021 | continue |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5022 | else $as_nop |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5023 | # Passes both tests. |
| 5024 | ac_preproc_ok=: |
| 5025 | break |
| 5026 | fi |
| 5027 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5028 | |
| 5029 | done |
| 5030 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5031 | rm -f conftest.i conftest.err conftest.$ac_ext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5032 | if $ac_preproc_ok |
| 5033 | then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5034 | break |
| 5035 | fi |
| 5036 | |
| 5037 | done |
| 5038 | ac_cv_prog_CPP=$CPP |
| 5039 | |
| 5040 | fi |
| 5041 | CPP=$ac_cv_prog_CPP |
| 5042 | else |
| 5043 | ac_cv_prog_CPP=$CPP |
| 5044 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5046 | printf "%s\n" "$CPP" >&6; } |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5047 | ac_preproc_ok=false |
| 5048 | for ac_c_preproc_warn_flag in '' yes |
| 5049 | do |
| 5050 | # Use a header file that comes with gcc, so configuring glibc |
| 5051 | # with a fresh cross-compiler works. |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5052 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5053 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5055 | /* end confdefs.h. */ |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5056 | #include <limits.h> |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5057 | Syntax error |
| 5058 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5059 | if ac_fn_c_try_cpp "$LINENO" |
| 5060 | then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5061 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5062 | else $as_nop |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5063 | # Broken: fails on valid input. |
| 5064 | continue |
| 5065 | fi |
| 5066 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5067 | |
| 5068 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5069 | # can be detected and how. |
| 5070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5071 | /* end confdefs.h. */ |
| 5072 | #include <ac_nonexistent.h> |
| 5073 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5074 | if ac_fn_c_try_cpp "$LINENO" |
| 5075 | then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5076 | # Broken: success on invalid input. |
| 5077 | continue |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5078 | else $as_nop |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5079 | # Passes both tests. |
| 5080 | ac_preproc_ok=: |
| 5081 | break |
| 5082 | fi |
| 5083 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5084 | |
| 5085 | done |
| 5086 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5087 | rm -f conftest.i conftest.err conftest.$ac_ext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5088 | if $ac_preproc_ok |
| 5089 | then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5090 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5091 | else $as_nop |
| 5092 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5093 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5094 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5095 | See \`config.log' for more details" "$LINENO" 5; } |
| 5096 | fi |
| 5097 | |
| 5098 | ac_ext=c |
| 5099 | ac_cpp='$CPP $CPPFLAGS' |
| 5100 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5101 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5102 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5103 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5105 | printf %s "checking for grep that handles long lines and -e... " >&6; } |
| 5106 | if test ${ac_cv_path_GREP+y} |
| 5107 | then : |
| 5108 | printf %s "(cached) " >&6 |
| 5109 | else $as_nop |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5110 | if test -z "$GREP"; then |
| 5111 | ac_path_GREP_found=false |
| 5112 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5114 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5115 | do |
| 5116 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5117 | case $as_dir in #((( |
| 5118 | '') as_dir=./ ;; |
| 5119 | */) ;; |
| 5120 | *) as_dir=$as_dir/ ;; |
| 5121 | esac |
| 5122 | for ac_prog in grep ggrep |
| 5123 | do |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5124 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5125 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5126 | as_fn_executable_p "$ac_path_GREP" || continue |
| 5127 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5128 | # Check for GNU $ac_path_GREP |
| 5129 | case `"$ac_path_GREP" --version 2>&1` in |
| 5130 | *GNU*) |
| 5131 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5132 | *) |
| 5133 | ac_count=0 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5134 | printf %s 0123456789 >"conftest.in" |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5135 | while : |
| 5136 | do |
| 5137 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5138 | mv "conftest.tmp" "conftest.in" |
| 5139 | cp "conftest.in" "conftest.nl" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5140 | printf "%s\n" 'GREP' >> "conftest.nl" |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5141 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5142 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5143 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5144 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5145 | # Best one so far, save it but keep looking for a better one |
| 5146 | ac_cv_path_GREP="$ac_path_GREP" |
| 5147 | ac_path_GREP_max=$ac_count |
| 5148 | fi |
| 5149 | # 10*(2^10) chars as input seems more than enough |
| 5150 | test $ac_count -gt 10 && break |
| 5151 | done |
| 5152 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5153 | esac |
| 5154 | |
| 5155 | $ac_path_GREP_found && break 3 |
| 5156 | done |
| 5157 | done |
| 5158 | done |
| 5159 | IFS=$as_save_IFS |
| 5160 | if test -z "$ac_cv_path_GREP"; then |
| 5161 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5162 | fi |
| 5163 | else |
| 5164 | ac_cv_path_GREP=$GREP |
| 5165 | fi |
| 5166 | |
| 5167 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5169 | printf "%s\n" "$ac_cv_path_GREP" >&6; } |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5170 | GREP="$ac_cv_path_GREP" |
| 5171 | |
| 5172 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5173 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 5174 | printf %s "checking for a sed that does not truncate output... " >&6; } |
| 5175 | if test ${ac_cv_path_SED+y} |
| 5176 | then : |
| 5177 | printf %s "(cached) " >&6 |
| 5178 | else $as_nop |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 5179 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 5180 | for ac_i in 1 2 3 4 5 6 7; do |
| 5181 | ac_script="$ac_script$as_nl$ac_script" |
| 5182 | done |
| 5183 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 5184 | { ac_script=; unset ac_script;} |
| 5185 | if test -z "$SED"; then |
| 5186 | ac_path_SED_found=false |
| 5187 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5189 | for as_dir in $PATH |
| 5190 | do |
| 5191 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5192 | case $as_dir in #((( |
| 5193 | '') as_dir=./ ;; |
| 5194 | */) ;; |
| 5195 | *) as_dir=$as_dir/ ;; |
| 5196 | esac |
| 5197 | for ac_prog in sed gsed |
| 5198 | do |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 5199 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5200 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext" |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 5201 | as_fn_executable_p "$ac_path_SED" || continue |
| 5202 | # Check for GNU ac_path_SED and select it if it is found. |
| 5203 | # Check for GNU $ac_path_SED |
| 5204 | case `"$ac_path_SED" --version 2>&1` in |
| 5205 | *GNU*) |
| 5206 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 5207 | *) |
| 5208 | ac_count=0 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5209 | printf %s 0123456789 >"conftest.in" |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 5210 | while : |
| 5211 | do |
| 5212 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5213 | mv "conftest.tmp" "conftest.in" |
| 5214 | cp "conftest.in" "conftest.nl" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5215 | printf "%s\n" '' >> "conftest.nl" |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 5216 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5217 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5218 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5219 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 5220 | # Best one so far, save it but keep looking for a better one |
| 5221 | ac_cv_path_SED="$ac_path_SED" |
| 5222 | ac_path_SED_max=$ac_count |
| 5223 | fi |
| 5224 | # 10*(2^10) chars as input seems more than enough |
| 5225 | test $ac_count -gt 10 && break |
| 5226 | done |
| 5227 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5228 | esac |
| 5229 | |
| 5230 | $ac_path_SED_found && break 3 |
| 5231 | done |
| 5232 | done |
| 5233 | done |
| 5234 | IFS=$as_save_IFS |
| 5235 | if test -z "$ac_cv_path_SED"; then |
| 5236 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 5237 | fi |
| 5238 | else |
| 5239 | ac_cv_path_SED=$SED |
| 5240 | fi |
| 5241 | |
| 5242 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5243 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 5244 | printf "%s\n" "$ac_cv_path_SED" >&6; } |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 5245 | SED="$ac_cv_path_SED" |
| 5246 | rm -f conftest.sed |
| 5247 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 5248 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5249 | |
| 5250 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
| 5252 | printf %s "checking for --with-cxx-main=<compiler>... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5253 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5254 | # Check whether --with-cxx_main was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5255 | if test ${with_cxx_main+y} |
| 5256 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5257 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5258 | |
| 5259 | case $withval in |
| 5260 | no) with_cxx_main=no |
| 5261 | MAINCC='$(CC)';; |
| 5262 | yes) with_cxx_main=yes |
| 5263 | MAINCC='$(CXX)';; |
| 5264 | *) with_cxx_main=yes |
| 5265 | MAINCC=$withval |
| 5266 | if test -z "$CXX" |
| 5267 | then |
| 5268 | CXX=$withval |
| 5269 | fi;; |
| 5270 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5271 | else $as_nop |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5272 | |
| 5273 | with_cxx_main=no |
| 5274 | MAINCC='$(CC)' |
| 5275 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5276 | fi |
| 5277 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5278 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
| 5279 | printf "%s\n" "$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5280 | |
| 5281 | preset_cxx="$CXX" |
| 5282 | if test -z "$CXX" |
| 5283 | then |
| 5284 | case "$CC" in |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5285 | gcc) if test -n "$ac_tool_prefix"; then |
| 5286 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. |
| 5287 | set dummy ${ac_tool_prefix}g++; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5288 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5289 | printf %s "checking for $ac_word... " >&6; } |
| 5290 | if test ${ac_cv_path_CXX+y} |
| 5291 | then : |
| 5292 | printf %s "(cached) " >&6 |
| 5293 | else $as_nop |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5294 | case $CXX in |
| 5295 | [\\/]* | ?:[\\/]*) |
| 5296 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 5297 | ;; |
| 5298 | *) |
| 5299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5300 | for as_dir in notfound |
| 5301 | do |
| 5302 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5303 | case $as_dir in #((( |
| 5304 | '') as_dir=./ ;; |
| 5305 | */) ;; |
| 5306 | *) as_dir=$as_dir/ ;; |
| 5307 | esac |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5308 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5309 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5310 | ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext" |
| 5311 | printf "%s\n" "$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] | 5312 | break 2 |
| 5313 | fi |
| 5314 | done |
| 5315 | done |
| 5316 | IFS=$as_save_IFS |
| 5317 | |
| 5318 | ;; |
| 5319 | esac |
| 5320 | fi |
| 5321 | CXX=$ac_cv_path_CXX |
| 5322 | if test -n "$CXX"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5323 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5324 | printf "%s\n" "$CXX" >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5325 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5326 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5327 | printf "%s\n" "no" >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5328 | fi |
| 5329 | |
| 5330 | |
| 5331 | fi |
| 5332 | if test -z "$ac_cv_path_CXX"; then |
| 5333 | ac_pt_CXX=$CXX |
| 5334 | # 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] | 5335 | set dummy g++; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5337 | printf %s "checking for $ac_word... " >&6; } |
| 5338 | if test ${ac_cv_path_ac_pt_CXX+y} |
| 5339 | then : |
| 5340 | printf %s "(cached) " >&6 |
| 5341 | else $as_nop |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5342 | case $ac_pt_CXX in |
| 5343 | [\\/]* | ?:[\\/]*) |
| 5344 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 5345 | ;; |
| 5346 | *) |
| 5347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5348 | for as_dir in notfound |
| 5349 | do |
| 5350 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5351 | case $as_dir in #((( |
| 5352 | '') as_dir=./ ;; |
| 5353 | */) ;; |
| 5354 | *) as_dir=$as_dir/ ;; |
| 5355 | esac |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5356 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5357 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5358 | ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext" |
| 5359 | printf "%s\n" "$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] | 5360 | break 2 |
| 5361 | fi |
| 5362 | done |
| 5363 | done |
| 5364 | IFS=$as_save_IFS |
| 5365 | |
| 5366 | ;; |
| 5367 | esac |
| 5368 | fi |
| 5369 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 5370 | if test -n "$ac_pt_CXX"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 5372 | printf "%s\n" "$ac_pt_CXX" >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5373 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5374 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5375 | printf "%s\n" "no" >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5376 | fi |
| 5377 | |
| 5378 | if test "x$ac_pt_CXX" = x; then |
| 5379 | CXX="g++" |
| 5380 | else |
| 5381 | case $cross_compiling:$ac_tool_warned in |
| 5382 | yes:) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5383 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5384 | printf "%s\n" "$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] | 5385 | ac_tool_warned=yes ;; |
| 5386 | esac |
| 5387 | CXX=$ac_pt_CXX |
| 5388 | fi |
| 5389 | else |
| 5390 | CXX="$ac_cv_path_CXX" |
| 5391 | fi |
| 5392 | ;; |
| 5393 | cc) if test -n "$ac_tool_prefix"; then |
| 5394 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. |
| 5395 | set dummy ${ac_tool_prefix}c++; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5397 | printf %s "checking for $ac_word... " >&6; } |
| 5398 | if test ${ac_cv_path_CXX+y} |
| 5399 | then : |
| 5400 | printf %s "(cached) " >&6 |
| 5401 | else $as_nop |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5402 | case $CXX in |
| 5403 | [\\/]* | ?:[\\/]*) |
| 5404 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 5405 | ;; |
| 5406 | *) |
| 5407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5408 | for as_dir in notfound |
| 5409 | do |
| 5410 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5411 | case $as_dir in #((( |
| 5412 | '') as_dir=./ ;; |
| 5413 | */) ;; |
| 5414 | *) as_dir=$as_dir/ ;; |
| 5415 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5416 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5417 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5418 | ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext" |
| 5419 | printf "%s\n" "$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] | 5420 | break 2 |
| 5421 | fi |
| 5422 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5423 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5424 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5425 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5426 | ;; |
| 5427 | esac |
| 5428 | fi |
| 5429 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5430 | if test -n "$CXX"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5432 | printf "%s\n" "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5433 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5435 | printf "%s\n" "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5436 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5437 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5438 | |
| 5439 | fi |
| 5440 | if test -z "$ac_cv_path_CXX"; then |
| 5441 | ac_pt_CXX=$CXX |
| 5442 | # 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] | 5443 | set dummy c++; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5444 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5445 | printf %s "checking for $ac_word... " >&6; } |
| 5446 | if test ${ac_cv_path_ac_pt_CXX+y} |
| 5447 | then : |
| 5448 | printf %s "(cached) " >&6 |
| 5449 | else $as_nop |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5450 | case $ac_pt_CXX in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5451 | [\\/]* | ?:[\\/]*) |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5452 | 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] | 5453 | ;; |
| 5454 | *) |
| 5455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5456 | for as_dir in notfound |
| 5457 | do |
| 5458 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5459 | case $as_dir in #((( |
| 5460 | '') as_dir=./ ;; |
| 5461 | */) ;; |
| 5462 | *) as_dir=$as_dir/ ;; |
| 5463 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5464 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5465 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5466 | ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext" |
| 5467 | printf "%s\n" "$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] | 5468 | break 2 |
| 5469 | fi |
| 5470 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5471 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5472 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5473 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5474 | ;; |
| 5475 | esac |
| 5476 | fi |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5477 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 5478 | if test -n "$ac_pt_CXX"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5479 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 5480 | printf "%s\n" "$ac_pt_CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5481 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5482 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5483 | printf "%s\n" "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5484 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5485 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5486 | if test "x$ac_pt_CXX" = x; then |
| 5487 | CXX="c++" |
| 5488 | else |
| 5489 | case $cross_compiling:$ac_tool_warned in |
| 5490 | yes:) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5491 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5492 | printf "%s\n" "$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] | 5493 | ac_tool_warned=yes ;; |
| 5494 | esac |
| 5495 | CXX=$ac_pt_CXX |
| 5496 | fi |
| 5497 | else |
| 5498 | CXX="$ac_cv_path_CXX" |
| 5499 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5500 | ;; |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5501 | clang|*/clang) if test -n "$ac_tool_prefix"; then |
| 5502 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. |
| 5503 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5504 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5505 | printf %s "checking for $ac_word... " >&6; } |
| 5506 | if test ${ac_cv_path_CXX+y} |
| 5507 | then : |
| 5508 | printf %s "(cached) " >&6 |
| 5509 | else $as_nop |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 5510 | case $CXX in |
| 5511 | [\\/]* | ?:[\\/]*) |
| 5512 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 5513 | ;; |
| 5514 | *) |
| 5515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5516 | for as_dir in notfound |
| 5517 | do |
| 5518 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5519 | case $as_dir in #((( |
| 5520 | '') as_dir=./ ;; |
| 5521 | */) ;; |
| 5522 | *) as_dir=$as_dir/ ;; |
| 5523 | esac |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 5524 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5525 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5526 | ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext" |
| 5527 | printf "%s\n" "$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] | 5528 | break 2 |
| 5529 | fi |
| 5530 | done |
| 5531 | done |
| 5532 | IFS=$as_save_IFS |
| 5533 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 5534 | ;; |
| 5535 | esac |
| 5536 | fi |
| 5537 | CXX=$ac_cv_path_CXX |
| 5538 | if test -n "$CXX"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5539 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5540 | printf "%s\n" "$CXX" >&6; } |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 5541 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5542 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5543 | printf "%s\n" "no" >&6; } |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 5544 | fi |
| 5545 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5546 | |
| 5547 | fi |
| 5548 | if test -z "$ac_cv_path_CXX"; then |
| 5549 | ac_pt_CXX=$CXX |
| 5550 | # Extract the first word of "clang++", so it can be a program name with args. |
| 5551 | set dummy clang++; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5552 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5553 | printf %s "checking for $ac_word... " >&6; } |
| 5554 | if test ${ac_cv_path_ac_pt_CXX+y} |
| 5555 | then : |
| 5556 | printf %s "(cached) " >&6 |
| 5557 | else $as_nop |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5558 | case $ac_pt_CXX in |
| 5559 | [\\/]* | ?:[\\/]*) |
| 5560 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 5561 | ;; |
| 5562 | *) |
| 5563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5564 | for as_dir in notfound |
| 5565 | do |
| 5566 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5567 | case $as_dir in #((( |
| 5568 | '') as_dir=./ ;; |
| 5569 | */) ;; |
| 5570 | *) as_dir=$as_dir/ ;; |
| 5571 | esac |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5572 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5573 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5574 | ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext" |
| 5575 | printf "%s\n" "$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] | 5576 | break 2 |
| 5577 | fi |
| 5578 | done |
| 5579 | done |
| 5580 | IFS=$as_save_IFS |
| 5581 | |
| 5582 | ;; |
| 5583 | esac |
| 5584 | fi |
| 5585 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 5586 | if test -n "$ac_pt_CXX"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5587 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 5588 | printf "%s\n" "$ac_pt_CXX" >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5589 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5591 | printf "%s\n" "no" >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5592 | fi |
| 5593 | |
| 5594 | if test "x$ac_pt_CXX" = x; then |
| 5595 | CXX="clang++" |
| 5596 | else |
| 5597 | case $cross_compiling:$ac_tool_warned in |
| 5598 | yes:) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5600 | printf "%s\n" "$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] | 5601 | ac_tool_warned=yes ;; |
| 5602 | esac |
| 5603 | CXX=$ac_pt_CXX |
| 5604 | fi |
| 5605 | else |
| 5606 | CXX="$ac_cv_path_CXX" |
| 5607 | fi |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 5608 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5609 | icc|*/icc) if test -n "$ac_tool_prefix"; then |
| 5610 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. |
| 5611 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5612 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5613 | printf %s "checking for $ac_word... " >&6; } |
| 5614 | if test ${ac_cv_path_CXX+y} |
| 5615 | then : |
| 5616 | printf %s "(cached) " >&6 |
| 5617 | else $as_nop |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5618 | case $CXX in |
| 5619 | [\\/]* | ?:[\\/]*) |
| 5620 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 5621 | ;; |
| 5622 | *) |
| 5623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5624 | for as_dir in notfound |
| 5625 | do |
| 5626 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5627 | case $as_dir in #((( |
| 5628 | '') as_dir=./ ;; |
| 5629 | */) ;; |
| 5630 | *) as_dir=$as_dir/ ;; |
| 5631 | esac |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5632 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5633 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5634 | ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext" |
| 5635 | printf "%s\n" "$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] | 5636 | break 2 |
| 5637 | fi |
| 5638 | done |
| 5639 | done |
| 5640 | IFS=$as_save_IFS |
| 5641 | |
| 5642 | ;; |
| 5643 | esac |
| 5644 | fi |
| 5645 | CXX=$ac_cv_path_CXX |
| 5646 | if test -n "$CXX"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5648 | printf "%s\n" "$CXX" >&6; } |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5649 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5650 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5651 | printf "%s\n" "no" >&6; } |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5652 | fi |
| 5653 | |
| 5654 | |
| 5655 | fi |
| 5656 | if test -z "$ac_cv_path_CXX"; then |
| 5657 | ac_pt_CXX=$CXX |
| 5658 | # Extract the first word of "icpc", so it can be a program name with args. |
| 5659 | set dummy icpc; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5660 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5661 | printf %s "checking for $ac_word... " >&6; } |
| 5662 | if test ${ac_cv_path_ac_pt_CXX+y} |
| 5663 | then : |
| 5664 | printf %s "(cached) " >&6 |
| 5665 | else $as_nop |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5666 | case $ac_pt_CXX in |
| 5667 | [\\/]* | ?:[\\/]*) |
| 5668 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 5669 | ;; |
| 5670 | *) |
| 5671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5672 | for as_dir in notfound |
| 5673 | do |
| 5674 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5675 | case $as_dir in #((( |
| 5676 | '') as_dir=./ ;; |
| 5677 | */) ;; |
| 5678 | *) as_dir=$as_dir/ ;; |
| 5679 | esac |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5680 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5681 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5682 | ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext" |
| 5683 | printf "%s\n" "$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] | 5684 | break 2 |
| 5685 | fi |
| 5686 | done |
| 5687 | done |
| 5688 | IFS=$as_save_IFS |
| 5689 | |
| 5690 | ;; |
| 5691 | esac |
| 5692 | fi |
| 5693 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 5694 | if test -n "$ac_pt_CXX"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 5696 | printf "%s\n" "$ac_pt_CXX" >&6; } |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5697 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5698 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5699 | printf "%s\n" "no" >&6; } |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5700 | fi |
| 5701 | |
| 5702 | if test "x$ac_pt_CXX" = x; then |
| 5703 | CXX="icpc" |
| 5704 | else |
| 5705 | case $cross_compiling:$ac_tool_warned in |
| 5706 | yes:) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5707 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5708 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5709 | ac_tool_warned=yes ;; |
| 5710 | esac |
| 5711 | CXX=$ac_pt_CXX |
| 5712 | fi |
| 5713 | else |
| 5714 | CXX="$ac_cv_path_CXX" |
| 5715 | fi |
| 5716 | ;; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5717 | esac |
| 5718 | if test "$CXX" = "notfound" |
| 5719 | then |
| 5720 | CXX="" |
| 5721 | fi |
| 5722 | fi |
| 5723 | if test -z "$CXX" |
| 5724 | then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5725 | if test -n "$ac_tool_prefix"; then |
| 5726 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 5727 | do |
| 5728 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5729 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5731 | printf %s "checking for $ac_word... " >&6; } |
| 5732 | if test ${ac_cv_prog_CXX+y} |
| 5733 | then : |
| 5734 | printf %s "(cached) " >&6 |
| 5735 | else $as_nop |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5736 | if test -n "$CXX"; then |
| 5737 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5738 | else |
| 5739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5740 | for as_dir in $PATH |
| 5741 | do |
| 5742 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5743 | case $as_dir in #((( |
| 5744 | '') as_dir=./ ;; |
| 5745 | */) ;; |
| 5746 | *) as_dir=$as_dir/ ;; |
| 5747 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5748 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5749 | 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] | 5750 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5751 | printf "%s\n" "$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] | 5752 | break 2 |
| 5753 | fi |
| 5754 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5755 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5756 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5757 | |
| 5758 | fi |
| 5759 | fi |
| 5760 | CXX=$ac_cv_prog_CXX |
| 5761 | if test -n "$CXX"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5763 | printf "%s\n" "$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5764 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5766 | printf "%s\n" "no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5767 | fi |
| 5768 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5769 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5770 | test -n "$CXX" && break |
| 5771 | done |
| 5772 | fi |
| 5773 | if test -z "$CXX"; then |
| 5774 | ac_ct_CXX=$CXX |
| 5775 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 5776 | do |
| 5777 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5778 | set dummy $ac_prog; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5780 | printf %s "checking for $ac_word... " >&6; } |
| 5781 | if test ${ac_cv_prog_ac_ct_CXX+y} |
| 5782 | then : |
| 5783 | printf %s "(cached) " >&6 |
| 5784 | else $as_nop |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5785 | if test -n "$ac_ct_CXX"; then |
| 5786 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5787 | else |
| 5788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5789 | for as_dir in $PATH |
| 5790 | do |
| 5791 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5792 | case $as_dir in #((( |
| 5793 | '') as_dir=./ ;; |
| 5794 | */) ;; |
| 5795 | *) as_dir=$as_dir/ ;; |
| 5796 | esac |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5797 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5798 | 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] | 5799 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5800 | printf "%s\n" "$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] | 5801 | break 2 |
| 5802 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5803 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5804 | done |
| 5805 | IFS=$as_save_IFS |
| 5806 | |
| 5807 | fi |
| 5808 | fi |
| 5809 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5810 | if test -n "$ac_ct_CXX"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5811 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 5812 | printf "%s\n" "$ac_ct_CXX" >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5813 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5814 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5815 | printf "%s\n" "no" >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5816 | fi |
| 5817 | |
| 5818 | |
| 5819 | test -n "$ac_ct_CXX" && break |
| 5820 | done |
| 5821 | |
| 5822 | if test "x$ac_ct_CXX" = x; then |
| 5823 | CXX="notfound" |
| 5824 | else |
| 5825 | case $cross_compiling:$ac_tool_warned in |
| 5826 | yes:) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5827 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5828 | printf "%s\n" "$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] | 5829 | ac_tool_warned=yes ;; |
| 5830 | esac |
| 5831 | CXX=$ac_ct_CXX |
| 5832 | fi |
| 5833 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5834 | |
| 5835 | if test "$CXX" = "notfound" |
| 5836 | then |
| 5837 | CXX="" |
| 5838 | fi |
| 5839 | fi |
| 5840 | if test "$preset_cxx" != "$CXX" |
| 5841 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5842 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5843 | |
| 5844 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 5845 | If this is not intended, then set CXX on the configure command line. |
| 5846 | " >&5 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5847 | printf "%s\n" "$as_me: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5848 | |
| 5849 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 5850 | 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] | 5851 | " >&6;} |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5852 | fi |
| 5853 | |
| 5854 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5855 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) |
| 5856 | |
| 5857 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 5858 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 |
| 5859 | printf %s "checking for the platform triplet based on compiler characteristics... " >&6; } |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5860 | cat >> conftest.c <<EOF |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5861 | #undef bfin |
| 5862 | #undef cris |
| 5863 | #undef fr30 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5864 | #undef linux |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5865 | #undef hppa |
| 5866 | #undef hpux |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5867 | #undef i386 |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5868 | #undef mips |
doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5869 | #undef powerpc |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5870 | #undef sparc |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5871 | #undef unix |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5872 | #if defined(__ANDROID__) |
Xavier de Gaye | 32cf1ac | 2016-12-10 17:31:28 +0100 | [diff] [blame] | 5873 | # Android is not a multiarch system. |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5874 | #elif defined(__linux__) |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5875 | # if defined(__x86_64__) && defined(__LP64__) |
| 5876 | x86_64-linux-gnu |
| 5877 | # elif defined(__x86_64__) && defined(__ILP32__) |
| 5878 | x86_64-linux-gnux32 |
| 5879 | # elif defined(__i386__) |
| 5880 | i386-linux-gnu |
| 5881 | # elif defined(__aarch64__) && defined(__AARCH64EL__) |
| 5882 | # if defined(__ILP32__) |
| 5883 | aarch64_ilp32-linux-gnu |
| 5884 | # else |
| 5885 | aarch64-linux-gnu |
| 5886 | # endif |
| 5887 | # elif defined(__aarch64__) && defined(__AARCH64EB__) |
| 5888 | # if defined(__ILP32__) |
| 5889 | aarch64_be_ilp32-linux-gnu |
| 5890 | # else |
| 5891 | aarch64_be-linux-gnu |
| 5892 | # endif |
| 5893 | # elif defined(__alpha__) |
| 5894 | alpha-linux-gnu |
| 5895 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) |
| 5896 | # if defined(__ARMEL__) |
| 5897 | arm-linux-gnueabihf |
| 5898 | # else |
| 5899 | armeb-linux-gnueabihf |
| 5900 | # endif |
| 5901 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) |
| 5902 | # if defined(__ARMEL__) |
| 5903 | arm-linux-gnueabi |
| 5904 | # else |
| 5905 | armeb-linux-gnueabi |
| 5906 | # endif |
| 5907 | # elif defined(__hppa__) |
| 5908 | hppa-linux-gnu |
| 5909 | # elif defined(__ia64__) |
| 5910 | ia64-linux-gnu |
| 5911 | # elif defined(__m68k__) && !defined(__mcoldfire__) |
| 5912 | m68k-linux-gnu |
Matthias Klose | ddbe976 | 2018-04-30 19:22:16 +0200 | [diff] [blame] | 5913 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) |
| 5914 | # if _MIPS_SIM == _ABIO32 |
| 5915 | mipsisa32r6el-linux-gnu |
| 5916 | # elif _MIPS_SIM == _ABIN32 |
| 5917 | mipsisa64r6el-linux-gnuabin32 |
| 5918 | # elif _MIPS_SIM == _ABI64 |
| 5919 | mipsisa64r6el-linux-gnuabi64 |
| 5920 | # else |
| 5921 | # error unknown platform triplet |
| 5922 | # endif |
| 5923 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) |
| 5924 | # if _MIPS_SIM == _ABIO32 |
| 5925 | mipsisa32r6-linux-gnu |
| 5926 | # elif _MIPS_SIM == _ABIN32 |
| 5927 | mipsisa64r6-linux-gnuabin32 |
| 5928 | # elif _MIPS_SIM == _ABI64 |
| 5929 | mipsisa64r6-linux-gnuabi64 |
| 5930 | # else |
| 5931 | # error unknown platform triplet |
| 5932 | # endif |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5933 | # elif defined(__mips_hard_float) && defined(_MIPSEL) |
| 5934 | # if _MIPS_SIM == _ABIO32 |
| 5935 | mipsel-linux-gnu |
| 5936 | # elif _MIPS_SIM == _ABIN32 |
| 5937 | mips64el-linux-gnuabin32 |
| 5938 | # elif _MIPS_SIM == _ABI64 |
| 5939 | mips64el-linux-gnuabi64 |
| 5940 | # else |
| 5941 | # error unknown platform triplet |
| 5942 | # endif |
| 5943 | # elif defined(__mips_hard_float) |
| 5944 | # if _MIPS_SIM == _ABIO32 |
| 5945 | mips-linux-gnu |
| 5946 | # elif _MIPS_SIM == _ABIN32 |
| 5947 | mips64-linux-gnuabin32 |
| 5948 | # elif _MIPS_SIM == _ABI64 |
| 5949 | mips64-linux-gnuabi64 |
| 5950 | # else |
| 5951 | # error unknown platform triplet |
| 5952 | # endif |
| 5953 | # elif defined(__or1k__) |
| 5954 | or1k-linux-gnu |
| 5955 | # elif defined(__powerpc__) && defined(__SPE__) |
| 5956 | powerpc-linux-gnuspe |
| 5957 | # elif defined(__powerpc64__) |
| 5958 | # if defined(__LITTLE_ENDIAN__) |
| 5959 | powerpc64le-linux-gnu |
| 5960 | # else |
| 5961 | powerpc64-linux-gnu |
| 5962 | # endif |
| 5963 | # elif defined(__powerpc__) |
| 5964 | powerpc-linux-gnu |
| 5965 | # elif defined(__s390x__) |
| 5966 | s390x-linux-gnu |
| 5967 | # elif defined(__s390__) |
| 5968 | s390-linux-gnu |
| 5969 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) |
| 5970 | sh4-linux-gnu |
| 5971 | # elif defined(__sparc__) && defined(__arch64__) |
| 5972 | sparc64-linux-gnu |
| 5973 | # elif defined(__sparc__) |
| 5974 | sparc-linux-gnu |
Matthias Klose | ddbe976 | 2018-04-30 19:22:16 +0200 | [diff] [blame] | 5975 | # elif defined(__riscv) |
| 5976 | # if __riscv_xlen == 32 |
| 5977 | riscv32-linux-gnu |
| 5978 | # elif __riscv_xlen == 64 |
| 5979 | riscv64-linux-gnu |
| 5980 | # else |
| 5981 | # error unknown platform triplet |
| 5982 | # endif |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5983 | # else |
| 5984 | # error unknown platform triplet |
| 5985 | # endif |
| 5986 | #elif defined(__FreeBSD_kernel__) |
| 5987 | # if defined(__LP64__) |
| 5988 | x86_64-kfreebsd-gnu |
| 5989 | # elif defined(__i386__) |
| 5990 | i386-kfreebsd-gnu |
| 5991 | # else |
| 5992 | # error unknown platform triplet |
| 5993 | # endif |
| 5994 | #elif defined(__gnu_hurd__) |
| 5995 | i386-gnu |
Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5996 | #elif defined(__APPLE__) |
| 5997 | darwin |
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 5998 | #elif defined(__VXWORKS__) |
| 5999 | vxworks |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 6000 | #else |
| 6001 | # error unknown platform triplet |
| 6002 | #endif |
| 6003 | |
| 6004 | EOF |
| 6005 | |
Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 6006 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 6007 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 |
| 6009 | printf "%s\n" "$PLATFORM_TRIPLET" >&6; } |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 6010 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 6012 | printf "%s\n" "none" >&6; } |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 6013 | fi |
| 6014 | rm -f conftest.c conftest.out |
| 6015 | |
| 6016 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then |
| 6017 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then |
| 6018 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 |
| 6019 | fi |
doko@ubuntu.com | 75b1cb1 | 2016-08-29 20:03:25 +0200 | [diff] [blame] | 6020 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then |
| 6021 | MULTIARCH=$PLATFORM_TRIPLET |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 6022 | fi |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 6023 | |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 6024 | if test x$MULTIARCH != x; then |
| 6025 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" |
| 6026 | fi |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 6027 | |
| 6028 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 |
| 6030 | printf %s "checking for -Wl,--no-as-needed... " >&6; } |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 6031 | save_LDFLAGS="$LDFLAGS" |
| 6032 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6033 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 6034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6035 | /* end confdefs.h. */ |
| 6036 | |
| 6037 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6038 | main (void) |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 6039 | { |
| 6040 | |
| 6041 | ; |
| 6042 | return 0; |
| 6043 | } |
| 6044 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6045 | if ac_fn_c_try_link "$LINENO" |
| 6046 | then : |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 6047 | NO_AS_NEEDED="-Wl,--no-as-needed" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6049 | printf "%s\n" "yes" >&6; } |
| 6050 | else $as_nop |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 6051 | NO_AS_NEEDED="" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6052 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6053 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 6054 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6055 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 6056 | conftest$ac_exeext conftest.$ac_ext |
| 6057 | LDFLAGS="$save_LDFLAGS" |
| 6058 | |
| 6059 | |
| 6060 | |
| 6061 | # checks for UNIX variants that set C preprocessor variables |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6062 | ac_header= ac_cache= |
| 6063 | for ac_item in $ac_header_c_list |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6064 | do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6065 | if test $ac_cache; then |
| 6066 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 6067 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 6068 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6069 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6070 | ac_header= ac_cache= |
| 6071 | elif test $ac_header; then |
| 6072 | ac_cache=$ac_item |
| 6073 | else |
| 6074 | ac_header=$ac_item |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6075 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6076 | done |
| 6077 | |
| 6078 | |
| 6079 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6080 | |
| 6081 | |
| 6082 | |
| 6083 | |
| 6084 | |
| 6085 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 6086 | then : |
| 6087 | |
| 6088 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 6089 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6090 | fi |
| 6091 | |
| 6092 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6093 | |
| 6094 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6095 | |
| 6096 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6097 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 6098 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 6099 | if test ${ac_cv_safe_to_define___extensions__+y} |
| 6100 | then : |
| 6101 | printf %s "(cached) " >&6 |
| 6102 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6104 | /* end confdefs.h. */ |
| 6105 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6106 | # define __EXTENSIONS__ 1 |
| 6107 | $ac_includes_default |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6108 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6109 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6110 | { |
| 6111 | |
| 6112 | ; |
| 6113 | return 0; |
| 6114 | } |
| 6115 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6116 | if ac_fn_c_try_compile "$LINENO" |
| 6117 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6118 | ac_cv_safe_to_define___extensions__=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6119 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6120 | ac_cv_safe_to_define___extensions__=no |
| 6121 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6122 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6123 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6124 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 6125 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6126 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
| 6128 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
| 6129 | if test ${ac_cv_should_define__xopen_source+y} |
| 6130 | then : |
| 6131 | printf %s "(cached) " >&6 |
| 6132 | else $as_nop |
| 6133 | ac_cv_should_define__xopen_source=no |
| 6134 | if test $ac_cv_header_wchar_h = yes |
| 6135 | then : |
| 6136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6137 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6138 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6139 | #include <wchar.h> |
| 6140 | mbstate_t x; |
| 6141 | int |
| 6142 | main (void) |
| 6143 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6144 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6145 | ; |
| 6146 | return 0; |
| 6147 | } |
| 6148 | _ACEOF |
| 6149 | if ac_fn_c_try_compile "$LINENO" |
| 6150 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6151 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6152 | else $as_nop |
| 6153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6154 | /* end confdefs.h. */ |
| 6155 | |
| 6156 | #define _XOPEN_SOURCE 500 |
| 6157 | #include <wchar.h> |
| 6158 | mbstate_t x; |
| 6159 | int |
| 6160 | main (void) |
| 6161 | { |
| 6162 | |
| 6163 | ; |
| 6164 | return 0; |
| 6165 | } |
| 6166 | _ACEOF |
| 6167 | if ac_fn_c_try_compile "$LINENO" |
| 6168 | then : |
| 6169 | ac_cv_should_define__xopen_source=yes |
| 6170 | fi |
| 6171 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6172 | fi |
| 6173 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6174 | fi |
| 6175 | fi |
| 6176 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
| 6177 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } |
| 6178 | |
| 6179 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
| 6180 | |
| 6181 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 6182 | |
| 6183 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
| 6184 | |
| 6185 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
| 6186 | |
| 6187 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
| 6188 | |
| 6189 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
| 6190 | |
| 6191 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 6192 | |
| 6193 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
| 6194 | |
| 6195 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
| 6196 | |
| 6197 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
| 6198 | |
| 6199 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
| 6200 | |
| 6201 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
| 6202 | |
| 6203 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
| 6204 | |
| 6205 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
| 6206 | |
| 6207 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 6208 | |
| 6209 | if test $ac_cv_header_minix_config_h = yes |
| 6210 | then : |
| 6211 | MINIX=yes |
| 6212 | printf "%s\n" "#define _MINIX 1" >>confdefs.h |
| 6213 | |
| 6214 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
| 6215 | |
| 6216 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 6217 | |
| 6218 | else $as_nop |
| 6219 | MINIX= |
| 6220 | fi |
| 6221 | if test $ac_cv_safe_to_define___extensions__ = yes |
| 6222 | then : |
| 6223 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
| 6224 | |
| 6225 | fi |
| 6226 | if test $ac_cv_should_define__xopen_source = yes |
| 6227 | then : |
| 6228 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
| 6229 | |
| 6230 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6231 | |
| 6232 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6233 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 |
| 6234 | printf %s "checking for the Android API level... " >&6; } |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 6235 | cat >> conftest.c <<EOF |
| 6236 | #ifdef __ANDROID__ |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 6237 | android_api = __ANDROID_API__ |
| 6238 | arm_arch = __ARM_ARCH |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 6239 | #else |
| 6240 | #error not Android |
| 6241 | #endif |
| 6242 | EOF |
| 6243 | |
| 6244 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 6245 | ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` |
| 6246 | _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6247 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 |
| 6248 | printf "%s\n" "$ANDROID_API_LEVEL" >&6; } |
xdegaye | c06c22e | 2017-11-23 11:44:38 +0100 | [diff] [blame] | 6249 | if test -z "$ANDROID_API_LEVEL"; then |
| 6250 | echo 'Fatal: you must define __ANDROID_API__' |
| 6251 | exit 1 |
| 6252 | fi |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 6253 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6254 | printf "%s\n" "#define ANDROID_API_LEVEL $ANDROID_API_LEVEL" >>confdefs.h |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 6255 | |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 6256 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 |
| 6258 | printf %s "checking for the Android arm ABI... " >&6; } |
| 6259 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 |
| 6260 | printf "%s\n" "$_arm_arch" >&6; } |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 6261 | if test "$_arm_arch" = 7; then |
| 6262 | BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" |
| 6263 | LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" |
| 6264 | fi |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 6265 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6266 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 |
| 6267 | printf "%s\n" "not Android" >&6; } |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 6268 | fi |
| 6269 | rm -f conftest.c conftest.out |
| 6270 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6271 | # Check for unsupported systems |
| 6272 | case $ac_sys_system/$ac_sys_release in |
| 6273 | atheos*|Linux*/1*) |
| 6274 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 6275 | echo See README for details. |
| 6276 | exit 1;; |
| 6277 | esac |
| 6278 | |
| 6279 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6280 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
| 6281 | printf %s "checking for --with-suffix... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6282 | |
| 6283 | # Check whether --with-suffix was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6284 | if test ${with_suffix+y} |
| 6285 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6286 | withval=$with_suffix; |
| 6287 | case $withval in |
| 6288 | no) EXEEXT=;; |
| 6289 | yes) EXEEXT=.exe;; |
| 6290 | *) EXEEXT=$withval;; |
| 6291 | esac |
| 6292 | fi |
| 6293 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6294 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
| 6295 | printf "%s\n" "$EXEEXT" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6296 | |
| 6297 | # Test whether we're running on a non-case-sensitive system, in which |
| 6298 | # case we give a warning if no ext is given |
| 6299 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6300 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
| 6301 | printf %s "checking for case-insensitive build directory... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6302 | if test ! -d CaseSensitiveTestDir; then |
| 6303 | mkdir CaseSensitiveTestDir |
| 6304 | fi |
| 6305 | |
| 6306 | if test -d casesensitivetestdir |
| 6307 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6309 | printf "%s\n" "yes" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6310 | BUILDEXEEXT=.exe |
| 6311 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6312 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6313 | printf "%s\n" "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6314 | BUILDEXEEXT=$EXEEXT |
| 6315 | fi |
| 6316 | rmdir CaseSensitiveTestDir |
| 6317 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6318 | case $ac_sys_system in |
| 6319 | hp*|HP*) |
| 6320 | case $CC in |
| 6321 | cc|*/cc) CC="$CC -Ae";; |
| 6322 | esac;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6323 | esac |
| 6324 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6325 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6326 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
| 6327 | printf %s "checking LIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6328 | if test -z "$LIBRARY" |
| 6329 | then |
Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 6330 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6331 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6332 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
| 6333 | printf "%s\n" "$LIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6334 | |
| 6335 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 6336 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 6337 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 6338 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 6339 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 6340 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 6341 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 6342 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 6343 | # |
| 6344 | # RUNSHARED is used to run shared python without installed libraries |
| 6345 | # |
| 6346 | # INSTSONAME is the name of the shared library that will be use to install |
| 6347 | # on the system - some systems like version suffix, others don't |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6348 | # |
| 6349 | # LDVERSION is the shared library version number, normally the Python version |
| 6350 | # with the ABI build flags appended. |
| 6351 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6352 | |
| 6353 | |
| 6354 | |
| 6355 | |
| 6356 | |
| 6357 | |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 6358 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6359 | LDLIBRARY="$LIBRARY" |
| 6360 | BLDLIBRARY='$(LDLIBRARY)' |
| 6361 | INSTSONAME='$(LDLIBRARY)' |
| 6362 | DLLLIBRARY='' |
| 6363 | LDLIBRARYDIR='' |
| 6364 | RUNSHARED='' |
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 6365 | LDVERSION="$VERSION" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6366 | |
| 6367 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 6368 | # If CXX is set, and if it is needed to link a main function that was |
| 6369 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 6370 | # python might then depend on the C++ runtime |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6371 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6372 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
| 6373 | printf %s "checking LINKCC... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6374 | if test -z "$LINKCC" |
| 6375 | then |
| 6376 | LINKCC='$(PURIFY) $(MAINCC)' |
| 6377 | case $ac_sys_system in |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6378 | QNX*) |
| 6379 | # qcc must be used because the other compilers do not |
| 6380 | # support -N. |
| 6381 | LINKCC=qcc;; |
| 6382 | esac |
| 6383 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
| 6385 | printf "%s\n" "$LINKCC" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6386 | |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 6387 | # EXPORTSYMS holds the list of exported symbols for AIX. |
| 6388 | # EXPORTSFROM holds the module name exporting symbols on AIX. |
| 6389 | EXPORTSYMS= |
| 6390 | EXPORTSFROM= |
| 6391 | |
| 6392 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking EXPORTSYMS" >&5 |
| 6394 | printf %s "checking EXPORTSYMS... " >&6; } |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 6395 | case $ac_sys_system in |
| 6396 | AIX*) |
| 6397 | EXPORTSYMS="Modules/python.exp" |
Kevin Adler | c79667f | 2020-11-16 09:16:10 -0600 | [diff] [blame] | 6398 | EXPORTSFROM=. # the main executable |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 6399 | ;; |
| 6400 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXPORTSYMS" >&5 |
| 6402 | printf "%s\n" "$EXPORTSYMS" >&6; } |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 6403 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6404 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 6405 | # make sure we default having it set to "no": this is used by |
| 6406 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 6407 | # to linker command lines, and failing to detect GNU ld simply results |
| 6408 | # in the same bahaviour as before. |
| 6409 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6410 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 6411 | printf %s "checking for GNU ld... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6412 | ac_prog=ld |
| 6413 | if test "$GCC" = yes; then |
| 6414 | ac_prog=`$CC -print-prog-name=ld` |
| 6415 | fi |
| 6416 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 6417 | *GNU*) |
| 6418 | GNULD=yes;; |
| 6419 | *) |
| 6420 | GNULD=no;; |
| 6421 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6422 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
| 6423 | printf "%s\n" "$GNULD" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6424 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6425 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
| 6426 | printf %s "checking for --enable-shared... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6427 | # Check whether --enable-shared was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6428 | if test ${enable_shared+y} |
| 6429 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6430 | enableval=$enable_shared; |
| 6431 | fi |
| 6432 | |
| 6433 | |
| 6434 | if test -z "$enable_shared" |
| 6435 | then |
| 6436 | case $ac_sys_system in |
Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 6437 | CYGWIN*) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6438 | enable_shared="yes";; |
| 6439 | *) |
| 6440 | enable_shared="no";; |
| 6441 | esac |
| 6442 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 6444 | printf "%s\n" "$enable_shared" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6445 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6446 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
| 6447 | printf %s "checking for --enable-profiling... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6448 | # Check whether --enable-profiling was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6449 | if test ${enable_profiling+y} |
| 6450 | then : |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 6451 | enableval=$enable_profiling; |
| 6452 | fi |
| 6453 | |
| 6454 | if test "x$enable_profiling" = xyes; then |
| 6455 | ac_save_cc="$CC" |
Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 6456 | CC="$CC -pg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6458 | /* end confdefs.h. */ |
| 6459 | int main() { return 0; } |
| 6460 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6461 | if ac_fn_c_try_link "$LINENO" |
| 6462 | then : |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 6463 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6464 | else $as_nop |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 6465 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6466 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6467 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 6468 | conftest$ac_exeext conftest.$ac_ext |
| 6469 | CC="$ac_save_cc" |
| 6470 | else |
| 6471 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6472 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6473 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
| 6474 | printf "%s\n" "$enable_profiling" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6475 | |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 6476 | if test "x$enable_profiling" = xyes; then |
| 6477 | BASECFLAGS="-pg $BASECFLAGS" |
| 6478 | LDFLAGS="-pg $LDFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6479 | fi |
| 6480 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6481 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
| 6482 | printf %s "checking LDLIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6483 | |
| 6484 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 6485 | # library that we build, but we do not want to link against it (we |
| 6486 | # will find it with a -framework option). For this reason there is an |
| 6487 | # extra variable BLDLIBRARY against which Python and the extension |
| 6488 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 6489 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 6490 | if test "$enable_framework" |
| 6491 | then |
| 6492 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6493 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6494 | BLDLIBRARY='' |
| 6495 | else |
| 6496 | BLDLIBRARY='$(LDLIBRARY)' |
| 6497 | fi |
| 6498 | |
| 6499 | # Other platforms follow |
| 6500 | if test $enable_shared = "yes"; then |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 6501 | PY_ENABLE_SHARED=1 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6502 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6503 | printf "%s\n" "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6504 | |
| 6505 | case $ac_sys_system in |
| 6506 | CYGWIN*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6507 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
| 6508 | DLLLIBRARY='libpython$(LDVERSION).dll' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6509 | ;; |
| 6510 | SunOS*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6511 | LDLIBRARY='libpython$(LDVERSION).so' |
| 6512 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6513 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6514 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6515 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 6516 | then |
| 6517 | PY3LIBRARY=libpython3.so |
| 6518 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6519 | ;; |
pxinwr | c117426 | 2020-12-15 06:14:43 +0800 | [diff] [blame] | 6520 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6521 | LDLIBRARY='libpython$(LDVERSION).so' |
| 6522 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6523 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6524 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6525 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 6526 | then |
| 6527 | PY3LIBRARY=libpython3.so |
| 6528 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6529 | ;; |
| 6530 | hp*|HP*) |
| 6531 | case `uname -m` in |
| 6532 | ia64) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6533 | LDLIBRARY='libpython$(LDVERSION).so' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6534 | ;; |
| 6535 | *) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6536 | LDLIBRARY='libpython$(LDVERSION).sl' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6537 | ;; |
| 6538 | esac |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6539 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6540 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6541 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6542 | Darwin*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6543 | LDLIBRARY='libpython$(LDVERSION).dylib' |
| 6544 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6545 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6546 | ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6547 | AIX*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6548 | LDLIBRARY='libpython$(LDVERSION).so' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6549 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6550 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6551 | |
| 6552 | esac |
| 6553 | else # shared is disabled |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 6554 | PY_ENABLE_SHARED=0 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6555 | case $ac_sys_system in |
| 6556 | CYGWIN*) |
| 6557 | BLDLIBRARY='$(LIBRARY)' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6558 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6559 | ;; |
| 6560 | esac |
| 6561 | fi |
| 6562 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 6563 | if test "$cross_compiling" = yes; then |
| 6564 | RUNSHARED= |
| 6565 | fi |
| 6566 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6567 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
| 6568 | printf "%s\n" "$LDLIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6569 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6570 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6571 | if test -n "$ac_tool_prefix"; then |
| 6572 | for ac_prog in ar aal |
| 6573 | do |
| 6574 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6575 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6576 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6577 | printf %s "checking for $ac_word... " >&6; } |
| 6578 | if test ${ac_cv_prog_AR+y} |
| 6579 | then : |
| 6580 | printf %s "(cached) " >&6 |
| 6581 | else $as_nop |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6582 | if test -n "$AR"; then |
| 6583 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6584 | else |
| 6585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6586 | for as_dir in $PATH |
| 6587 | do |
| 6588 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6589 | case $as_dir in #((( |
| 6590 | '') as_dir=./ ;; |
| 6591 | */) ;; |
| 6592 | *) as_dir=$as_dir/ ;; |
| 6593 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6594 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6595 | 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] | 6596 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6597 | printf "%s\n" "$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] | 6598 | break 2 |
| 6599 | fi |
| 6600 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6601 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6602 | IFS=$as_save_IFS |
| 6603 | |
| 6604 | fi |
| 6605 | fi |
| 6606 | AR=$ac_cv_prog_AR |
| 6607 | if test -n "$AR"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6608 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6609 | printf "%s\n" "$AR" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6610 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6611 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6612 | printf "%s\n" "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6613 | fi |
| 6614 | |
| 6615 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6616 | test -n "$AR" && break |
| 6617 | done |
| 6618 | fi |
| 6619 | if test -z "$AR"; then |
| 6620 | ac_ct_AR=$AR |
| 6621 | for ac_prog in ar aal |
| 6622 | do |
| 6623 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6624 | set dummy $ac_prog; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6625 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6626 | printf %s "checking for $ac_word... " >&6; } |
| 6627 | if test ${ac_cv_prog_ac_ct_AR+y} |
| 6628 | then : |
| 6629 | printf %s "(cached) " >&6 |
| 6630 | else $as_nop |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6631 | if test -n "$ac_ct_AR"; then |
| 6632 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6633 | else |
| 6634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6635 | for as_dir in $PATH |
| 6636 | do |
| 6637 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6638 | case $as_dir in #((( |
| 6639 | '') as_dir=./ ;; |
| 6640 | */) ;; |
| 6641 | *) as_dir=$as_dir/ ;; |
| 6642 | esac |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6643 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6644 | 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] | 6645 | ac_cv_prog_ac_ct_AR="$ac_prog" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6646 | printf "%s\n" "$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] | 6647 | break 2 |
| 6648 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6649 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6650 | done |
| 6651 | IFS=$as_save_IFS |
| 6652 | |
| 6653 | fi |
| 6654 | fi |
| 6655 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6656 | if test -n "$ac_ct_AR"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6658 | printf "%s\n" "$ac_ct_AR" >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6659 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6660 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6661 | printf "%s\n" "no" >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6662 | fi |
| 6663 | |
| 6664 | |
| 6665 | test -n "$ac_ct_AR" && break |
| 6666 | done |
| 6667 | |
| 6668 | if test "x$ac_ct_AR" = x; then |
| 6669 | AR="ar" |
| 6670 | else |
| 6671 | case $cross_compiling:$ac_tool_warned in |
| 6672 | yes:) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6673 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6674 | printf "%s\n" "$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] | 6675 | ac_tool_warned=yes ;; |
| 6676 | esac |
| 6677 | AR=$ac_ct_AR |
| 6678 | fi |
| 6679 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6680 | |
| 6681 | |
| 6682 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 6683 | |
| 6684 | if test -z "$ARFLAGS" |
| 6685 | then |
Benjamin Peterson | d15108a | 2017-09-29 08:42:41 -0700 | [diff] [blame] | 6686 | ARFLAGS="rcs" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6687 | fi |
| 6688 | |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6689 | if test -n "$ac_tool_prefix"; then |
| 6690 | for ac_prog in readelf |
| 6691 | do |
| 6692 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6693 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6694 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6695 | printf %s "checking for $ac_word... " >&6; } |
| 6696 | if test ${ac_cv_prog_READELF+y} |
| 6697 | then : |
| 6698 | printf %s "(cached) " >&6 |
| 6699 | else $as_nop |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6700 | if test -n "$READELF"; then |
| 6701 | ac_cv_prog_READELF="$READELF" # Let the user override the test. |
| 6702 | else |
| 6703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6704 | for as_dir in $PATH |
| 6705 | do |
| 6706 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6707 | case $as_dir in #((( |
| 6708 | '') as_dir=./ ;; |
| 6709 | */) ;; |
| 6710 | *) as_dir=$as_dir/ ;; |
| 6711 | esac |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6712 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6713 | 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] | 6714 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6715 | printf "%s\n" "$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] | 6716 | break 2 |
| 6717 | fi |
| 6718 | done |
| 6719 | done |
| 6720 | IFS=$as_save_IFS |
| 6721 | |
| 6722 | fi |
| 6723 | fi |
| 6724 | READELF=$ac_cv_prog_READELF |
| 6725 | if test -n "$READELF"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6726 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 |
| 6727 | printf "%s\n" "$READELF" >&6; } |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6728 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6729 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6730 | printf "%s\n" "no" >&6; } |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6731 | fi |
| 6732 | |
| 6733 | |
| 6734 | test -n "$READELF" && break |
| 6735 | done |
| 6736 | fi |
| 6737 | if test -z "$READELF"; then |
| 6738 | ac_ct_READELF=$READELF |
| 6739 | for ac_prog in readelf |
| 6740 | do |
| 6741 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6742 | set dummy $ac_prog; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6744 | printf %s "checking for $ac_word... " >&6; } |
| 6745 | if test ${ac_cv_prog_ac_ct_READELF+y} |
| 6746 | then : |
| 6747 | printf %s "(cached) " >&6 |
| 6748 | else $as_nop |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6749 | if test -n "$ac_ct_READELF"; then |
| 6750 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. |
| 6751 | else |
| 6752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6753 | for as_dir in $PATH |
| 6754 | do |
| 6755 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6756 | case $as_dir in #((( |
| 6757 | '') as_dir=./ ;; |
| 6758 | */) ;; |
| 6759 | *) as_dir=$as_dir/ ;; |
| 6760 | esac |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6761 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6762 | 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] | 6763 | ac_cv_prog_ac_ct_READELF="$ac_prog" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6764 | printf "%s\n" "$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] | 6765 | break 2 |
| 6766 | fi |
| 6767 | done |
| 6768 | done |
| 6769 | IFS=$as_save_IFS |
| 6770 | |
| 6771 | fi |
| 6772 | fi |
| 6773 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF |
| 6774 | if test -n "$ac_ct_READELF"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6775 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 |
| 6776 | printf "%s\n" "$ac_ct_READELF" >&6; } |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6777 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6779 | printf "%s\n" "no" >&6; } |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6780 | fi |
| 6781 | |
| 6782 | |
| 6783 | test -n "$ac_ct_READELF" && break |
| 6784 | done |
| 6785 | |
| 6786 | if test "x$ac_ct_READELF" = x; then |
| 6787 | READELF=":" |
| 6788 | else |
| 6789 | case $cross_compiling:$ac_tool_warned in |
| 6790 | yes:) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6792 | printf "%s\n" "$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] | 6793 | ac_tool_warned=yes ;; |
| 6794 | esac |
| 6795 | READELF=$ac_ct_READELF |
| 6796 | fi |
| 6797 | fi |
| 6798 | |
| 6799 | if test "$cross_compiling" = yes; then |
| 6800 | case "$READELF" in |
| 6801 | readelf|:) |
| 6802 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 |
| 6803 | ;; |
| 6804 | esac |
| 6805 | fi |
| 6806 | |
| 6807 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6808 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6809 | case $MACHDEP in |
Benjamin Peterson | 288d1da | 2017-09-28 22:44:27 -0700 | [diff] [blame] | 6810 | hp*|HP*) |
| 6811 | # install -d does not work on HP-UX |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6812 | if test -z "$INSTALL" |
| 6813 | then |
| 6814 | INSTALL="${srcdir}/install-sh -c" |
| 6815 | fi |
| 6816 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6817 | |
| 6818 | # Find a good install program. We prefer a C program (faster), |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6819 | # so one script is as good as another. But avoid the broken or |
| 6820 | # incompatible versions: |
| 6821 | # SysV /etc/install, /usr/sbin/install |
| 6822 | # SunOS /usr/etc/install |
| 6823 | # IRIX /sbin/install |
| 6824 | # AIX /bin/install |
| 6825 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6826 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6827 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6828 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 6829 | # OS/2's system install, which has a completely different semantic |
| 6830 | # ./install, which can be erroneously created by make from ./install.sh. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6831 | # Reject install programs that cannot install multiple files. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6832 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 6833 | printf %s "checking for a BSD-compatible install... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6834 | if test -z "$INSTALL"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6835 | if test ${ac_cv_path_install+y} |
| 6836 | then : |
| 6837 | printf %s "(cached) " >&6 |
| 6838 | else $as_nop |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6840 | for as_dir in $PATH |
| 6841 | do |
| 6842 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6843 | case $as_dir in #((( |
| 6844 | '') as_dir=./ ;; |
| 6845 | */) ;; |
| 6846 | *) as_dir=$as_dir/ ;; |
| 6847 | esac |
| 6848 | # Account for fact that we put trailing slashes in our PATH walk. |
| 6849 | case $as_dir in #(( |
| 6850 | ./ | /[cC]/* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6851 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6852 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6853 | /usr/ucb/* ) ;; |
| 6854 | *) |
| 6855 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6856 | # Don't use installbsd from OSF since it installs stuff as root |
| 6857 | # by default. |
| 6858 | for ac_prog in ginstall scoinst install; do |
| 6859 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6860 | 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] | 6861 | if test $ac_prog = install && |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6862 | 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] | 6863 | # AIX install. It has an incompatible calling convention. |
| 6864 | : |
| 6865 | elif test $ac_prog = install && |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6866 | 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] | 6867 | # program-specific install script used by HP pwplus--don't use. |
| 6868 | : |
| 6869 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6870 | rm -rf conftest.one conftest.two conftest.dir |
| 6871 | echo one > conftest.one |
| 6872 | echo two > conftest.two |
| 6873 | mkdir conftest.dir |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6874 | 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] | 6875 | test -s conftest.one && test -s conftest.two && |
| 6876 | test -s conftest.dir/conftest.one && |
| 6877 | test -s conftest.dir/conftest.two |
| 6878 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6879 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6880 | break 3 |
| 6881 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6882 | fi |
| 6883 | fi |
| 6884 | done |
| 6885 | done |
| 6886 | ;; |
| 6887 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6888 | |
| 6889 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6890 | IFS=$as_save_IFS |
| 6891 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6892 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6893 | |
| 6894 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6895 | if test ${ac_cv_path_install+y}; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6896 | INSTALL=$ac_cv_path_install |
| 6897 | else |
| 6898 | # As a last resort, use the slow shell script. Don't cache a |
| 6899 | # value for INSTALL within a source directory, because that will |
| 6900 | # break other packages using the cache if that directory is |
| 6901 | # removed, or if the value is a relative name. |
| 6902 | INSTALL=$ac_install_sh |
| 6903 | fi |
| 6904 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6905 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 6906 | printf "%s\n" "$INSTALL" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6907 | |
| 6908 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6909 | # It thinks the first close brace ends the variable substitution. |
| 6910 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6911 | |
| 6912 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 6913 | |
| 6914 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6915 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6916 | |
| 6917 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 |
| 6918 | printf %s "checking for a race-free mkdir -p... " >&6; } |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6919 | if test -z "$MKDIR_P"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6920 | if test ${ac_cv_path_mkdir+y} |
| 6921 | then : |
| 6922 | printf %s "(cached) " >&6 |
| 6923 | else $as_nop |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6925 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 6926 | do |
| 6927 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6928 | case $as_dir in #((( |
| 6929 | '') as_dir=./ ;; |
| 6930 | */) ;; |
| 6931 | *) as_dir=$as_dir/ ;; |
| 6932 | esac |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6933 | for ac_prog in mkdir gmkdir; do |
| 6934 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6935 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
| 6936 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 6937 | 'mkdir ('*'coreutils) '* | \ |
| 6938 | 'BusyBox '* | \ |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6939 | 'mkdir (fileutils) '4.1*) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6940 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6941 | break 3;; |
| 6942 | esac |
| 6943 | done |
| 6944 | done |
| 6945 | done |
| 6946 | IFS=$as_save_IFS |
| 6947 | |
| 6948 | fi |
| 6949 | |
| 6950 | test -d ./--version && rmdir ./--version |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6951 | if test ${ac_cv_path_mkdir+y}; then |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6952 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 6953 | else |
| 6954 | # As a last resort, use the slow shell script. Don't cache a |
| 6955 | # value for MKDIR_P within a source directory, because that will |
| 6956 | # break other packages using the cache if that directory is |
| 6957 | # removed, or if the value is a relative name. |
| 6958 | MKDIR_P="$ac_install_sh -d" |
| 6959 | fi |
| 6960 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6961 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 6962 | printf "%s\n" "$MKDIR_P" >&6; } |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6963 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6964 | |
| 6965 | # Not every filesystem supports hard links |
| 6966 | |
| 6967 | if test -z "$LN" ; then |
| 6968 | case $ac_sys_system in |
| 6969 | CYGWIN*) LN="ln -s";; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6970 | *) LN=ln;; |
| 6971 | esac |
| 6972 | fi |
| 6973 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6974 | # For calculating the .so ABI tag. |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6975 | |
| 6976 | ABIFLAGS="" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6977 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6978 | # Check for --with-pydebug |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6979 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
| 6980 | printf %s "checking for --with-pydebug... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6981 | |
| 6982 | # Check whether --with-pydebug was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6983 | if test ${with_pydebug+y} |
| 6984 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6985 | withval=$with_pydebug; |
| 6986 | if test "$withval" != no |
| 6987 | then |
| 6988 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6989 | printf "%s\n" "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6990 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6992 | printf "%s\n" "yes" >&6; }; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6993 | Py_DEBUG='true' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6994 | ABIFLAGS="${ABIFLAGS}d" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6995 | else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6996 | printf "%s\n" "no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6997 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 6998 | else $as_nop |
| 6999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7000 | printf "%s\n" "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7001 | fi |
| 7002 | |
| 7003 | |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 7004 | # Check for --with-trace-refs |
| 7005 | # --with-trace-refs |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5 |
| 7007 | printf %s "checking for --with-trace-refs... " >&6; } |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 7008 | |
| 7009 | # Check whether --with-trace-refs was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7010 | if test ${with_trace_refs+y} |
| 7011 | then : |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 7012 | withval=$with_trace_refs; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7013 | else $as_nop |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 7014 | with_trace_refs=no |
| 7015 | fi |
| 7016 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5 |
| 7018 | printf "%s\n" "$with_trace_refs" >&6; } |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 7019 | |
| 7020 | if test "$with_trace_refs" = "yes" |
| 7021 | then |
| 7022 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7023 | printf "%s\n" "#define Py_TRACE_REFS 1" >>confdefs.h |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 7024 | |
| 7025 | fi |
| 7026 | |
| 7027 | # Check for --with-assertions. |
| 7028 | # This allows enabling assertions without Py_DEBUG. |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 7029 | assertions='false' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7030 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 |
| 7031 | printf %s "checking for --with-assertions... " >&6; } |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 7032 | |
| 7033 | # Check whether --with-assertions was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7034 | if test ${with_assertions+y} |
| 7035 | then : |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 7036 | withval=$with_assertions; |
| 7037 | if test "$withval" != no |
| 7038 | then |
| 7039 | assertions='true' |
| 7040 | fi |
| 7041 | fi |
| 7042 | |
| 7043 | if test "$assertions" = 'true'; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7044 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7045 | printf "%s\n" "yes" >&6; } |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 7046 | elif test "$Py_DEBUG" = 'true'; then |
| 7047 | assertions='true' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 |
| 7049 | printf "%s\n" "implied by --with-pydebug" >&6; } |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 7050 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7051 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7052 | printf "%s\n" "no" >&6; } |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 7053 | fi |
| 7054 | |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 7055 | # Enable optimization flags |
| 7056 | |
| 7057 | |
| 7058 | Py_OPT='false' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 |
| 7060 | printf %s "checking for --enable-optimizations... " >&6; } |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 7061 | # Check whether --enable-optimizations was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7062 | if test ${enable_optimizations+y} |
| 7063 | then : |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 7064 | enableval=$enable_optimizations; |
Alex Wang | 8cea592 | 2017-03-28 08:50:51 -0400 | [diff] [blame] | 7065 | if test "$enableval" != no |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 7066 | then |
| 7067 | Py_OPT='true' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7068 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7069 | printf "%s\n" "yes" >&6; }; |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 7070 | else |
| 7071 | Py_OPT='false' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7072 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7073 | printf "%s\n" "no" >&6; }; |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 7074 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7075 | else $as_nop |
| 7076 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7077 | printf "%s\n" "no" >&6; } |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 7078 | fi |
| 7079 | |
| 7080 | if test "$Py_OPT" = 'true' ; then |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 7081 | # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not |
| 7082 | # 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] | 7083 | # 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] | 7084 | # who want LTO need to use --with-lto themselves. |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 7085 | DEF_MAKE_ALL_RULE="profile-opt" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7086 | REQUIRE_PGO="yes" |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 7087 | DEF_MAKE_RULE="build_all" |
Pablo Galindo | b451b0e | 2020-10-21 22:46:52 +0100 | [diff] [blame] | 7088 | case $CC in |
| 7089 | *gcc*) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-semantic-interposition" >&5 |
| 7091 | printf %s "checking whether C compiler accepts -fno-semantic-interposition... " >&6; } |
| 7092 | if test ${ax_cv_check_cflags___fno_semantic_interposition+y} |
| 7093 | then : |
| 7094 | printf %s "(cached) " >&6 |
| 7095 | else $as_nop |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 7096 | |
| 7097 | ax_check_save_flags=$CFLAGS |
| 7098 | CFLAGS="$CFLAGS -fno-semantic-interposition" |
| 7099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7100 | /* end confdefs.h. */ |
| 7101 | |
| 7102 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7103 | main (void) |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 7104 | { |
| 7105 | |
| 7106 | ; |
| 7107 | return 0; |
| 7108 | } |
| 7109 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7110 | if ac_fn_c_try_compile "$LINENO" |
| 7111 | then : |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 7112 | ax_cv_check_cflags___fno_semantic_interposition=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7113 | else $as_nop |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 7114 | ax_cv_check_cflags___fno_semantic_interposition=no |
| 7115 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7116 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 7117 | CFLAGS=$ax_check_save_flags |
| 7118 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7119 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_semantic_interposition" >&5 |
| 7120 | printf "%s\n" "$ax_cv_check_cflags___fno_semantic_interposition" >&6; } |
| 7121 | if test "x$ax_cv_check_cflags___fno_semantic_interposition" = xyes |
| 7122 | then : |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 7123 | |
Pablo Galindo | b451b0e | 2020-10-21 22:46:52 +0100 | [diff] [blame] | 7124 | CFLAGS_NODIST="$CFLAGS_NODIST -fno-semantic-interposition" |
| 7125 | LDFLAGS_NODIST="$LDFLAGS_NODIST -fno-semantic-interposition" |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 7126 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7127 | else $as_nop |
Petr Viktorin | c6d7e82 | 2020-10-22 18:11:53 +0200 | [diff] [blame] | 7128 | : |
| 7129 | fi |
| 7130 | |
Pablo Galindo | b451b0e | 2020-10-21 22:46:52 +0100 | [diff] [blame] | 7131 | ;; |
| 7132 | esac |
| 7133 | |
| 7134 | |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 7135 | else |
| 7136 | DEF_MAKE_ALL_RULE="build_all" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7137 | REQUIRE_PGO="no" |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 7138 | DEF_MAKE_RULE="all" |
| 7139 | fi |
| 7140 | |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 7141 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7142 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5 |
| 7143 | printf %s "checking PROFILE_TASK... " >&6; } |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 7144 | if test -z "$PROFILE_TASK" |
| 7145 | then |
Victor Stinner | 6790005 | 2021-01-27 11:16:15 +0100 | [diff] [blame] | 7146 | PROFILE_TASK='-m test --pgo --timeout=$(TESTTIMEOUT)' |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 7147 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7148 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5 |
| 7149 | printf "%s\n" "$PROFILE_TASK" >&6; } |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 7150 | |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7151 | # Make llvm-relatec checks work on systems where llvm tools are not installed with their |
| 7152 | # normal names in the default $PATH (ie: Ubuntu). They exist under the |
| 7153 | # non-suffixed name in their versioned llvm directory. |
| 7154 | |
| 7155 | llvm_bin_dir='' |
| 7156 | llvm_path="${PATH}" |
| 7157 | if test "${CC}" = "clang" |
| 7158 | then |
| 7159 | clang_bin=`which clang` |
| 7160 | # Some systems install clang elsewhere as a symlink to the real path |
| 7161 | # which is where the related llvm tools are located. |
| 7162 | if test -L "${clang_bin}" |
| 7163 | then |
| 7164 | clang_dir=`dirname "${clang_bin}"` |
| 7165 | clang_bin=`readlink "${clang_bin}"` |
| 7166 | llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` |
| 7167 | llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" |
| 7168 | fi |
| 7169 | fi |
| 7170 | |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 7171 | # Enable LTO flags |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7172 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 |
| 7173 | printf %s "checking for --with-lto... " >&6; } |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 7174 | |
| 7175 | # Check whether --with-lto was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7176 | if test ${with_lto+y} |
| 7177 | then : |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 7178 | withval=$with_lto; |
| 7179 | if test "$withval" != no |
| 7180 | then |
| 7181 | Py_LTO='true' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7183 | printf "%s\n" "yes" >&6; }; |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 7184 | else |
| 7185 | Py_LTO='false' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7186 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7187 | printf "%s\n" "no" >&6; }; |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 7188 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7189 | else $as_nop |
| 7190 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7191 | printf "%s\n" "no" >&6; } |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 7192 | fi |
| 7193 | |
| 7194 | if test "$Py_LTO" = 'true' ; then |
| 7195 | case $CC in |
| 7196 | *clang*) |
Victor Stinner | 06fe77a | 2018-06-19 18:24:58 +0200 | [diff] [blame] | 7197 | |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7198 | if test -n "$ac_tool_prefix"; then |
| 7199 | # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args. |
| 7200 | set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7202 | printf %s "checking for $ac_word... " >&6; } |
| 7203 | if test ${ac_cv_path_LLVM_AR+y} |
| 7204 | then : |
| 7205 | printf %s "(cached) " >&6 |
| 7206 | else $as_nop |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7207 | case $LLVM_AR in |
| 7208 | [\\/]* | ?:[\\/]*) |
| 7209 | ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path. |
| 7210 | ;; |
| 7211 | *) |
| 7212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7213 | for as_dir in ${llvm_path} |
| 7214 | do |
| 7215 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7216 | case $as_dir in #((( |
| 7217 | '') as_dir=./ ;; |
| 7218 | */) ;; |
| 7219 | *) as_dir=$as_dir/ ;; |
| 7220 | esac |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7221 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7222 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7223 | ac_cv_path_LLVM_AR="$as_dir$ac_word$ac_exec_ext" |
| 7224 | printf "%s\n" "$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] | 7225 | break 2 |
| 7226 | fi |
| 7227 | done |
| 7228 | done |
| 7229 | IFS=$as_save_IFS |
| 7230 | |
| 7231 | ;; |
| 7232 | esac |
| 7233 | fi |
| 7234 | LLVM_AR=$ac_cv_path_LLVM_AR |
| 7235 | if test -n "$LLVM_AR"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7236 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5 |
| 7237 | printf "%s\n" "$LLVM_AR" >&6; } |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7238 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7240 | printf "%s\n" "no" >&6; } |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7241 | fi |
| 7242 | |
| 7243 | |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7244 | fi |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7245 | if test -z "$ac_cv_path_LLVM_AR"; then |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7246 | ac_pt_LLVM_AR=$LLVM_AR |
| 7247 | # 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] | 7248 | set dummy llvm-ar; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7250 | printf %s "checking for $ac_word... " >&6; } |
| 7251 | if test ${ac_cv_path_ac_pt_LLVM_AR+y} |
| 7252 | then : |
| 7253 | printf %s "(cached) " >&6 |
| 7254 | else $as_nop |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7255 | case $ac_pt_LLVM_AR in |
| 7256 | [\\/]* | ?:[\\/]*) |
| 7257 | ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path. |
| 7258 | ;; |
| 7259 | *) |
| 7260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7261 | for as_dir in ${llvm_path} |
| 7262 | do |
| 7263 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7264 | case $as_dir in #((( |
| 7265 | '') as_dir=./ ;; |
| 7266 | */) ;; |
| 7267 | *) as_dir=$as_dir/ ;; |
| 7268 | esac |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7269 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7270 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7271 | ac_cv_path_ac_pt_LLVM_AR="$as_dir$ac_word$ac_exec_ext" |
| 7272 | printf "%s\n" "$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] | 7273 | break 2 |
| 7274 | fi |
| 7275 | done |
| 7276 | done |
| 7277 | IFS=$as_save_IFS |
| 7278 | |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7279 | ;; |
| 7280 | esac |
| 7281 | fi |
| 7282 | ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR |
| 7283 | if test -n "$ac_pt_LLVM_AR"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5 |
| 7285 | printf "%s\n" "$ac_pt_LLVM_AR" >&6; } |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7286 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7287 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7288 | printf "%s\n" "no" >&6; } |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7289 | fi |
| 7290 | |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7291 | if test "x$ac_pt_LLVM_AR" = x; then |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7292 | LLVM_AR="''" |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7293 | else |
| 7294 | case $cross_compiling:$ac_tool_warned in |
| 7295 | yes:) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7296 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7297 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7298 | ac_tool_warned=yes ;; |
| 7299 | esac |
| 7300 | LLVM_AR=$ac_pt_LLVM_AR |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7301 | fi |
| 7302 | else |
| 7303 | LLVM_AR="$ac_cv_path_LLVM_AR" |
| 7304 | fi |
| 7305 | |
| 7306 | |
| 7307 | if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" |
| 7308 | then |
| 7309 | LLVM_AR_FOUND="found" |
| 7310 | else |
| 7311 | LLVM_AR_FOUND="not-found" |
| 7312 | fi |
| 7313 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found" |
| 7314 | then |
| 7315 | found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null` |
| 7316 | if test -n "${found_llvm_ar}" |
| 7317 | then |
| 7318 | LLVM_AR='/usr/bin/xcrun llvm-ar' |
| 7319 | LLVM_AR_FOUND=found |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7320 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5 |
| 7321 | printf "%s\n" "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7322 | fi |
| 7323 | fi |
| 7324 | if test $LLVM_AR_FOUND = not-found |
| 7325 | then |
| 7326 | LLVM_PROFR_ERR=yes |
| 7327 | as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5 |
| 7328 | else |
| 7329 | LLVM_AR_ERR=no |
| 7330 | fi |
| 7331 | AR="${LLVM_AR}" |
| 7332 | case $ac_sys_system in |
| 7333 | Darwin*) |
| 7334 | # Any changes made here should be reflected in the GCC+Darwin case below |
| 7335 | LTOFLAGS="-flto -Wl,-export_dynamic" |
| 7336 | ;; |
| 7337 | *) |
| 7338 | LTOFLAGS="-flto" |
| 7339 | ;; |
| 7340 | esac |
| 7341 | ;; |
| 7342 | *gcc*) |
| 7343 | case $ac_sys_system in |
| 7344 | Darwin*) |
| 7345 | LTOFLAGS="-flto -Wl,-export_dynamic" |
| 7346 | ;; |
| 7347 | *) |
| 7348 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" |
| 7349 | ;; |
| 7350 | esac |
| 7351 | ;; |
| 7352 | esac |
| 7353 | |
| 7354 | if test "$ac_cv_prog_cc_g" = "yes" |
| 7355 | then |
| 7356 | # bpo-30345: Add -g to LDFLAGS when compiling with LTO |
| 7357 | # to get debug symbols. |
| 7358 | LTOFLAGS="$LTOFLAGS -g" |
| 7359 | fi |
| 7360 | |
stratakis | f92c7aa | 2018-12-04 15:54:01 +0100 | [diff] [blame] | 7361 | CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS" |
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 7362 | LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7363 | fi |
| 7364 | |
| 7365 | # Enable PGO flags. |
| 7366 | |
| 7367 | |
| 7368 | |
| 7369 | |
| 7370 | |
| 7371 | |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7372 | if test -n "$ac_tool_prefix"; then |
| 7373 | # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args. |
| 7374 | set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7376 | printf %s "checking for $ac_word... " >&6; } |
| 7377 | if test ${ac_cv_path_LLVM_PROFDATA+y} |
| 7378 | then : |
| 7379 | printf %s "(cached) " >&6 |
| 7380 | else $as_nop |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7381 | case $LLVM_PROFDATA in |
| 7382 | [\\/]* | ?:[\\/]*) |
| 7383 | ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. |
| 7384 | ;; |
| 7385 | *) |
| 7386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7387 | for as_dir in ${llvm_path} |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7388 | do |
| 7389 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7390 | case $as_dir in #((( |
| 7391 | '') as_dir=./ ;; |
| 7392 | */) ;; |
| 7393 | *) as_dir=$as_dir/ ;; |
| 7394 | esac |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7395 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7396 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7397 | ac_cv_path_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext" |
| 7398 | printf "%s\n" "$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] | 7399 | break 2 |
| 7400 | fi |
| 7401 | done |
| 7402 | done |
| 7403 | IFS=$as_save_IFS |
| 7404 | |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7405 | ;; |
| 7406 | esac |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7407 | fi |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7408 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA |
| 7409 | if test -n "$LLVM_PROFDATA"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7410 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 |
| 7411 | printf "%s\n" "$LLVM_PROFDATA" >&6; } |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7412 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7413 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7414 | printf "%s\n" "no" >&6; } |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7415 | fi |
| 7416 | |
| 7417 | |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7418 | fi |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7419 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7420 | ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA |
| 7421 | # 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] | 7422 | set dummy llvm-profdata; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7424 | printf %s "checking for $ac_word... " >&6; } |
| 7425 | if test ${ac_cv_path_ac_pt_LLVM_PROFDATA+y} |
| 7426 | then : |
| 7427 | printf %s "(cached) " >&6 |
| 7428 | else $as_nop |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7429 | case $ac_pt_LLVM_PROFDATA in |
| 7430 | [\\/]* | ?:[\\/]*) |
| 7431 | ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. |
| 7432 | ;; |
| 7433 | *) |
| 7434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7435 | for as_dir in ${llvm_path} |
| 7436 | do |
| 7437 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7438 | case $as_dir in #((( |
| 7439 | '') as_dir=./ ;; |
| 7440 | */) ;; |
| 7441 | *) as_dir=$as_dir/ ;; |
| 7442 | esac |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7443 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7444 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7445 | ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext" |
| 7446 | printf "%s\n" "$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] | 7447 | break 2 |
| 7448 | fi |
| 7449 | done |
| 7450 | done |
| 7451 | IFS=$as_save_IFS |
| 7452 | |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7453 | ;; |
| 7454 | esac |
| 7455 | fi |
| 7456 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA |
| 7457 | if test -n "$ac_pt_LLVM_PROFDATA"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 |
| 7459 | printf "%s\n" "$ac_pt_LLVM_PROFDATA" >&6; } |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7460 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7461 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7462 | printf "%s\n" "no" >&6; } |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7463 | fi |
| 7464 | |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7465 | if test "x$ac_pt_LLVM_PROFDATA" = x; then |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7466 | LLVM_PROFDATA="''" |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7467 | else |
| 7468 | case $cross_compiling:$ac_tool_warned in |
| 7469 | yes:) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7470 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7471 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7472 | ac_tool_warned=yes ;; |
| 7473 | esac |
| 7474 | LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7475 | fi |
| 7476 | else |
| 7477 | LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" |
| 7478 | fi |
| 7479 | |
| 7480 | |
| 7481 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" |
| 7482 | then |
| 7483 | LLVM_PROF_FOUND="found" |
| 7484 | else |
| 7485 | LLVM_PROF_FOUND="not-found" |
| 7486 | fi |
| 7487 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" |
| 7488 | then |
| 7489 | found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` |
| 7490 | if test -n "${found_llvm_profdata}" |
| 7491 | then |
| 7492 | # llvm-profdata isn't directly in $PATH in some cases. |
| 7493 | # https://apple.stackexchange.com/questions/197053/ |
| 7494 | LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' |
| 7495 | LLVM_PROF_FOUND=found |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7496 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 |
| 7497 | printf "%s\n" "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7498 | fi |
| 7499 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7500 | LLVM_PROF_ERR=no |
| 7501 | case $CC in |
| 7502 | *clang*) |
| 7503 | # Any changes made here should be reflected in the GCC+Darwin case below |
| 7504 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" |
| 7505 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7506 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7507 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
| 7508 | if test $LLVM_PROF_FOUND = not-found |
| 7509 | then |
| 7510 | LLVM_PROF_ERR=yes |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7511 | if test "${REQUIRE_PGO}" = "yes" |
| 7512 | then |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 7513 | 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] | 7514 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7515 | fi |
| 7516 | ;; |
| 7517 | *gcc*) |
| 7518 | case $ac_sys_system in |
| 7519 | Darwin*) |
| 7520 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" |
| 7521 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7522 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7523 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7524 | if test "${LLVM_PROF_FOUND}" = "not-found" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7525 | then |
| 7526 | LLVM_PROF_ERR=yes |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7527 | if test "${REQUIRE_PGO}" = "yes" |
| 7528 | then |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 7529 | 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] | 7530 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7531 | fi |
| 7532 | ;; |
| 7533 | *) |
| 7534 | PGO_PROF_GEN_FLAG="-fprofile-generate" |
| 7535 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" |
| 7536 | LLVM_PROF_MERGER="true" |
| 7537 | LLVM_PROF_FILE="" |
| 7538 | ;; |
| 7539 | esac |
| 7540 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7541 | *icc*) |
| 7542 | PGO_PROF_GEN_FLAG="-prof-gen" |
| 7543 | PGO_PROF_USE_FLAG="-prof-use" |
| 7544 | LLVM_PROF_MERGER="true" |
| 7545 | LLVM_PROF_FILE="" |
| 7546 | ;; |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7547 | esac |
| 7548 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7549 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 7550 | # merged with this chunk of code? |
| 7551 | |
| 7552 | # Optimizer/debugger flags |
| 7553 | # ------------------------ |
| 7554 | # (The following bit of code is complicated enough - please keep things |
| 7555 | # indented properly. Just pretend you're editing Python code. ;-) |
| 7556 | |
| 7557 | # There are two parallel sets of case statements below, one that checks to |
| 7558 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 7559 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 7560 | # user set OPT. |
| 7561 | |
Victor Stinner | 23a683a | 2019-04-12 21:27:37 +0200 | [diff] [blame] | 7562 | case $CC in |
| 7563 | *clang*) |
| 7564 | cc_is_clang=1 |
| 7565 | ;; |
| 7566 | *) |
| 7567 | if $CC --version 2>&1 | grep -q clang |
| 7568 | then |
| 7569 | cc_is_clang=1 |
| 7570 | else |
| 7571 | cc_is_clang= |
| 7572 | fi |
| 7573 | esac |
| 7574 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7575 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 7576 | # it on the command line |
| 7577 | |
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 7578 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 7579 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7580 | then |
| 7581 | case $GCC in |
| 7582 | yes) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7583 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 7584 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 7585 | WRAP="-fwrapv" |
| 7586 | fi |
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 7587 | |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 7588 | if test -n "${cc_is_clang}" |
| 7589 | then |
| 7590 | # Clang also needs -fwrapv |
| 7591 | WRAP="-fwrapv" |
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 7592 | # bpo-30104: disable strict aliasing to compile correctly dtoa.c, |
| 7593 | # see Makefile.pre.in for more information |
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 7594 | CFLAGS_ALIASING="-fno-strict-aliasing" |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 7595 | fi |
| 7596 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7597 | case $ac_cv_prog_cc_g in |
| 7598 | yes) |
| 7599 | if test "$Py_DEBUG" = 'true' ; then |
| 7600 | # Optimization messes up debuggers, so turn it off for |
| 7601 | # debug builds. |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 7602 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 7603 | OPT="-g -Og -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 7604 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 7605 | OPT="-g -O0 -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 7606 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7607 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 7608 | OPT="-g $WRAP -O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7609 | fi |
| 7610 | ;; |
| 7611 | *) |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 7612 | OPT="-O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7613 | ;; |
| 7614 | esac |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 7615 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7616 | case $ac_sys_system in |
| 7617 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 7618 | ;; |
| 7619 | esac |
| 7620 | ;; |
| 7621 | |
| 7622 | *) |
| 7623 | OPT="-O" |
| 7624 | ;; |
| 7625 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7626 | fi |
| 7627 | |
| 7628 | |
| 7629 | |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 7630 | |
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 7631 | |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 7632 | # The -arch flags for universal builds on macOS |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7633 | UNIVERSAL_ARCH_FLAGS= |
| 7634 | |
| 7635 | |
| 7636 | # tweak BASECFLAGS based on compiler and platform |
| 7637 | case $GCC in |
| 7638 | yes) |
Benjamin Peterson | 050af5d | 2016-09-10 17:53:13 -0700 | [diff] [blame] | 7639 | CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" |
Benjamin Peterson | d170256 | 2016-09-07 12:00:06 -0700 | [diff] [blame] | 7640 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7641 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 |
| 7642 | printf %s "checking for -Wextra... " >&6; } |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7643 | ac_save_cc="$CC" |
| 7644 | CC="$CC -Wextra -Werror" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7645 | if test ${ac_cv_extra_warnings+y} |
| 7646 | then : |
| 7647 | printf %s "(cached) " >&6 |
| 7648 | else $as_nop |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7650 | /* end confdefs.h. */ |
| 7651 | |
| 7652 | |
| 7653 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7654 | main (void) |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7655 | { |
| 7656 | |
| 7657 | ; |
| 7658 | return 0; |
| 7659 | } |
| 7660 | |
| 7661 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7662 | if ac_fn_c_try_compile "$LINENO" |
| 7663 | then : |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7664 | |
| 7665 | ac_cv_extra_warnings=yes |
| 7666 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7667 | else $as_nop |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7668 | |
| 7669 | ac_cv_extra_warnings=no |
| 7670 | |
| 7671 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7672 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7673 | fi |
| 7674 | |
| 7675 | CC="$ac_save_cc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 |
| 7677 | printf "%s\n" "$ac_cv_extra_warnings" >&6; } |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7678 | |
| 7679 | if test $ac_cv_extra_warnings = yes |
| 7680 | then |
| 7681 | CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" |
| 7682 | fi |
| 7683 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7684 | # Python doesn't violate C99 aliasing rules, but older versions of |
| 7685 | # GCC produce warnings for legal Python code. Enable |
| 7686 | # -fno-strict-aliasing on versions of GCC that support but produce |
| 7687 | # warnings. See Issue3326 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7688 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
| 7689 | printf %s "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7690 | ac_save_cc="$CC" |
| 7691 | CC="$CC -fno-strict-aliasing" |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7692 | save_CFLAGS="$CFLAGS" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7693 | if test ${ac_cv_no_strict_aliasing+y} |
| 7694 | then : |
| 7695 | printf %s "(cached) " >&6 |
| 7696 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7698 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7699 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7700 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7701 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7702 | main (void) |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7703 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7704 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7705 | ; |
| 7706 | return 0; |
| 7707 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7708 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7709 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7710 | if ac_fn_c_try_compile "$LINENO" |
| 7711 | then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7712 | |
| 7713 | CC="$ac_save_cc -fstrict-aliasing" |
| 7714 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" |
| 7715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7716 | /* end confdefs.h. */ |
| 7717 | |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7718 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7719 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7720 | main (void) |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7721 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7722 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7723 | ; |
| 7724 | return 0; |
| 7725 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7726 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7727 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7728 | if ac_fn_c_try_compile "$LINENO" |
| 7729 | then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7730 | |
| 7731 | ac_cv_no_strict_aliasing=no |
| 7732 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7733 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7734 | |
| 7735 | ac_cv_no_strict_aliasing=yes |
| 7736 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7737 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7738 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7739 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7740 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7741 | |
| 7742 | ac_cv_no_strict_aliasing=no |
| 7743 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7744 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7745 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7746 | fi |
| 7747 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7748 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7749 | CC="$ac_save_cc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7750 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
| 7751 | printf "%s\n" "$ac_cv_no_strict_aliasing" >&6; } |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7752 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7753 | then |
| 7754 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 7755 | fi |
| 7756 | |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7757 | # ICC doesn't recognize the option, but only emits a warning |
| 7758 | ## XXX does it emit an unused result warning and can it be disabled? |
| 7759 | case "$CC" in |
| 7760 | *icc*) |
| 7761 | ac_cv_disable_unused_result_warning=no |
| 7762 | ;; |
| 7763 | *) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 |
| 7765 | printf %s "checking if we can turn off $CC unused result warning... " >&6; } |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7766 | ac_save_cc="$CC" |
| 7767 | CC="$CC -Wunused-result -Werror" |
| 7768 | save_CFLAGS="$CFLAGS" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7769 | if test ${ac_cv_disable_unused_result_warning+y} |
| 7770 | then : |
| 7771 | printf %s "(cached) " >&6 |
| 7772 | else $as_nop |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7774 | /* end confdefs.h. */ |
| 7775 | |
| 7776 | |
| 7777 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7778 | main (void) |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7779 | { |
| 7780 | |
| 7781 | ; |
| 7782 | return 0; |
| 7783 | } |
| 7784 | |
| 7785 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7786 | if ac_fn_c_try_compile "$LINENO" |
| 7787 | then : |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7788 | |
| 7789 | ac_cv_disable_unused_result_warning=yes |
| 7790 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7791 | else $as_nop |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7792 | |
| 7793 | ac_cv_disable_unused_result_warning=no |
| 7794 | |
| 7795 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7796 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7797 | fi |
| 7798 | |
| 7799 | CFLAGS="$save_CFLAGS" |
| 7800 | CC="$ac_save_cc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7801 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 |
| 7802 | printf "%s\n" "$ac_cv_disable_unused_result_warning" >&6; } |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7803 | ;; |
| 7804 | esac |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7805 | |
| 7806 | if test $ac_cv_disable_unused_result_warning = yes |
| 7807 | then |
| 7808 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7809 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" |
| 7810 | fi |
| 7811 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7812 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 |
| 7813 | printf %s "checking if we can turn off $CC unused parameter warning... " >&6; } |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7814 | ac_save_cc="$CC" |
| 7815 | CC="$CC -Wunused-parameter -Werror" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7816 | if test ${ac_cv_disable_unused_parameter_warning+y} |
| 7817 | then : |
| 7818 | printf %s "(cached) " >&6 |
| 7819 | else $as_nop |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7821 | /* end confdefs.h. */ |
| 7822 | |
| 7823 | |
| 7824 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7825 | main (void) |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7826 | { |
| 7827 | |
| 7828 | ; |
| 7829 | return 0; |
| 7830 | } |
| 7831 | |
| 7832 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7833 | if ac_fn_c_try_compile "$LINENO" |
| 7834 | then : |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7835 | |
| 7836 | ac_cv_disable_unused_parameter_warning=yes |
| 7837 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7838 | else $as_nop |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7839 | |
| 7840 | ac_cv_disable_unused_parameter_warning=no |
| 7841 | |
| 7842 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7843 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7844 | fi |
| 7845 | |
| 7846 | CC="$ac_save_cc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7847 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 |
| 7848 | printf "%s\n" "$ac_cv_disable_unused_parameter_warning" >&6; } |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7849 | |
| 7850 | if test $ac_cv_disable_unused_parameter_warning = yes |
| 7851 | then |
| 7852 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" |
| 7853 | fi |
| 7854 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 |
| 7856 | printf %s "checking if we can turn off $CC missing field initializers warning... " >&6; } |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7857 | ac_save_cc="$CC" |
| 7858 | CC="$CC -Wmissing-field-initializers -Werror" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7859 | if test ${ac_cv_disable_missing_field_initializers+y} |
| 7860 | then : |
| 7861 | printf %s "(cached) " >&6 |
| 7862 | else $as_nop |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7864 | /* end confdefs.h. */ |
| 7865 | |
| 7866 | |
| 7867 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7868 | main (void) |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7869 | { |
| 7870 | |
| 7871 | ; |
| 7872 | return 0; |
| 7873 | } |
| 7874 | |
| 7875 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7876 | if ac_fn_c_try_compile "$LINENO" |
| 7877 | then : |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7878 | |
| 7879 | ac_cv_disable_missing_field_initializers=yes |
| 7880 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7881 | else $as_nop |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7882 | |
| 7883 | ac_cv_disable_missing_field_initializers=no |
| 7884 | |
| 7885 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7886 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7887 | fi |
| 7888 | |
| 7889 | CC="$ac_save_cc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 |
| 7891 | printf "%s\n" "$ac_cv_disable_missing_field_initializers" >&6; } |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7892 | |
| 7893 | if test $ac_cv_disable_missing_field_initializers = yes |
| 7894 | then |
| 7895 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7896 | fi |
| 7897 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7898 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 |
| 7899 | printf %s "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] | 7900 | ac_save_cc="$CC" |
| 7901 | CC="$CC -Wsign-compare" |
| 7902 | save_CFLAGS="$CFLAGS" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7903 | if test ${ac_cv_enable_sign_compare_warning+y} |
| 7904 | then : |
| 7905 | printf %s "(cached) " >&6 |
| 7906 | else $as_nop |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7908 | /* end confdefs.h. */ |
| 7909 | |
| 7910 | |
| 7911 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7912 | main (void) |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7913 | { |
| 7914 | |
| 7915 | ; |
| 7916 | return 0; |
| 7917 | } |
| 7918 | |
| 7919 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7920 | if ac_fn_c_try_compile "$LINENO" |
| 7921 | then : |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7922 | |
| 7923 | ac_cv_enable_sign_compare_warning=yes |
| 7924 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7925 | else $as_nop |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7926 | |
| 7927 | ac_cv_enable_sign_compare_warning=no |
| 7928 | |
| 7929 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7930 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7931 | fi |
| 7932 | |
| 7933 | CFLAGS="$save_CFLAGS" |
| 7934 | CC="$ac_save_cc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 |
| 7936 | printf "%s\n" "$ac_cv_enable_sign_compare_warning" >&6; } |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7937 | |
| 7938 | if test $ac_cv_enable_sign_compare_warning = yes |
| 7939 | then |
| 7940 | BASECFLAGS="$BASECFLAGS -Wsign-compare" |
| 7941 | fi |
| 7942 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7943 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 |
| 7944 | printf %s "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] | 7945 | ac_save_cc="$CC" |
| 7946 | CC="$CC -Wunreachable-code" |
| 7947 | save_CFLAGS="$CFLAGS" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7948 | if test ${ac_cv_enable_unreachable_code_warning+y} |
| 7949 | then : |
| 7950 | printf %s "(cached) " >&6 |
| 7951 | else $as_nop |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7953 | /* end confdefs.h. */ |
| 7954 | |
| 7955 | |
| 7956 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7957 | main (void) |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7958 | { |
| 7959 | |
| 7960 | ; |
| 7961 | return 0; |
| 7962 | } |
| 7963 | |
| 7964 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7965 | if ac_fn_c_try_compile "$LINENO" |
| 7966 | then : |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7967 | |
| 7968 | ac_cv_enable_unreachable_code_warning=yes |
| 7969 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7970 | else $as_nop |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7971 | |
| 7972 | ac_cv_enable_unreachable_code_warning=no |
| 7973 | |
| 7974 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7975 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7976 | fi |
| 7977 | |
| 7978 | CFLAGS="$save_CFLAGS" |
| 7979 | CC="$ac_save_cc" |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7980 | |
| 7981 | # Don't enable unreachable code warning in debug mode, since it usually |
| 7982 | # results in non-standard code paths. |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7983 | # Issue #24324: Unfortunately, the unreachable code warning does not work |
| 7984 | # correctly on gcc and has been silently removed from the compiler. |
| 7985 | # It is supported on clang but on OS X systems gcc may be an alias |
| 7986 | # for clang. Try to determine if the compiler is not really gcc and, |
| 7987 | # if so, only then enable the warning. |
| 7988 | if test $ac_cv_enable_unreachable_code_warning = yes && \ |
| 7989 | test "$Py_DEBUG" != "true" && \ |
| 7990 | 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] | 7991 | then |
| 7992 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7993 | else |
| 7994 | ac_cv_enable_unreachable_code_warning=no |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7995 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7996 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 |
| 7997 | printf "%s\n" "$ac_cv_enable_unreachable_code_warning" >&6; } |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7998 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 7999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5 |
| 8000 | printf %s "checking if we can turn on $CC strict-prototypes warning... " >&6; } |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 8001 | ac_save_cc="$CC" |
| 8002 | CC="$CC -Werror -Wstrict-prototypes" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8003 | if test ${ac_cv_enable_enable_strict_prototypes_warning+y} |
| 8004 | then : |
| 8005 | printf %s "(cached) " >&6 |
| 8006 | else $as_nop |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 8007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8008 | /* end confdefs.h. */ |
| 8009 | |
| 8010 | |
| 8011 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8012 | main (void) |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 8013 | { |
| 8014 | |
| 8015 | ; |
| 8016 | return 0; |
| 8017 | } |
| 8018 | |
| 8019 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8020 | if ac_fn_c_try_compile "$LINENO" |
| 8021 | then : |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 8022 | |
| 8023 | ac_cv_enable_strict_prototypes_warning=yes |
| 8024 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8025 | else $as_nop |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 8026 | |
| 8027 | ac_cv_enable_strict_prototypes_warning=no |
| 8028 | |
| 8029 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8030 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 8031 | fi |
| 8032 | |
| 8033 | CC="$ac_save_cc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 |
| 8035 | printf "%s\n" "$ac_cv_enable_strict_prototypes_warning" >&6; } |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 8036 | |
| 8037 | if test $ac_cv_enable_strict_prototypes_warning = yes |
| 8038 | then |
| 8039 | CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" |
| 8040 | fi |
| 8041 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 |
| 8043 | printf %s "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] | 8044 | ac_save_cc="$CC" |
| 8045 | CC="$CC -Werror=implicit-function-declaration" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8046 | if test ${ac_cv_enable_implicit_function_declaration_error+y} |
| 8047 | then : |
| 8048 | printf %s "(cached) " >&6 |
| 8049 | else $as_nop |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 8050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8051 | /* end confdefs.h. */ |
| 8052 | |
| 8053 | |
| 8054 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8055 | main (void) |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 8056 | { |
| 8057 | |
| 8058 | ; |
| 8059 | return 0; |
| 8060 | } |
| 8061 | |
| 8062 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8063 | if ac_fn_c_try_compile "$LINENO" |
| 8064 | then : |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 8065 | |
| 8066 | ac_cv_enable_implicit_function_declaration_error=yes |
| 8067 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8068 | else $as_nop |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 8069 | |
| 8070 | ac_cv_enable_implicit_function_declaration_error=no |
| 8071 | |
| 8072 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8073 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 8074 | fi |
| 8075 | |
| 8076 | CC="$ac_save_cc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8077 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 |
| 8078 | printf "%s\n" "$ac_cv_enable_implicit_function_declaration_error" >&6; } |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 8079 | |
| 8080 | if test $ac_cv_enable_implicit_function_declaration_error = yes |
| 8081 | then |
| 8082 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" |
| 8083 | fi |
| 8084 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8085 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5 |
| 8086 | printf %s "checking if we can use visibility in $CC... " >&6; } |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 8087 | ac_save_cc="$CC" |
| 8088 | CC="$CC -fvisibility=hidden" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8089 | if test ${ac_cv_enable_visibility+y} |
| 8090 | then : |
| 8091 | printf %s "(cached) " >&6 |
| 8092 | else $as_nop |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 8093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8094 | /* end confdefs.h. */ |
| 8095 | |
| 8096 | |
| 8097 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8098 | main (void) |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 8099 | { |
| 8100 | |
| 8101 | ; |
| 8102 | return 0; |
| 8103 | } |
| 8104 | |
| 8105 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8106 | if ac_fn_c_try_compile "$LINENO" |
| 8107 | then : |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 8108 | |
| 8109 | ac_cv_enable_visibility=yes |
| 8110 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8111 | else $as_nop |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 8112 | |
| 8113 | ac_cv_enable_visibility=no |
| 8114 | |
| 8115 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8116 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 8117 | fi |
| 8118 | |
| 8119 | CC="$ac_save_cc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8120 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5 |
| 8121 | printf "%s\n" "$ac_cv_enable_visibility" >&6; } |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 8122 | |
| 8123 | if test $ac_cv_enable_visibility = yes |
| 8124 | then |
| 8125 | CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden" |
| 8126 | fi |
| 8127 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8128 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 8129 | # support. Without this, treatment of subnormals doesn't follow |
| 8130 | # the standard. |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 8131 | case $host in |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8132 | alpha*) |
| 8133 | BASECFLAGS="$BASECFLAGS -mieee" |
| 8134 | ;; |
| 8135 | esac |
| 8136 | |
| 8137 | case $ac_sys_system in |
| 8138 | SCO_SV*) |
| 8139 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 8140 | ;; |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8141 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8142 | Darwin*) |
| 8143 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 8144 | # used to be here, but non-Apple gcc doesn't accept them. |
| 8145 | if test "${CC}" = gcc |
| 8146 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 |
| 8148 | printf %s "checking which compiler should be used... " >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8149 | case "${UNIVERSALSDK}" in |
| 8150 | */MacOSX10.4u.sdk) |
| 8151 | # Build using 10.4 SDK, force usage of gcc when the |
| 8152 | # compiler is gcc, otherwise the user will get very |
| 8153 | # confusing error messages when building on OSX 10.6 |
| 8154 | CC=gcc-4.0 |
| 8155 | CPP=cpp-4.0 |
| 8156 | ;; |
| 8157 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 8159 | printf "%s\n" "$CC" >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8160 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8161 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8162 | if test "${enable_universalsdk}" |
| 8163 | then |
| 8164 | case "$UNIVERSAL_ARCHS" in |
| 8165 | 32-bit) |
| 8166 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 8167 | LIPO_32BIT_FLAGS="" |
| 8168 | ARCH_RUN_32BIT="" |
| 8169 | ;; |
| 8170 | 64-bit) |
| 8171 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 8172 | LIPO_32BIT_FLAGS="" |
| 8173 | ARCH_RUN_32BIT="true" |
| 8174 | ;; |
| 8175 | all) |
| 8176 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 8177 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 8178 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 8179 | ;; |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 8180 | universal2) |
| 8181 | UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64" |
| 8182 | LIPO_32BIT_FLAGS="" |
| 8183 | ARCH_RUN_32BIT="true" |
| 8184 | ;; |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8185 | intel) |
| 8186 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 8187 | LIPO_32BIT_FLAGS="-extract i386" |
| 8188 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
| 8189 | ;; |
| 8190 | intel-32) |
| 8191 | UNIVERSAL_ARCH_FLAGS="-arch i386" |
| 8192 | LIPO_32BIT_FLAGS="" |
| 8193 | ARCH_RUN_32BIT="" |
| 8194 | ;; |
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 8195 | intel-64) |
| 8196 | UNIVERSAL_ARCH_FLAGS="-arch x86_64" |
| 8197 | LIPO_32BIT_FLAGS="" |
| 8198 | ARCH_RUN_32BIT="true" |
| 8199 | ;; |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8200 | 3-way) |
| 8201 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 8202 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 8203 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 8204 | ;; |
| 8205 | *) |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 8206 | 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] | 8207 | ;; |
| 8208 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8209 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8210 | if test "${UNIVERSALSDK}" != "/" |
| 8211 | then |
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 8212 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 8213 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8214 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 8215 | else |
| 8216 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" |
| 8217 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8218 | fi |
| 8219 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8220 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8221 | # Calculate an appropriate deployment target for this build: |
| 8222 | # The deployment target value is used explicitly to enable certain |
| 8223 | # features are enabled (such as builtin libedit support for readline) |
Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 8224 | # 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] | 8225 | # component of the string returned by distutils.get_platform(). |
| 8226 | # |
| 8227 | # Use the value from: |
| 8228 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified |
| 8229 | # 2. the operating system version of the build machine if >= 10.6 |
| 8230 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests |
| 8231 | # below to pick either 10.3, 10.4, or 10.5 as the target. |
| 8232 | # 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] | 8233 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 |
| 8235 | printf %s "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 8236 | cur_target_major=`sw_vers -productVersion | \ |
| 8237 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 8238 | cur_target_minor=`sw_vers -productVersion | \ |
| 8239 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 8240 | cur_target="${cur_target_major}.${cur_target_minor}" |
| 8241 | if test ${cur_target_major} -eq 10 && \ |
| 8242 | test ${cur_target_minor} -ge 3 && \ |
| 8243 | test ${cur_target_minor} -le 5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8244 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 8245 | # OS X 10.3 through 10.5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8246 | cur_target=10.3 |
| 8247 | if test ${enable_universalsdk} |
| 8248 | then |
| 8249 | case "$UNIVERSAL_ARCHS" in |
| 8250 | all|3-way|intel|64-bit) |
| 8251 | # These configurations were first supported in 10.5 |
| 8252 | cur_target='10.5' |
| 8253 | ;; |
| 8254 | esac |
| 8255 | else |
| 8256 | if test `/usr/bin/arch` = "i386" |
| 8257 | then |
| 8258 | # 10.4 was the first release to support Intel archs |
| 8259 | cur_target="10.4" |
| 8260 | fi |
| 8261 | fi |
| 8262 | fi |
| 8263 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8264 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8265 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 8266 | # environment with a value that is the same as what we'll use |
| 8267 | # in the Makefile to ensure that we'll get the same compiler |
| 8268 | # environment during configure and build time. |
| 8269 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 8270 | export MACOSX_DEPLOYMENT_TARGET |
| 8271 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8272 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 |
| 8273 | printf "%s\n" "$MACOSX_DEPLOYMENT_TARGET" >&6; } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8274 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5 |
| 8276 | printf %s "checking if specified universal architectures work... " >&6; } |
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 8277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8278 | /* end confdefs.h. */ |
| 8279 | #include <stdio.h> |
| 8280 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8281 | main (void) |
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 8282 | { |
| 8283 | printf("%d", 42); |
| 8284 | ; |
| 8285 | return 0; |
| 8286 | } |
| 8287 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8288 | if ac_fn_c_try_link "$LINENO" |
| 8289 | then : |
| 8290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8291 | printf "%s\n" "yes" >&6; } |
| 8292 | else $as_nop |
| 8293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8294 | printf "%s\n" "no" >&6; } |
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 8295 | as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5 |
| 8296 | |
| 8297 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8298 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 8299 | conftest$ac_exeext conftest.$ac_ext |
| 8300 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8301 | # end of Darwin* tests |
| 8302 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8303 | esac |
| 8304 | ;; |
| 8305 | |
| 8306 | *) |
| 8307 | case $ac_sys_system in |
| 8308 | OpenUNIX*|UnixWare*) |
| 8309 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 8310 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8311 | SCO_SV*) |
| 8312 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 8313 | ;; |
| 8314 | esac |
| 8315 | ;; |
| 8316 | esac |
| 8317 | |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 8318 | case "$CC" in |
| 8319 | *icc*) |
Stefan Krah | 84a7917 | 2020-09-04 22:33:17 +0200 | [diff] [blame] | 8320 | # ICC needs -fp-model strict or floats behave badly |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 8321 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" |
| 8322 | ;; |
Stefan Krah | 84a7917 | 2020-09-04 22:33:17 +0200 | [diff] [blame] | 8323 | *xlc*) |
| 8324 | CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1" |
| 8325 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 8326 | esac |
| 8327 | |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 8328 | if test "$assertions" = 'true'; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8329 | : |
| 8330 | else |
| 8331 | OPT="-DNDEBUG $OPT" |
| 8332 | fi |
| 8333 | |
| 8334 | if test "$ac_arch_flags" |
| 8335 | then |
| 8336 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 8337 | fi |
| 8338 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8339 | # On some compilers, pthreads are available without further options |
| 8340 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 8341 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 8342 | # So we have to see first whether pthreads are available without |
| 8343 | # options before we can check whether -Kpthread improves anything. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8344 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
| 8345 | printf %s "checking whether pthreads are available without options... " >&6; } |
| 8346 | if test ${ac_cv_pthread_is_default+y} |
| 8347 | then : |
| 8348 | printf %s "(cached) " >&6 |
| 8349 | else $as_nop |
| 8350 | if test "$cross_compiling" = yes |
| 8351 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8352 | ac_cv_pthread_is_default=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8353 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8355 | /* end confdefs.h. */ |
| 8356 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 8357 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8358 | #include <pthread.h> |
| 8359 | |
| 8360 | void* routine(void* p){return NULL;} |
| 8361 | |
| 8362 | int main(){ |
| 8363 | pthread_t p; |
| 8364 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 8365 | return 1; |
| 8366 | (void)pthread_detach(p); |
| 8367 | return 0; |
| 8368 | } |
| 8369 | |
| 8370 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8371 | if ac_fn_c_try_run "$LINENO" |
| 8372 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8373 | |
| 8374 | ac_cv_pthread_is_default=yes |
| 8375 | ac_cv_kthread=no |
| 8376 | ac_cv_pthread=no |
| 8377 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8378 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8379 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8380 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8381 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8382 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8383 | fi |
| 8384 | |
| 8385 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8386 | fi |
| 8387 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
| 8389 | printf "%s\n" "$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8390 | |
| 8391 | |
| 8392 | if test $ac_cv_pthread_is_default = yes |
| 8393 | then |
| 8394 | ac_cv_kpthread=no |
| 8395 | else |
| 8396 | # -Kpthread, if available, provides the right #defines |
| 8397 | # and linker options to make pthread_create available |
| 8398 | # Some compilers won't report that they do not support -Kpthread, |
| 8399 | # so we need to run a program to see whether it really made the |
| 8400 | # function available. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
| 8402 | printf %s "checking whether $CC accepts -Kpthread... " >&6; } |
| 8403 | if test ${ac_cv_kpthread+y} |
| 8404 | then : |
| 8405 | printf %s "(cached) " >&6 |
| 8406 | else $as_nop |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8407 | ac_save_cc="$CC" |
| 8408 | CC="$CC -Kpthread" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8409 | if test "$cross_compiling" = yes |
| 8410 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8411 | ac_cv_kpthread=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8412 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8414 | /* end confdefs.h. */ |
| 8415 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 8416 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8417 | #include <pthread.h> |
| 8418 | |
| 8419 | void* routine(void* p){return NULL;} |
| 8420 | |
| 8421 | int main(){ |
| 8422 | pthread_t p; |
| 8423 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 8424 | return 1; |
| 8425 | (void)pthread_detach(p); |
| 8426 | return 0; |
| 8427 | } |
| 8428 | |
| 8429 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8430 | if ac_fn_c_try_run "$LINENO" |
| 8431 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8432 | ac_cv_kpthread=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8433 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8434 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8435 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8436 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8437 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8438 | fi |
| 8439 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8440 | CC="$ac_save_cc" |
| 8441 | fi |
| 8442 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
| 8444 | printf "%s\n" "$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8445 | fi |
| 8446 | |
| 8447 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 8448 | then |
| 8449 | # -Kthread, if available, provides the right #defines |
| 8450 | # and linker options to make pthread_create available |
| 8451 | # Some compilers won't report that they do not support -Kthread, |
| 8452 | # so we need to run a program to see whether it really made the |
| 8453 | # function available. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
| 8455 | printf %s "checking whether $CC accepts -Kthread... " >&6; } |
| 8456 | if test ${ac_cv_kthread+y} |
| 8457 | then : |
| 8458 | printf %s "(cached) " >&6 |
| 8459 | else $as_nop |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8460 | ac_save_cc="$CC" |
| 8461 | CC="$CC -Kthread" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8462 | if test "$cross_compiling" = yes |
| 8463 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8464 | ac_cv_kthread=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8465 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8467 | /* end confdefs.h. */ |
| 8468 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 8469 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8470 | #include <pthread.h> |
| 8471 | |
| 8472 | void* routine(void* p){return NULL;} |
| 8473 | |
| 8474 | int main(){ |
| 8475 | pthread_t p; |
| 8476 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 8477 | return 1; |
| 8478 | (void)pthread_detach(p); |
| 8479 | return 0; |
| 8480 | } |
| 8481 | |
| 8482 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8483 | if ac_fn_c_try_run "$LINENO" |
| 8484 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8485 | ac_cv_kthread=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8486 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8487 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8488 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8489 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8490 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8491 | fi |
| 8492 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8493 | CC="$ac_save_cc" |
| 8494 | fi |
| 8495 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8496 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
| 8497 | printf "%s\n" "$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8498 | fi |
| 8499 | |
| 8500 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 8501 | then |
| 8502 | # -pthread, if available, provides the right #defines |
| 8503 | # and linker options to make pthread_create available |
| 8504 | # Some compilers won't report that they do not support -pthread, |
| 8505 | # so we need to run a program to see whether it really made the |
| 8506 | # function available. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8507 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
| 8508 | printf %s "checking whether $CC accepts -pthread... " >&6; } |
| 8509 | if test ${ac_cv_pthread+y} |
| 8510 | then : |
| 8511 | printf %s "(cached) " >&6 |
| 8512 | else $as_nop |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8513 | ac_save_cc="$CC" |
| 8514 | CC="$CC -pthread" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8515 | if test "$cross_compiling" = yes |
| 8516 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8517 | ac_cv_pthread=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8518 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8520 | /* end confdefs.h. */ |
| 8521 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 8522 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8523 | #include <pthread.h> |
| 8524 | |
| 8525 | void* routine(void* p){return NULL;} |
| 8526 | |
| 8527 | int main(){ |
| 8528 | pthread_t p; |
| 8529 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 8530 | return 1; |
| 8531 | (void)pthread_detach(p); |
| 8532 | return 0; |
| 8533 | } |
| 8534 | |
| 8535 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8536 | if ac_fn_c_try_run "$LINENO" |
| 8537 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8538 | ac_cv_pthread=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8539 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8540 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8541 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8542 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8543 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8544 | fi |
| 8545 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8546 | CC="$ac_save_cc" |
| 8547 | fi |
| 8548 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8549 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
| 8550 | printf "%s\n" "$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8551 | fi |
| 8552 | |
| 8553 | # If we have set a CC compiler flag for thread support then |
| 8554 | # check if it works for CXX, too. |
| 8555 | ac_cv_cxx_thread=no |
| 8556 | if test ! -z "$CXX" |
| 8557 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8558 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
| 8559 | printf %s "checking whether $CXX also accepts flags for thread support... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8560 | ac_save_cxx="$CXX" |
| 8561 | |
| 8562 | if test "$ac_cv_kpthread" = "yes" |
| 8563 | then |
| 8564 | CXX="$CXX -Kpthread" |
| 8565 | ac_cv_cxx_thread=yes |
| 8566 | elif test "$ac_cv_kthread" = "yes" |
| 8567 | then |
| 8568 | CXX="$CXX -Kthread" |
| 8569 | ac_cv_cxx_thread=yes |
| 8570 | elif test "$ac_cv_pthread" = "yes" |
| 8571 | then |
| 8572 | CXX="$CXX -pthread" |
| 8573 | ac_cv_cxx_thread=yes |
| 8574 | fi |
| 8575 | |
| 8576 | if test $ac_cv_cxx_thread = yes |
| 8577 | then |
| 8578 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 8579 | $CXX -c conftest.$ac_ext 2>&5 |
| 8580 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 8581 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 8582 | then |
| 8583 | ac_cv_cxx_thread=yes |
| 8584 | else |
| 8585 | ac_cv_cxx_thread=no |
| 8586 | fi |
| 8587 | rm -fr conftest* |
| 8588 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8589 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
| 8590 | printf "%s\n" "$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8591 | fi |
| 8592 | CXX="$ac_save_cxx" |
| 8593 | |
| 8594 | |
| 8595 | # checks for header files |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8596 | # Autoupdate added the next two lines to ensure that your configure |
| 8597 | # script's behavior did not change. They are probably safe to remove. |
| 8598 | |
| 8599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 8600 | printf %s "checking for egrep... " >&6; } |
| 8601 | if test ${ac_cv_path_EGREP+y} |
| 8602 | then : |
| 8603 | printf %s "(cached) " >&6 |
| 8604 | else $as_nop |
| 8605 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 8606 | then ac_cv_path_EGREP="$GREP -E" |
| 8607 | else |
| 8608 | if test -z "$EGREP"; then |
| 8609 | ac_path_EGREP_found=false |
| 8610 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 8611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8612 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 8613 | do |
| 8614 | IFS=$as_save_IFS |
| 8615 | case $as_dir in #((( |
| 8616 | '') as_dir=./ ;; |
| 8617 | */) ;; |
| 8618 | *) as_dir=$as_dir/ ;; |
| 8619 | esac |
| 8620 | for ac_prog in egrep |
| 8621 | do |
| 8622 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8623 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 8624 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 8625 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 8626 | # Check for GNU $ac_path_EGREP |
| 8627 | case `"$ac_path_EGREP" --version 2>&1` in |
| 8628 | *GNU*) |
| 8629 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 8630 | *) |
| 8631 | ac_count=0 |
| 8632 | printf %s 0123456789 >"conftest.in" |
| 8633 | while : |
| 8634 | do |
| 8635 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 8636 | mv "conftest.tmp" "conftest.in" |
| 8637 | cp "conftest.in" "conftest.nl" |
| 8638 | printf "%s\n" 'EGREP' >> "conftest.nl" |
| 8639 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 8640 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 8641 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 8642 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 8643 | # Best one so far, save it but keep looking for a better one |
| 8644 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 8645 | ac_path_EGREP_max=$ac_count |
| 8646 | fi |
| 8647 | # 10*(2^10) chars as input seems more than enough |
| 8648 | test $ac_count -gt 10 && break |
| 8649 | done |
| 8650 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 8651 | esac |
| 8652 | |
| 8653 | $ac_path_EGREP_found && break 3 |
| 8654 | done |
| 8655 | done |
| 8656 | done |
| 8657 | IFS=$as_save_IFS |
| 8658 | if test -z "$ac_cv_path_EGREP"; then |
| 8659 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 8660 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8661 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8662 | ac_cv_path_EGREP=$EGREP |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8663 | fi |
| 8664 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8665 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8666 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 8668 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
| 8669 | EGREP="$ac_cv_path_EGREP" |
| 8670 | |
| 8671 | |
| 8672 | |
| 8673 | ac_fn_c_check_header_compile "$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default" |
| 8674 | if test "x$ac_cv_header_asm_types_h" = xyes |
| 8675 | then : |
| 8676 | printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8677 | |
| 8678 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8679 | ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" |
| 8680 | if test "x$ac_cv_header_crypt_h" = xyes |
| 8681 | then : |
| 8682 | printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8683 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8684 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8685 | ac_fn_c_check_header_compile "$LINENO" "conio.h" "ac_cv_header_conio_h" "$ac_includes_default" |
| 8686 | if test "x$ac_cv_header_conio_h" = xyes |
| 8687 | then : |
| 8688 | printf "%s\n" "#define HAVE_CONIO_H 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8689 | |
| 8690 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8691 | ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default" |
| 8692 | if test "x$ac_cv_header_direct_h" = xyes |
| 8693 | then : |
| 8694 | printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8695 | |
| 8696 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8697 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
| 8698 | if test "x$ac_cv_header_dlfcn_h" = xyes |
| 8699 | then : |
| 8700 | printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8701 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 8702 | fi |
| 8703 | ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
| 8704 | if test "x$ac_cv_header_errno_h" = xyes |
| 8705 | then : |
| 8706 | printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h |
| 8707 | |
| 8708 | fi |
| 8709 | ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
| 8710 | if test "x$ac_cv_header_fcntl_h" = xyes |
| 8711 | then : |
| 8712 | printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h |
| 8713 | |
| 8714 | fi |
| 8715 | ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" |
| 8716 | if test "x$ac_cv_header_grp_h" = xyes |
| 8717 | then : |
| 8718 | printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h |
| 8719 | |
| 8720 | fi |
| 8721 | ac_fn_c_check_header_compile "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default" |
| 8722 | if test "x$ac_cv_header_ieeefp_h" = xyes |
| 8723 | then : |
| 8724 | printf "%s\n" "#define HAVE_IEEEFP_H 1" >>confdefs.h |
| 8725 | |
| 8726 | fi |
| 8727 | ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" |
| 8728 | if test "x$ac_cv_header_io_h" = xyes |
| 8729 | then : |
| 8730 | printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h |
| 8731 | |
| 8732 | fi |
| 8733 | ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" |
| 8734 | if test "x$ac_cv_header_langinfo_h" = xyes |
| 8735 | then : |
| 8736 | printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h |
| 8737 | |
| 8738 | fi |
| 8739 | ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" |
| 8740 | if test "x$ac_cv_header_libintl_h" = xyes |
| 8741 | then : |
| 8742 | printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h |
| 8743 | |
| 8744 | fi |
| 8745 | ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default" |
| 8746 | if test "x$ac_cv_header_process_h" = xyes |
| 8747 | then : |
| 8748 | printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h |
| 8749 | |
| 8750 | fi |
| 8751 | ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 8752 | if test "x$ac_cv_header_pthread_h" = xyes |
| 8753 | then : |
| 8754 | printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h |
| 8755 | |
| 8756 | fi |
| 8757 | ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" |
| 8758 | if test "x$ac_cv_header_sched_h" = xyes |
| 8759 | then : |
| 8760 | printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h |
| 8761 | |
| 8762 | fi |
| 8763 | ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" |
| 8764 | if test "x$ac_cv_header_shadow_h" = xyes |
| 8765 | then : |
| 8766 | printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h |
| 8767 | |
| 8768 | fi |
| 8769 | ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" |
| 8770 | if test "x$ac_cv_header_signal_h" = xyes |
| 8771 | then : |
| 8772 | printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h |
| 8773 | |
| 8774 | fi |
| 8775 | ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" |
| 8776 | if test "x$ac_cv_header_stropts_h" = xyes |
| 8777 | then : |
| 8778 | printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h |
| 8779 | |
| 8780 | fi |
| 8781 | ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" |
| 8782 | if test "x$ac_cv_header_termios_h" = xyes |
| 8783 | then : |
| 8784 | printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h |
| 8785 | |
| 8786 | fi |
| 8787 | ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" |
| 8788 | if test "x$ac_cv_header_utime_h" = xyes |
| 8789 | then : |
| 8790 | printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h |
| 8791 | |
| 8792 | fi |
| 8793 | ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" |
| 8794 | if test "x$ac_cv_header_poll_h" = xyes |
| 8795 | then : |
| 8796 | printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h |
| 8797 | |
| 8798 | fi |
| 8799 | ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default" |
| 8800 | if test "x$ac_cv_header_sys_devpoll_h" = xyes |
| 8801 | then : |
| 8802 | printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
| 8803 | |
| 8804 | fi |
| 8805 | ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" |
| 8806 | if test "x$ac_cv_header_sys_epoll_h" = xyes |
| 8807 | then : |
| 8808 | printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h |
| 8809 | |
| 8810 | fi |
| 8811 | ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" |
| 8812 | if test "x$ac_cv_header_sys_poll_h" = xyes |
| 8813 | then : |
| 8814 | printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h |
| 8815 | |
| 8816 | fi |
| 8817 | ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default" |
| 8818 | if test "x$ac_cv_header_sys_audioio_h" = xyes |
| 8819 | then : |
| 8820 | printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h |
| 8821 | |
| 8822 | fi |
| 8823 | ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" |
| 8824 | if test "x$ac_cv_header_sys_xattr_h" = xyes |
| 8825 | then : |
| 8826 | printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h |
| 8827 | |
| 8828 | fi |
| 8829 | ac_fn_c_check_header_compile "$LINENO" "sys/bsdtty.h" "ac_cv_header_sys_bsdtty_h" "$ac_includes_default" |
| 8830 | if test "x$ac_cv_header_sys_bsdtty_h" = xyes |
| 8831 | then : |
| 8832 | printf "%s\n" "#define HAVE_SYS_BSDTTY_H 1" >>confdefs.h |
| 8833 | |
| 8834 | fi |
| 8835 | ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" |
| 8836 | if test "x$ac_cv_header_sys_event_h" = xyes |
| 8837 | then : |
| 8838 | printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h |
| 8839 | |
| 8840 | fi |
| 8841 | ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" |
| 8842 | if test "x$ac_cv_header_sys_file_h" = xyes |
| 8843 | then : |
| 8844 | printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h |
| 8845 | |
| 8846 | fi |
| 8847 | ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
| 8848 | if test "x$ac_cv_header_sys_ioctl_h" = xyes |
| 8849 | then : |
| 8850 | printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
| 8851 | |
| 8852 | fi |
| 8853 | ac_fn_c_check_header_compile "$LINENO" "sys/kern_control.h" "ac_cv_header_sys_kern_control_h" "$ac_includes_default" |
| 8854 | if test "x$ac_cv_header_sys_kern_control_h" = xyes |
| 8855 | then : |
| 8856 | printf "%s\n" "#define HAVE_SYS_KERN_CONTROL_H 1" >>confdefs.h |
| 8857 | |
| 8858 | fi |
| 8859 | ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" |
| 8860 | if test "x$ac_cv_header_sys_loadavg_h" = xyes |
| 8861 | then : |
| 8862 | printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h |
| 8863 | |
| 8864 | fi |
| 8865 | ac_fn_c_check_header_compile "$LINENO" "sys/lock.h" "ac_cv_header_sys_lock_h" "$ac_includes_default" |
| 8866 | if test "x$ac_cv_header_sys_lock_h" = xyes |
| 8867 | then : |
| 8868 | printf "%s\n" "#define HAVE_SYS_LOCK_H 1" >>confdefs.h |
| 8869 | |
| 8870 | fi |
| 8871 | ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
| 8872 | if test "x$ac_cv_header_sys_mkdev_h" = xyes |
| 8873 | then : |
| 8874 | printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h |
| 8875 | |
| 8876 | fi |
| 8877 | ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default" |
| 8878 | if test "x$ac_cv_header_sys_modem_h" = xyes |
| 8879 | then : |
| 8880 | printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h |
| 8881 | |
| 8882 | fi |
| 8883 | ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| 8884 | if test "x$ac_cv_header_sys_param_h" = xyes |
| 8885 | then : |
| 8886 | printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
| 8887 | |
| 8888 | fi |
| 8889 | ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" |
| 8890 | if test "x$ac_cv_header_sys_random_h" = xyes |
| 8891 | then : |
| 8892 | printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h |
| 8893 | |
| 8894 | fi |
| 8895 | ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
| 8896 | if test "x$ac_cv_header_sys_select_h" = xyes |
| 8897 | then : |
| 8898 | printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
| 8899 | |
| 8900 | fi |
| 8901 | ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default" |
| 8902 | if test "x$ac_cv_header_sys_sendfile_h" = xyes |
| 8903 | then : |
| 8904 | printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h |
| 8905 | |
| 8906 | fi |
| 8907 | ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
| 8908 | if test "x$ac_cv_header_sys_socket_h" = xyes |
| 8909 | then : |
| 8910 | printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h |
| 8911 | |
| 8912 | fi |
| 8913 | ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" |
| 8914 | if test "x$ac_cv_header_sys_statvfs_h" = xyes |
| 8915 | then : |
| 8916 | printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h |
| 8917 | |
| 8918 | fi |
| 8919 | ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" |
| 8920 | if test "x$ac_cv_header_sys_stat_h" = xyes |
| 8921 | then : |
| 8922 | printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h |
| 8923 | |
| 8924 | fi |
| 8925 | ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" |
| 8926 | if test "x$ac_cv_header_sys_syscall_h" = xyes |
| 8927 | then : |
| 8928 | printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h |
| 8929 | |
| 8930 | fi |
| 8931 | ac_fn_c_check_header_compile "$LINENO" "sys/sys_domain.h" "ac_cv_header_sys_sys_domain_h" "$ac_includes_default" |
| 8932 | if test "x$ac_cv_header_sys_sys_domain_h" = xyes |
| 8933 | then : |
| 8934 | printf "%s\n" "#define HAVE_SYS_SYS_DOMAIN_H 1" >>confdefs.h |
| 8935 | |
| 8936 | fi |
| 8937 | ac_fn_c_check_header_compile "$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "$ac_includes_default" |
| 8938 | if test "x$ac_cv_header_sys_termio_h" = xyes |
| 8939 | then : |
| 8940 | printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h |
| 8941 | |
| 8942 | fi |
| 8943 | ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 8944 | if test "x$ac_cv_header_sys_time_h" = xyes |
| 8945 | then : |
| 8946 | printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 8947 | |
| 8948 | fi |
| 8949 | ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default" |
| 8950 | if test "x$ac_cv_header_sys_times_h" = xyes |
| 8951 | then : |
| 8952 | printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h |
| 8953 | |
| 8954 | fi |
| 8955 | ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 8956 | if test "x$ac_cv_header_sys_types_h" = xyes |
| 8957 | then : |
| 8958 | printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h |
| 8959 | |
| 8960 | fi |
| 8961 | ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" |
| 8962 | if test "x$ac_cv_header_sys_uio_h" = xyes |
| 8963 | then : |
| 8964 | printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h |
| 8965 | |
| 8966 | fi |
| 8967 | ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" |
| 8968 | if test "x$ac_cv_header_sys_un_h" = xyes |
| 8969 | then : |
| 8970 | printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h |
| 8971 | |
| 8972 | fi |
| 8973 | ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" |
| 8974 | if test "x$ac_cv_header_sys_utsname_h" = xyes |
| 8975 | then : |
| 8976 | printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h |
| 8977 | |
| 8978 | fi |
| 8979 | ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" |
| 8980 | if test "x$ac_cv_header_sys_wait_h" = xyes |
| 8981 | then : |
| 8982 | printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
| 8983 | |
| 8984 | fi |
| 8985 | ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" |
| 8986 | if test "x$ac_cv_header_pty_h" = xyes |
| 8987 | then : |
| 8988 | printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h |
| 8989 | |
| 8990 | fi |
| 8991 | ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" |
| 8992 | if test "x$ac_cv_header_libutil_h" = xyes |
| 8993 | then : |
| 8994 | printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h |
| 8995 | |
| 8996 | fi |
| 8997 | ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" |
| 8998 | if test "x$ac_cv_header_sys_resource_h" = xyes |
| 8999 | then : |
| 9000 | printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h |
| 9001 | |
| 9002 | fi |
| 9003 | ac_fn_c_check_header_compile "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default" |
| 9004 | if test "x$ac_cv_header_netpacket_packet_h" = xyes |
| 9005 | then : |
| 9006 | printf "%s\n" "#define HAVE_NETPACKET_PACKET_H 1" >>confdefs.h |
| 9007 | |
| 9008 | fi |
| 9009 | ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default" |
| 9010 | if test "x$ac_cv_header_sysexits_h" = xyes |
| 9011 | then : |
| 9012 | printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h |
| 9013 | |
| 9014 | fi |
| 9015 | ac_fn_c_check_header_compile "$LINENO" "bluetooth.h" "ac_cv_header_bluetooth_h" "$ac_includes_default" |
| 9016 | if test "x$ac_cv_header_bluetooth_h" = xyes |
| 9017 | then : |
| 9018 | printf "%s\n" "#define HAVE_BLUETOOTH_H 1" >>confdefs.h |
| 9019 | |
| 9020 | fi |
| 9021 | ac_fn_c_check_header_compile "$LINENO" "linux/tipc.h" "ac_cv_header_linux_tipc_h" "$ac_includes_default" |
| 9022 | if test "x$ac_cv_header_linux_tipc_h" = xyes |
| 9023 | then : |
| 9024 | printf "%s\n" "#define HAVE_LINUX_TIPC_H 1" >>confdefs.h |
| 9025 | |
| 9026 | fi |
| 9027 | ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default" |
| 9028 | if test "x$ac_cv_header_linux_random_h" = xyes |
| 9029 | then : |
| 9030 | printf "%s\n" "#define HAVE_LINUX_RANDOM_H 1" >>confdefs.h |
| 9031 | |
| 9032 | fi |
| 9033 | ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default" |
| 9034 | if test "x$ac_cv_header_spawn_h" = xyes |
| 9035 | then : |
| 9036 | printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h |
| 9037 | |
| 9038 | fi |
| 9039 | ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" |
| 9040 | if test "x$ac_cv_header_util_h" = xyes |
| 9041 | then : |
| 9042 | printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h |
| 9043 | |
| 9044 | fi |
| 9045 | ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" |
| 9046 | if test "x$ac_cv_header_alloca_h" = xyes |
| 9047 | then : |
| 9048 | printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h |
| 9049 | |
| 9050 | fi |
| 9051 | ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" |
| 9052 | if test "x$ac_cv_header_endian_h" = xyes |
| 9053 | then : |
| 9054 | printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h |
| 9055 | |
| 9056 | fi |
| 9057 | ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" |
| 9058 | if test "x$ac_cv_header_sys_endian_h" = xyes |
| 9059 | then : |
| 9060 | printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h |
| 9061 | |
| 9062 | fi |
| 9063 | ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
| 9064 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes |
| 9065 | then : |
| 9066 | printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h |
| 9067 | |
| 9068 | fi |
| 9069 | ac_fn_c_check_header_compile "$LINENO" "linux/memfd.h" "ac_cv_header_linux_memfd_h" "$ac_includes_default" |
| 9070 | if test "x$ac_cv_header_linux_memfd_h" = xyes |
| 9071 | then : |
| 9072 | printf "%s\n" "#define HAVE_LINUX_MEMFD_H 1" >>confdefs.h |
| 9073 | |
| 9074 | fi |
| 9075 | ac_fn_c_check_header_compile "$LINENO" "linux/wait.h" "ac_cv_header_linux_wait_h" "$ac_includes_default" |
| 9076 | if test "x$ac_cv_header_linux_wait_h" = xyes |
| 9077 | then : |
| 9078 | printf "%s\n" "#define HAVE_LINUX_WAIT_H 1" >>confdefs.h |
| 9079 | |
| 9080 | fi |
| 9081 | ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default" |
| 9082 | if test "x$ac_cv_header_sys_memfd_h" = xyes |
| 9083 | then : |
| 9084 | printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h |
| 9085 | |
| 9086 | fi |
| 9087 | ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
| 9088 | if test "x$ac_cv_header_sys_mman_h" = xyes |
| 9089 | then : |
| 9090 | printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h |
| 9091 | |
| 9092 | fi |
| 9093 | ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" |
| 9094 | if test "x$ac_cv_header_sys_eventfd_h" = xyes |
| 9095 | then : |
| 9096 | printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h |
| 9097 | |
| 9098 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9099 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9100 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9101 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9102 | as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 9104 | printf %s "checking for $ac_hdr that defines DIR... " >&6; } |
| 9105 | if eval test \${$as_ac_Header+y} |
| 9106 | then : |
| 9107 | printf %s "(cached) " >&6 |
| 9108 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9110 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9111 | #include <sys/types.h> |
| 9112 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9114 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9115 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9116 | { |
| 9117 | if ((DIR *) 0) |
| 9118 | return 0; |
| 9119 | ; |
| 9120 | return 0; |
| 9121 | } |
| 9122 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9123 | if ac_fn_c_try_compile "$LINENO" |
| 9124 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9125 | eval "$as_ac_Header=yes" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9126 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9127 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9128 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9129 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9130 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9131 | eval ac_res=\$$as_ac_Header |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 9133 | printf "%s\n" "$ac_res" >&6; } |
| 9134 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
| 9135 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9136 | cat >>confdefs.h <<_ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9137 | #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9138 | _ACEOF |
| 9139 | |
| 9140 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9141 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9143 | done |
| 9144 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9145 | if test $ac_header_dirent = dirent.h; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9146 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 9147 | printf %s "checking for library containing opendir... " >&6; } |
| 9148 | if test ${ac_cv_search_opendir+y} |
| 9149 | then : |
| 9150 | printf %s "(cached) " >&6 |
| 9151 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9152 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9154 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9155 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9156 | /* Override any GCC internal prototype to avoid an error. |
| 9157 | Use char because int might match the return type of a GCC |
| 9158 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9159 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9160 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9161 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9162 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9163 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9164 | ; |
| 9165 | return 0; |
| 9166 | } |
| 9167 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9168 | for ac_lib in '' dir |
| 9169 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9170 | if test -z "$ac_lib"; then |
| 9171 | ac_res="none required" |
| 9172 | else |
| 9173 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9174 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9175 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9176 | if ac_fn_c_try_link "$LINENO" |
| 9177 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9178 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9179 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9180 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9181 | conftest$ac_exeext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9182 | if test ${ac_cv_search_opendir+y} |
| 9183 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9184 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9185 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9186 | done |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9187 | if test ${ac_cv_search_opendir+y} |
| 9188 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9189 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9190 | else $as_nop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9191 | ac_cv_search_opendir=no |
| 9192 | fi |
| 9193 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9194 | LIBS=$ac_func_search_save_LIBS |
| 9195 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 9197 | printf "%s\n" "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9198 | ac_res=$ac_cv_search_opendir |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9199 | if test "$ac_res" != no |
| 9200 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9201 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9202 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9203 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9205 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 9207 | printf %s "checking for library containing opendir... " >&6; } |
| 9208 | if test ${ac_cv_search_opendir+y} |
| 9209 | then : |
| 9210 | printf %s "(cached) " >&6 |
| 9211 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9212 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9214 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9215 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9216 | /* Override any GCC internal prototype to avoid an error. |
| 9217 | Use char because int might match the return type of a GCC |
| 9218 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9220 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9221 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9222 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9223 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9224 | ; |
| 9225 | return 0; |
| 9226 | } |
| 9227 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9228 | for ac_lib in '' x |
| 9229 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9230 | if test -z "$ac_lib"; then |
| 9231 | ac_res="none required" |
| 9232 | else |
| 9233 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9234 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9235 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9236 | if ac_fn_c_try_link "$LINENO" |
| 9237 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9238 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9239 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9240 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9241 | conftest$ac_exeext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9242 | if test ${ac_cv_search_opendir+y} |
| 9243 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9244 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9245 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9246 | done |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9247 | if test ${ac_cv_search_opendir+y} |
| 9248 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9249 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9250 | else $as_nop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9251 | ac_cv_search_opendir=no |
| 9252 | fi |
| 9253 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9254 | LIBS=$ac_func_search_save_LIBS |
| 9255 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9256 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 9257 | printf "%s\n" "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9258 | ac_res=$ac_cv_search_opendir |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9259 | if test "$ac_res" != no |
| 9260 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9261 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9262 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9263 | fi |
| 9264 | |
| 9265 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9266 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 9267 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9268 | ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
| 9269 | if test "x$ac_cv_header_sys_mkdev_h" = xyes |
| 9270 | then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 9271 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9272 | printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 9273 | |
| 9274 | fi |
| 9275 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9276 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 9277 | ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
| 9278 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes |
| 9279 | then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 9280 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9281 | printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 9282 | |
| 9283 | fi |
| 9284 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 9285 | fi |
| 9286 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9287 | |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 9288 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. |
| 9289 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 |
| 9290 | SAVE_CFLAGS=$CFLAGS |
| 9291 | CFLAGS="-std=c99 $CFLAGS" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9292 | ac_fn_c_check_header_compile "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" |
| 9293 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes |
| 9294 | then : |
| 9295 | printf "%s\n" "#define HAVE_BLUETOOTH_BLUETOOTH_H 1" >>confdefs.h |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 9296 | |
| 9297 | fi |
| 9298 | |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 9299 | CFLAGS=$SAVE_CFLAGS |
| 9300 | |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 9301 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9302 | 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] | 9303 | #ifdef STDC_HEADERS |
| 9304 | # include <stdlib.h> |
| 9305 | # include <stddef.h> |
| 9306 | #else |
| 9307 | # ifdef HAVE_STDLIB_H |
| 9308 | # include <stdlib.h> |
| 9309 | # endif |
| 9310 | #endif |
| 9311 | #ifdef HAVE_SYS_SOCKET_H |
| 9312 | # include <sys/socket.h> |
| 9313 | #endif |
| 9314 | |
| 9315 | " |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9316 | if test "x$ac_cv_header_net_if_h" = xyes |
| 9317 | then : |
| 9318 | printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 9319 | |
| 9320 | fi |
| 9321 | |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 9322 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 9323 | # On Linux, netlink.h requires asm/types.h |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9324 | 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] | 9325 | #ifdef HAVE_ASM_TYPES_H |
| 9326 | #include <asm/types.h> |
| 9327 | #endif |
| 9328 | #ifdef HAVE_SYS_SOCKET_H |
| 9329 | #include <sys/socket.h> |
| 9330 | #endif |
| 9331 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9332 | " |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9333 | if test "x$ac_cv_header_linux_netlink_h" = xyes |
| 9334 | then : |
| 9335 | printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 9336 | |
| 9337 | fi |
| 9338 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 9339 | |
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 9340 | # On Linux, qrtr.h requires asm/types.h |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9341 | 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] | 9342 | #ifdef HAVE_ASM_TYPES_H |
| 9343 | #include <asm/types.h> |
| 9344 | #endif |
| 9345 | #ifdef HAVE_SYS_SOCKET_H |
| 9346 | #include <sys/socket.h> |
| 9347 | #endif |
| 9348 | |
| 9349 | " |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9350 | if test "x$ac_cv_header_linux_qrtr_h" = xyes |
| 9351 | then : |
| 9352 | printf "%s\n" "#define HAVE_LINUX_QRTR_H 1" >>confdefs.h |
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 9353 | |
| 9354 | fi |
| 9355 | |
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 9356 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9357 | 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] | 9358 | #ifdef HAVE_SYS_SOCKET_H |
| 9359 | #include <sys/socket.h> |
| 9360 | #endif |
| 9361 | |
| 9362 | " |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9363 | if test "x$ac_cv_header_linux_vm_sockets_h" = xyes |
| 9364 | then : |
| 9365 | printf "%s\n" "#define HAVE_LINUX_VM_SOCKETS_H 1" >>confdefs.h |
caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 9366 | |
| 9367 | fi |
| 9368 | |
caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 9369 | |
karl ding | 360371f | 2020-04-29 15:31:19 -0700 | [diff] [blame] | 9370 | # On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9371 | ac_fn_c_check_header_compile "$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" " |
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 9372 | #ifdef HAVE_SYS_SOCKET_H |
| 9373 | #include <sys/socket.h> |
| 9374 | #endif |
| 9375 | |
| 9376 | " |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9377 | if test "x$ac_cv_header_linux_can_h" = xyes |
| 9378 | then : |
| 9379 | printf "%s\n" "#define HAVE_LINUX_CAN_H 1" >>confdefs.h |
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 9380 | |
| 9381 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9382 | ac_fn_c_check_header_compile "$LINENO" "linux/can/bcm.h" "ac_cv_header_linux_can_bcm_h" " |
| 9383 | #ifdef HAVE_SYS_SOCKET_H |
| 9384 | #include <sys/socket.h> |
| 9385 | #endif |
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 9386 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9387 | " |
| 9388 | if test "x$ac_cv_header_linux_can_bcm_h" = xyes |
| 9389 | then : |
| 9390 | printf "%s\n" "#define HAVE_LINUX_CAN_BCM_H 1" >>confdefs.h |
| 9391 | |
| 9392 | fi |
| 9393 | ac_fn_c_check_header_compile "$LINENO" "linux/can/j1939.h" "ac_cv_header_linux_can_j1939_h" " |
| 9394 | #ifdef HAVE_SYS_SOCKET_H |
| 9395 | #include <sys/socket.h> |
| 9396 | #endif |
| 9397 | |
| 9398 | " |
| 9399 | if test "x$ac_cv_header_linux_can_j1939_h" = xyes |
| 9400 | then : |
| 9401 | printf "%s\n" "#define HAVE_LINUX_CAN_J1939_H 1" >>confdefs.h |
| 9402 | |
| 9403 | fi |
| 9404 | ac_fn_c_check_header_compile "$LINENO" "linux/can/raw.h" "ac_cv_header_linux_can_raw_h" " |
| 9405 | #ifdef HAVE_SYS_SOCKET_H |
| 9406 | #include <sys/socket.h> |
| 9407 | #endif |
| 9408 | |
| 9409 | " |
| 9410 | if test "x$ac_cv_header_linux_can_raw_h" = xyes |
| 9411 | then : |
| 9412 | printf "%s\n" "#define HAVE_LINUX_CAN_RAW_H 1" >>confdefs.h |
| 9413 | |
| 9414 | fi |
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 9415 | |
| 9416 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9417 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9418 | was_it_defined=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9419 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
| 9420 | printf %s "checking for clock_t in time.h... " >&6; } |
| 9421 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9423 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9424 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9425 | |
| 9426 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9427 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9428 | $EGREP "clock_t" >/dev/null 2>&1 |
| 9429 | then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9430 | was_it_defined=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9431 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9432 | |
| 9433 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9434 | printf "%s\n" "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9435 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9436 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9437 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9438 | rm -rf conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9439 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 9441 | printf "%s\n" "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9442 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
| 9444 | printf %s "checking for makedev... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9446 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9447 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 9448 | #if defined(MAJOR_IN_MKDEV) |
| 9449 | #include <sys/mkdev.h> |
| 9450 | #elif defined(MAJOR_IN_SYSMACROS) |
| 9451 | #include <sys/sysmacros.h> |
| 9452 | #else |
| 9453 | #include <sys/types.h> |
| 9454 | #endif |
| 9455 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9456 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9457 | main (void) |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9458 | { |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 9459 | |
| 9460 | makedev(0, 0) |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9461 | ; |
| 9462 | return 0; |
| 9463 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9464 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9465 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9466 | if ac_fn_c_try_link "$LINENO" |
| 9467 | then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9468 | ac_cv_has_makedev=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9469 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9470 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9471 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9472 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9473 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9474 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
| 9475 | printf "%s\n" "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9476 | if test "$ac_cv_has_makedev" = "yes"; then |
| 9477 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9478 | printf "%s\n" "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9479 | |
| 9480 | fi |
| 9481 | |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9482 | # byte swapping |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9483 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 |
| 9484 | printf %s "checking for le64toh... " >&6; } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9486 | /* end confdefs.h. */ |
| 9487 | |
| 9488 | #ifdef HAVE_ENDIAN_H |
| 9489 | #include <endian.h> |
| 9490 | #elif defined(HAVE_SYS_ENDIAN_H) |
| 9491 | #include <sys/endian.h> |
| 9492 | #endif |
| 9493 | |
| 9494 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9495 | main (void) |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9496 | { |
| 9497 | |
| 9498 | le64toh(1) |
| 9499 | ; |
| 9500 | return 0; |
| 9501 | } |
| 9502 | |
| 9503 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9504 | if ac_fn_c_try_link "$LINENO" |
| 9505 | then : |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9506 | ac_cv_has_le64toh=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9507 | else $as_nop |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9508 | ac_cv_has_le64toh=no |
| 9509 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9510 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9511 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9512 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 |
| 9513 | printf "%s\n" "$ac_cv_has_le64toh" >&6; } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9514 | if test "$ac_cv_has_le64toh" = "yes"; then |
| 9515 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9516 | printf "%s\n" "#define HAVE_HTOLE64 1" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9517 | |
| 9518 | fi |
| 9519 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 9520 | use_lfs=yes |
doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 9521 | # Don't use largefile support for GNU/Hurd |
| 9522 | case $ac_sys_system in GNU*) |
| 9523 | use_lfs=no |
| 9524 | esac |
| 9525 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 9526 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 9527 | # Two defines needed to enable largefile support on various platforms |
| 9528 | # These may affect some typedefs |
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 9529 | case $ac_sys_system/$ac_sys_release in |
| 9530 | AIX*) |
| 9531 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9532 | printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h |
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 9533 | |
| 9534 | ;; |
| 9535 | esac |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 9536 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9537 | printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9538 | |
| 9539 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9540 | printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 9541 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 9542 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9543 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 9544 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 9545 | cat >> confdefs.h <<\EOF |
| 9546 | #if defined(SCO_DS) |
| 9547 | #undef _OFF_T |
| 9548 | #endif |
| 9549 | EOF |
| 9550 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9551 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9552 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9553 | if test "x$ac_cv_type_mode_t" = xyes |
| 9554 | then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9555 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9556 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9557 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9558 | printf "%s\n" "#define mode_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9559 | |
| 9560 | fi |
| 9561 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9562 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9563 | if test "x$ac_cv_type_off_t" = xyes |
| 9564 | then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9565 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9566 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9567 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9568 | printf "%s\n" "#define off_t long int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9569 | |
| 9570 | fi |
| 9571 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9572 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9573 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
| 9574 | " |
| 9575 | if test "x$ac_cv_type_pid_t" = xyes |
| 9576 | then : |
| 9577 | |
| 9578 | else $as_nop |
| 9579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9580 | /* end confdefs.h. */ |
| 9581 | |
| 9582 | #if defined _WIN64 && !defined __CYGWIN__ |
| 9583 | LLP64 |
| 9584 | #endif |
| 9585 | |
| 9586 | int |
| 9587 | main (void) |
| 9588 | { |
| 9589 | |
| 9590 | ; |
| 9591 | return 0; |
| 9592 | } |
| 9593 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9594 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9595 | if ac_fn_c_try_compile "$LINENO" |
| 9596 | then : |
| 9597 | ac_pid_type='int' |
| 9598 | else $as_nop |
| 9599 | ac_pid_type='__int64' |
| 9600 | fi |
| 9601 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9602 | |
| 9603 | printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
| 9604 | |
| 9605 | |
| 9606 | fi |
| 9607 | |
| 9608 | |
| 9609 | |
| 9610 | printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9611 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9612 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9613 | if test "x$ac_cv_type_size_t" = xyes |
| 9614 | then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9615 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9616 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9617 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9618 | printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9619 | |
| 9620 | fi |
| 9621 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9622 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 9623 | printf %s "checking for uid_t in sys/types.h... " >&6; } |
| 9624 | if test ${ac_cv_type_uid_t+y} |
| 9625 | then : |
| 9626 | printf %s "(cached) " >&6 |
| 9627 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9629 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9630 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9631 | |
| 9632 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9633 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9634 | $EGREP "uid_t" >/dev/null 2>&1 |
| 9635 | then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9636 | ac_cv_type_uid_t=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9637 | else $as_nop |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9638 | ac_cv_type_uid_t=no |
| 9639 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9640 | rm -rf conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9641 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9642 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9643 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 9644 | printf "%s\n" "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9645 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9646 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9647 | printf "%s\n" "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9648 | |
| 9649 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9650 | printf "%s\n" "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9651 | |
| 9652 | fi |
| 9653 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 9654 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9655 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9656 | if test "x$ac_cv_type_ssize_t" = xyes |
| 9657 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9658 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9659 | printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9660 | |
| 9661 | fi |
| 9662 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 9663 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9664 | if test "x$ac_cv_type___uint128_t" = xyes |
| 9665 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 9666 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9667 | printf "%s\n" "#define HAVE_GCC_UINT128_T 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 9668 | |
| 9669 | fi |
| 9670 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 9671 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9672 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 9673 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9674 | # The cast to long int works around a bug in the HP C Compiler |
| 9675 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9676 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9677 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 9679 | printf %s "checking size of int... " >&6; } |
| 9680 | if test ${ac_cv_sizeof_int+y} |
| 9681 | then : |
| 9682 | printf %s "(cached) " >&6 |
| 9683 | else $as_nop |
| 9684 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" |
| 9685 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9686 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9687 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9688 | if test "$ac_cv_type_int" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9689 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9690 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9691 | as_fn_error 77 "cannot compute sizeof (int) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9692 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9693 | else |
| 9694 | ac_cv_sizeof_int=0 |
| 9695 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9696 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9697 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9698 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9699 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 9700 | printf "%s\n" "$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9701 | |
| 9702 | |
| 9703 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9704 | printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9705 | |
| 9706 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9707 | # The cast to long int works around a bug in the HP C Compiler |
| 9708 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9709 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9710 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9711 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 9712 | printf %s "checking size of long... " >&6; } |
| 9713 | if test ${ac_cv_sizeof_long+y} |
| 9714 | then : |
| 9715 | printf %s "(cached) " >&6 |
| 9716 | else $as_nop |
| 9717 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" |
| 9718 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9719 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9720 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9721 | if test "$ac_cv_type_long" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9722 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9723 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9724 | as_fn_error 77 "cannot compute sizeof (long) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9725 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9726 | else |
| 9727 | ac_cv_sizeof_long=0 |
| 9728 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9729 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9731 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9732 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 9733 | printf "%s\n" "$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9734 | |
| 9735 | |
| 9736 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9737 | printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9738 | |
| 9739 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9740 | # The cast to long int works around a bug in the HP C Compiler |
| 9741 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9742 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9743 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9744 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 9745 | printf %s "checking size of long long... " >&6; } |
| 9746 | if test ${ac_cv_sizeof_long_long+y} |
| 9747 | then : |
| 9748 | printf %s "(cached) " >&6 |
| 9749 | else $as_nop |
| 9750 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" |
| 9751 | then : |
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 9752 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9753 | else $as_nop |
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 9754 | if test "$ac_cv_type_long_long" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9755 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9756 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 9757 | as_fn_error 77 "cannot compute sizeof (long long) |
| 9758 | See \`config.log' for more details" "$LINENO" 5; } |
| 9759 | else |
| 9760 | ac_cv_sizeof_long_long=0 |
| 9761 | fi |
| 9762 | fi |
| 9763 | |
| 9764 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 9766 | printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } |
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 9767 | |
| 9768 | |
| 9769 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9770 | printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h |
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 9771 | |
| 9772 | |
| 9773 | # The cast to long int works around a bug in the HP C Compiler |
| 9774 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9775 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9776 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9777 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 9778 | printf %s "checking size of void *... " >&6; } |
| 9779 | if test ${ac_cv_sizeof_void_p+y} |
| 9780 | then : |
| 9781 | printf %s "(cached) " >&6 |
| 9782 | else $as_nop |
| 9783 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" |
| 9784 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9785 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9786 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9787 | if test "$ac_cv_type_void_p" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9788 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9789 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9790 | as_fn_error 77 "cannot compute sizeof (void *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9791 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9792 | else |
| 9793 | ac_cv_sizeof_void_p=0 |
| 9794 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9795 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9796 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9797 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 9799 | printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9800 | |
| 9801 | |
| 9802 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9803 | printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9804 | |
| 9805 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9806 | # The cast to long int works around a bug in the HP C Compiler |
| 9807 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9808 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9809 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 9811 | printf %s "checking size of short... " >&6; } |
| 9812 | if test ${ac_cv_sizeof_short+y} |
| 9813 | then : |
| 9814 | printf %s "(cached) " >&6 |
| 9815 | else $as_nop |
| 9816 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" |
| 9817 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9818 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9819 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9820 | if test "$ac_cv_type_short" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9821 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9822 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9823 | as_fn_error 77 "cannot compute sizeof (short) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9824 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9825 | else |
| 9826 | ac_cv_sizeof_short=0 |
| 9827 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9828 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9830 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 9832 | printf "%s\n" "$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9833 | |
| 9834 | |
| 9835 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9836 | printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9837 | |
| 9838 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9839 | # The cast to long int works around a bug in the HP C Compiler |
| 9840 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9841 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9842 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9843 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 9844 | printf %s "checking size of float... " >&6; } |
| 9845 | if test ${ac_cv_sizeof_float+y} |
| 9846 | then : |
| 9847 | printf %s "(cached) " >&6 |
| 9848 | else $as_nop |
| 9849 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default" |
| 9850 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9851 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9852 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9853 | if test "$ac_cv_type_float" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9854 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9855 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9856 | as_fn_error 77 "cannot compute sizeof (float) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9857 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9858 | else |
| 9859 | ac_cv_sizeof_float=0 |
| 9860 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9863 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9864 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 9865 | printf "%s\n" "$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9866 | |
| 9867 | |
| 9868 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9869 | printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9870 | |
| 9871 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9872 | # The cast to long int works around a bug in the HP C Compiler |
| 9873 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9874 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9875 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9876 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 9877 | printf %s "checking size of double... " >&6; } |
| 9878 | if test ${ac_cv_sizeof_double+y} |
| 9879 | then : |
| 9880 | printf %s "(cached) " >&6 |
| 9881 | else $as_nop |
| 9882 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default" |
| 9883 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9884 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9885 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9886 | if test "$ac_cv_type_double" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9887 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9888 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9889 | as_fn_error 77 "cannot compute sizeof (double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9890 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9891 | else |
| 9892 | ac_cv_sizeof_double=0 |
| 9893 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9894 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9896 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9897 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 9898 | printf "%s\n" "$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9899 | |
| 9900 | |
| 9901 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9902 | printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9903 | |
| 9904 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9905 | # The cast to long int works around a bug in the HP C Compiler |
| 9906 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9907 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9908 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9909 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
| 9910 | printf %s "checking size of fpos_t... " >&6; } |
| 9911 | if test ${ac_cv_sizeof_fpos_t+y} |
| 9912 | then : |
| 9913 | printf %s "(cached) " >&6 |
| 9914 | else $as_nop |
| 9915 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default" |
| 9916 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9917 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9918 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9919 | if test "$ac_cv_type_fpos_t" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9920 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9921 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9922 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9923 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9924 | else |
| 9925 | ac_cv_sizeof_fpos_t=0 |
| 9926 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9927 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9929 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9930 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
| 9931 | printf "%s\n" "$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9932 | |
| 9933 | |
| 9934 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9935 | printf "%s\n" "#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t" >>confdefs.h |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9936 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9937 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9938 | # The cast to long int works around a bug in the HP C Compiler |
| 9939 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9940 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9941 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 9943 | printf %s "checking size of size_t... " >&6; } |
| 9944 | if test ${ac_cv_sizeof_size_t+y} |
| 9945 | then : |
| 9946 | printf %s "(cached) " >&6 |
| 9947 | else $as_nop |
| 9948 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" |
| 9949 | then : |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9950 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9951 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9952 | if test "$ac_cv_type_size_t" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9953 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9954 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9955 | as_fn_error 77 "cannot compute sizeof (size_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9956 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9957 | else |
| 9958 | ac_cv_sizeof_size_t=0 |
| 9959 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9960 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9961 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9962 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9963 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 9964 | printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9965 | |
| 9966 | |
| 9967 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9968 | printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9969 | |
| 9970 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 9971 | # The cast to long int works around a bug in the HP C Compiler |
| 9972 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9973 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9974 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
| 9976 | printf %s "checking size of pid_t... " >&6; } |
| 9977 | if test ${ac_cv_sizeof_pid_t+y} |
| 9978 | then : |
| 9979 | printf %s "(cached) " >&6 |
| 9980 | else $as_nop |
| 9981 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default" |
| 9982 | then : |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 9983 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9984 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9985 | if test "$ac_cv_type_pid_t" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9986 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9987 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9988 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9989 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 9990 | else |
| 9991 | ac_cv_sizeof_pid_t=0 |
| 9992 | fi |
| 9993 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9994 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 9995 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 9996 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
| 9997 | printf "%s\n" "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 9998 | |
| 9999 | |
| 10000 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10001 | printf "%s\n" "#define SIZEOF_PID_T $ac_cv_sizeof_pid_t" >>confdefs.h |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10002 | |
| 10003 | |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 10004 | # The cast to long int works around a bug in the HP C Compiler |
| 10005 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10006 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10007 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
| 10009 | printf %s "checking size of uintptr_t... " >&6; } |
| 10010 | if test ${ac_cv_sizeof_uintptr_t+y} |
| 10011 | then : |
| 10012 | printf %s "(cached) " >&6 |
| 10013 | else $as_nop |
| 10014 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default" |
| 10015 | then : |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 10016 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10017 | else $as_nop |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 10018 | if test "$ac_cv_type_uintptr_t" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10019 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10020 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 10021 | as_fn_error 77 "cannot compute sizeof (uintptr_t) |
| 10022 | See \`config.log' for more details" "$LINENO" 5; } |
| 10023 | else |
| 10024 | ac_cv_sizeof_uintptr_t=0 |
| 10025 | fi |
| 10026 | fi |
| 10027 | |
| 10028 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 10030 | printf "%s\n" "$ac_cv_sizeof_uintptr_t" >&6; } |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 10031 | |
| 10032 | |
| 10033 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10034 | printf "%s\n" "#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t" >>confdefs.h |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 10035 | |
| 10036 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10037 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10038 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
| 10040 | printf %s "checking for long double... " >&6; } |
| 10041 | if test ${ac_cv_type_long_double+y} |
| 10042 | then : |
| 10043 | printf %s "(cached) " >&6 |
| 10044 | else $as_nop |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 10045 | if test "$GCC" = yes; then |
| 10046 | ac_cv_type_long_double=yes |
| 10047 | else |
| 10048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10049 | /* end confdefs.h. */ |
| 10050 | /* The Stardent Vistra knows sizeof (long double), but does |
| 10051 | not support it. */ |
| 10052 | long double foo = 0.0L; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10053 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10054 | main (void) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10055 | { |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 10056 | static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 10057 | sizeof (double) <= sizeof (long double))]; |
| 10058 | test_array [0] = 0; |
| 10059 | return test_array [0]; |
| 10060 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10061 | ; |
| 10062 | return 0; |
| 10063 | } |
| 10064 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10065 | if ac_fn_c_try_compile "$LINENO" |
| 10066 | then : |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 10067 | ac_cv_type_long_double=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10068 | else $as_nop |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 10069 | ac_cv_type_long_double=no |
| 10070 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10071 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 10072 | fi |
| 10073 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 |
| 10075 | printf "%s\n" "$ac_cv_type_long_double" >&6; } |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 10076 | if test $ac_cv_type_long_double = yes; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10077 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10078 | printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10079 | |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 10080 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10081 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10082 | # The cast to long int works around a bug in the HP C Compiler |
| 10083 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10084 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10085 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10086 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
| 10087 | printf %s "checking size of long double... " >&6; } |
| 10088 | if test ${ac_cv_sizeof_long_double+y} |
| 10089 | then : |
| 10090 | printf %s "(cached) " >&6 |
| 10091 | else $as_nop |
| 10092 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default" |
| 10093 | then : |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10094 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10095 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10096 | if test "$ac_cv_type_long_double" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10097 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10098 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10099 | as_fn_error 77 "cannot compute sizeof (long double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10100 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10101 | else |
| 10102 | ac_cv_sizeof_long_double=0 |
| 10103 | fi |
| 10104 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10105 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10106 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
| 10108 | printf "%s\n" "$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10109 | |
| 10110 | |
| 10111 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10112 | printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10113 | |
| 10114 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10115 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10116 | # The cast to long int works around a bug in the HP C Compiler |
| 10117 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10118 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10119 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10120 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
| 10121 | printf %s "checking size of _Bool... " >&6; } |
| 10122 | if test ${ac_cv_sizeof__Bool+y} |
| 10123 | then : |
| 10124 | printf %s "(cached) " >&6 |
| 10125 | else $as_nop |
| 10126 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default" |
| 10127 | then : |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 10128 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10129 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10130 | if test "$ac_cv_type__Bool" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10131 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10132 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10133 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10134 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10135 | else |
| 10136 | ac_cv_sizeof__Bool=0 |
| 10137 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 10138 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10139 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 10140 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
| 10142 | printf "%s\n" "$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10143 | |
| 10144 | |
| 10145 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10146 | printf "%s\n" "#define SIZEOF__BOOL $ac_cv_sizeof__Bool" >>confdefs.h |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 10147 | |
| 10148 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 10149 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10150 | # The cast to long int works around a bug in the HP C Compiler |
| 10151 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10152 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10153 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10154 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 10155 | printf %s "checking size of off_t... " >&6; } |
| 10156 | if test ${ac_cv_sizeof_off_t+y} |
| 10157 | then : |
| 10158 | printf %s "(cached) " >&6 |
| 10159 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10160 | 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] | 10161 | #ifdef HAVE_SYS_TYPES_H |
| 10162 | #include <sys/types.h> |
| 10163 | #endif |
| 10164 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10165 | " |
| 10166 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10167 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10168 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10169 | if test "$ac_cv_type_off_t" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10170 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10171 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10172 | as_fn_error 77 "cannot compute sizeof (off_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10173 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10174 | else |
| 10175 | ac_cv_sizeof_off_t=0 |
| 10176 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10177 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10178 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10179 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10180 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 10181 | printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10182 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10183 | |
| 10184 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10185 | printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10186 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10187 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10188 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
| 10190 | printf %s "checking whether to enable large file support... " >&6; } |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 10191 | 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] | 10192 | "$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] | 10193 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10194 | printf "%s\n" "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10195 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10197 | printf "%s\n" "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10198 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10200 | printf "%s\n" "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10201 | fi |
| 10202 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10203 | # The cast to long int works around a bug in the HP C Compiler |
| 10204 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10205 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10206 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 10208 | printf %s "checking size of time_t... " >&6; } |
| 10209 | if test ${ac_cv_sizeof_time_t+y} |
| 10210 | then : |
| 10211 | printf %s "(cached) " >&6 |
| 10212 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10213 | 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] | 10214 | #ifdef HAVE_SYS_TYPES_H |
| 10215 | #include <sys/types.h> |
| 10216 | #endif |
| 10217 | #ifdef HAVE_TIME_H |
| 10218 | #include <time.h> |
| 10219 | #endif |
| 10220 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10221 | " |
| 10222 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10223 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10224 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10225 | if test "$ac_cv_type_time_t" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10226 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10227 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10228 | as_fn_error 77 "cannot compute sizeof (time_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10229 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10230 | else |
| 10231 | ac_cv_sizeof_time_t=0 |
| 10232 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10233 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10234 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10235 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10236 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 10237 | printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10238 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10239 | |
| 10240 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10241 | printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10242 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10243 | |
| 10244 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10245 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10246 | ac_save_cc="$CC" |
| 10247 | if test "$ac_cv_kpthread" = "yes" |
| 10248 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10249 | elif test "$ac_cv_kthread" = "yes" |
| 10250 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10251 | elif test "$ac_cv_pthread" = "yes" |
| 10252 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10253 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10254 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10255 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
| 10256 | printf %s "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10257 | have_pthread_t=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10259 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10260 | |
| 10261 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10262 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10263 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10264 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 10265 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10266 | ; |
| 10267 | return 0; |
| 10268 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10270 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10271 | if ac_fn_c_try_compile "$LINENO" |
| 10272 | then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10273 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10274 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10275 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10276 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
| 10277 | printf "%s\n" "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10278 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10279 | # 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] | 10280 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10281 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10282 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10283 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
| 10284 | printf %s "checking size of pthread_t... " >&6; } |
| 10285 | if test ${ac_cv_sizeof_pthread_t+y} |
| 10286 | then : |
| 10287 | printf %s "(cached) " >&6 |
| 10288 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10289 | 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] | 10290 | #ifdef HAVE_PTHREAD_H |
| 10291 | #include <pthread.h> |
| 10292 | #endif |
| 10293 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10294 | " |
| 10295 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10296 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10297 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10298 | if test "$ac_cv_type_pthread_t" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10299 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10300 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10301 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10302 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10303 | else |
| 10304 | ac_cv_sizeof_pthread_t=0 |
| 10305 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10306 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10307 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10308 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10309 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
| 10310 | printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10312 | |
| 10313 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10314 | printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10315 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10316 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10317 | fi |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10318 | |
| 10319 | # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. |
| 10320 | # This checking will be unnecessary after removing deprecated TLS API. |
| 10321 | # The cast to long int works around a bug in the HP C Compiler |
| 10322 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10323 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10324 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10325 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 |
| 10326 | printf %s "checking size of pthread_key_t... " >&6; } |
| 10327 | if test ${ac_cv_sizeof_pthread_key_t+y} |
| 10328 | then : |
| 10329 | printf %s "(cached) " >&6 |
| 10330 | else $as_nop |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10331 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10332 | " |
| 10333 | then : |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10334 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10335 | else $as_nop |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10336 | if test "$ac_cv_type_pthread_key_t" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10337 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10338 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10339 | as_fn_error 77 "cannot compute sizeof (pthread_key_t) |
| 10340 | See \`config.log' for more details" "$LINENO" 5; } |
| 10341 | else |
| 10342 | ac_cv_sizeof_pthread_key_t=0 |
| 10343 | fi |
| 10344 | fi |
| 10345 | |
| 10346 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 |
| 10348 | printf "%s\n" "$ac_cv_sizeof_pthread_key_t" >&6; } |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10349 | |
| 10350 | |
| 10351 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10352 | printf "%s\n" "#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t" >>confdefs.h |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10353 | |
| 10354 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10355 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 |
| 10356 | printf %s "checking whether pthread_key_t is compatible with int... " >&6; } |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10357 | if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then |
| 10358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10359 | /* end confdefs.h. */ |
| 10360 | #include <pthread.h> |
| 10361 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10362 | main (void) |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10363 | { |
| 10364 | pthread_key_t k; k * 1; |
| 10365 | ; |
| 10366 | return 0; |
| 10367 | } |
| 10368 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10369 | if ac_fn_c_try_compile "$LINENO" |
| 10370 | then : |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10371 | ac_pthread_key_t_is_arithmetic_type=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10372 | else $as_nop |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10373 | ac_pthread_key_t_is_arithmetic_type=no |
| 10374 | |
| 10375 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10376 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10377 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5 |
| 10378 | printf "%s\n" "$ac_pthread_key_t_is_arithmetic_type" >&6; } |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10379 | if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then |
| 10380 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10381 | printf "%s\n" "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10382 | |
| 10383 | fi |
| 10384 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10386 | printf "%s\n" "no" >&6; } |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10387 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10388 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10389 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10390 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10391 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 10392 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10393 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 10394 | ;; |
| 10395 | Darwin/*) |
| 10396 | OTHER_LIBTOOL_OPT="" |
| 10397 | ;; |
| 10398 | esac |
| 10399 | |
| 10400 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10401 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10402 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 10403 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10404 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 10405 | if test "${enable_universalsdk}"; then |
| 10406 | : |
| 10407 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 10408 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10409 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10410 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10411 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 10412 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 10413 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10414 | if test ${gcc_version} '<' 4.0 |
| 10415 | then |
| 10416 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 10417 | else |
| 10418 | LIBTOOL_CRUFT="" |
| 10419 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10420 | if test "$cross_compiling" = yes |
| 10421 | then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 10422 | ac_osx_32bit=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10423 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10425 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 10426 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10427 | #include <unistd.h> |
| 10428 | int main(int argc, char*argv[]) |
| 10429 | { |
| 10430 | if (sizeof(long) == 4) { |
| 10431 | return 0; |
| 10432 | } else { |
| 10433 | return 1; |
| 10434 | } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 10435 | } |
| 10436 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10437 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10438 | if ac_fn_c_try_run "$LINENO" |
| 10439 | then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10440 | ac_osx_32bit=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10441 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10442 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10443 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10444 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10445 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10446 | fi |
| 10447 | |
| 10448 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10449 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 10450 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10451 | i386) |
| 10452 | MACOSX_DEFAULT_ARCH="i386" |
| 10453 | ;; |
| 10454 | ppc) |
| 10455 | MACOSX_DEFAULT_ARCH="ppc" |
| 10456 | ;; |
| 10457 | *) |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 10458 | as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10459 | ;; |
| 10460 | esac |
| 10461 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 10462 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10463 | i386) |
| 10464 | MACOSX_DEFAULT_ARCH="x86_64" |
| 10465 | ;; |
| 10466 | ppc) |
| 10467 | MACOSX_DEFAULT_ARCH="ppc64" |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 10468 | ;; |
| 10469 | arm64) |
| 10470 | MACOSX_DEFAULT_ARCH="arm64" |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10471 | ;; |
| 10472 | *) |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 10473 | as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10474 | ;; |
| 10475 | esac |
| 10476 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10477 | fi |
| 10478 | |
| 10479 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10480 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10481 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10482 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10483 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
| 10484 | printf %s "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10485 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10486 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10487 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10488 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10489 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10490 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10491 | printf "%s\n" "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10492 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10493 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10494 | printf "%s\n" "yes" >&6; } |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 10495 | if test $enable_shared = "yes" |
| 10496 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10497 | 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] | 10498 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10499 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10501 | printf "%s\n" "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10502 | fi |
| 10503 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10504 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
| 10505 | printf %s "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10506 | case $ac_sys_system/$ac_sys_release in |
| 10507 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10508 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10509 | printf "%s\n" "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10510 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
| 10512 | printf "%s\n" "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10513 | ;; |
| 10514 | *) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10515 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10516 | printf "%s\n" "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10517 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10518 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10519 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10520 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10521 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10522 | |
| 10523 | |
| 10524 | |
| 10525 | |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10526 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10527 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 10528 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) |
| 10529 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10530 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 |
| 10531 | printf %s "checking the extension of shared libraries... " >&6; } |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 10532 | if test -z "$SHLIB_SUFFIX"; then |
| 10533 | case $ac_sys_system in |
| 10534 | hp*|HP*) |
| 10535 | case `uname -m` in |
| 10536 | ia64) SHLIB_SUFFIX=.so;; |
| 10537 | *) SHLIB_SUFFIX=.sl;; |
| 10538 | esac |
| 10539 | ;; |
| 10540 | CYGWIN*) SHLIB_SUFFIX=.dll;; |
| 10541 | *) SHLIB_SUFFIX=.so;; |
| 10542 | esac |
| 10543 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10544 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 |
| 10545 | printf "%s\n" "$SHLIB_SUFFIX" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10546 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10547 | # LDSHARED is the ld *command* used to create shared library |
Benjamin Peterson | 0693063 | 2017-09-04 16:36:05 -0700 | [diff] [blame] | 10548 | # -- "cc -G" on SunOS 5.x. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10549 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10550 | # Python, as opposed to building Python itself as a shared library.) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
| 10552 | printf %s "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10553 | if test -z "$LDSHARED" |
| 10554 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10555 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10556 | AIX*) |
Martin Panter | 395733d | 2016-11-20 07:56:37 +0000 | [diff] [blame] | 10557 | BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 10558 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10559 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10560 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10561 | if test "$GCC" = "yes" ; then |
| 10562 | LDSHARED='$(CC) -shared' |
| 10563 | LDCXXSHARED='$(CXX) -shared' |
| 10564 | else |
| 10565 | LDSHARED='$(CC) -G' |
| 10566 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10567 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 10568 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10569 | if test "$GCC" = "yes" ; then |
| 10570 | LDSHARED='$(CC) -shared' |
| 10571 | LDCXXSHARED='$(CXX) -shared' |
| 10572 | else |
Rob Boehne | 9d25bd1 | 2017-12-06 11:58:17 -0600 | [diff] [blame] | 10573 | LDSHARED='$(CC) -b' |
Benjamin Peterson | 62ed6be | 2017-12-21 21:43:09 -0800 | [diff] [blame] | 10574 | LDCXXSHARED='$(CXX) -b' |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 10575 | fi ;; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10576 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 10577 | LDSHARED='$(CC) -bundle' |
| 10578 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10579 | if test "$enable_framework" ; then |
| 10580 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10581 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10582 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10583 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10584 | else |
| 10585 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10586 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10587 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10588 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10589 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 10590 | LDSHARED='$(CC) -bundle' |
| 10591 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10592 | if test "$enable_framework" ; then |
| 10593 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10594 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10595 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10596 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10597 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10598 | # No framework, use the Python app as bundle-loader |
| 10599 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10600 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10601 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10602 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10603 | Darwin/*) |
| 10604 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 10605 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 10606 | |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 10607 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
| 10608 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 10609 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
| 10610 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 10611 | if test ${dep_target_major} -eq 10 && \ |
| 10612 | test ${dep_target_minor} -le 2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10613 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 10614 | # building for OS X 10.0 through 10.2 |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 10615 | LDSHARED='$(CC) -bundle' |
| 10616 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10617 | if test "$enable_framework" ; then |
| 10618 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10619 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10620 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10621 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10622 | else |
| 10623 | # No framework, use the Python app as bundle-loader |
| 10624 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 10625 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10626 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10627 | fi |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 10628 | else |
| 10629 | # building for OS X 10.3 and later |
| 10630 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' |
| 10631 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' |
| 10632 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10633 | fi |
| 10634 | ;; |
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 10635 | Linux*|GNU*|QNX*|VxWorks*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10636 | LDSHARED='$(CC) -shared' |
| 10637 | LDCXXSHARED='$(CXX) -shared';; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10638 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10639 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10640 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 10641 | LDSHARED='$(CC) -shared' |
| 10642 | LDCXXSHARED='$(CXX) -shared' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10643 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 10644 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10645 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10646 | OpenBSD*) |
| 10647 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10648 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 10649 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 10650 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10651 | else |
| 10652 | case `uname -r` in |
| 10653 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 10654 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10655 | ;; |
| 10656 | *) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 10657 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 10658 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10659 | ;; |
| 10660 | esac |
| 10661 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10662 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 10663 | LDSHARED='$(CC) -shared' |
| 10664 | LDCXXSHARED='$(CXX) -shared';; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10665 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10666 | if test "$GCC" = "yes" ; then |
| 10667 | LDSHARED='$(CC) -shared' |
| 10668 | LDCXXSHARED='$(CXX) -shared' |
| 10669 | else |
| 10670 | LDSHARED='$(CC) -G' |
| 10671 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10672 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10673 | SCO_SV*) |
| 10674 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 10675 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 10676 | CYGWIN*) |
| 10677 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 10678 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10679 | *) LDSHARED="ld";; |
| 10680 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10681 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
| 10683 | printf "%s\n" "$LDSHARED" >&6; } |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10684 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10685 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10686 | # 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] | 10687 | # library (module) -- this is only needed for a few systems |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10688 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
| 10689 | printf %s "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10690 | if test -z "$CCSHARED" |
| 10691 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10692 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10693 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 10694 | then CCSHARED="-fPIC"; |
| 10695 | elif test `uname -p` = sparc; |
| 10696 | then CCSHARED="-xcode=pic32"; |
| 10697 | else CCSHARED="-Kpic"; |
| 10698 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10699 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 10700 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10701 | else CCSHARED="+z"; |
| 10702 | fi;; |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 10703 | Linux-android*) ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10704 | Linux*|GNU*) CCSHARED="-fPIC";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10705 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10706 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10707 | if test "$GCC" = "yes" |
| 10708 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10709 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10710 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10711 | SCO_SV*) |
| 10712 | if test "$GCC" = "yes" |
| 10713 | then CCSHARED="-fPIC" |
| 10714 | else CCSHARED="-Kpic -belf" |
| 10715 | fi;; |
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 10716 | VxWorks*) |
| 10717 | CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic" |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10718 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10719 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10720 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
| 10721 | printf "%s\n" "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10722 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10723 | # the python executable -- this is only needed for a few systems |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10724 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
| 10725 | printf %s "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10726 | if test -z "$LINKFORSHARED" |
| 10727 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10728 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10729 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 10730 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10731 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 10732 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 10733 | Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10734 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10735 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10736 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 10737 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Ned Deily | 5bbbc73 | 2019-07-02 03:12:18 -0400 | [diff] [blame] | 10738 | |
| 10739 | # Issue #18075: the default maximum stack size (8MBytes) is too |
| 10740 | # small for the default recursion limit. Increase the stack size |
| 10741 | # to ensure that tests don't crash |
Ronald Oussoren | 1a057ba | 2019-08-01 07:43:07 +0200 | [diff] [blame] | 10742 | # Note: This matches the value of THREAD_STACK_SIZE in |
| 10743 | # thread_pthread.h |
Ned Deily | 5bbbc73 | 2019-07-02 03:12:18 -0400 | [diff] [blame] | 10744 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" |
| 10745 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10746 | if test "$enable_framework" |
| 10747 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10748 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10749 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10750 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10751 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10752 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 10753 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10754 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 10755 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10756 | then |
| 10757 | LINKFORSHARED="-Wl,--export-dynamic" |
| 10758 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10759 | SunOS/5*) case $CC in |
| 10760 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 10761 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 10762 | then |
| 10763 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10764 | fi;; |
| 10765 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 10766 | CYGWIN*) |
| 10767 | if test $enable_shared = "no" |
| 10768 | then |
| 10769 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 10770 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 10771 | QNX*) |
| 10772 | # -Wl,-E causes the symbols to be added to the dynamic |
| 10773 | # symbol table so that they can be found when a module |
| 10774 | # is loaded. -N 2048K causes the stack size to be set |
| 10775 | # to 2048 kilobytes so that the stack doesn't overflow |
| 10776 | # when running test_compile.py. |
| 10777 | LINKFORSHARED='-Wl,-E -N 2048K';; |
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 10778 | VxWorks*) |
pxinwr | c117426 | 2020-12-15 06:14:43 +0800 | [diff] [blame] | 10779 | LINKFORSHARED='-Wl,-export-dynamic';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10780 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10781 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
| 10783 | printf "%s\n" "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10784 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10785 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10786 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10787 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
| 10788 | printf %s "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10789 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 10790 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 10791 | case $ac_sys_system in |
| 10792 | CYGWIN*) |
| 10793 | # Cygwin needs CCSHARED when building extension DLLs |
| 10794 | # but not when building the interpreter DLL. |
| 10795 | CFLAGSFORSHARED='';; |
| 10796 | *) |
| 10797 | CFLAGSFORSHARED='$(CCSHARED)' |
| 10798 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10799 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10800 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
| 10801 | printf "%s\n" "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10802 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10803 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 10804 | # library (with --enable-shared). |
| 10805 | # 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] | 10806 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 10807 | # if it is not required, since it creates a dependency of the shared library |
| 10808 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 10809 | # don't need to link LIBS explicitly. The default should be only changed |
| 10810 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10811 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10812 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
| 10813 | printf %s "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10814 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10815 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 10816 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10817 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10818 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
| 10819 | printf "%s\n" "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10820 | |
| 10821 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10822 | # checks for libraries |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10823 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 |
| 10824 | printf %s "checking for sendfile in -lsendfile... " >&6; } |
| 10825 | if test ${ac_cv_lib_sendfile_sendfile+y} |
| 10826 | then : |
| 10827 | printf %s "(cached) " >&6 |
| 10828 | else $as_nop |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10829 | ac_check_lib_save_LIBS=$LIBS |
| 10830 | LIBS="-lsendfile $LIBS" |
| 10831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10832 | /* end confdefs.h. */ |
| 10833 | |
| 10834 | /* Override any GCC internal prototype to avoid an error. |
| 10835 | Use char because int might match the return type of a GCC |
| 10836 | builtin and then its argument prototype would still apply. */ |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10837 | char sendfile (); |
| 10838 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10839 | main (void) |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10840 | { |
| 10841 | return sendfile (); |
| 10842 | ; |
| 10843 | return 0; |
| 10844 | } |
| 10845 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10846 | if ac_fn_c_try_link "$LINENO" |
| 10847 | then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10848 | ac_cv_lib_sendfile_sendfile=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10849 | else $as_nop |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10850 | ac_cv_lib_sendfile_sendfile=no |
| 10851 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10852 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10853 | conftest$ac_exeext conftest.$ac_ext |
| 10854 | LIBS=$ac_check_lib_save_LIBS |
| 10855 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10856 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 |
| 10857 | printf "%s\n" "$ac_cv_lib_sendfile_sendfile" >&6; } |
| 10858 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes |
| 10859 | then : |
| 10860 | printf "%s\n" "#define HAVE_LIBSENDFILE 1" >>confdefs.h |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10861 | |
| 10862 | LIBS="-lsendfile $LIBS" |
| 10863 | |
| 10864 | fi |
| 10865 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 10867 | printf %s "checking for dlopen in -ldl... " >&6; } |
| 10868 | if test ${ac_cv_lib_dl_dlopen+y} |
| 10869 | then : |
| 10870 | printf %s "(cached) " >&6 |
| 10871 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10872 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10873 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10875 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10876 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10877 | /* Override any GCC internal prototype to avoid an error. |
| 10878 | Use char because int might match the return type of a GCC |
| 10879 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10880 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10881 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10882 | main (void) |
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 dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10885 | ; |
| 10886 | return 0; |
| 10887 | } |
| 10888 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10889 | if ac_fn_c_try_link "$LINENO" |
| 10890 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10891 | ac_cv_lib_dl_dlopen=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10892 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10893 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10894 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10895 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10896 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10897 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10898 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10900 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 10901 | if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 10902 | then : |
| 10903 | printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10904 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10905 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10906 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10907 | fi |
| 10908 | # Dynamic linking for SunOS/Solaris and SYSV |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10909 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 10910 | printf %s "checking for shl_load in -ldld... " >&6; } |
| 10911 | if test ${ac_cv_lib_dld_shl_load+y} |
| 10912 | then : |
| 10913 | printf %s "(cached) " >&6 |
| 10914 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10915 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10916 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10918 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10919 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10920 | /* Override any GCC internal prototype to avoid an error. |
| 10921 | Use char because int might match the return type of a GCC |
| 10922 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10923 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10924 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10925 | main (void) |
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 shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10928 | ; |
| 10929 | return 0; |
| 10930 | } |
| 10931 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10932 | if ac_fn_c_try_link "$LINENO" |
| 10933 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10934 | ac_cv_lib_dld_shl_load=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10935 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10936 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10937 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10938 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10939 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10940 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10941 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10943 | printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } |
| 10944 | if test "x$ac_cv_lib_dld_shl_load" = xyes |
| 10945 | then : |
| 10946 | printf "%s\n" "#define HAVE_LIBDLD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10947 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10948 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10949 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10950 | fi |
| 10951 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10952 | |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10953 | # checks for uuid.h location |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10954 | ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" |
| 10955 | if test "x$ac_cv_header_uuid_uuid_h" = xyes |
| 10956 | then : |
| 10957 | printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h |
| 10958 | |
| 10959 | fi |
| 10960 | ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default" |
| 10961 | if test "x$ac_cv_header_uuid_h" = xyes |
| 10962 | then : |
| 10963 | printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10964 | |
| 10965 | fi |
| 10966 | |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10967 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10968 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 |
| 10969 | printf %s "checking for uuid_generate_time_safe... " >&6; } |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10971 | /* end confdefs.h. */ |
| 10972 | #include <uuid/uuid.h> |
| 10973 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10974 | main (void) |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10975 | { |
| 10976 | |
| 10977 | #ifndef uuid_generate_time_safe |
Berker Peksag | 0e163d2 | 2017-11-09 00:43:14 +0300 | [diff] [blame] | 10978 | void *x = uuid_generate_time_safe |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10979 | #endif |
| 10980 | |
| 10981 | ; |
| 10982 | return 0; |
| 10983 | } |
| 10984 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10985 | if ac_fn_c_try_compile "$LINENO" |
| 10986 | then : |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10987 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10988 | printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10989 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10991 | printf "%s\n" "yes" >&6; } |
| 10992 | else $as_nop |
| 10993 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10994 | printf "%s\n" "no" >&6; } |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10995 | |
| 10996 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 10997 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 10998 | |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 10999 | # 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] | 11000 | # FreeBSD and OpenBSD provides support as well |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11001 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5 |
| 11002 | printf %s "checking for uuid_create... " >&6; } |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11004 | /* end confdefs.h. */ |
| 11005 | #include <uuid.h> |
| 11006 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11007 | main (void) |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11008 | { |
| 11009 | |
| 11010 | #ifndef uuid_create |
| 11011 | void *x = uuid_create |
| 11012 | #endif |
| 11013 | |
| 11014 | ; |
| 11015 | return 0; |
| 11016 | } |
| 11017 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11018 | if ac_fn_c_try_compile "$LINENO" |
| 11019 | then : |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11020 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11021 | printf "%s\n" "#define HAVE_UUID_CREATE 1" >>confdefs.h |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11022 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11024 | printf "%s\n" "yes" >&6; } |
| 11025 | else $as_nop |
| 11026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11027 | printf "%s\n" "no" >&6; } |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11028 | |
| 11029 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11030 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11031 | |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11032 | # Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet |
| 11033 | # stream in big-endian byte-order |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5 |
| 11035 | printf %s "checking for uuid_enc_be... " >&6; } |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11037 | /* end confdefs.h. */ |
| 11038 | #include <uuid.h> |
| 11039 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11040 | main (void) |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11041 | { |
| 11042 | |
| 11043 | #ifndef uuid_enc_be |
Ned Deily | ced0adb | 2018-06-09 18:19:57 -0400 | [diff] [blame] | 11044 | void *x = uuid_enc_be |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11045 | #endif |
| 11046 | |
| 11047 | ; |
| 11048 | return 0; |
| 11049 | } |
| 11050 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11051 | if ac_fn_c_try_compile "$LINENO" |
| 11052 | then : |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11053 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11054 | printf "%s\n" "#define HAVE_UUID_ENC_BE 1" >>confdefs.h |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11055 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11056 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11057 | printf "%s\n" "yes" >&6; } |
| 11058 | else $as_nop |
| 11059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11060 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11061 | |
| 11062 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11063 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11064 | |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 11065 | # 'Real Time' functions on Solaris |
| 11066 | # posix4 on Solaris 2.6 |
| 11067 | # pthread (first!) on Linux |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11068 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
| 11069 | printf %s "checking for library containing sem_init... " >&6; } |
| 11070 | if test ${ac_cv_search_sem_init+y} |
| 11071 | then : |
| 11072 | printf %s "(cached) " >&6 |
| 11073 | else $as_nop |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11074 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11076 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11077 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11078 | /* Override any GCC internal prototype to avoid an error. |
| 11079 | Use char because int might match the return type of a GCC |
| 11080 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11081 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11082 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11083 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11084 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11085 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11086 | ; |
| 11087 | return 0; |
| 11088 | } |
| 11089 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11090 | for ac_lib in '' pthread rt posix4 |
| 11091 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11092 | if test -z "$ac_lib"; then |
| 11093 | ac_res="none required" |
| 11094 | else |
| 11095 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 11096 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11097 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11098 | if ac_fn_c_try_link "$LINENO" |
| 11099 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11100 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11101 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11102 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11103 | conftest$ac_exeext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11104 | if test ${ac_cv_search_sem_init+y} |
| 11105 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11106 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 11107 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11108 | done |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11109 | if test ${ac_cv_search_sem_init+y} |
| 11110 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11111 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11112 | else $as_nop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11113 | ac_cv_search_sem_init=no |
| 11114 | fi |
| 11115 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11116 | LIBS=$ac_func_search_save_LIBS |
| 11117 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11118 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
| 11119 | printf "%s\n" "$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11120 | ac_res=$ac_cv_search_sem_init |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11121 | if test "$ac_res" != no |
| 11122 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11123 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11124 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11125 | fi |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 11126 | |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11127 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11128 | # check if we need libintl for locale functions |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11129 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
| 11130 | printf %s "checking for textdomain in -lintl... " >&6; } |
| 11131 | if test ${ac_cv_lib_intl_textdomain+y} |
| 11132 | then : |
| 11133 | printf %s "(cached) " >&6 |
| 11134 | else $as_nop |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11135 | ac_check_lib_save_LIBS=$LIBS |
| 11136 | LIBS="-lintl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11138 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11139 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11140 | /* Override any GCC internal prototype to avoid an error. |
| 11141 | Use char because int might match the return type of a GCC |
| 11142 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11143 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11144 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11145 | main (void) |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11146 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11147 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11148 | ; |
| 11149 | return 0; |
| 11150 | } |
| 11151 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11152 | if ac_fn_c_try_link "$LINENO" |
| 11153 | then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11154 | ac_cv_lib_intl_textdomain=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11155 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11156 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11157 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11158 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11159 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11160 | LIBS=$ac_check_lib_save_LIBS |
| 11161 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11162 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
| 11163 | printf "%s\n" "$ac_cv_lib_intl_textdomain" >&6; } |
| 11164 | if test "x$ac_cv_lib_intl_textdomain" = xyes |
| 11165 | then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11166 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11167 | printf "%s\n" "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11168 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 11169 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11170 | fi |
| 11171 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11172 | |
| 11173 | # checks for system dependent C++ extensions support |
| 11174 | case "$ac_sys_system" in |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11175 | AIX*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
| 11176 | printf %s "checking for genuine AIX C++ extensions support... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11178 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11179 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 11180 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11181 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11182 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11183 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11184 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11185 | ; |
| 11186 | return 0; |
| 11187 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11189 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11190 | if ac_fn_c_try_link "$LINENO" |
| 11191 | then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11192 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11193 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11194 | printf "%s\n" "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11195 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11197 | printf "%s\n" "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11198 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11199 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11200 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11202 | printf "%s\n" "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11203 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11204 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11205 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 11206 | conftest$ac_exeext conftest.$ac_ext |
| 11207 | # BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag |
| 11208 | # of the AIX system used to build/package Python executable. This tag serves |
| 11209 | # as a baseline for bdist module packages |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11210 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5 |
| 11211 | printf %s "checking for the system builddate... " >&6; } |
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 11212 | AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }') |
| 11213 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11214 | printf "%s\n" "#define AIX_BUILDDATE $AIX_BUILDDATE" >>confdefs.h |
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 11215 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5 |
| 11217 | printf "%s\n" "$AIX_BUILDDATE" >&6; } |
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 11218 | ;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11219 | *) ;; |
| 11220 | esac |
| 11221 | |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11222 | # check for systems that require aligned memory access |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 |
| 11224 | printf %s "checking aligned memory access is required... " >&6; } |
| 11225 | if test ${ac_cv_aligned_required+y} |
| 11226 | then : |
| 11227 | printf %s "(cached) " >&6 |
| 11228 | else $as_nop |
| 11229 | if test "$cross_compiling" = yes |
| 11230 | then : |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 11231 | ac_cv_aligned_required=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11232 | else $as_nop |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11234 | /* end confdefs.h. */ |
| 11235 | |
| 11236 | int main() |
| 11237 | { |
| 11238 | char s[16]; |
| 11239 | int i, *p1, *p2; |
| 11240 | for (i=0; i < 16; i++) |
| 11241 | s[i] = i; |
| 11242 | p1 = (int*)(s+1); |
| 11243 | p2 = (int*)(s+2); |
| 11244 | if (*p1 == *p2) |
| 11245 | return 1; |
| 11246 | return 0; |
| 11247 | } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11248 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11249 | if ac_fn_c_try_run "$LINENO" |
| 11250 | then : |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 11251 | ac_cv_aligned_required=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11252 | else $as_nop |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 11253 | ac_cv_aligned_required=yes |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11254 | fi |
| 11255 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11256 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11257 | fi |
| 11258 | |
| 11259 | |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 11260 | fi |
| 11261 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11262 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 |
| 11263 | printf "%s\n" "$ac_cv_aligned_required" >&6; } |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 11264 | if test "$ac_cv_aligned_required" = yes ; then |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11265 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11266 | printf "%s\n" "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11267 | |
| 11268 | fi |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11269 | |
| 11270 | # str, bytes and memoryview hash algorithm |
| 11271 | |
| 11272 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11273 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 |
| 11274 | printf %s "checking for --with-hash-algorithm... " >&6; } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11275 | |
| 11276 | # Check whether --with-hash_algorithm was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11277 | if test ${with_hash_algorithm+y} |
| 11278 | then : |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11279 | withval=$with_hash_algorithm; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11280 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 11281 | printf "%s\n" "$withval" >&6; } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11282 | case "$withval" in |
| 11283 | siphash24) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11284 | printf "%s\n" "#define Py_HASH_ALGORITHM 1" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11285 | |
| 11286 | ;; |
| 11287 | fnv) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11288 | printf "%s\n" "#define Py_HASH_ALGORITHM 2" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11289 | |
| 11290 | ;; |
| 11291 | *) |
| 11292 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 |
| 11293 | ;; |
| 11294 | esac |
| 11295 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11296 | else $as_nop |
| 11297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default" >&5 |
| 11298 | printf "%s\n" "default" >&6; } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11299 | fi |
| 11300 | |
| 11301 | |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11302 | validate_tzpath() { |
| 11303 | # Checks that each element of hte path is an absolute path |
| 11304 | if test -z "$1"; then |
| 11305 | # Empty string is allowed: it indicates no system TZPATH |
| 11306 | return 0 |
| 11307 | fi |
| 11308 | |
| 11309 | # Bad paths are those that don't start with / |
Paul Ganssle | 0f66498 | 2021-01-12 13:17:52 -0500 | [diff] [blame] | 11310 | if ( echo $1 | grep '\(^\|:\)\([^/]\|$\)' > /dev/null); then |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11311 | as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5 |
| 11312 | return 1; |
| 11313 | fi |
| 11314 | } |
| 11315 | |
| 11316 | TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11317 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5 |
| 11318 | printf %s "checking for --with-tzpath... " >&6; } |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11319 | |
| 11320 | # Check whether --with-tzpath was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11321 | if test ${with_tzpath+y} |
| 11322 | then : |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11323 | withval=$with_tzpath; |
| 11324 | case "$withval" in |
| 11325 | yes) |
| 11326 | as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5 |
| 11327 | ;; |
| 11328 | *) |
| 11329 | validate_tzpath "$withval" |
| 11330 | TZPATH="$withval" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11331 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5 |
| 11332 | printf "%s\n" "\"$withval\"" >&6; } |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11333 | ;; |
| 11334 | esac |
| 11335 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11336 | else $as_nop |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11337 | validate_tzpath "$TZPATH" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5 |
| 11339 | printf "%s\n" "\"$TZPATH\"" >&6; } |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11340 | fi |
| 11341 | |
| 11342 | |
| 11343 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11344 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 |
| 11345 | printf %s "checking for --with-address-sanitizer... " >&6; } |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 11346 | |
| 11347 | # Check whether --with-address_sanitizer was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11348 | if test ${with_address_sanitizer+y} |
| 11349 | then : |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 11350 | withval=$with_address_sanitizer; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 11352 | printf "%s\n" "$withval" >&6; } |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 11353 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" |
| 11354 | LDFLAGS="-fsanitize=address $LDFLAGS" |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11355 | # ASan works by controlling memory allocation, our own malloc interferes. |
| 11356 | with_pymalloc="no" |
| 11357 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11358 | else $as_nop |
| 11359 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11360 | printf "%s\n" "no" >&6; } |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11361 | fi |
| 11362 | |
| 11363 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11364 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5 |
| 11365 | printf %s "checking for --with-memory-sanitizer... " >&6; } |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11366 | |
| 11367 | # Check whether --with-memory_sanitizer was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11368 | if test ${with_memory_sanitizer+y} |
| 11369 | then : |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11370 | withval=$with_memory_sanitizer; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 11372 | printf "%s\n" "$withval" >&6; } |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11373 | BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS" |
| 11374 | LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS" |
| 11375 | # MSan works by controlling memory allocation, our own malloc interferes. |
| 11376 | with_pymalloc="no" |
| 11377 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11378 | else $as_nop |
| 11379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11380 | printf "%s\n" "no" >&6; } |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11381 | fi |
| 11382 | |
| 11383 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5 |
| 11385 | printf %s "checking for --with-undefined-behavior-sanitizer... " >&6; } |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11386 | |
| 11387 | # Check whether --with-undefined_behavior_sanitizer was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11388 | if test ${with_undefined_behavior_sanitizer+y} |
| 11389 | then : |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11390 | withval=$with_undefined_behavior_sanitizer; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11391 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 11392 | printf "%s\n" "$withval" >&6; } |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11393 | BASECFLAGS="-fsanitize=undefined $BASECFLAGS" |
| 11394 | LDFLAGS="-fsanitize=undefined $LDFLAGS" |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 11395 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11396 | else $as_nop |
| 11397 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11398 | printf "%s\n" "no" >&6; } |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 11399 | fi |
| 11400 | |
| 11401 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11402 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
| 11404 | printf %s "checking for t_open in -lnsl... " >&6; } |
| 11405 | if test ${ac_cv_lib_nsl_t_open+y} |
| 11406 | then : |
| 11407 | printf %s "(cached) " >&6 |
| 11408 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11409 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11410 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11412 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11413 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11414 | /* Override any GCC internal prototype to avoid an error. |
| 11415 | Use char because int might match the return type of a GCC |
| 11416 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11417 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11418 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11419 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11420 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11421 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11422 | ; |
| 11423 | return 0; |
| 11424 | } |
| 11425 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11426 | if ac_fn_c_try_link "$LINENO" |
| 11427 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11428 | ac_cv_lib_nsl_t_open=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11429 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11430 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11431 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11432 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11433 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11434 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11435 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11436 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
| 11437 | printf "%s\n" "$ac_cv_lib_nsl_t_open" >&6; } |
| 11438 | if test "x$ac_cv_lib_nsl_t_open" = xyes |
| 11439 | then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11440 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11441 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 11442 | # SVR4 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 11444 | printf %s "checking for socket in -lsocket... " >&6; } |
| 11445 | if test ${ac_cv_lib_socket_socket+y} |
| 11446 | then : |
| 11447 | printf %s "(cached) " >&6 |
| 11448 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11449 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11450 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11452 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11453 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11454 | /* Override any GCC internal prototype to avoid an error. |
| 11455 | Use char because int might match the return type of a GCC |
| 11456 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11457 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11458 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11459 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11460 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11461 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11462 | ; |
| 11463 | return 0; |
| 11464 | } |
| 11465 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11466 | if ac_fn_c_try_link "$LINENO" |
| 11467 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11468 | ac_cv_lib_socket_socket=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11469 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11470 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11471 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11472 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11473 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11474 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11475 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 11477 | printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } |
| 11478 | if test "x$ac_cv_lib_socket_socket" = xyes |
| 11479 | then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11480 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11481 | fi |
| 11482 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 11483 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11484 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
| 11485 | printf %s "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11486 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11487 | # Check whether --with-libs was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11488 | if test ${with_libs+y} |
| 11489 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11490 | withval=$with_libs; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11491 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 11492 | printf "%s\n" "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11493 | LIBS="$withval $LIBS" |
| 11494 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11495 | else $as_nop |
| 11496 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11497 | printf "%s\n" "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11498 | fi |
| 11499 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11500 | |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11501 | |
| 11502 | |
| 11503 | |
| 11504 | |
| 11505 | |
| 11506 | |
Victor Stinner | b477d19 | 2020-01-22 22:48:16 +0100 | [diff] [blame] | 11507 | |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11508 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 11509 | if test -n "$ac_tool_prefix"; then |
| 11510 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 11511 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11512 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11513 | printf %s "checking for $ac_word... " >&6; } |
| 11514 | if test ${ac_cv_path_PKG_CONFIG+y} |
| 11515 | then : |
| 11516 | printf %s "(cached) " >&6 |
| 11517 | else $as_nop |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11518 | case $PKG_CONFIG in |
| 11519 | [\\/]* | ?:[\\/]*) |
| 11520 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 11521 | ;; |
| 11522 | *) |
| 11523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11524 | for as_dir in $PATH |
| 11525 | do |
| 11526 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11527 | case $as_dir in #((( |
| 11528 | '') as_dir=./ ;; |
| 11529 | */) ;; |
| 11530 | *) as_dir=$as_dir/ ;; |
| 11531 | esac |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11532 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11533 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11534 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 11535 | printf "%s\n" "$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] | 11536 | break 2 |
| 11537 | fi |
| 11538 | done |
| 11539 | done |
| 11540 | IFS=$as_save_IFS |
| 11541 | |
| 11542 | ;; |
| 11543 | esac |
| 11544 | fi |
| 11545 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 11546 | if test -n "$PKG_CONFIG"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11547 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 11548 | printf "%s\n" "$PKG_CONFIG" >&6; } |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11549 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11550 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11551 | printf "%s\n" "no" >&6; } |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11552 | fi |
| 11553 | |
| 11554 | |
| 11555 | fi |
| 11556 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 11557 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 11558 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 11559 | set dummy pkg-config; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11560 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11561 | printf %s "checking for $ac_word... " >&6; } |
| 11562 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} |
| 11563 | then : |
| 11564 | printf %s "(cached) " >&6 |
| 11565 | else $as_nop |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11566 | case $ac_pt_PKG_CONFIG in |
| 11567 | [\\/]* | ?:[\\/]*) |
| 11568 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 11569 | ;; |
| 11570 | *) |
| 11571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11572 | for as_dir in $PATH |
| 11573 | do |
| 11574 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11575 | case $as_dir in #((( |
| 11576 | '') as_dir=./ ;; |
| 11577 | */) ;; |
| 11578 | *) as_dir=$as_dir/ ;; |
| 11579 | esac |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11580 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11581 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11582 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 11583 | printf "%s\n" "$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] | 11584 | break 2 |
| 11585 | fi |
| 11586 | done |
| 11587 | done |
| 11588 | IFS=$as_save_IFS |
| 11589 | |
| 11590 | ;; |
| 11591 | esac |
| 11592 | fi |
| 11593 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 11594 | if test -n "$ac_pt_PKG_CONFIG"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 11596 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11597 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11598 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11599 | printf "%s\n" "no" >&6; } |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11600 | fi |
| 11601 | |
| 11602 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 11603 | PKG_CONFIG="" |
| 11604 | else |
| 11605 | case $cross_compiling:$ac_tool_warned in |
| 11606 | yes:) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11607 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11608 | printf "%s\n" "$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] | 11609 | ac_tool_warned=yes ;; |
| 11610 | esac |
| 11611 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 11612 | fi |
| 11613 | else |
| 11614 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 11615 | fi |
| 11616 | |
| 11617 | fi |
| 11618 | if test -n "$PKG_CONFIG"; then |
| 11619 | _pkg_min_version=0.9.0 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 11621 | printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11622 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11624 | printf "%s\n" "yes" >&6; } |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11625 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11626 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11627 | printf "%s\n" "no" >&6; } |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11628 | PKG_CONFIG="" |
| 11629 | fi |
| 11630 | fi |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11631 | |
| 11632 | # Check for use of the system expat library |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11633 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
| 11634 | printf %s "checking for --with-system-expat... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11635 | |
| 11636 | # Check whether --with-system_expat was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11637 | if test ${with_system_expat+y} |
| 11638 | then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11639 | withval=$with_system_expat; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11640 | else $as_nop |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 11641 | with_system_expat="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11642 | fi |
| 11643 | |
| 11644 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11645 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
| 11646 | printf "%s\n" "$with_system_expat" >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11647 | |
| 11648 | # Check for use of the system libffi library |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
| 11650 | printf %s "checking for --with-system-ffi... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11651 | |
| 11652 | # Check whether --with-system_ffi was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11653 | if test ${with_system_ffi+y} |
| 11654 | then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11655 | withval=$with_system_ffi; |
| 11656 | fi |
| 11657 | |
| 11658 | |
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 11659 | if test "$ac_sys_system" = "Darwin" |
| 11660 | then |
| 11661 | case "$with_system_ffi" in |
| 11662 | "") |
| 11663 | with_system_ffi="no" |
| 11664 | ;; |
| 11665 | yes|no) |
| 11666 | ;; |
| 11667 | *) |
| 11668 | as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 |
| 11669 | ;; |
| 11670 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11671 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
| 11672 | printf "%s\n" "$with_system_ffi" >&6; } |
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 11673 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11675 | printf "%s\n" "yes" >&6; } |
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 11676 | if test "$with_system_ffi" != "" |
| 11677 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 |
| 11679 | printf "%s\n" "$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] | 11680 | fi |
| 11681 | with_system_ffi="yes" |
| 11682 | fi |
Zachary Ware | 935043d | 2016-09-09 17:01:21 -0700 | [diff] [blame] | 11683 | |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11684 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 11685 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 11686 | else |
| 11687 | LIBFFI_INCLUDEDIR="" |
| 11688 | fi |
| 11689 | |
| 11690 | |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 11691 | # Check for use of the system libmpdec library |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11692 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 |
| 11693 | printf %s "checking for --with-system-libmpdec... " >&6; } |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 11694 | |
| 11695 | # Check whether --with-system_libmpdec was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11696 | if test ${with_system_libmpdec+y} |
| 11697 | then : |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 11698 | withval=$with_system_libmpdec; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11699 | else $as_nop |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 11700 | with_system_libmpdec="no" |
| 11701 | fi |
| 11702 | |
| 11703 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 |
| 11705 | printf "%s\n" "$with_system_libmpdec" >&6; } |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 11706 | |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 11707 | # Check whether _decimal should use a coroutine-local or thread-local context |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5 |
| 11709 | printf %s "checking for --with-decimal-contextvar... " >&6; } |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 11710 | |
| 11711 | # Check whether --with-decimal_contextvar was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11712 | if test ${with_decimal_contextvar+y} |
| 11713 | then : |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 11714 | withval=$with_decimal_contextvar; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11715 | else $as_nop |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 11716 | with_decimal_contextvar="yes" |
| 11717 | fi |
| 11718 | |
| 11719 | |
| 11720 | if test "$with_decimal_contextvar" != "no" |
| 11721 | then |
| 11722 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11723 | printf "%s\n" "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 11724 | |
| 11725 | fi |
| 11726 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5 |
| 11728 | printf "%s\n" "$with_decimal_contextvar" >&6; } |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 11729 | |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 11730 | # Check for support for loadable sqlite extensions |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 |
| 11732 | printf %s "checking for --enable-loadable-sqlite-extensions... " >&6; } |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 11733 | # Check whether --enable-loadable-sqlite-extensions was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11734 | if test ${enable_loadable_sqlite_extensions+y} |
| 11735 | then : |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 11736 | enableval=$enable_loadable_sqlite_extensions; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11737 | else $as_nop |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 11738 | enable_loadable_sqlite_extensions="no" |
| 11739 | fi |
| 11740 | |
| 11741 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 |
| 11743 | printf "%s\n" "$enable_loadable_sqlite_extensions" >&6; } |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 11744 | |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11745 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path |
| 11746 | |
| 11747 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 |
| 11749 | printf %s "checking for --with-tcltk-includes... " >&6; } |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11750 | |
| 11751 | # Check whether --with-tcltk-includes was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11752 | if test ${with_tcltk_includes+y} |
| 11753 | then : |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11754 | withval=$with_tcltk_includes; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11755 | else $as_nop |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11756 | with_tcltk_includes="default" |
| 11757 | fi |
| 11758 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 |
| 11760 | printf "%s\n" "$with_tcltk_includes" >&6; } |
| 11761 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 |
| 11762 | printf %s "checking for --with-tcltk-libs... " >&6; } |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11763 | |
| 11764 | # Check whether --with-tcltk-libs was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11765 | if test ${with_tcltk_libs+y} |
| 11766 | then : |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11767 | withval=$with_tcltk_libs; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11768 | else $as_nop |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11769 | with_tcltk_libs="default" |
| 11770 | fi |
| 11771 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 |
| 11773 | printf "%s\n" "$with_tcltk_libs" >&6; } |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11774 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault |
| 11775 | then |
| 11776 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" |
| 11777 | then |
| 11778 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 |
| 11779 | fi |
Manolis Stamatogiannakis | d202794 | 2021-03-01 04:29:57 +0100 | [diff] [blame] | 11780 | if test -n "$PKG_CONFIG" && "$PKG_CONFIG" --exists tcl tk; then |
| 11781 | TCLTK_INCLUDES="`"$PKG_CONFIG" tcl tk --cflags-only-I 2>/dev/null`" |
| 11782 | TCLTK_LIBS="`"$PKG_CONFIG" tcl tk --libs 2>/dev/null`" |
| 11783 | else |
| 11784 | TCLTK_INCLUDES="" |
| 11785 | TCLTK_LIBS="" |
| 11786 | fi |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11787 | else |
| 11788 | TCLTK_INCLUDES="$with_tcltk_includes" |
| 11789 | TCLTK_LIBS="$with_tcltk_libs" |
| 11790 | fi |
| 11791 | |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 11792 | # Check for --with-dbmliborder |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11793 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
| 11794 | printf %s "checking for --with-dbmliborder... " >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 11795 | |
| 11796 | # Check whether --with-dbmliborder was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11797 | if test ${with_dbmliborder+y} |
| 11798 | then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 11799 | withval=$with_dbmliborder; |
| 11800 | if test x$with_dbmliborder = xyes |
| 11801 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11802 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 11803 | else |
| 11804 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 11805 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 11806 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11807 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 11808 | fi |
| 11809 | done |
| 11810 | fi |
| 11811 | fi |
| 11812 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11813 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
| 11814 | printf "%s\n" "$with_dbmliborder" >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 11815 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11816 | # Templates for things AC_DEFINEd more than once. |
| 11817 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11818 | |
| 11819 | |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11820 | if test "$ac_cv_pthread_is_default" = yes |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11821 | then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11822 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11823 | printf "%s\n" "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11824 | |
| 11825 | posix_threads=yes |
Jesús Cea | 52d1b86 | 2019-09-28 03:44:32 +0200 | [diff] [blame] | 11826 | if test "$ac_sys_system" = "SunOS"; then |
| 11827 | CFLAGS="$CFLAGS -D_REENTRANT" |
| 11828 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11829 | elif test "$ac_cv_kpthread" = "yes" |
| 11830 | then |
| 11831 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11832 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11833 | CXX="$CXX -Kpthread" |
| 11834 | fi |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11835 | posix_threads=yes |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11836 | elif test "$ac_cv_kthread" = "yes" |
| 11837 | then |
| 11838 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11839 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11840 | CXX="$CXX -Kthread" |
| 11841 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11842 | posix_threads=yes |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11843 | elif test "$ac_cv_pthread" = "yes" |
| 11844 | then |
| 11845 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11846 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11847 | CXX="$CXX -pthread" |
| 11848 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11849 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11850 | else |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11851 | if test ! -z "$withval" -a -d "$withval" |
| 11852 | then LDFLAGS="$LDFLAGS -L$withval" |
| 11853 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11854 | |
| 11855 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 11856 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 11857 | # (e.g. gnu pth with pthread emulation) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11858 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
| 11859 | printf %s "checking for _POSIX_THREADS in unistd.h... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11861 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11862 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11863 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11864 | #ifdef _POSIX_THREADS |
| 11865 | yes |
| 11866 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11867 | |
| 11868 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11869 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11870 | $EGREP "yes" >/dev/null 2>&1 |
| 11871 | then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11872 | unistd_defines_pthreads=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11873 | else $as_nop |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11874 | unistd_defines_pthreads=no |
| 11875 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11876 | rm -rf conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11877 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11878 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
| 11879 | printf "%s\n" "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11880 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11881 | printf "%s\n" "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11882 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11883 | # Just looking for pthread_create in libpthread is not enough: |
| 11884 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 11885 | # So we really have to include pthread.h, and then link. |
| 11886 | _libs=$LIBS |
| 11887 | LIBS="$LIBS -lpthread" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11888 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 11889 | printf %s "checking for pthread_create in -lpthread... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11891 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 11892 | |
| 11893 | #include <stdio.h> |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11894 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11895 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11896 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11897 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11898 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11899 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11900 | |
| 11901 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11902 | ; |
| 11903 | return 0; |
| 11904 | } |
| 11905 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11906 | if ac_fn_c_try_link "$LINENO" |
| 11907 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11908 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11909 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11910 | printf "%s\n" "yes" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11911 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11912 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11913 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11914 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11915 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11916 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11917 | if test "x$ac_cv_func_pthread_detach" = xyes |
| 11918 | then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11919 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11920 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11921 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11922 | else $as_nop |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11923 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
| 11925 | printf %s "checking for pthread_create in -lpthreads... " >&6; } |
| 11926 | if test ${ac_cv_lib_pthreads_pthread_create+y} |
| 11927 | then : |
| 11928 | printf %s "(cached) " >&6 |
| 11929 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11930 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11931 | LIBS="-lpthreads $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11933 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11934 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11935 | /* Override any GCC internal prototype to avoid an error. |
| 11936 | Use char because int might match the return type of a GCC |
| 11937 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11938 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11939 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11940 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11941 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11942 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11943 | ; |
| 11944 | return 0; |
| 11945 | } |
| 11946 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11947 | if ac_fn_c_try_link "$LINENO" |
| 11948 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11949 | ac_cv_lib_pthreads_pthread_create=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11950 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11951 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11952 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11953 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11954 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11955 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11956 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11957 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 11958 | printf "%s\n" "$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 11959 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes |
| 11960 | then : |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11961 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11962 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11963 | LIBS="$LIBS -lpthreads" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11964 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11965 | else $as_nop |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11966 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
| 11968 | printf %s "checking for pthread_create in -lc_r... " >&6; } |
| 11969 | if test ${ac_cv_lib_c_r_pthread_create+y} |
| 11970 | then : |
| 11971 | printf %s "(cached) " >&6 |
| 11972 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11973 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11974 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11976 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11977 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11978 | /* Override any GCC internal prototype to avoid an error. |
| 11979 | Use char because int might match the return type of a GCC |
| 11980 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11981 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11982 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11983 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11984 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11985 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11986 | ; |
| 11987 | return 0; |
| 11988 | } |
| 11989 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11990 | if ac_fn_c_try_link "$LINENO" |
| 11991 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11992 | ac_cv_lib_c_r_pthread_create=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11993 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11994 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11995 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 11996 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11997 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11998 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11999 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 12001 | printf "%s\n" "$ac_cv_lib_c_r_pthread_create" >&6; } |
| 12002 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes |
| 12003 | then : |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12004 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12005 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12006 | LIBS="$LIBS -lc_r" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 12007 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12008 | else $as_nop |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12009 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
| 12011 | printf %s "checking for __pthread_create_system in -lpthread... " >&6; } |
| 12012 | if test ${ac_cv_lib_pthread___pthread_create_system+y} |
| 12013 | then : |
| 12014 | printf %s "(cached) " >&6 |
| 12015 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12016 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12017 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12019 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12020 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12021 | /* Override any GCC internal prototype to avoid an error. |
| 12022 | Use char because int might match the return type of a GCC |
| 12023 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12024 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12025 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12026 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12027 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12028 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12029 | ; |
| 12030 | return 0; |
| 12031 | } |
| 12032 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12033 | if ac_fn_c_try_link "$LINENO" |
| 12034 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12035 | ac_cv_lib_pthread___pthread_create_system=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12036 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12037 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12038 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12039 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12040 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12041 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12042 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12043 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 12044 | printf "%s\n" "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 12045 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes |
| 12046 | then : |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12047 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12048 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12049 | LIBS="$LIBS -lpthread" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 12050 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12051 | else $as_nop |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12052 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
| 12054 | printf %s "checking for pthread_create in -lcma... " >&6; } |
| 12055 | if test ${ac_cv_lib_cma_pthread_create+y} |
| 12056 | then : |
| 12057 | printf %s "(cached) " >&6 |
| 12058 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12059 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12060 | LIBS="-lcma $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12062 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12063 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12064 | /* Override any GCC internal prototype to avoid an error. |
| 12065 | Use char because int might match the return type of a GCC |
| 12066 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12067 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12068 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12069 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12070 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12071 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12072 | ; |
| 12073 | return 0; |
| 12074 | } |
| 12075 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12076 | if ac_fn_c_try_link "$LINENO" |
| 12077 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12078 | ac_cv_lib_cma_pthread_create=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12079 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12080 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12081 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12082 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12083 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12084 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12085 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12086 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 12087 | printf "%s\n" "$ac_cv_lib_cma_pthread_create" >&6; } |
| 12088 | if test "x$ac_cv_lib_cma_pthread_create" = xyes |
| 12089 | then : |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12090 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12091 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12092 | LIBS="$LIBS -lcma" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 12093 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12094 | else $as_nop |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 12095 | |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 12096 | as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 |
| 12097 | |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 12098 | fi |
| 12099 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12100 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12101 | fi |
| 12102 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 12103 | fi |
| 12104 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12105 | fi |
| 12106 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12107 | fi |
| 12108 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12109 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12110 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12111 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12112 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
| 12114 | printf %s "checking for usconfig in -lmpc... " >&6; } |
| 12115 | if test ${ac_cv_lib_mpc_usconfig+y} |
| 12116 | then : |
| 12117 | printf %s "(cached) " >&6 |
| 12118 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12119 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12120 | LIBS="-lmpc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12122 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12123 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12124 | /* Override any GCC internal prototype to avoid an error. |
| 12125 | Use char because int might match the return type of a GCC |
| 12126 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12127 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12128 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12129 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12130 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12131 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12132 | ; |
| 12133 | return 0; |
| 12134 | } |
| 12135 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12136 | if ac_fn_c_try_link "$LINENO" |
| 12137 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 | ac_cv_lib_mpc_usconfig=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12139 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12140 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12141 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12142 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12143 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12144 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12145 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12146 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 12147 | printf "%s\n" "$ac_cv_lib_mpc_usconfig" >&6; } |
| 12148 | if test "x$ac_cv_lib_mpc_usconfig" = xyes |
| 12149 | then : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12150 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12151 | LIBS="$LIBS -lmpc" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 12152 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12153 | fi |
| 12154 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12155 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12156 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12157 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12158 | if test "$posix_threads" = "yes"; then |
| 12159 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12160 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12161 | printf "%s\n" "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12162 | |
| 12163 | fi |
| 12164 | |
| 12165 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 12166 | case $ac_sys_system/$ac_sys_release in |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 12167 | SunOS/5.6) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12168 | printf "%s\n" "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12169 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12170 | ;; |
| 12171 | SunOS/5.8) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12172 | printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12173 | |
| 12174 | ;; |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 12175 | AIX/*) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12176 | printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 12177 | |
| 12178 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12179 | esac |
| 12180 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12181 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 12182 | printf %s "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
| 12183 | if test ${ac_cv_pthread_system_supported+y} |
| 12184 | then : |
| 12185 | printf %s "(cached) " >&6 |
| 12186 | else $as_nop |
| 12187 | if test "$cross_compiling" = yes |
| 12188 | then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12189 | ac_cv_pthread_system_supported=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12190 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12192 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 12193 | |
| 12194 | #include <stdio.h> |
| 12195 | #include <pthread.h> |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12196 | void *foo(void *parm) { |
| 12197 | return NULL; |
| 12198 | } |
| 12199 | main() { |
| 12200 | pthread_attr_t attr; |
| 12201 | pthread_t id; |
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 12202 | if (pthread_attr_init(&attr)) return (-1); |
| 12203 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1); |
| 12204 | if (pthread_create(&id, &attr, foo, NULL)) return (-1); |
| 12205 | return (0); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12206 | } |
| 12207 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12208 | if ac_fn_c_try_run "$LINENO" |
| 12209 | then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12210 | ac_cv_pthread_system_supported=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12211 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12212 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12213 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12214 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12215 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12216 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12217 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12218 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12219 | fi |
| 12220 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12221 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
| 12222 | printf "%s\n" "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12223 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 12224 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12225 | printf "%s\n" "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12226 | |
| 12227 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12228 | |
| 12229 | for ac_func in pthread_sigmask |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12230 | do : |
| 12231 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12232 | if test "x$ac_cv_func_pthread_sigmask" = xyes |
| 12233 | then : |
| 12234 | printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12235 | case $ac_sys_system in |
| 12236 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12237 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12238 | printf "%s\n" "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12239 | |
| 12240 | ;; |
| 12241 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12242 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12243 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12244 | done |
| 12245 | ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" |
| 12246 | if test "x$ac_cv_func_pthread_getcpuclockid" = xyes |
| 12247 | then : |
| 12248 | printf "%s\n" "#define HAVE_PTHREAD_GETCPUCLOCKID 1" >>confdefs.h |
pdox | e14679c | 2017-10-05 00:01:56 -0700 | [diff] [blame] | 12249 | |
| 12250 | fi |
pdox | e14679c | 2017-10-05 00:01:56 -0700 | [diff] [blame] | 12251 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12252 | fi |
| 12253 | |
| 12254 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12255 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12256 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
| 12258 | printf %s "checking if --enable-ipv6 is specified... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12259 | # Check whether --enable-ipv6 was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12260 | if test ${enable_ipv6+y} |
| 12261 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12262 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12263 | no) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12264 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12265 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12266 | ipv6=no |
| 12267 | ;; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12268 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12269 | printf "%s\n" "yes" >&6; } |
| 12270 | printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12271 | |
| 12272 | ipv6=yes |
| 12273 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12274 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12275 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12276 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12278 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12279 | /* AF_INET6 available check */ |
| 12280 | #include <sys/types.h> |
| 12281 | #include <sys/socket.h> |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 12282 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12283 | main (void) |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12284 | { |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 12285 | int domain = AF_INET6; |
| 12286 | ; |
| 12287 | return 0; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12288 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12289 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12290 | if ac_fn_c_try_compile "$LINENO" |
| 12291 | then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12292 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12294 | printf "%s\n" "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12295 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12296 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12297 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12298 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12299 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12300 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12301 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12302 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12303 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12304 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12305 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12306 | if test "$ipv6" = "yes"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
| 12308 | printf %s "checking if RFC2553 API is available... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12310 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12311 | |
| 12312 | #include <sys/types.h> |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12313 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12314 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12315 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12316 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12317 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12318 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12319 | ; |
| 12320 | return 0; |
| 12321 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12322 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12323 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12324 | if ac_fn_c_try_compile "$LINENO" |
| 12325 | then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12326 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12327 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12328 | printf "%s\n" "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12329 | ipv6=yes |
| 12330 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12331 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12332 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12333 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12334 | printf "%s\n" "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12335 | ipv6=no |
| 12336 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12337 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12338 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12339 | fi |
| 12340 | |
| 12341 | if test "$ipv6" = "yes"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12342 | printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12343 | |
| 12344 | fi |
| 12345 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12346 | fi |
| 12347 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12348 | |
| 12349 | ipv6type=unknown |
| 12350 | ipv6lib=none |
| 12351 | ipv6trylibc=no |
| 12352 | |
| 12353 | if test "$ipv6" = "yes"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
| 12355 | printf %s "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 12356 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 12357 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12358 | case $i in |
| 12359 | inria) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12361 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12362 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12363 | #include <netinet/in.h> |
| 12364 | #ifdef IPV6_INRIA_VERSION |
| 12365 | yes |
| 12366 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12367 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12368 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12369 | $EGREP "yes" >/dev/null 2>&1 |
| 12370 | then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12371 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12372 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12373 | rm -rf conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12374 | |
| 12375 | ;; |
| 12376 | kame) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12378 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12379 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12380 | #include <netinet/in.h> |
| 12381 | #ifdef __KAME__ |
| 12382 | yes |
| 12383 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12384 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12385 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12386 | $EGREP "yes" >/dev/null 2>&1 |
| 12387 | then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12388 | ipv6type=$i; |
| 12389 | ipv6lib=inet6 |
| 12390 | ipv6libdir=/usr/local/v6/lib |
| 12391 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12392 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12393 | rm -rf conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12394 | |
| 12395 | ;; |
| 12396 | linux-glibc) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12398 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12399 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12400 | #include <features.h> |
| 12401 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 12402 | yes |
| 12403 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12404 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12405 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12406 | $EGREP "yes" >/dev/null 2>&1 |
| 12407 | then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12408 | ipv6type=$i; |
| 12409 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12410 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12411 | rm -rf conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12412 | |
| 12413 | ;; |
| 12414 | linux-inet6) |
| 12415 | if test -d /usr/inet6; then |
| 12416 | ipv6type=$i |
| 12417 | ipv6lib=inet6 |
| 12418 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12419 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12420 | fi |
| 12421 | ;; |
| 12422 | solaris) |
| 12423 | if test -f /etc/netconfig; then |
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 12424 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12425 | ipv6type=$i |
| 12426 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12427 | fi |
| 12428 | fi |
| 12429 | ;; |
| 12430 | toshiba) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12432 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12433 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12434 | #include <sys/param.h> |
| 12435 | #ifdef _TOSHIBA_INET6 |
| 12436 | yes |
| 12437 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12438 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12439 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12440 | $EGREP "yes" >/dev/null 2>&1 |
| 12441 | then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12442 | ipv6type=$i; |
| 12443 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12444 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12445 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12446 | rm -rf conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12447 | |
| 12448 | ;; |
| 12449 | v6d) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12451 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12452 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12453 | #include </usr/local/v6/include/sys/v6config.h> |
| 12454 | #ifdef __V6D__ |
| 12455 | yes |
| 12456 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12457 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12458 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12459 | $EGREP "yes" >/dev/null 2>&1 |
| 12460 | then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12461 | ipv6type=$i; |
| 12462 | ipv6lib=v6; |
| 12463 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12464 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12465 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12466 | rm -rf conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12467 | |
| 12468 | ;; |
| 12469 | zeta) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12471 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12472 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12473 | #include <sys/param.h> |
| 12474 | #ifdef _ZETA_MINAMI_INET6 |
| 12475 | yes |
| 12476 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12477 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12478 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12479 | $EGREP "yes" >/dev/null 2>&1 |
| 12480 | then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12481 | ipv6type=$i; |
| 12482 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12483 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12484 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12485 | rm -rf conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12486 | |
| 12487 | ;; |
| 12488 | esac |
| 12489 | if test "$ipv6type" != "unknown"; then |
| 12490 | break |
| 12491 | fi |
| 12492 | done |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12493 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
| 12494 | printf "%s\n" "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12495 | fi |
| 12496 | |
| 12497 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 12498 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 12499 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 12500 | echo "using lib$ipv6lib" |
| 12501 | else |
| 12502 | if test $ipv6trylibc = "yes"; then |
| 12503 | echo "using libc" |
| 12504 | else |
| 12505 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 12506 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 12507 | echo 'ipv6 kit and compile beforehand.' |
| 12508 | exit 1 |
| 12509 | fi |
| 12510 | fi |
| 12511 | fi |
| 12512 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12513 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 |
| 12514 | printf %s "checking for CAN_RAW_FD_FRAMES... " >&6; } |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12516 | /* end confdefs.h. */ |
| 12517 | /* CAN_RAW_FD_FRAMES available check */ |
| 12518 | #include <linux/can/raw.h> |
| 12519 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12520 | main (void) |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12521 | { |
| 12522 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; |
| 12523 | ; |
| 12524 | return 0; |
| 12525 | } |
| 12526 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12527 | if ac_fn_c_try_compile "$LINENO" |
| 12528 | then : |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12529 | |
| 12530 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12531 | printf "%s\n" "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12532 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12533 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12534 | printf "%s\n" "yes" >&6; } |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12535 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12536 | else $as_nop |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12537 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12538 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12539 | printf "%s\n" "no" >&6; } |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12540 | |
| 12541 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12542 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12543 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12544 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5 |
| 12545 | printf %s "checking for CAN_RAW_JOIN_FILTERS... " >&6; } |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12547 | /* end confdefs.h. */ |
| 12548 | |
| 12549 | #include <linux/can/raw.h> |
| 12550 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12551 | main (void) |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12552 | { |
| 12553 | int can_raw_join_filters = CAN_RAW_JOIN_FILTERS; |
| 12554 | ; |
| 12555 | return 0; |
| 12556 | } |
| 12557 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12558 | if ac_fn_c_try_compile "$LINENO" |
| 12559 | then : |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12560 | |
| 12561 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12562 | printf "%s\n" "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12563 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12565 | printf "%s\n" "yes" >&6; } |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12566 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12567 | else $as_nop |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12568 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12570 | printf "%s\n" "no" >&6; } |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12571 | |
| 12572 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12573 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12574 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12575 | # Check for --with-doc-strings |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12576 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
| 12577 | printf %s "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12578 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12579 | # Check whether --with-doc-strings was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12580 | if test ${with_doc_strings+y} |
| 12581 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12582 | withval=$with_doc_strings; |
| 12583 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12584 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12585 | |
| 12586 | if test -z "$with_doc_strings" |
| 12587 | then with_doc_strings="yes" |
| 12588 | fi |
| 12589 | if test "$with_doc_strings" != "no" |
| 12590 | then |
| 12591 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12592 | printf "%s\n" "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12593 | |
| 12594 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
| 12596 | printf "%s\n" "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12597 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 12598 | # Check for Python-specific malloc support |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
| 12600 | printf %s "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12601 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12602 | # Check whether --with-pymalloc was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12603 | if test ${with_pymalloc+y} |
| 12604 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12605 | withval=$with_pymalloc; |
| 12606 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12607 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12608 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12609 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12610 | then |
| 12611 | with_pymalloc="yes" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12612 | fi |
| 12613 | if test "$with_pymalloc" != "no" |
| 12614 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12615 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12616 | printf "%s\n" "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12617 | |
| 12618 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12619 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
| 12620 | printf "%s\n" "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12621 | |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 12622 | # Check for --with-c-locale-coercion |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 |
| 12624 | printf %s "checking for --with-c-locale-coercion... " >&6; } |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 12625 | |
| 12626 | # Check whether --with-c-locale-coercion was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12627 | if test ${with_c_locale_coercion+y} |
| 12628 | then : |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 12629 | withval=$with_c_locale_coercion; |
| 12630 | fi |
| 12631 | |
| 12632 | |
| 12633 | if test -z "$with_c_locale_coercion" |
| 12634 | then |
| 12635 | with_c_locale_coercion="yes" |
| 12636 | fi |
| 12637 | if test "$with_c_locale_coercion" != "no" |
| 12638 | then |
| 12639 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12640 | printf "%s\n" "#define PY_COERCE_C_LOCALE 1" >>confdefs.h |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 12641 | |
| 12642 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12643 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 |
| 12644 | printf "%s\n" "$with_c_locale_coercion" >&6; } |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 12645 | |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12646 | # Check for Valgrind support |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
| 12648 | printf %s "checking for --with-valgrind... " >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12649 | |
| 12650 | # Check whether --with-valgrind was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12651 | if test ${with_valgrind+y} |
| 12652 | then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12653 | withval=$with_valgrind; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12654 | else $as_nop |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12655 | with_valgrind=no |
| 12656 | fi |
| 12657 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
| 12659 | printf "%s\n" "$with_valgrind" >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12660 | if test "$with_valgrind" != no; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12661 | ac_fn_c_check_header_compile "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" |
| 12662 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes |
| 12663 | then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12664 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12665 | printf "%s\n" "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12666 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12667 | else $as_nop |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12668 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12669 | |
| 12670 | fi |
| 12671 | |
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 12672 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12673 | fi |
| 12674 | |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12675 | # Check for DTrace support |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 |
| 12677 | printf %s "checking for --with-dtrace... " >&6; } |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12678 | |
| 12679 | # Check whether --with-dtrace was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12680 | if test ${with_dtrace+y} |
| 12681 | then : |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12682 | withval=$with_dtrace; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12683 | else $as_nop |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12684 | with_dtrace=no |
| 12685 | fi |
| 12686 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 |
| 12688 | printf "%s\n" "$with_dtrace" >&6; } |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12689 | |
| 12690 | |
| 12691 | |
| 12692 | |
| 12693 | |
| 12694 | DTRACE= |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12695 | DTRACE_HEADERS= |
| 12696 | DTRACE_OBJS= |
| 12697 | |
| 12698 | if test "$with_dtrace" = "yes" |
| 12699 | then |
| 12700 | # Extract the first word of "dtrace", so it can be a program name with args. |
| 12701 | set dummy dtrace; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12703 | printf %s "checking for $ac_word... " >&6; } |
| 12704 | if test ${ac_cv_path_DTRACE+y} |
| 12705 | then : |
| 12706 | printf %s "(cached) " >&6 |
| 12707 | else $as_nop |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12708 | case $DTRACE in |
| 12709 | [\\/]* | ?:[\\/]*) |
| 12710 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. |
| 12711 | ;; |
| 12712 | *) |
| 12713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12714 | for as_dir in $PATH |
| 12715 | do |
| 12716 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12717 | case $as_dir in #((( |
| 12718 | '') as_dir=./ ;; |
| 12719 | */) ;; |
| 12720 | *) as_dir=$as_dir/ ;; |
| 12721 | esac |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12722 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12723 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 12724 | ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext" |
| 12725 | printf "%s\n" "$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] | 12726 | break 2 |
| 12727 | fi |
| 12728 | done |
| 12729 | done |
| 12730 | IFS=$as_save_IFS |
| 12731 | |
| 12732 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" |
| 12733 | ;; |
| 12734 | esac |
| 12735 | fi |
| 12736 | DTRACE=$ac_cv_path_DTRACE |
| 12737 | if test -n "$DTRACE"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12738 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 |
| 12739 | printf "%s\n" "$DTRACE" >&6; } |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12740 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12742 | printf "%s\n" "no" >&6; } |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12743 | fi |
| 12744 | |
| 12745 | |
| 12746 | if test "$DTRACE" = "not found"; then |
| 12747 | as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 |
| 12748 | fi |
| 12749 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12750 | printf "%s\n" "#define WITH_DTRACE 1" >>confdefs.h |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12751 | |
| 12752 | DTRACE_HEADERS="Include/pydtrace_probes.h" |
| 12753 | |
| 12754 | # On OS X, DTrace providers do not need to be explicitly compiled and |
| 12755 | # linked into the binary. Correspondingly, dtrace(1) is missing the ELF |
| 12756 | # generation flag '-G'. We check for presence of this flag, rather than |
| 12757 | # hardcoding support by OS, in the interest of robustness. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12758 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 |
| 12759 | printf %s "checking whether DTrace probes require linking... " >&6; } |
| 12760 | if test ${ac_cv_dtrace_link+y} |
| 12761 | then : |
| 12762 | printf %s "(cached) " >&6 |
| 12763 | else $as_nop |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12764 | ac_cv_dtrace_link=no |
Jakub Kulík | 5c8f537 | 2019-01-24 18:29:48 +0100 | [diff] [blame] | 12765 | echo 'BEGIN{}' > conftest.d |
Petr Viktorin | 3c97e1e | 2020-03-11 14:27:42 +0100 | [diff] [blame] | 12766 | "$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] | 12767 | ac_cv_dtrace_link=yes |
| 12768 | |
| 12769 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 |
| 12771 | printf "%s\n" "$ac_cv_dtrace_link" >&6; } |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12772 | if test "$ac_cv_dtrace_link" = "yes"; then |
| 12773 | DTRACE_OBJS="Python/pydtrace.o" |
| 12774 | fi |
| 12775 | fi |
| 12776 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12777 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12778 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 12779 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12780 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12781 | # 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] | 12782 | # platforms have dlopen(), but don't want to use it. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12783 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 12784 | if test "x$ac_cv_func_dlopen" = xyes |
| 12785 | then : |
| 12786 | printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12787 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12788 | fi |
| 12789 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12790 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12791 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 12792 | # loading of modules. |
| 12793 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
| 12795 | printf %s "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12796 | if test -z "$DYNLOADFILE" |
| 12797 | then |
| 12798 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12799 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12800 | *) |
| 12801 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 12802 | # out any dynamic loading |
| 12803 | if test "$ac_cv_func_dlopen" = yes |
| 12804 | then DYNLOADFILE="dynload_shlib.o" |
| 12805 | else DYNLOADFILE="dynload_stub.o" |
| 12806 | fi |
| 12807 | ;; |
| 12808 | esac |
| 12809 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
| 12811 | printf "%s\n" "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12812 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 12813 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12814 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12815 | printf "%s\n" "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12816 | |
| 12817 | fi |
| 12818 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12819 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 12820 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12821 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
| 12823 | printf %s "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12824 | if test -z "$MACHDEP_OBJS" |
| 12825 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12826 | MACHDEP_OBJS=$extra_machdep_objs |
| 12827 | else |
| 12828 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12829 | fi |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12830 | if test -z "$MACHDEP_OBJS"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 12832 | printf "%s\n" "none" >&6; } |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12833 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12834 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 |
| 12835 | printf "%s\n" "$MACHDEP_OBJS" >&6; } |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12836 | fi |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12837 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12838 | # checks for library functions |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12839 | ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm" |
| 12840 | if test "x$ac_cv_func_alarm" = xyes |
| 12841 | then : |
| 12842 | printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12843 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12844 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 12845 | ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" |
| 12846 | if test "x$ac_cv_func_accept4" = xyes |
| 12847 | then : |
| 12848 | printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h |
| 12849 | |
| 12850 | fi |
| 12851 | ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" |
| 12852 | if test "x$ac_cv_func_setitimer" = xyes |
| 12853 | then : |
| 12854 | printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h |
| 12855 | |
| 12856 | fi |
| 12857 | ac_fn_c_check_func "$LINENO" "getitimer" "ac_cv_func_getitimer" |
| 12858 | if test "x$ac_cv_func_getitimer" = xyes |
| 12859 | then : |
| 12860 | printf "%s\n" "#define HAVE_GETITIMER 1" >>confdefs.h |
| 12861 | |
| 12862 | fi |
| 12863 | ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" |
| 12864 | if test "x$ac_cv_func_bind_textdomain_codeset" = xyes |
| 12865 | then : |
| 12866 | printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h |
| 12867 | |
| 12868 | fi |
| 12869 | ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown" |
| 12870 | if test "x$ac_cv_func_chown" = xyes |
| 12871 | then : |
| 12872 | printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h |
| 12873 | |
| 12874 | fi |
| 12875 | ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock" |
| 12876 | if test "x$ac_cv_func_clock" = xyes |
| 12877 | then : |
| 12878 | printf "%s\n" "#define HAVE_CLOCK 1" >>confdefs.h |
| 12879 | |
| 12880 | fi |
| 12881 | ac_fn_c_check_func "$LINENO" "confstr" "ac_cv_func_confstr" |
| 12882 | if test "x$ac_cv_func_confstr" = xyes |
| 12883 | then : |
| 12884 | printf "%s\n" "#define HAVE_CONFSTR 1" >>confdefs.h |
| 12885 | |
| 12886 | fi |
| 12887 | ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range" |
| 12888 | if test "x$ac_cv_func_close_range" = xyes |
| 12889 | then : |
| 12890 | printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h |
| 12891 | |
| 12892 | fi |
| 12893 | ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range" |
| 12894 | if test "x$ac_cv_func_copy_file_range" = xyes |
| 12895 | then : |
| 12896 | printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
| 12897 | |
| 12898 | fi |
| 12899 | ac_fn_c_check_func "$LINENO" "ctermid" "ac_cv_func_ctermid" |
| 12900 | if test "x$ac_cv_func_ctermid" = xyes |
| 12901 | then : |
| 12902 | printf "%s\n" "#define HAVE_CTERMID 1" >>confdefs.h |
| 12903 | |
| 12904 | fi |
| 12905 | ac_fn_c_check_func "$LINENO" "dup3" "ac_cv_func_dup3" |
| 12906 | if test "x$ac_cv_func_dup3" = xyes |
| 12907 | then : |
| 12908 | printf "%s\n" "#define HAVE_DUP3 1" >>confdefs.h |
| 12909 | |
| 12910 | fi |
| 12911 | ac_fn_c_check_func "$LINENO" "execv" "ac_cv_func_execv" |
| 12912 | if test "x$ac_cv_func_execv" = xyes |
| 12913 | then : |
| 12914 | printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h |
| 12915 | |
| 12916 | fi |
| 12917 | ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" |
| 12918 | if test "x$ac_cv_func_explicit_bzero" = xyes |
| 12919 | then : |
| 12920 | printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h |
| 12921 | |
| 12922 | fi |
| 12923 | ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset" |
| 12924 | if test "x$ac_cv_func_explicit_memset" = xyes |
| 12925 | then : |
| 12926 | printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h |
| 12927 | |
| 12928 | fi |
| 12929 | ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat" |
| 12930 | if test "x$ac_cv_func_faccessat" = xyes |
| 12931 | then : |
| 12932 | printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h |
| 12933 | |
| 12934 | fi |
| 12935 | ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod" |
| 12936 | if test "x$ac_cv_func_fchmod" = xyes |
| 12937 | then : |
| 12938 | printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h |
| 12939 | |
| 12940 | fi |
| 12941 | ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat" |
| 12942 | if test "x$ac_cv_func_fchmodat" = xyes |
| 12943 | then : |
| 12944 | printf "%s\n" "#define HAVE_FCHMODAT 1" >>confdefs.h |
| 12945 | |
| 12946 | fi |
| 12947 | ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" |
| 12948 | if test "x$ac_cv_func_fchown" = xyes |
| 12949 | then : |
| 12950 | printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h |
| 12951 | |
| 12952 | fi |
| 12953 | ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat" |
| 12954 | if test "x$ac_cv_func_fchownat" = xyes |
| 12955 | then : |
| 12956 | printf "%s\n" "#define HAVE_FCHOWNAT 1" >>confdefs.h |
| 12957 | |
| 12958 | fi |
| 12959 | ac_fn_c_check_func "$LINENO" "fdwalk" "ac_cv_func_fdwalk" |
| 12960 | if test "x$ac_cv_func_fdwalk" = xyes |
| 12961 | then : |
| 12962 | printf "%s\n" "#define HAVE_FDWALK 1" >>confdefs.h |
| 12963 | |
| 12964 | fi |
| 12965 | ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve" |
| 12966 | if test "x$ac_cv_func_fexecve" = xyes |
| 12967 | then : |
| 12968 | printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h |
| 12969 | |
| 12970 | fi |
| 12971 | ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir" |
| 12972 | if test "x$ac_cv_func_fdopendir" = xyes |
| 12973 | then : |
| 12974 | printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h |
| 12975 | |
| 12976 | fi |
| 12977 | ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" |
| 12978 | if test "x$ac_cv_func_fork" = xyes |
| 12979 | then : |
| 12980 | printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h |
| 12981 | |
| 12982 | fi |
| 12983 | ac_fn_c_check_func "$LINENO" "fpathconf" "ac_cv_func_fpathconf" |
| 12984 | if test "x$ac_cv_func_fpathconf" = xyes |
| 12985 | then : |
| 12986 | printf "%s\n" "#define HAVE_FPATHCONF 1" >>confdefs.h |
| 12987 | |
| 12988 | fi |
| 12989 | ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat" |
| 12990 | if test "x$ac_cv_func_fstatat" = xyes |
| 12991 | then : |
| 12992 | printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h |
| 12993 | |
| 12994 | fi |
| 12995 | ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime" |
| 12996 | if test "x$ac_cv_func_ftime" = xyes |
| 12997 | then : |
| 12998 | printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h |
| 12999 | |
| 13000 | fi |
| 13001 | ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" |
| 13002 | if test "x$ac_cv_func_ftruncate" = xyes |
| 13003 | then : |
| 13004 | printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h |
| 13005 | |
| 13006 | fi |
| 13007 | ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat" |
| 13008 | if test "x$ac_cv_func_futimesat" = xyes |
| 13009 | then : |
| 13010 | printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h |
| 13011 | |
| 13012 | fi |
| 13013 | ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens" |
| 13014 | if test "x$ac_cv_func_futimens" = xyes |
| 13015 | then : |
| 13016 | printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h |
| 13017 | |
| 13018 | fi |
| 13019 | ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes" |
| 13020 | if test "x$ac_cv_func_futimes" = xyes |
| 13021 | then : |
| 13022 | printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h |
| 13023 | |
| 13024 | fi |
| 13025 | ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" |
| 13026 | if test "x$ac_cv_func_gai_strerror" = xyes |
| 13027 | then : |
| 13028 | printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h |
| 13029 | |
| 13030 | fi |
| 13031 | ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" |
| 13032 | if test "x$ac_cv_func_getentropy" = xyes |
| 13033 | then : |
| 13034 | printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h |
| 13035 | |
| 13036 | fi |
| 13037 | ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r" |
| 13038 | if test "x$ac_cv_func_getgrgid_r" = xyes |
| 13039 | then : |
| 13040 | printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h |
| 13041 | |
| 13042 | fi |
| 13043 | ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r" |
| 13044 | if test "x$ac_cv_func_getgrnam_r" = xyes |
| 13045 | then : |
| 13046 | printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h |
| 13047 | |
| 13048 | fi |
| 13049 | ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist" |
| 13050 | if test "x$ac_cv_func_getgrouplist" = xyes |
| 13051 | then : |
| 13052 | printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h |
| 13053 | |
| 13054 | fi |
| 13055 | ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups" |
| 13056 | if test "x$ac_cv_func_getgroups" = xyes |
| 13057 | then : |
| 13058 | printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h |
| 13059 | |
| 13060 | fi |
| 13061 | ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin" |
| 13062 | if test "x$ac_cv_func_getlogin" = xyes |
| 13063 | then : |
| 13064 | printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h |
| 13065 | |
| 13066 | fi |
| 13067 | ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" |
| 13068 | if test "x$ac_cv_func_getloadavg" = xyes |
| 13069 | then : |
| 13070 | printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h |
| 13071 | |
| 13072 | fi |
| 13073 | ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername" |
| 13074 | if test "x$ac_cv_func_getpeername" = xyes |
| 13075 | then : |
| 13076 | printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h |
| 13077 | |
| 13078 | fi |
| 13079 | ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid" |
| 13080 | if test "x$ac_cv_func_getpgid" = xyes |
| 13081 | then : |
| 13082 | printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h |
| 13083 | |
| 13084 | fi |
| 13085 | ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid" |
| 13086 | if test "x$ac_cv_func_getpid" = xyes |
| 13087 | then : |
| 13088 | printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h |
| 13089 | |
| 13090 | fi |
| 13091 | ac_fn_c_check_func "$LINENO" "getpriority" "ac_cv_func_getpriority" |
| 13092 | if test "x$ac_cv_func_getpriority" = xyes |
| 13093 | then : |
| 13094 | printf "%s\n" "#define HAVE_GETPRIORITY 1" >>confdefs.h |
| 13095 | |
| 13096 | fi |
| 13097 | ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" |
| 13098 | if test "x$ac_cv_func_getresuid" = xyes |
| 13099 | then : |
| 13100 | printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h |
| 13101 | |
| 13102 | fi |
| 13103 | ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid" |
| 13104 | if test "x$ac_cv_func_getresgid" = xyes |
| 13105 | then : |
| 13106 | printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h |
| 13107 | |
| 13108 | fi |
| 13109 | ac_fn_c_check_func "$LINENO" "getpwent" "ac_cv_func_getpwent" |
| 13110 | if test "x$ac_cv_func_getpwent" = xyes |
| 13111 | then : |
| 13112 | printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h |
| 13113 | |
| 13114 | fi |
| 13115 | ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" |
| 13116 | if test "x$ac_cv_func_getpwnam_r" = xyes |
| 13117 | then : |
| 13118 | printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h |
| 13119 | |
| 13120 | fi |
| 13121 | ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" |
| 13122 | if test "x$ac_cv_func_getpwuid_r" = xyes |
| 13123 | then : |
| 13124 | printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h |
| 13125 | |
| 13126 | fi |
| 13127 | ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" |
| 13128 | if test "x$ac_cv_func_getspnam" = xyes |
| 13129 | then : |
| 13130 | printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h |
| 13131 | |
| 13132 | fi |
| 13133 | ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent" |
| 13134 | if test "x$ac_cv_func_getspent" = xyes |
| 13135 | then : |
| 13136 | printf "%s\n" "#define HAVE_GETSPENT 1" >>confdefs.h |
| 13137 | |
| 13138 | fi |
| 13139 | ac_fn_c_check_func "$LINENO" "getsid" "ac_cv_func_getsid" |
| 13140 | if test "x$ac_cv_func_getsid" = xyes |
| 13141 | then : |
| 13142 | printf "%s\n" "#define HAVE_GETSID 1" >>confdefs.h |
| 13143 | |
| 13144 | fi |
| 13145 | ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd" |
| 13146 | if test "x$ac_cv_func_getwd" = xyes |
| 13147 | then : |
| 13148 | printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h |
| 13149 | |
| 13150 | fi |
| 13151 | ac_fn_c_check_func "$LINENO" "if_nameindex" "ac_cv_func_if_nameindex" |
| 13152 | if test "x$ac_cv_func_if_nameindex" = xyes |
| 13153 | then : |
| 13154 | printf "%s\n" "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h |
| 13155 | |
| 13156 | fi |
| 13157 | ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" |
| 13158 | if test "x$ac_cv_func_initgroups" = xyes |
| 13159 | then : |
| 13160 | printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h |
| 13161 | |
| 13162 | fi |
| 13163 | ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill" |
| 13164 | if test "x$ac_cv_func_kill" = xyes |
| 13165 | then : |
| 13166 | printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h |
| 13167 | |
| 13168 | fi |
| 13169 | ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg" |
| 13170 | if test "x$ac_cv_func_killpg" = xyes |
| 13171 | then : |
| 13172 | printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h |
| 13173 | |
| 13174 | fi |
| 13175 | ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown" |
| 13176 | if test "x$ac_cv_func_lchown" = xyes |
| 13177 | then : |
| 13178 | printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h |
| 13179 | |
| 13180 | fi |
| 13181 | ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf" |
| 13182 | if test "x$ac_cv_func_lockf" = xyes |
| 13183 | then : |
| 13184 | printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h |
| 13185 | |
| 13186 | fi |
| 13187 | ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat" |
| 13188 | if test "x$ac_cv_func_linkat" = xyes |
| 13189 | then : |
| 13190 | printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h |
| 13191 | |
| 13192 | fi |
| 13193 | ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat" |
| 13194 | if test "x$ac_cv_func_lstat" = xyes |
| 13195 | then : |
| 13196 | printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h |
| 13197 | |
| 13198 | fi |
| 13199 | ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes" |
| 13200 | if test "x$ac_cv_func_lutimes" = xyes |
| 13201 | then : |
| 13202 | printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h |
| 13203 | |
| 13204 | fi |
| 13205 | ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" |
| 13206 | if test "x$ac_cv_func_mmap" = xyes |
| 13207 | then : |
| 13208 | printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h |
| 13209 | |
| 13210 | fi |
| 13211 | ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" |
| 13212 | if test "x$ac_cv_func_memrchr" = xyes |
| 13213 | then : |
| 13214 | printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h |
| 13215 | |
| 13216 | fi |
| 13217 | ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc" |
| 13218 | if test "x$ac_cv_func_mbrtowc" = xyes |
| 13219 | then : |
| 13220 | printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h |
| 13221 | |
| 13222 | fi |
| 13223 | ac_fn_c_check_func "$LINENO" "mkdirat" "ac_cv_func_mkdirat" |
| 13224 | if test "x$ac_cv_func_mkdirat" = xyes |
| 13225 | then : |
| 13226 | printf "%s\n" "#define HAVE_MKDIRAT 1" >>confdefs.h |
| 13227 | |
| 13228 | fi |
| 13229 | ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo" |
| 13230 | if test "x$ac_cv_func_mkfifo" = xyes |
| 13231 | then : |
| 13232 | printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h |
| 13233 | |
| 13234 | fi |
| 13235 | ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise" |
| 13236 | if test "x$ac_cv_func_madvise" = xyes |
| 13237 | then : |
| 13238 | printf "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h |
| 13239 | |
| 13240 | fi |
| 13241 | ac_fn_c_check_func "$LINENO" "mkfifoat" "ac_cv_func_mkfifoat" |
| 13242 | if test "x$ac_cv_func_mkfifoat" = xyes |
| 13243 | then : |
| 13244 | printf "%s\n" "#define HAVE_MKFIFOAT 1" >>confdefs.h |
| 13245 | |
| 13246 | fi |
| 13247 | ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod" |
| 13248 | if test "x$ac_cv_func_mknod" = xyes |
| 13249 | then : |
| 13250 | printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h |
| 13251 | |
| 13252 | fi |
| 13253 | ac_fn_c_check_func "$LINENO" "mknodat" "ac_cv_func_mknodat" |
| 13254 | if test "x$ac_cv_func_mknodat" = xyes |
| 13255 | then : |
| 13256 | printf "%s\n" "#define HAVE_MKNODAT 1" >>confdefs.h |
| 13257 | |
| 13258 | fi |
| 13259 | ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" |
| 13260 | if test "x$ac_cv_func_mktime" = xyes |
| 13261 | then : |
| 13262 | printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h |
| 13263 | |
| 13264 | fi |
| 13265 | ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap" |
| 13266 | if test "x$ac_cv_func_mremap" = xyes |
| 13267 | then : |
| 13268 | printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h |
| 13269 | |
| 13270 | fi |
| 13271 | ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice" |
| 13272 | if test "x$ac_cv_func_nice" = xyes |
| 13273 | then : |
| 13274 | printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h |
| 13275 | |
| 13276 | fi |
| 13277 | ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" |
| 13278 | if test "x$ac_cv_func_openat" = xyes |
| 13279 | then : |
| 13280 | printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h |
| 13281 | |
| 13282 | fi |
| 13283 | ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf" |
| 13284 | if test "x$ac_cv_func_pathconf" = xyes |
| 13285 | then : |
| 13286 | printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h |
| 13287 | |
| 13288 | fi |
| 13289 | ac_fn_c_check_func "$LINENO" "pause" "ac_cv_func_pause" |
| 13290 | if test "x$ac_cv_func_pause" = xyes |
| 13291 | then : |
| 13292 | printf "%s\n" "#define HAVE_PAUSE 1" >>confdefs.h |
| 13293 | |
| 13294 | fi |
| 13295 | ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" |
| 13296 | if test "x$ac_cv_func_pipe2" = xyes |
| 13297 | then : |
| 13298 | printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h |
| 13299 | |
| 13300 | fi |
| 13301 | ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock" |
| 13302 | if test "x$ac_cv_func_plock" = xyes |
| 13303 | then : |
| 13304 | printf "%s\n" "#define HAVE_PLOCK 1" >>confdefs.h |
| 13305 | |
| 13306 | fi |
| 13307 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" |
| 13308 | if test "x$ac_cv_func_poll" = xyes |
| 13309 | then : |
| 13310 | printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h |
| 13311 | |
| 13312 | fi |
| 13313 | ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate" |
| 13314 | if test "x$ac_cv_func_posix_fallocate" = xyes |
| 13315 | then : |
| 13316 | printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h |
| 13317 | |
| 13318 | fi |
| 13319 | ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise" |
| 13320 | if test "x$ac_cv_func_posix_fadvise" = xyes |
| 13321 | then : |
| 13322 | printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h |
| 13323 | |
| 13324 | fi |
| 13325 | ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn" |
| 13326 | if test "x$ac_cv_func_posix_spawn" = xyes |
| 13327 | then : |
| 13328 | printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h |
| 13329 | |
| 13330 | fi |
| 13331 | ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp" |
| 13332 | if test "x$ac_cv_func_posix_spawnp" = xyes |
| 13333 | then : |
| 13334 | printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h |
| 13335 | |
| 13336 | fi |
| 13337 | ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" |
| 13338 | if test "x$ac_cv_func_pread" = xyes |
| 13339 | then : |
| 13340 | printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h |
| 13341 | |
| 13342 | fi |
| 13343 | ac_fn_c_check_func "$LINENO" "preadv" "ac_cv_func_preadv" |
| 13344 | if test "x$ac_cv_func_preadv" = xyes |
| 13345 | then : |
| 13346 | printf "%s\n" "#define HAVE_PREADV 1" >>confdefs.h |
| 13347 | |
| 13348 | fi |
| 13349 | ac_fn_c_check_func "$LINENO" "preadv2" "ac_cv_func_preadv2" |
| 13350 | if test "x$ac_cv_func_preadv2" = xyes |
| 13351 | then : |
| 13352 | printf "%s\n" "#define HAVE_PREADV2 1" >>confdefs.h |
| 13353 | |
| 13354 | fi |
| 13355 | ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock" |
| 13356 | if test "x$ac_cv_func_pthread_condattr_setclock" = xyes |
| 13357 | then : |
| 13358 | printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h |
| 13359 | |
| 13360 | fi |
| 13361 | ac_fn_c_check_func "$LINENO" "pthread_init" "ac_cv_func_pthread_init" |
| 13362 | if test "x$ac_cv_func_pthread_init" = xyes |
| 13363 | then : |
| 13364 | printf "%s\n" "#define HAVE_PTHREAD_INIT 1" >>confdefs.h |
| 13365 | |
| 13366 | fi |
| 13367 | ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill" |
| 13368 | if test "x$ac_cv_func_pthread_kill" = xyes |
| 13369 | then : |
| 13370 | printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h |
| 13371 | |
| 13372 | fi |
| 13373 | ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite" |
| 13374 | if test "x$ac_cv_func_pwrite" = xyes |
| 13375 | then : |
| 13376 | printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h |
| 13377 | |
| 13378 | fi |
| 13379 | ac_fn_c_check_func "$LINENO" "pwritev" "ac_cv_func_pwritev" |
| 13380 | if test "x$ac_cv_func_pwritev" = xyes |
| 13381 | then : |
| 13382 | printf "%s\n" "#define HAVE_PWRITEV 1" >>confdefs.h |
| 13383 | |
| 13384 | fi |
| 13385 | ac_fn_c_check_func "$LINENO" "pwritev2" "ac_cv_func_pwritev2" |
| 13386 | if test "x$ac_cv_func_pwritev2" = xyes |
| 13387 | then : |
| 13388 | printf "%s\n" "#define HAVE_PWRITEV2 1" >>confdefs.h |
| 13389 | |
| 13390 | fi |
| 13391 | ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink" |
| 13392 | if test "x$ac_cv_func_readlink" = xyes |
| 13393 | then : |
| 13394 | printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h |
| 13395 | |
| 13396 | fi |
| 13397 | ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat" |
| 13398 | if test "x$ac_cv_func_readlinkat" = xyes |
| 13399 | then : |
| 13400 | printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h |
| 13401 | |
| 13402 | fi |
| 13403 | ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv" |
| 13404 | if test "x$ac_cv_func_readv" = xyes |
| 13405 | then : |
| 13406 | printf "%s\n" "#define HAVE_READV 1" >>confdefs.h |
| 13407 | |
| 13408 | fi |
| 13409 | ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" |
| 13410 | if test "x$ac_cv_func_realpath" = xyes |
| 13411 | then : |
| 13412 | printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h |
| 13413 | |
| 13414 | fi |
| 13415 | ac_fn_c_check_func "$LINENO" "renameat" "ac_cv_func_renameat" |
| 13416 | if test "x$ac_cv_func_renameat" = xyes |
| 13417 | then : |
| 13418 | printf "%s\n" "#define HAVE_RENAMEAT 1" >>confdefs.h |
| 13419 | |
| 13420 | fi |
| 13421 | ac_fn_c_check_func "$LINENO" "sem_open" "ac_cv_func_sem_open" |
| 13422 | if test "x$ac_cv_func_sem_open" = xyes |
| 13423 | then : |
| 13424 | printf "%s\n" "#define HAVE_SEM_OPEN 1" >>confdefs.h |
| 13425 | |
| 13426 | fi |
| 13427 | ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" |
| 13428 | if test "x$ac_cv_func_sem_timedwait" = xyes |
| 13429 | then : |
| 13430 | printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h |
| 13431 | |
| 13432 | fi |
| 13433 | ac_fn_c_check_func "$LINENO" "sem_getvalue" "ac_cv_func_sem_getvalue" |
| 13434 | if test "x$ac_cv_func_sem_getvalue" = xyes |
| 13435 | then : |
| 13436 | printf "%s\n" "#define HAVE_SEM_GETVALUE 1" >>confdefs.h |
| 13437 | |
| 13438 | fi |
| 13439 | ac_fn_c_check_func "$LINENO" "sem_unlink" "ac_cv_func_sem_unlink" |
| 13440 | if test "x$ac_cv_func_sem_unlink" = xyes |
| 13441 | then : |
| 13442 | printf "%s\n" "#define HAVE_SEM_UNLINK 1" >>confdefs.h |
| 13443 | |
| 13444 | fi |
| 13445 | ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" |
| 13446 | if test "x$ac_cv_func_sendfile" = xyes |
| 13447 | then : |
| 13448 | printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h |
| 13449 | |
| 13450 | fi |
| 13451 | ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid" |
| 13452 | if test "x$ac_cv_func_setegid" = xyes |
| 13453 | then : |
| 13454 | printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h |
| 13455 | |
| 13456 | fi |
| 13457 | ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" |
| 13458 | if test "x$ac_cv_func_seteuid" = xyes |
| 13459 | then : |
| 13460 | printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h |
| 13461 | |
| 13462 | fi |
| 13463 | ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid" |
| 13464 | if test "x$ac_cv_func_setgid" = xyes |
| 13465 | then : |
| 13466 | printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h |
| 13467 | |
| 13468 | fi |
| 13469 | ac_fn_c_check_func "$LINENO" "sethostname" "ac_cv_func_sethostname" |
| 13470 | if test "x$ac_cv_func_sethostname" = xyes |
| 13471 | then : |
| 13472 | printf "%s\n" "#define HAVE_SETHOSTNAME 1" >>confdefs.h |
| 13473 | |
| 13474 | fi |
| 13475 | ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" |
| 13476 | if test "x$ac_cv_func_setlocale" = xyes |
| 13477 | then : |
| 13478 | printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h |
| 13479 | |
| 13480 | fi |
| 13481 | ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" |
| 13482 | if test "x$ac_cv_func_setregid" = xyes |
| 13483 | then : |
| 13484 | printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h |
| 13485 | |
| 13486 | fi |
| 13487 | ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" |
| 13488 | if test "x$ac_cv_func_setreuid" = xyes |
| 13489 | then : |
| 13490 | printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h |
| 13491 | |
| 13492 | fi |
| 13493 | ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" |
| 13494 | if test "x$ac_cv_func_setresuid" = xyes |
| 13495 | then : |
| 13496 | printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h |
| 13497 | |
| 13498 | fi |
| 13499 | ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" |
| 13500 | if test "x$ac_cv_func_setresgid" = xyes |
| 13501 | then : |
| 13502 | printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h |
| 13503 | |
| 13504 | fi |
| 13505 | ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" |
| 13506 | if test "x$ac_cv_func_setsid" = xyes |
| 13507 | then : |
| 13508 | printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h |
| 13509 | |
| 13510 | fi |
| 13511 | ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" |
| 13512 | if test "x$ac_cv_func_setpgid" = xyes |
| 13513 | then : |
| 13514 | printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h |
| 13515 | |
| 13516 | fi |
| 13517 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
| 13518 | if test "x$ac_cv_func_setpgrp" = xyes |
| 13519 | then : |
| 13520 | printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h |
| 13521 | |
| 13522 | fi |
| 13523 | ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority" |
| 13524 | if test "x$ac_cv_func_setpriority" = xyes |
| 13525 | then : |
| 13526 | printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h |
| 13527 | |
| 13528 | fi |
| 13529 | ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid" |
| 13530 | if test "x$ac_cv_func_setuid" = xyes |
| 13531 | then : |
| 13532 | printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h |
| 13533 | |
| 13534 | fi |
| 13535 | ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf" |
| 13536 | if test "x$ac_cv_func_setvbuf" = xyes |
| 13537 | then : |
| 13538 | printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h |
| 13539 | |
| 13540 | fi |
| 13541 | ac_fn_c_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max" |
| 13542 | if test "x$ac_cv_func_sched_get_priority_max" = xyes |
| 13543 | then : |
| 13544 | printf "%s\n" "#define HAVE_SCHED_GET_PRIORITY_MAX 1" >>confdefs.h |
| 13545 | |
| 13546 | fi |
| 13547 | ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity" |
| 13548 | if test "x$ac_cv_func_sched_setaffinity" = xyes |
| 13549 | then : |
| 13550 | printf "%s\n" "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h |
| 13551 | |
| 13552 | fi |
| 13553 | ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler" |
| 13554 | if test "x$ac_cv_func_sched_setscheduler" = xyes |
| 13555 | then : |
| 13556 | printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h |
| 13557 | |
| 13558 | fi |
| 13559 | ac_fn_c_check_func "$LINENO" "sched_setparam" "ac_cv_func_sched_setparam" |
| 13560 | if test "x$ac_cv_func_sched_setparam" = xyes |
| 13561 | then : |
| 13562 | printf "%s\n" "#define HAVE_SCHED_SETPARAM 1" >>confdefs.h |
| 13563 | |
| 13564 | fi |
| 13565 | ac_fn_c_check_func "$LINENO" "sched_rr_get_interval" "ac_cv_func_sched_rr_get_interval" |
| 13566 | if test "x$ac_cv_func_sched_rr_get_interval" = xyes |
| 13567 | then : |
| 13568 | printf "%s\n" "#define HAVE_SCHED_RR_GET_INTERVAL 1" >>confdefs.h |
| 13569 | |
| 13570 | fi |
| 13571 | ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" |
| 13572 | if test "x$ac_cv_func_sigaction" = xyes |
| 13573 | then : |
| 13574 | printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h |
| 13575 | |
| 13576 | fi |
| 13577 | ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack" |
| 13578 | if test "x$ac_cv_func_sigaltstack" = xyes |
| 13579 | then : |
| 13580 | printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h |
| 13581 | |
| 13582 | fi |
| 13583 | ac_fn_c_check_func "$LINENO" "sigfillset" "ac_cv_func_sigfillset" |
| 13584 | if test "x$ac_cv_func_sigfillset" = xyes |
| 13585 | then : |
| 13586 | printf "%s\n" "#define HAVE_SIGFILLSET 1" >>confdefs.h |
| 13587 | |
| 13588 | fi |
| 13589 | ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" |
| 13590 | if test "x$ac_cv_func_siginterrupt" = xyes |
| 13591 | then : |
| 13592 | printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h |
| 13593 | |
| 13594 | fi |
| 13595 | ac_fn_c_check_func "$LINENO" "sigpending" "ac_cv_func_sigpending" |
| 13596 | if test "x$ac_cv_func_sigpending" = xyes |
| 13597 | then : |
| 13598 | printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h |
| 13599 | |
| 13600 | fi |
| 13601 | ac_fn_c_check_func "$LINENO" "sigrelse" "ac_cv_func_sigrelse" |
| 13602 | if test "x$ac_cv_func_sigrelse" = xyes |
| 13603 | then : |
| 13604 | printf "%s\n" "#define HAVE_SIGRELSE 1" >>confdefs.h |
| 13605 | |
| 13606 | fi |
| 13607 | ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait" |
| 13608 | if test "x$ac_cv_func_sigtimedwait" = xyes |
| 13609 | then : |
| 13610 | printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h |
| 13611 | |
| 13612 | fi |
| 13613 | ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" |
| 13614 | if test "x$ac_cv_func_sigwait" = xyes |
| 13615 | then : |
| 13616 | printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h |
| 13617 | |
| 13618 | fi |
| 13619 | ac_fn_c_check_func "$LINENO" "sigwaitinfo" "ac_cv_func_sigwaitinfo" |
| 13620 | if test "x$ac_cv_func_sigwaitinfo" = xyes |
| 13621 | then : |
| 13622 | printf "%s\n" "#define HAVE_SIGWAITINFO 1" >>confdefs.h |
| 13623 | |
| 13624 | fi |
| 13625 | ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" |
| 13626 | if test "x$ac_cv_func_snprintf" = xyes |
| 13627 | then : |
| 13628 | printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h |
| 13629 | |
| 13630 | fi |
| 13631 | ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice" |
| 13632 | if test "x$ac_cv_func_splice" = xyes |
| 13633 | then : |
| 13634 | printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h |
| 13635 | |
| 13636 | fi |
| 13637 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" |
| 13638 | if test "x$ac_cv_func_strftime" = xyes |
| 13639 | then : |
| 13640 | printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h |
| 13641 | |
| 13642 | fi |
| 13643 | ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" |
| 13644 | if test "x$ac_cv_func_strlcpy" = xyes |
| 13645 | then : |
| 13646 | printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h |
| 13647 | |
| 13648 | fi |
| 13649 | ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" |
| 13650 | if test "x$ac_cv_func_strsignal" = xyes |
| 13651 | then : |
| 13652 | printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h |
| 13653 | |
| 13654 | fi |
| 13655 | ac_fn_c_check_func "$LINENO" "symlinkat" "ac_cv_func_symlinkat" |
| 13656 | if test "x$ac_cv_func_symlinkat" = xyes |
| 13657 | then : |
| 13658 | printf "%s\n" "#define HAVE_SYMLINKAT 1" >>confdefs.h |
| 13659 | |
| 13660 | fi |
| 13661 | ac_fn_c_check_func "$LINENO" "sync" "ac_cv_func_sync" |
| 13662 | if test "x$ac_cv_func_sync" = xyes |
| 13663 | then : |
| 13664 | printf "%s\n" "#define HAVE_SYNC 1" >>confdefs.h |
| 13665 | |
| 13666 | fi |
| 13667 | ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" |
| 13668 | if test "x$ac_cv_func_sysconf" = xyes |
| 13669 | then : |
| 13670 | printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h |
| 13671 | |
| 13672 | fi |
| 13673 | ac_fn_c_check_func "$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp" |
| 13674 | if test "x$ac_cv_func_tcgetpgrp" = xyes |
| 13675 | then : |
| 13676 | printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h |
| 13677 | |
| 13678 | fi |
| 13679 | ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp" |
| 13680 | if test "x$ac_cv_func_tcsetpgrp" = xyes |
| 13681 | then : |
| 13682 | printf "%s\n" "#define HAVE_TCSETPGRP 1" >>confdefs.h |
| 13683 | |
| 13684 | fi |
| 13685 | ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam" |
| 13686 | if test "x$ac_cv_func_tempnam" = xyes |
| 13687 | then : |
| 13688 | printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h |
| 13689 | |
| 13690 | fi |
| 13691 | ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" |
| 13692 | if test "x$ac_cv_func_timegm" = xyes |
| 13693 | then : |
| 13694 | printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h |
| 13695 | |
| 13696 | fi |
| 13697 | ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times" |
| 13698 | if test "x$ac_cv_func_times" = xyes |
| 13699 | then : |
| 13700 | printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h |
| 13701 | |
| 13702 | fi |
| 13703 | ac_fn_c_check_func "$LINENO" "tmpfile" "ac_cv_func_tmpfile" |
| 13704 | if test "x$ac_cv_func_tmpfile" = xyes |
| 13705 | then : |
| 13706 | printf "%s\n" "#define HAVE_TMPFILE 1" >>confdefs.h |
| 13707 | |
| 13708 | fi |
| 13709 | ac_fn_c_check_func "$LINENO" "tmpnam" "ac_cv_func_tmpnam" |
| 13710 | if test "x$ac_cv_func_tmpnam" = xyes |
| 13711 | then : |
| 13712 | printf "%s\n" "#define HAVE_TMPNAM 1" >>confdefs.h |
| 13713 | |
| 13714 | fi |
| 13715 | ac_fn_c_check_func "$LINENO" "tmpnam_r" "ac_cv_func_tmpnam_r" |
| 13716 | if test "x$ac_cv_func_tmpnam_r" = xyes |
| 13717 | then : |
| 13718 | printf "%s\n" "#define HAVE_TMPNAM_R 1" >>confdefs.h |
| 13719 | |
| 13720 | fi |
| 13721 | ac_fn_c_check_func "$LINENO" "truncate" "ac_cv_func_truncate" |
| 13722 | if test "x$ac_cv_func_truncate" = xyes |
| 13723 | then : |
| 13724 | printf "%s\n" "#define HAVE_TRUNCATE 1" >>confdefs.h |
| 13725 | |
| 13726 | fi |
| 13727 | ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" |
| 13728 | if test "x$ac_cv_func_uname" = xyes |
| 13729 | then : |
| 13730 | printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h |
| 13731 | |
| 13732 | fi |
| 13733 | ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat" |
| 13734 | if test "x$ac_cv_func_unlinkat" = xyes |
| 13735 | then : |
| 13736 | printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h |
| 13737 | |
| 13738 | fi |
| 13739 | ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat" |
| 13740 | if test "x$ac_cv_func_utimensat" = xyes |
| 13741 | then : |
| 13742 | printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h |
| 13743 | |
| 13744 | fi |
| 13745 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" |
| 13746 | if test "x$ac_cv_func_utimes" = xyes |
| 13747 | then : |
| 13748 | printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h |
| 13749 | |
| 13750 | fi |
| 13751 | ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork" |
| 13752 | if test "x$ac_cv_func_vfork" = xyes |
| 13753 | then : |
| 13754 | printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h |
| 13755 | |
| 13756 | fi |
| 13757 | ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid" |
| 13758 | if test "x$ac_cv_func_waitid" = xyes |
| 13759 | then : |
| 13760 | printf "%s\n" "#define HAVE_WAITID 1" >>confdefs.h |
| 13761 | |
| 13762 | fi |
| 13763 | ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" |
| 13764 | if test "x$ac_cv_func_waitpid" = xyes |
| 13765 | then : |
| 13766 | printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h |
| 13767 | |
| 13768 | fi |
| 13769 | ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3" |
| 13770 | if test "x$ac_cv_func_wait3" = xyes |
| 13771 | then : |
| 13772 | printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h |
| 13773 | |
| 13774 | fi |
| 13775 | ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4" |
| 13776 | if test "x$ac_cv_func_wait4" = xyes |
| 13777 | then : |
| 13778 | printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h |
| 13779 | |
| 13780 | fi |
| 13781 | ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll" |
| 13782 | if test "x$ac_cv_func_wcscoll" = xyes |
| 13783 | then : |
| 13784 | printf "%s\n" "#define HAVE_WCSCOLL 1" >>confdefs.h |
| 13785 | |
| 13786 | fi |
| 13787 | ac_fn_c_check_func "$LINENO" "wcsftime" "ac_cv_func_wcsftime" |
| 13788 | if test "x$ac_cv_func_wcsftime" = xyes |
| 13789 | then : |
| 13790 | printf "%s\n" "#define HAVE_WCSFTIME 1" >>confdefs.h |
| 13791 | |
| 13792 | fi |
| 13793 | ac_fn_c_check_func "$LINENO" "wcsxfrm" "ac_cv_func_wcsxfrm" |
| 13794 | if test "x$ac_cv_func_wcsxfrm" = xyes |
| 13795 | then : |
| 13796 | printf "%s\n" "#define HAVE_WCSXFRM 1" >>confdefs.h |
| 13797 | |
| 13798 | fi |
| 13799 | ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp" |
| 13800 | if test "x$ac_cv_func_wmemcmp" = xyes |
| 13801 | then : |
| 13802 | printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h |
| 13803 | |
| 13804 | fi |
| 13805 | ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" |
| 13806 | if test "x$ac_cv_func_writev" = xyes |
| 13807 | then : |
| 13808 | printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h |
| 13809 | |
| 13810 | fi |
| 13811 | ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty" |
| 13812 | if test "x$ac_cv_func__getpty" = xyes |
| 13813 | then : |
| 13814 | printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h |
| 13815 | |
| 13816 | fi |
| 13817 | ac_fn_c_check_func "$LINENO" "rtpSpawn" "ac_cv_func_rtpSpawn" |
| 13818 | if test "x$ac_cv_func_rtpSpawn" = xyes |
| 13819 | then : |
| 13820 | printf "%s\n" "#define HAVE_RTPSPAWN 1" >>confdefs.h |
| 13821 | |
| 13822 | fi |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13823 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13824 | |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 13825 | # Force lchmod off for Linux. Linux disallows changing the mode of symbolic |
| 13826 | # links. Some libc implementations have a stub lchmod implementation that always |
| 13827 | # returns an error. |
| 13828 | if test "$MACHDEP" != linux; then |
| 13829 | ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13830 | if test "x$ac_cv_func_lchmod" = xyes |
| 13831 | then : |
| 13832 | printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h |
| 13833 | |
| 13834 | fi |
| 13835 | |
| 13836 | fi |
| 13837 | |
| 13838 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| 13839 | printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| 13840 | if test ${ac_cv_c_undeclared_builtin_options+y} |
| 13841 | then : |
| 13842 | printf %s "(cached) " >&6 |
| 13843 | else $as_nop |
| 13844 | ac_save_CFLAGS=$CFLAGS |
| 13845 | ac_cv_c_undeclared_builtin_options='cannot detect' |
| 13846 | for ac_arg in '' -fno-builtin; do |
| 13847 | CFLAGS="$ac_save_CFLAGS $ac_arg" |
| 13848 | # This test program should *not* compile successfully. |
| 13849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13850 | /* end confdefs.h. */ |
| 13851 | |
| 13852 | int |
| 13853 | main (void) |
| 13854 | { |
| 13855 | (void) strchr; |
| 13856 | ; |
| 13857 | return 0; |
| 13858 | } |
Benjamin Peterson | ed709d5 | 2018-09-12 17:22:11 -0700 | [diff] [blame] | 13859 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13860 | if ac_fn_c_try_compile "$LINENO" |
| 13861 | then : |
| 13862 | |
| 13863 | else $as_nop |
| 13864 | # This test program should compile successfully. |
| 13865 | # No library function is consistently available on |
| 13866 | # freestanding implementations, so test against a dummy |
| 13867 | # declaration. Include always-available headers on the |
| 13868 | # off chance that they somehow elicit warnings. |
| 13869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13870 | /* end confdefs.h. */ |
| 13871 | #include <float.h> |
| 13872 | #include <limits.h> |
| 13873 | #include <stdarg.h> |
| 13874 | #include <stddef.h> |
| 13875 | extern void ac_decl (int, char *); |
| 13876 | |
| 13877 | int |
| 13878 | main (void) |
| 13879 | { |
| 13880 | (void) ac_decl (0, (char *) 0); |
| 13881 | (void) ac_decl; |
| 13882 | |
| 13883 | ; |
| 13884 | return 0; |
| 13885 | } |
| 13886 | _ACEOF |
| 13887 | if ac_fn_c_try_compile "$LINENO" |
| 13888 | then : |
| 13889 | if test x"$ac_arg" = x |
| 13890 | then : |
| 13891 | ac_cv_c_undeclared_builtin_options='none needed' |
| 13892 | else $as_nop |
| 13893 | ac_cv_c_undeclared_builtin_options=$ac_arg |
| 13894 | fi |
| 13895 | break |
| 13896 | fi |
| 13897 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13898 | fi |
| 13899 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13900 | done |
| 13901 | CFLAGS=$ac_save_CFLAGS |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 13902 | |
| 13903 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13904 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| 13905 | printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } |
| 13906 | case $ac_cv_c_undeclared_builtin_options in #( |
| 13907 | 'cannot detect') : |
| 13908 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13909 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13910 | as_fn_error $? "cannot make $CC report undeclared builtins |
| 13911 | See \`config.log' for more details" "$LINENO" 5; } ;; #( |
| 13912 | 'none needed') : |
| 13913 | ac_c_undeclared_builtin_options='' ;; #( |
| 13914 | *) : |
| 13915 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| 13916 | esac |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 13917 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13918 | ac_fn_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] | 13919 | #include <dirent.h> |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13920 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 13921 | if test "x$ac_cv_have_decl_dirfd" = xyes |
| 13922 | then : |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 13923 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13924 | printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 13925 | |
| 13926 | fi |
| 13927 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13928 | # For some functions, having a definition is not sufficient, since |
| 13929 | # we want to take their address. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13930 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
| 13931 | printf %s "checking for chroot... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13933 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13934 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13935 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13936 | main (void) |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13937 | { |
| 13938 | void *x=chroot |
| 13939 | ; |
| 13940 | return 0; |
| 13941 | } |
| 13942 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13943 | if ac_fn_c_try_compile "$LINENO" |
| 13944 | then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13945 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13946 | printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13947 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13949 | printf "%s\n" "yes" >&6; } |
| 13950 | else $as_nop |
| 13951 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13952 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13953 | |
| 13954 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13955 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13956 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
| 13957 | printf %s "checking for link... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13959 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13960 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13961 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13962 | main (void) |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13963 | { |
| 13964 | void *x=link |
| 13965 | ; |
| 13966 | return 0; |
| 13967 | } |
| 13968 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13969 | if ac_fn_c_try_compile "$LINENO" |
| 13970 | then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13971 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13972 | printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13973 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13975 | printf "%s\n" "yes" >&6; } |
| 13976 | else $as_nop |
| 13977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13978 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13979 | |
| 13980 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13981 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13982 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
| 13983 | printf %s "checking for symlink... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13985 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13986 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13987 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13988 | main (void) |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13989 | { |
| 13990 | void *x=symlink |
| 13991 | ; |
| 13992 | return 0; |
| 13993 | } |
| 13994 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13995 | if ac_fn_c_try_compile "$LINENO" |
| 13996 | then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13997 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 13998 | printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13999 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14001 | printf "%s\n" "yes" >&6; } |
| 14002 | else $as_nop |
| 14003 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14004 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14005 | |
| 14006 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14007 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
| 14009 | printf %s "checking for fchdir... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14011 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14012 | #include <unistd.h> |
| 14013 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14014 | main (void) |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14015 | { |
| 14016 | void *x=fchdir |
| 14017 | ; |
| 14018 | return 0; |
| 14019 | } |
| 14020 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14021 | if ac_fn_c_try_compile "$LINENO" |
| 14022 | then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14023 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14024 | printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14025 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14027 | printf "%s\n" "yes" >&6; } |
| 14028 | else $as_nop |
| 14029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14030 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14031 | |
| 14032 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14033 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
| 14035 | printf %s "checking for fsync... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14037 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14038 | #include <unistd.h> |
| 14039 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14040 | main (void) |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14041 | { |
| 14042 | void *x=fsync |
| 14043 | ; |
| 14044 | return 0; |
| 14045 | } |
| 14046 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14047 | if ac_fn_c_try_compile "$LINENO" |
| 14048 | then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14049 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14050 | printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14051 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14052 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14053 | printf "%s\n" "yes" >&6; } |
| 14054 | else $as_nop |
| 14055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14056 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14057 | |
| 14058 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14059 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
| 14061 | printf %s "checking for fdatasync... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14063 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14064 | #include <unistd.h> |
| 14065 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14066 | main (void) |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14067 | { |
| 14068 | void *x=fdatasync |
| 14069 | ; |
| 14070 | return 0; |
| 14071 | } |
| 14072 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14073 | if ac_fn_c_try_compile "$LINENO" |
| 14074 | then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14075 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14076 | printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14077 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14078 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14079 | printf "%s\n" "yes" >&6; } |
| 14080 | else $as_nop |
| 14081 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14082 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14083 | |
| 14084 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14085 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14086 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
| 14087 | printf %s "checking for epoll... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14089 | /* end confdefs.h. */ |
| 14090 | #include <sys/epoll.h> |
| 14091 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14092 | main (void) |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14093 | { |
| 14094 | void *x=epoll_create |
| 14095 | ; |
| 14096 | return 0; |
| 14097 | } |
| 14098 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14099 | if ac_fn_c_try_compile "$LINENO" |
| 14100 | then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14101 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14102 | printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14103 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14105 | printf "%s\n" "yes" >&6; } |
| 14106 | else $as_nop |
| 14107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14108 | printf "%s\n" "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14109 | |
| 14110 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14111 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14112 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 |
| 14113 | printf %s "checking for epoll_create1... " >&6; } |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 14114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14115 | /* end confdefs.h. */ |
| 14116 | #include <sys/epoll.h> |
| 14117 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14118 | main (void) |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 14119 | { |
| 14120 | void *x=epoll_create1 |
| 14121 | ; |
| 14122 | return 0; |
| 14123 | } |
| 14124 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14125 | if ac_fn_c_try_compile "$LINENO" |
| 14126 | then : |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 14127 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14128 | printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 14129 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14130 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14131 | printf "%s\n" "yes" >&6; } |
| 14132 | else $as_nop |
| 14133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14134 | printf "%s\n" "no" >&6; } |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 14135 | |
| 14136 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14137 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14138 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
| 14139 | printf %s "checking for kqueue... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14141 | /* end confdefs.h. */ |
| 14142 | |
| 14143 | #include <sys/types.h> |
| 14144 | #include <sys/event.h> |
| 14145 | |
| 14146 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14147 | main (void) |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14148 | { |
| 14149 | int x=kqueue() |
| 14150 | ; |
| 14151 | return 0; |
| 14152 | } |
| 14153 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14154 | if ac_fn_c_try_compile "$LINENO" |
| 14155 | then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14156 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14157 | printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14158 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14159 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14160 | printf "%s\n" "yes" >&6; } |
| 14161 | else $as_nop |
| 14162 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14163 | printf "%s\n" "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14164 | |
| 14165 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14166 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14167 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 |
| 14168 | printf %s "checking for prlimit... " >&6; } |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 14169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14170 | /* end confdefs.h. */ |
| 14171 | |
| 14172 | #include <sys/time.h> |
| 14173 | #include <sys/resource.h> |
| 14174 | |
| 14175 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14176 | main (void) |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 14177 | { |
| 14178 | void *x=prlimit |
| 14179 | ; |
| 14180 | return 0; |
| 14181 | } |
| 14182 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14183 | if ac_fn_c_try_compile "$LINENO" |
| 14184 | then : |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 14185 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14186 | printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 14187 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14189 | printf "%s\n" "yes" >&6; } |
| 14190 | else $as_nop |
| 14191 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14192 | printf "%s\n" "no" >&6; } |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 14193 | |
| 14194 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14195 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5 |
| 14197 | printf %s "checking for _dyld_shared_cache_contains_path... " >&6; } |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 14198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14199 | /* end confdefs.h. */ |
| 14200 | #include <mach-o/dyld.h> |
| 14201 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14202 | main (void) |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 14203 | { |
| 14204 | void *x=_dyld_shared_cache_contains_path |
| 14205 | ; |
| 14206 | return 0; |
| 14207 | } |
| 14208 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14209 | if ac_fn_c_try_compile "$LINENO" |
| 14210 | then : |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 14211 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14212 | printf "%s\n" "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 14213 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14214 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14215 | printf "%s\n" "yes" >&6; } |
| 14216 | else $as_nop |
| 14217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14218 | printf "%s\n" "no" >&6; } |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 14219 | |
| 14220 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14221 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 14222 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 |
| 14224 | printf %s "checking for memfd_create... " >&6; } |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 14225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14226 | /* end confdefs.h. */ |
| 14227 | |
| 14228 | #ifdef HAVE_SYS_MMAN_H |
| 14229 | #include <sys/mman.h> |
| 14230 | #endif |
| 14231 | #ifdef HAVE_SYS_MEMFD_H |
| 14232 | #include <sys/memfd.h> |
| 14233 | #endif |
| 14234 | |
| 14235 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14236 | main (void) |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 14237 | { |
| 14238 | void *x=memfd_create |
| 14239 | ; |
| 14240 | return 0; |
| 14241 | } |
| 14242 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14243 | if ac_fn_c_try_compile "$LINENO" |
| 14244 | then : |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 14245 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14246 | printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 14247 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14249 | printf "%s\n" "yes" >&6; } |
| 14250 | else $as_nop |
| 14251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14252 | printf "%s\n" "no" >&6; } |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 14253 | |
| 14254 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14255 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 14256 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
| 14258 | printf %s "checking for eventfd... " >&6; } |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 14259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14260 | /* end confdefs.h. */ |
| 14261 | |
| 14262 | #ifdef HAVE_SYS_EVENTFD_H |
| 14263 | #include <sys/eventfd.h> |
| 14264 | #endif |
| 14265 | |
| 14266 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14267 | main (void) |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 14268 | { |
| 14269 | int x = eventfd(0, EFD_CLOEXEC) |
| 14270 | ; |
| 14271 | return 0; |
| 14272 | } |
| 14273 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14274 | if ac_fn_c_try_compile "$LINENO" |
| 14275 | then : |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 14276 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14277 | printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 14278 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14280 | printf "%s\n" "yes" >&6; } |
| 14281 | else $as_nop |
| 14282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14283 | printf "%s\n" "no" >&6; } |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 14284 | |
| 14285 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14286 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 14287 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14288 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 14289 | # functions ctermid_r, setgroups in the library, but no prototype |
| 14290 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 14291 | # address to avoid compiler warnings and potential miscompilations |
| 14292 | # because of the missing prototypes. |
| 14293 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14294 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
| 14295 | printf %s "checking for ctermid_r... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14297 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14298 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14299 | #include <stdio.h> |
| 14300 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14301 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14302 | main (void) |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14303 | { |
| 14304 | void* p = ctermid_r |
| 14305 | ; |
| 14306 | return 0; |
| 14307 | } |
| 14308 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14309 | if ac_fn_c_try_compile "$LINENO" |
| 14310 | then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14311 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14312 | printf "%s\n" "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14313 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14314 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14315 | printf "%s\n" "yes" >&6; } |
| 14316 | else $as_nop |
| 14317 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14318 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14319 | |
| 14320 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14321 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14322 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14323 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
| 14324 | printf %s "checking for flock declaration... " >&6; } |
| 14325 | if test ${ac_cv_flock_decl+y} |
| 14326 | then : |
| 14327 | printf %s "(cached) " >&6 |
| 14328 | else $as_nop |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14330 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14331 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14332 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14333 | main (void) |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14334 | { |
| 14335 | void* p = flock |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14336 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14337 | ; |
| 14338 | return 0; |
| 14339 | } |
| 14340 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14341 | if ac_fn_c_try_compile "$LINENO" |
| 14342 | then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14343 | ac_cv_flock_decl=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14344 | else $as_nop |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14345 | ac_cv_flock_decl=no |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14346 | |
| 14347 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14348 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14349 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14350 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 |
| 14352 | printf "%s\n" "$ac_cv_flock_decl" >&6; } |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14353 | if test "x${ac_cv_flock_decl}" = xyes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14354 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14355 | for ac_func in flock |
| 14356 | do : |
| 14357 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14358 | if test "x$ac_cv_func_flock" = xyes |
| 14359 | then : |
| 14360 | printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14361 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14362 | else $as_nop |
| 14363 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 |
| 14364 | printf %s "checking for flock in -lbsd... " >&6; } |
| 14365 | if test ${ac_cv_lib_bsd_flock+y} |
| 14366 | then : |
| 14367 | printf %s "(cached) " >&6 |
| 14368 | else $as_nop |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14369 | ac_check_lib_save_LIBS=$LIBS |
| 14370 | LIBS="-lbsd $LIBS" |
| 14371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14372 | /* end confdefs.h. */ |
| 14373 | |
| 14374 | /* Override any GCC internal prototype to avoid an error. |
| 14375 | Use char because int might match the return type of a GCC |
| 14376 | builtin and then its argument prototype would still apply. */ |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14377 | char flock (); |
| 14378 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14379 | main (void) |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14380 | { |
| 14381 | return flock (); |
| 14382 | ; |
| 14383 | return 0; |
| 14384 | } |
| 14385 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14386 | if ac_fn_c_try_link "$LINENO" |
| 14387 | then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14388 | ac_cv_lib_bsd_flock=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14389 | else $as_nop |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14390 | ac_cv_lib_bsd_flock=no |
| 14391 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14392 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14393 | conftest$ac_exeext conftest.$ac_ext |
| 14394 | LIBS=$ac_check_lib_save_LIBS |
| 14395 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 |
| 14397 | printf "%s\n" "$ac_cv_lib_bsd_flock" >&6; } |
| 14398 | if test "x$ac_cv_lib_bsd_flock" = xyes |
| 14399 | then : |
| 14400 | printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14401 | |
| 14402 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14403 | printf "%s\n" "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14404 | |
| 14405 | |
| 14406 | fi |
| 14407 | |
| 14408 | |
| 14409 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14410 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14411 | done |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14412 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14413 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14414 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
| 14415 | printf %s "checking for getpagesize... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14417 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14418 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14419 | #include <unistd.h> |
| 14420 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14421 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14422 | main (void) |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14423 | { |
| 14424 | void* p = getpagesize |
| 14425 | ; |
| 14426 | return 0; |
| 14427 | } |
| 14428 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14429 | if ac_fn_c_try_compile "$LINENO" |
| 14430 | then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14431 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14432 | printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14433 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14435 | printf "%s\n" "yes" >&6; } |
| 14436 | else $as_nop |
| 14437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14438 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14439 | |
| 14440 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14441 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14442 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
| 14444 | printf %s "checking for broken unsetenv... " >&6; } |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 14445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14446 | /* end confdefs.h. */ |
| 14447 | |
| 14448 | #include <stdlib.h> |
| 14449 | |
| 14450 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14451 | main (void) |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 14452 | { |
| 14453 | int res = unsetenv("DUMMY") |
| 14454 | ; |
| 14455 | return 0; |
| 14456 | } |
| 14457 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14458 | if ac_fn_c_try_compile "$LINENO" |
| 14459 | then : |
| 14460 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14461 | printf "%s\n" "no" >&6; } |
| 14462 | else $as_nop |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 14463 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14464 | printf "%s\n" "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 14465 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14467 | printf "%s\n" "yes" >&6; } |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 14468 | |
| 14469 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14470 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 14471 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14472 | for ac_prog in true |
| 14473 | do |
| 14474 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14475 | set dummy $ac_prog; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14477 | printf %s "checking for $ac_word... " >&6; } |
| 14478 | if test ${ac_cv_prog_TRUE+y} |
| 14479 | then : |
| 14480 | printf %s "(cached) " >&6 |
| 14481 | else $as_nop |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14482 | if test -n "$TRUE"; then |
| 14483 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 14484 | else |
| 14485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14486 | for as_dir in $PATH |
| 14487 | do |
| 14488 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14489 | case $as_dir in #((( |
| 14490 | '') as_dir=./ ;; |
| 14491 | */) ;; |
| 14492 | *) as_dir=$as_dir/ ;; |
| 14493 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14494 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14495 | 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] | 14496 | ac_cv_prog_TRUE="$ac_prog" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14497 | printf "%s\n" "$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] | 14498 | break 2 |
| 14499 | fi |
| 14500 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14501 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14502 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14503 | |
| 14504 | fi |
| 14505 | fi |
| 14506 | TRUE=$ac_cv_prog_TRUE |
| 14507 | if test -n "$TRUE"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14508 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
| 14509 | printf "%s\n" "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14510 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14512 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14513 | fi |
| 14514 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14515 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14516 | test -n "$TRUE" && break |
| 14517 | done |
| 14518 | test -n "$TRUE" || TRUE="/bin/true" |
| 14519 | |
| 14520 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14521 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
| 14522 | printf %s "checking for inet_aton in -lc... " >&6; } |
| 14523 | if test ${ac_cv_lib_c_inet_aton+y} |
| 14524 | then : |
| 14525 | printf %s "(cached) " >&6 |
| 14526 | else $as_nop |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14527 | ac_check_lib_save_LIBS=$LIBS |
| 14528 | LIBS="-lc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14530 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14531 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14532 | /* Override any GCC internal prototype to avoid an error. |
| 14533 | Use char because int might match the return type of a GCC |
| 14534 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14535 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14536 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14537 | main (void) |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14538 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14539 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14540 | ; |
| 14541 | return 0; |
| 14542 | } |
| 14543 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14544 | if ac_fn_c_try_link "$LINENO" |
| 14545 | then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14546 | ac_cv_lib_c_inet_aton=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14547 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14548 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14549 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14550 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14551 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14552 | LIBS=$ac_check_lib_save_LIBS |
| 14553 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
| 14555 | printf "%s\n" "$ac_cv_lib_c_inet_aton" >&6; } |
| 14556 | if test "x$ac_cv_lib_c_inet_aton" = xyes |
| 14557 | then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14558 | $ac_cv_prog_TRUE |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14559 | else $as_nop |
| 14560 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
| 14561 | printf %s "checking for inet_aton in -lresolv... " >&6; } |
| 14562 | if test ${ac_cv_lib_resolv_inet_aton+y} |
| 14563 | then : |
| 14564 | printf %s "(cached) " >&6 |
| 14565 | else $as_nop |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14566 | ac_check_lib_save_LIBS=$LIBS |
| 14567 | LIBS="-lresolv $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14569 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14570 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14571 | /* Override any GCC internal prototype to avoid an error. |
| 14572 | Use char because int might match the return type of a GCC |
| 14573 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14574 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14575 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14576 | main (void) |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14577 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14578 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14579 | ; |
| 14580 | return 0; |
| 14581 | } |
| 14582 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14583 | if ac_fn_c_try_link "$LINENO" |
| 14584 | then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14585 | ac_cv_lib_resolv_inet_aton=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14586 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14587 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14588 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14589 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14590 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14591 | LIBS=$ac_check_lib_save_LIBS |
| 14592 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14593 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 14594 | printf "%s\n" "$ac_cv_lib_resolv_inet_aton" >&6; } |
| 14595 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes |
| 14596 | then : |
| 14597 | printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14598 | |
| 14599 | LIBS="-lresolv $LIBS" |
| 14600 | |
| 14601 | fi |
| 14602 | |
| 14603 | |
| 14604 | fi |
| 14605 | |
| 14606 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14607 | # On Tru64, chflags seems to be present, but calling it will |
| 14608 | # exit Python |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14609 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
| 14610 | printf %s "checking for chflags... " >&6; } |
| 14611 | if test ${ac_cv_have_chflags+y} |
| 14612 | then : |
| 14613 | printf %s "(cached) " >&6 |
| 14614 | else $as_nop |
| 14615 | if test "$cross_compiling" = yes |
| 14616 | then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14617 | ac_cv_have_chflags=cross |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14618 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14620 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 14621 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14622 | #include <sys/stat.h> |
| 14623 | #include <unistd.h> |
| 14624 | int main(int argc, char*argv[]) |
| 14625 | { |
| 14626 | if(chflags(argv[0], 0) != 0) |
| 14627 | return 1; |
| 14628 | return 0; |
| 14629 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 14630 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14631 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14632 | if ac_fn_c_try_run "$LINENO" |
| 14633 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14634 | ac_cv_have_chflags=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14635 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14636 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14637 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14638 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14639 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14640 | fi |
| 14641 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14642 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14643 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
| 14645 | printf "%s\n" "$ac_cv_have_chflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14646 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14647 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14648 | if test "x$ac_cv_func_chflags" = xyes |
| 14649 | then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14650 | ac_cv_have_chflags="yes" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14651 | else $as_nop |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14652 | ac_cv_have_chflags="no" |
| 14653 | fi |
| 14654 | |
| 14655 | fi |
| 14656 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14657 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14658 | printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14659 | |
| 14660 | fi |
| 14661 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14662 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
| 14663 | printf %s "checking for lchflags... " >&6; } |
| 14664 | if test ${ac_cv_have_lchflags+y} |
| 14665 | then : |
| 14666 | printf %s "(cached) " >&6 |
| 14667 | else $as_nop |
| 14668 | if test "$cross_compiling" = yes |
| 14669 | then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14670 | ac_cv_have_lchflags=cross |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14671 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14673 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 14674 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14675 | #include <sys/stat.h> |
| 14676 | #include <unistd.h> |
| 14677 | int main(int argc, char*argv[]) |
| 14678 | { |
| 14679 | if(lchflags(argv[0], 0) != 0) |
| 14680 | return 1; |
| 14681 | return 0; |
| 14682 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 14683 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14684 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14685 | if ac_fn_c_try_run "$LINENO" |
| 14686 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14687 | ac_cv_have_lchflags=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14688 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14689 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14690 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14691 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14692 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14693 | fi |
| 14694 | |
| 14695 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14696 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14697 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
| 14698 | printf "%s\n" "$ac_cv_have_lchflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14699 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14700 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14701 | if test "x$ac_cv_func_lchflags" = xyes |
| 14702 | then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14703 | ac_cv_have_lchflags="yes" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14704 | else $as_nop |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14705 | ac_cv_have_lchflags="no" |
| 14706 | fi |
| 14707 | |
| 14708 | fi |
| 14709 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14710 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14711 | printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14712 | |
| 14713 | fi |
| 14714 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14715 | case $ac_sys_system/$ac_sys_release in |
| 14716 | Darwin/*) |
| 14717 | _CUR_CFLAGS="${CFLAGS}" |
| 14718 | _CUR_LDFLAGS="${LDFLAGS}" |
| 14719 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 14720 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 14721 | ;; |
| 14722 | esac |
| 14723 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14724 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
| 14725 | printf %s "checking for inflateCopy in -lz... " >&6; } |
| 14726 | if test ${ac_cv_lib_z_inflateCopy+y} |
| 14727 | then : |
| 14728 | printf %s "(cached) " >&6 |
| 14729 | else $as_nop |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14730 | ac_check_lib_save_LIBS=$LIBS |
| 14731 | LIBS="-lz $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14733 | /* end confdefs.h. */ |
| 14734 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14735 | /* Override any GCC internal prototype to avoid an error. |
| 14736 | Use char because int might match the return type of a GCC |
| 14737 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14738 | char inflateCopy (); |
| 14739 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14740 | main (void) |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14741 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14742 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14743 | ; |
| 14744 | return 0; |
| 14745 | } |
| 14746 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14747 | if ac_fn_c_try_link "$LINENO" |
| 14748 | then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14749 | ac_cv_lib_z_inflateCopy=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14750 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14751 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14752 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14753 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14754 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14755 | LIBS=$ac_check_lib_save_LIBS |
| 14756 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14757 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 14758 | printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; } |
| 14759 | if test "x$ac_cv_lib_z_inflateCopy" = xyes |
| 14760 | then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14761 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14762 | printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14763 | |
| 14764 | fi |
| 14765 | |
| 14766 | |
| 14767 | case $ac_sys_system/$ac_sys_release in |
| 14768 | Darwin/*) |
| 14769 | CFLAGS="${_CUR_CFLAGS}" |
| 14770 | LDFLAGS="${_CUR_LDFLAGS}" |
| 14771 | ;; |
| 14772 | esac |
| 14773 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14774 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
| 14775 | printf %s "checking for hstrerror... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14777 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14778 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14779 | #include <netdb.h> |
| 14780 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14781 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14782 | main (void) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14783 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14784 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14785 | ; |
| 14786 | return 0; |
| 14787 | } |
| 14788 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14789 | if ac_fn_c_try_link "$LINENO" |
| 14790 | then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14791 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14792 | printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14793 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14795 | printf "%s\n" "yes" >&6; } |
| 14796 | else $as_nop |
| 14797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14798 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14799 | |
| 14800 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14801 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14802 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14803 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14804 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
| 14805 | printf %s "checking for inet_aton... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14807 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14808 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14809 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14810 | #include <sys/socket.h> |
| 14811 | #include <netinet/in.h> |
| 14812 | #include <arpa/inet.h> |
| 14813 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14814 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14815 | main (void) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14816 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14817 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14818 | ; |
| 14819 | return 0; |
| 14820 | } |
| 14821 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14822 | if ac_fn_c_try_link "$LINENO" |
| 14823 | then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14824 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14825 | printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14826 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14827 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14828 | printf "%s\n" "yes" >&6; } |
| 14829 | else $as_nop |
| 14830 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14831 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14832 | |
| 14833 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14834 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14835 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14836 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
| 14838 | printf %s "checking for inet_pton... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14840 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14841 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14842 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14843 | #include <sys/socket.h> |
| 14844 | #include <netinet/in.h> |
| 14845 | #include <arpa/inet.h> |
| 14846 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14847 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14848 | main (void) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14849 | { |
| 14850 | void* p = inet_pton |
| 14851 | ; |
| 14852 | return 0; |
| 14853 | } |
| 14854 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14855 | if ac_fn_c_try_compile "$LINENO" |
| 14856 | then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14857 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14858 | printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14859 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14860 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14861 | printf "%s\n" "yes" >&6; } |
| 14862 | else $as_nop |
| 14863 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14864 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14865 | |
| 14866 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14867 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14868 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14869 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14870 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
| 14871 | printf %s "checking for setgroups... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14873 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14874 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14875 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14876 | #ifdef HAVE_GRP_H |
| 14877 | #include <grp.h> |
| 14878 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14879 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14880 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14881 | main (void) |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14882 | { |
| 14883 | void* p = setgroups |
| 14884 | ; |
| 14885 | return 0; |
| 14886 | } |
| 14887 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14888 | if ac_fn_c_try_compile "$LINENO" |
| 14889 | then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14890 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14891 | printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14892 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14893 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14894 | printf "%s\n" "yes" >&6; } |
| 14895 | else $as_nop |
| 14896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14897 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14898 | |
| 14899 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14900 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14901 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14902 | # check for openpty and forkpty |
| 14903 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14904 | |
| 14905 | for ac_func in openpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14906 | do : |
| 14907 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14908 | if test "x$ac_cv_func_openpty" = xyes |
| 14909 | then : |
| 14910 | printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14911 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14912 | else $as_nop |
| 14913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
| 14914 | printf %s "checking for openpty in -lutil... " >&6; } |
| 14915 | if test ${ac_cv_lib_util_openpty+y} |
| 14916 | then : |
| 14917 | printf %s "(cached) " >&6 |
| 14918 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14919 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14920 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14922 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14923 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14924 | /* Override any GCC internal prototype to avoid an error. |
| 14925 | Use char because int might match the return type of a GCC |
| 14926 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14927 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14928 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14929 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14930 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14931 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14932 | ; |
| 14933 | return 0; |
| 14934 | } |
| 14935 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14936 | if ac_fn_c_try_link "$LINENO" |
| 14937 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14938 | ac_cv_lib_util_openpty=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14939 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14940 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14941 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14942 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14943 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14944 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14945 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
| 14947 | printf "%s\n" "$ac_cv_lib_util_openpty" >&6; } |
| 14948 | if test "x$ac_cv_lib_util_openpty" = xyes |
| 14949 | then : |
| 14950 | printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14951 | LIBS="$LIBS -lutil" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14952 | else $as_nop |
| 14953 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
| 14954 | printf %s "checking for openpty in -lbsd... " >&6; } |
| 14955 | if test ${ac_cv_lib_bsd_openpty+y} |
| 14956 | then : |
| 14957 | printf %s "(cached) " >&6 |
| 14958 | else $as_nop |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14959 | ac_check_lib_save_LIBS=$LIBS |
| 14960 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14962 | /* end confdefs.h. */ |
| 14963 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14964 | /* Override any GCC internal prototype to avoid an error. |
| 14965 | Use char because int might match the return type of a GCC |
| 14966 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14967 | char openpty (); |
| 14968 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14969 | main (void) |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14970 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14971 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14972 | ; |
| 14973 | return 0; |
| 14974 | } |
| 14975 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14976 | if ac_fn_c_try_link "$LINENO" |
| 14977 | then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14978 | ac_cv_lib_bsd_openpty=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14979 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14980 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14981 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14982 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14983 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14984 | LIBS=$ac_check_lib_save_LIBS |
| 14985 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14986 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
| 14987 | printf "%s\n" "$ac_cv_lib_bsd_openpty" >&6; } |
| 14988 | if test "x$ac_cv_lib_bsd_openpty" = xyes |
| 14989 | then : |
| 14990 | printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14991 | LIBS="$LIBS -lbsd" |
| 14992 | fi |
| 14993 | |
| 14994 | |
| 14995 | fi |
| 14996 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14997 | |
| 14998 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 14999 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15000 | done |
| 15001 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15002 | for ac_func in forkpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15003 | do : |
| 15004 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15005 | if test "x$ac_cv_func_forkpty" = xyes |
| 15006 | then : |
| 15007 | printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15008 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15009 | else $as_nop |
| 15010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
| 15011 | printf %s "checking for forkpty in -lutil... " >&6; } |
| 15012 | if test ${ac_cv_lib_util_forkpty+y} |
| 15013 | then : |
| 15014 | printf %s "(cached) " >&6 |
| 15015 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15016 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15017 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15019 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15021 | /* Override any GCC internal prototype to avoid an error. |
| 15022 | Use char because int might match the return type of a GCC |
| 15023 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15025 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15026 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15027 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15028 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15029 | ; |
| 15030 | return 0; |
| 15031 | } |
| 15032 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15033 | if ac_fn_c_try_link "$LINENO" |
| 15034 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15035 | ac_cv_lib_util_forkpty=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15036 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15037 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15038 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15039 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15040 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15041 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15042 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15043 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
| 15044 | printf "%s\n" "$ac_cv_lib_util_forkpty" >&6; } |
| 15045 | if test "x$ac_cv_lib_util_forkpty" = xyes |
| 15046 | then : |
| 15047 | printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15048 | LIBS="$LIBS -lutil" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15049 | else $as_nop |
| 15050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
| 15051 | printf %s "checking for forkpty in -lbsd... " >&6; } |
| 15052 | if test ${ac_cv_lib_bsd_forkpty+y} |
| 15053 | then : |
| 15054 | printf %s "(cached) " >&6 |
| 15055 | else $as_nop |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15056 | ac_check_lib_save_LIBS=$LIBS |
| 15057 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15059 | /* end confdefs.h. */ |
| 15060 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15061 | /* Override any GCC internal prototype to avoid an error. |
| 15062 | Use char because int might match the return type of a GCC |
| 15063 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15064 | char forkpty (); |
| 15065 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15066 | main (void) |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15067 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15068 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15069 | ; |
| 15070 | return 0; |
| 15071 | } |
| 15072 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15073 | if ac_fn_c_try_link "$LINENO" |
| 15074 | then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15075 | ac_cv_lib_bsd_forkpty=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15076 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15077 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15078 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15079 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15080 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15081 | LIBS=$ac_check_lib_save_LIBS |
| 15082 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15083 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 15084 | printf "%s\n" "$ac_cv_lib_bsd_forkpty" >&6; } |
| 15085 | if test "x$ac_cv_lib_bsd_forkpty" = xyes |
| 15086 | then : |
| 15087 | printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15088 | LIBS="$LIBS -lbsd" |
| 15089 | fi |
| 15090 | |
| 15091 | |
| 15092 | fi |
| 15093 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15094 | |
| 15095 | fi |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15096 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15097 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15098 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15099 | # check for long file support functions |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15100 | ac_fn_c_check_func "$LINENO" "fseek64" "ac_cv_func_fseek64" |
| 15101 | if test "x$ac_cv_func_fseek64" = xyes |
| 15102 | then : |
| 15103 | printf "%s\n" "#define HAVE_FSEEK64 1" >>confdefs.h |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15104 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15105 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15106 | ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko" |
| 15107 | if test "x$ac_cv_func_fseeko" = xyes |
| 15108 | then : |
| 15109 | printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h |
| 15110 | |
| 15111 | fi |
| 15112 | ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs" |
| 15113 | if test "x$ac_cv_func_fstatvfs" = xyes |
| 15114 | then : |
| 15115 | printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h |
| 15116 | |
| 15117 | fi |
| 15118 | ac_fn_c_check_func "$LINENO" "ftell64" "ac_cv_func_ftell64" |
| 15119 | if test "x$ac_cv_func_ftell64" = xyes |
| 15120 | then : |
| 15121 | printf "%s\n" "#define HAVE_FTELL64 1" >>confdefs.h |
| 15122 | |
| 15123 | fi |
| 15124 | ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello" |
| 15125 | if test "x$ac_cv_func_ftello" = xyes |
| 15126 | then : |
| 15127 | printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h |
| 15128 | |
| 15129 | fi |
| 15130 | ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" |
| 15131 | if test "x$ac_cv_func_statvfs" = xyes |
| 15132 | then : |
| 15133 | printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h |
| 15134 | |
| 15135 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15136 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15137 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15138 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15139 | if test "x$ac_cv_func_dup2" = xyes |
| 15140 | then : |
| 15141 | printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15142 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15143 | else $as_nop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15144 | case " $LIBOBJS " in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15145 | *" dup2.$ac_objext "* ) ;; |
| 15146 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15147 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15148 | esac |
| 15149 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15150 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15151 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15152 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15153 | for ac_func in getpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15154 | do : |
| 15155 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15156 | if test "x$ac_cv_func_getpgrp" = xyes |
| 15157 | then : |
| 15158 | printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15160 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15161 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15162 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15163 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15164 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15165 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15166 | ; |
| 15167 | return 0; |
| 15168 | } |
| 15169 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15170 | if ac_fn_c_try_compile "$LINENO" |
| 15171 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15172 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15173 | printf "%s\n" "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15174 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15175 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15176 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15177 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15178 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15179 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15180 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15181 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15182 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15183 | do : |
| 15184 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15185 | if test "x$ac_cv_func_setpgrp" = xyes |
| 15186 | then : |
| 15187 | printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15189 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15190 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15191 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15192 | main (void) |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15193 | { |
| 15194 | setpgrp(0,0); |
| 15195 | ; |
| 15196 | return 0; |
| 15197 | } |
| 15198 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15199 | if ac_fn_c_try_compile "$LINENO" |
| 15200 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15201 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15202 | printf "%s\n" "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15203 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15204 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15205 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15206 | |
| 15207 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15208 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15209 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15210 | |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15211 | # We search for both crypt and crypt_r as one or the other may be defined |
| 15212 | # This gets us our -lcrypt in LIBS when required on the target platform. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
| 15214 | printf %s "checking for library containing crypt... " >&6; } |
| 15215 | if test ${ac_cv_search_crypt+y} |
| 15216 | then : |
| 15217 | printf %s "(cached) " >&6 |
| 15218 | else $as_nop |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15219 | ac_func_search_save_LIBS=$LIBS |
| 15220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15221 | /* end confdefs.h. */ |
| 15222 | |
| 15223 | /* Override any GCC internal prototype to avoid an error. |
| 15224 | Use char because int might match the return type of a GCC |
| 15225 | builtin and then its argument prototype would still apply. */ |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15226 | char crypt (); |
| 15227 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15228 | main (void) |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15229 | { |
| 15230 | return crypt (); |
| 15231 | ; |
| 15232 | return 0; |
| 15233 | } |
| 15234 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15235 | for ac_lib in '' crypt |
| 15236 | do |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15237 | if test -z "$ac_lib"; then |
| 15238 | ac_res="none required" |
| 15239 | else |
| 15240 | ac_res=-l$ac_lib |
| 15241 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 15242 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15243 | if ac_fn_c_try_link "$LINENO" |
| 15244 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15245 | ac_cv_search_crypt=$ac_res |
| 15246 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15247 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15248 | conftest$ac_exeext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15249 | if test ${ac_cv_search_crypt+y} |
| 15250 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15251 | break |
| 15252 | fi |
| 15253 | done |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15254 | if test ${ac_cv_search_crypt+y} |
| 15255 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15256 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15257 | else $as_nop |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15258 | ac_cv_search_crypt=no |
| 15259 | fi |
| 15260 | rm conftest.$ac_ext |
| 15261 | LIBS=$ac_func_search_save_LIBS |
| 15262 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15263 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 |
| 15264 | printf "%s\n" "$ac_cv_search_crypt" >&6; } |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15265 | ac_res=$ac_cv_search_crypt |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15266 | if test "$ac_res" != no |
| 15267 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15268 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 15269 | |
| 15270 | fi |
| 15271 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15272 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5 |
| 15273 | printf %s "checking for library containing crypt_r... " >&6; } |
| 15274 | if test ${ac_cv_search_crypt_r+y} |
| 15275 | then : |
| 15276 | printf %s "(cached) " >&6 |
| 15277 | else $as_nop |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15278 | ac_func_search_save_LIBS=$LIBS |
| 15279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15280 | /* end confdefs.h. */ |
| 15281 | |
| 15282 | /* Override any GCC internal prototype to avoid an error. |
| 15283 | Use char because int might match the return type of a GCC |
| 15284 | builtin and then its argument prototype would still apply. */ |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15285 | char crypt_r (); |
| 15286 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15287 | main (void) |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15288 | { |
| 15289 | return crypt_r (); |
| 15290 | ; |
| 15291 | return 0; |
| 15292 | } |
| 15293 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15294 | for ac_lib in '' crypt |
| 15295 | do |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15296 | if test -z "$ac_lib"; then |
| 15297 | ac_res="none required" |
| 15298 | else |
| 15299 | ac_res=-l$ac_lib |
| 15300 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 15301 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15302 | if ac_fn_c_try_link "$LINENO" |
| 15303 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15304 | ac_cv_search_crypt_r=$ac_res |
| 15305 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15306 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15307 | conftest$ac_exeext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15308 | if test ${ac_cv_search_crypt_r+y} |
| 15309 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15310 | break |
| 15311 | fi |
| 15312 | done |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15313 | if test ${ac_cv_search_crypt_r+y} |
| 15314 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15315 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15316 | else $as_nop |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15317 | ac_cv_search_crypt_r=no |
| 15318 | fi |
| 15319 | rm conftest.$ac_ext |
| 15320 | LIBS=$ac_func_search_save_LIBS |
| 15321 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5 |
| 15323 | printf "%s\n" "$ac_cv_search_crypt_r" >&6; } |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15324 | ac_res=$ac_cv_search_crypt_r |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15325 | if test "$ac_res" != no |
| 15326 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15327 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 15328 | |
| 15329 | fi |
| 15330 | |
| 15331 | |
| 15332 | ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15333 | if test "x$ac_cv_func_crypt_r" = xyes |
| 15334 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15336 | /* end confdefs.h. */ |
| 15337 | |
| 15338 | #define _GNU_SOURCE /* Required for crypt_r()'s prototype in glibc. */ |
| 15339 | #include <crypt.h> |
| 15340 | |
| 15341 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15342 | main (void) |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15343 | { |
| 15344 | |
| 15345 | struct crypt_data d; |
| 15346 | char *r = crypt_r("", "", &d); |
| 15347 | |
| 15348 | ; |
| 15349 | return 0; |
| 15350 | } |
| 15351 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15352 | if ac_fn_c_try_compile "$LINENO" |
| 15353 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15354 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15355 | printf "%s\n" "#define HAVE_CRYPT_R 1" >>confdefs.h |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15356 | |
| 15357 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15358 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15359 | |
| 15360 | fi |
| 15361 | |
| 15362 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15363 | |
| 15364 | for ac_func in clock_gettime |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15365 | do : |
| 15366 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15367 | if test "x$ac_cv_func_clock_gettime" = xyes |
| 15368 | then : |
| 15369 | printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15370 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15371 | else $as_nop |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15372 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15373 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
| 15374 | printf %s "checking for clock_gettime in -lrt... " >&6; } |
| 15375 | if test ${ac_cv_lib_rt_clock_gettime+y} |
| 15376 | then : |
| 15377 | printf %s "(cached) " >&6 |
| 15378 | else $as_nop |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15379 | ac_check_lib_save_LIBS=$LIBS |
| 15380 | LIBS="-lrt $LIBS" |
| 15381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15382 | /* end confdefs.h. */ |
| 15383 | |
| 15384 | /* Override any GCC internal prototype to avoid an error. |
| 15385 | Use char because int might match the return type of a GCC |
| 15386 | builtin and then its argument prototype would still apply. */ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15387 | char clock_gettime (); |
| 15388 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15389 | main (void) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15390 | { |
| 15391 | return clock_gettime (); |
| 15392 | ; |
| 15393 | return 0; |
| 15394 | } |
| 15395 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15396 | if ac_fn_c_try_link "$LINENO" |
| 15397 | then : |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15398 | ac_cv_lib_rt_clock_gettime=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15399 | else $as_nop |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15400 | ac_cv_lib_rt_clock_gettime=no |
| 15401 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15402 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15403 | conftest$ac_exeext conftest.$ac_ext |
| 15404 | LIBS=$ac_check_lib_save_LIBS |
| 15405 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15406 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
| 15407 | printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } |
| 15408 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes |
| 15409 | then : |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15410 | |
Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 15411 | LIBS="$LIBS -lrt" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15412 | printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15413 | |
| 15414 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15415 | printf "%s\n" "#define TIMEMODULE_LIB rt" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15416 | |
| 15417 | |
| 15418 | fi |
| 15419 | |
| 15420 | |
| 15421 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15422 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15423 | done |
| 15424 | |
| 15425 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15426 | for ac_func in clock_getres |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15427 | do : |
| 15428 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15429 | if test "x$ac_cv_func_clock_getres" = xyes |
| 15430 | then : |
| 15431 | printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15432 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15433 | else $as_nop |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15434 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 |
| 15436 | printf %s "checking for clock_getres in -lrt... " >&6; } |
| 15437 | if test ${ac_cv_lib_rt_clock_getres+y} |
| 15438 | then : |
| 15439 | printf %s "(cached) " >&6 |
| 15440 | else $as_nop |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15441 | ac_check_lib_save_LIBS=$LIBS |
| 15442 | LIBS="-lrt $LIBS" |
| 15443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15444 | /* end confdefs.h. */ |
| 15445 | |
| 15446 | /* Override any GCC internal prototype to avoid an error. |
| 15447 | Use char because int might match the return type of a GCC |
| 15448 | builtin and then its argument prototype would still apply. */ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15449 | char clock_getres (); |
| 15450 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15451 | main (void) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15452 | { |
| 15453 | return clock_getres (); |
| 15454 | ; |
| 15455 | return 0; |
| 15456 | } |
| 15457 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15458 | if ac_fn_c_try_link "$LINENO" |
| 15459 | then : |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15460 | ac_cv_lib_rt_clock_getres=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15461 | else $as_nop |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15462 | ac_cv_lib_rt_clock_getres=no |
| 15463 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15464 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15465 | conftest$ac_exeext conftest.$ac_ext |
| 15466 | LIBS=$ac_check_lib_save_LIBS |
| 15467 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15468 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 |
| 15469 | printf "%s\n" "$ac_cv_lib_rt_clock_getres" >&6; } |
| 15470 | if test "x$ac_cv_lib_rt_clock_getres" = xyes |
| 15471 | then : |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15472 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15473 | printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15474 | |
| 15475 | |
| 15476 | fi |
| 15477 | |
| 15478 | |
| 15479 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15480 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15481 | done |
| 15482 | |
| 15483 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15484 | for ac_func in clock_settime |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15485 | do : |
| 15486 | ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15487 | if test "x$ac_cv_func_clock_settime" = xyes |
| 15488 | then : |
| 15489 | printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15490 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15491 | else $as_nop |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15492 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15493 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 |
| 15494 | printf %s "checking for clock_settime in -lrt... " >&6; } |
| 15495 | if test ${ac_cv_lib_rt_clock_settime+y} |
| 15496 | then : |
| 15497 | printf %s "(cached) " >&6 |
| 15498 | else $as_nop |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15499 | ac_check_lib_save_LIBS=$LIBS |
| 15500 | LIBS="-lrt $LIBS" |
| 15501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15502 | /* end confdefs.h. */ |
| 15503 | |
| 15504 | /* Override any GCC internal prototype to avoid an error. |
| 15505 | Use char because int might match the return type of a GCC |
| 15506 | builtin and then its argument prototype would still apply. */ |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15507 | char clock_settime (); |
| 15508 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15509 | main (void) |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15510 | { |
| 15511 | return clock_settime (); |
| 15512 | ; |
| 15513 | return 0; |
| 15514 | } |
| 15515 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15516 | if ac_fn_c_try_link "$LINENO" |
| 15517 | then : |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15518 | ac_cv_lib_rt_clock_settime=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15519 | else $as_nop |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15520 | ac_cv_lib_rt_clock_settime=no |
| 15521 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15522 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15523 | conftest$ac_exeext conftest.$ac_ext |
| 15524 | LIBS=$ac_check_lib_save_LIBS |
| 15525 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 |
| 15527 | printf "%s\n" "$ac_cv_lib_rt_clock_settime" >&6; } |
| 15528 | if test "x$ac_cv_lib_rt_clock_settime" = xyes |
| 15529 | then : |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15530 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15531 | printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15532 | |
| 15533 | |
| 15534 | fi |
| 15535 | |
| 15536 | |
| 15537 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15538 | |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15539 | done |
| 15540 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
| 15542 | printf %s "checking for major... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15544 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15545 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15546 | #if defined(MAJOR_IN_MKDEV) |
| 15547 | #include <sys/mkdev.h> |
| 15548 | #elif defined(MAJOR_IN_SYSMACROS) |
| 15549 | #include <sys/sysmacros.h> |
| 15550 | #else |
| 15551 | #include <sys/types.h> |
| 15552 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15553 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15554 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15555 | main (void) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15556 | { |
| 15557 | |
| 15558 | makedev(major(0),minor(0)); |
| 15559 | |
| 15560 | ; |
| 15561 | return 0; |
| 15562 | } |
| 15563 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15564 | if ac_fn_c_try_link "$LINENO" |
| 15565 | then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15566 | |
| 15567 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15568 | printf "%s\n" "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15569 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15570 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15571 | printf "%s\n" "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15572 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15573 | else $as_nop |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15574 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15575 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15576 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15577 | |
| 15578 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15579 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15580 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15581 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15582 | # 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] | 15583 | # for [no]getaddrinfo in netdb.h. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
| 15585 | printf %s "checking for getaddrinfo... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15587 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15588 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15589 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15590 | #include <sys/socket.h> |
| 15591 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15592 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15593 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15594 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15595 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15596 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15597 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15598 | ; |
| 15599 | return 0; |
| 15600 | } |
| 15601 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15602 | if ac_fn_c_try_link "$LINENO" |
| 15603 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15604 | have_getaddrinfo=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15605 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15606 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15607 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15608 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15609 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15610 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 |
| 15611 | printf "%s\n" "$have_getaddrinfo" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15612 | if test $have_getaddrinfo = yes |
| 15613 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15614 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
| 15615 | printf %s "checking getaddrinfo bug... " >&6; } |
| 15616 | if test ${ac_cv_buggy_getaddrinfo+y} |
| 15617 | then : |
| 15618 | printf %s "(cached) " >&6 |
| 15619 | else $as_nop |
| 15620 | if test "$cross_compiling" = yes |
| 15621 | then : |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 15622 | |
| 15623 | if test "${enable_ipv6+set}" = set; then |
| 15624 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" |
| 15625 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15626 | ac_cv_buggy_getaddrinfo=yes |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 15627 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15628 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15630 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15631 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 15632 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15633 | #include <sys/types.h> |
| 15634 | #include <netdb.h> |
| 15635 | #include <string.h> |
| 15636 | #include <sys/socket.h> |
| 15637 | #include <netinet/in.h> |
| 15638 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15639 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15640 | { |
| 15641 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 15642 | struct addrinfo hints, *ai, *aitop; |
| 15643 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 15644 | |
| 15645 | for (passive = 0; passive <= 1; passive++) { |
| 15646 | memset(&hints, 0, sizeof(hints)); |
| 15647 | hints.ai_family = AF_UNSPEC; |
| 15648 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 15649 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 15650 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15651 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 15652 | (void)gai_strerror(gaierr); |
| 15653 | goto bad; |
| 15654 | } |
| 15655 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 15656 | if (ai->ai_addr == NULL || |
| 15657 | ai->ai_addrlen == 0 || |
| 15658 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 15659 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 15660 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 15661 | goto bad; |
| 15662 | } |
| 15663 | switch (ai->ai_family) { |
| 15664 | case AF_INET: |
| 15665 | if (strcmp(strport, "54321") != 0) { |
| 15666 | goto bad; |
| 15667 | } |
| 15668 | if (passive) { |
| 15669 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 15670 | goto bad; |
| 15671 | } |
| 15672 | } else { |
| 15673 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 15674 | goto bad; |
| 15675 | } |
| 15676 | } |
| 15677 | inet4++; |
| 15678 | break; |
| 15679 | case AF_INET6: |
| 15680 | if (strcmp(strport, "54321") != 0) { |
| 15681 | goto bad; |
| 15682 | } |
| 15683 | if (passive) { |
| 15684 | if (strcmp(straddr, "::") != 0) { |
| 15685 | goto bad; |
| 15686 | } |
| 15687 | } else { |
| 15688 | if (strcmp(straddr, "::1") != 0) { |
| 15689 | goto bad; |
| 15690 | } |
| 15691 | } |
| 15692 | inet6++; |
| 15693 | break; |
| 15694 | case AF_UNSPEC: |
| 15695 | goto bad; |
| 15696 | break; |
| 15697 | default: |
| 15698 | /* another family support? */ |
| 15699 | break; |
| 15700 | } |
| 15701 | } |
Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 15702 | freeaddrinfo(aitop); |
| 15703 | aitop = NULL; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15704 | } |
| 15705 | |
| 15706 | if (!(inet4 == 0 || inet4 == 2)) |
| 15707 | goto bad; |
| 15708 | if (!(inet6 == 0 || inet6 == 2)) |
| 15709 | goto bad; |
| 15710 | |
| 15711 | if (aitop) |
| 15712 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15713 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15714 | |
| 15715 | bad: |
| 15716 | if (aitop) |
| 15717 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15718 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15719 | } |
| 15720 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15721 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15722 | if ac_fn_c_try_run "$LINENO" |
| 15723 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15724 | ac_cv_buggy_getaddrinfo=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15725 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15726 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15727 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15728 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15729 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15730 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15731 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15732 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15733 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15734 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15735 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
| 15737 | printf "%s\n" "$ac_cv_buggy_getaddrinfo" >&6; } |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 15738 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 15739 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15740 | then |
| 15741 | if test $ipv6 = yes |
| 15742 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15743 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 15744 | echo ' or you can specify "--disable-ipv6"'. |
| 15745 | exit 1 |
| 15746 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15747 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15748 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15749 | printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15750 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15751 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 15752 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15753 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
| 15754 | if test "x$ac_cv_func_getnameinfo" = xyes |
| 15755 | then : |
| 15756 | printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15757 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15758 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15759 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15760 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15761 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15763 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15764 | # Obsolete code to be removed. |
| 15765 | if test $ac_cv_header_sys_time_h = yes; then |
| 15766 | |
| 15767 | printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15768 | |
| 15769 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15770 | # End of obsolete code. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15771 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 15773 | printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
| 15774 | if test ${ac_cv_struct_tm+y} |
| 15775 | then : |
| 15776 | printf %s "(cached) " >&6 |
| 15777 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15779 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15780 | #include <sys/types.h> |
| 15781 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15783 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15784 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15785 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15786 | struct tm tm; |
| 15787 | int *p = &tm.tm_sec; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15788 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15789 | ; |
| 15790 | return 0; |
| 15791 | } |
| 15792 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15793 | if ac_fn_c_try_compile "$LINENO" |
| 15794 | then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15795 | ac_cv_struct_tm=time.h |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15796 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15797 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15798 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15799 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15800 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15801 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 15802 | printf "%s\n" "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15803 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15804 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15805 | printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15806 | |
| 15807 | fi |
| 15808 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15809 | 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] | 15810 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15811 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15812 | " |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15813 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes |
| 15814 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15815 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15816 | printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15817 | |
| 15818 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15819 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15821 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 15822 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15823 | printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15824 | |
| 15825 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15826 | ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 15827 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 15828 | if test "x$ac_cv_have_decl_tzname" = xyes |
| 15829 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15830 | ac_have_decl=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15831 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15832 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15833 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15834 | printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15835 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 15837 | printf %s "checking for tzname... " >&6; } |
| 15838 | if test ${ac_cv_var_tzname+y} |
| 15839 | then : |
| 15840 | printf %s "(cached) " >&6 |
| 15841 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15843 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15844 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15845 | #if !HAVE_DECL_TZNAME |
| 15846 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15847 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15849 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15850 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15851 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15852 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15853 | ; |
| 15854 | return 0; |
| 15855 | } |
| 15856 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15857 | if ac_fn_c_try_link "$LINENO" |
| 15858 | then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15859 | ac_cv_var_tzname=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15860 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15861 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15862 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15863 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15864 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15865 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 15867 | printf "%s\n" "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15868 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15869 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15870 | printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15871 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15872 | fi |
| 15873 | fi |
| 15874 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15875 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15876 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes |
| 15877 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15878 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15879 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15880 | |
| 15881 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15882 | fi |
| 15883 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15884 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15885 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes |
| 15886 | then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15887 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15888 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15889 | |
| 15890 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15891 | fi |
| 15892 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15893 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15894 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes |
| 15895 | then : |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 15896 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15897 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 15898 | |
| 15899 | |
| 15900 | fi |
| 15901 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15902 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15903 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes |
| 15904 | then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15905 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15906 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_GEN 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15907 | |
| 15908 | |
| 15909 | fi |
| 15910 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15911 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15912 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes |
| 15913 | then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15914 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15915 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15916 | |
| 15917 | |
| 15918 | fi |
| 15919 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15920 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15921 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes |
| 15922 | then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15923 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15924 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15925 | |
| 15926 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15927 | fi |
| 15928 | |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 15929 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " |
| 15930 | #include <sys/types.h> |
| 15931 | #include <pwd.h> |
| 15932 | |
| 15933 | " |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15934 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes |
| 15935 | then : |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 15936 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15937 | printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_GECOS 1" >>confdefs.h |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 15938 | |
| 15939 | |
| 15940 | fi |
| 15941 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " |
| 15942 | #include <sys/types.h> |
| 15943 | #include <pwd.h> |
| 15944 | |
| 15945 | " |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15946 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes |
| 15947 | then : |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 15948 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15949 | printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_PASSWD 1" >>confdefs.h |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 15950 | |
| 15951 | |
| 15952 | fi |
| 15953 | |
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 15954 | # Issue #21085: In Cygwin, siginfo_t does not have si_band field. |
| 15955 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> |
| 15956 | " |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15957 | if test "x$ac_cv_member_siginfo_t_si_band" = xyes |
| 15958 | then : |
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 15959 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15960 | printf "%s\n" "#define HAVE_SIGINFO_T_SI_BAND 1" >>confdefs.h |
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 15961 | |
| 15962 | |
| 15963 | fi |
| 15964 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15965 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
| 15967 | printf %s "checking for time.h that defines altzone... " >&6; } |
| 15968 | if test ${ac_cv_header_time_altzone+y} |
| 15969 | then : |
| 15970 | printf %s "(cached) " >&6 |
| 15971 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15972 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15974 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15975 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15976 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15977 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15978 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15979 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15980 | ; |
| 15981 | return 0; |
| 15982 | } |
| 15983 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15984 | if ac_fn_c_try_compile "$LINENO" |
| 15985 | then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15986 | ac_cv_header_time_altzone=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15987 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15988 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15989 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15990 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15991 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15992 | fi |
| 15993 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
| 15995 | printf "%s\n" "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15996 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15997 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 15998 | printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15999 | |
| 16000 | fi |
| 16001 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16002 | was_it_defined=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16003 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 16004 | printf %s "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] | 16005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16006 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16007 | |
| 16008 | #include <sys/types.h> |
| 16009 | #include <sys/select.h> |
| 16010 | #include <sys/time.h> |
| 16011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16012 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16013 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16014 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16015 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16016 | ; |
| 16017 | return 0; |
| 16018 | } |
| 16019 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16020 | if ac_fn_c_try_compile "$LINENO" |
| 16021 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | |
| 16023 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16024 | printf "%s\n" "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16025 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16026 | was_it_defined=yes |
| 16027 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16028 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16029 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16030 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 16031 | printf "%s\n" "$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16032 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
| 16034 | printf %s "checking for addrinfo... " >&6; } |
| 16035 | if test ${ac_cv_struct_addrinfo+y} |
| 16036 | then : |
| 16037 | printf %s "(cached) " >&6 |
| 16038 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16040 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16041 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16042 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16043 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16044 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16045 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16046 | ; |
| 16047 | return 0; |
| 16048 | } |
| 16049 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16050 | if ac_fn_c_try_compile "$LINENO" |
| 16051 | then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16052 | ac_cv_struct_addrinfo=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16053 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16054 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16055 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16056 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16057 | fi |
| 16058 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
| 16060 | printf "%s\n" "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16061 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16062 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16063 | printf "%s\n" "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16064 | |
| 16065 | fi |
| 16066 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16067 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
| 16068 | printf %s "checking for sockaddr_storage... " >&6; } |
| 16069 | if test ${ac_cv_struct_sockaddr_storage+y} |
| 16070 | then : |
| 16071 | printf %s "(cached) " >&6 |
| 16072 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16074 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16075 | |
| 16076 | # include <sys/types.h> |
| 16077 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16078 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16079 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16080 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16081 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16082 | ; |
| 16083 | return 0; |
| 16084 | } |
| 16085 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16086 | if ac_fn_c_try_compile "$LINENO" |
| 16087 | then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16088 | ac_cv_struct_sockaddr_storage=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16089 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16090 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16091 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16092 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16093 | fi |
| 16094 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16095 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 16096 | printf "%s\n" "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16097 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16098 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16099 | printf "%s\n" "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16100 | |
| 16101 | fi |
| 16102 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 |
| 16104 | printf %s "checking for sockaddr_alg... " >&6; } |
| 16105 | if test ${ac_cv_struct_sockaddr_alg+y} |
| 16106 | then : |
| 16107 | printf %s "(cached) " >&6 |
| 16108 | else $as_nop |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 16109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16110 | /* end confdefs.h. */ |
| 16111 | |
| 16112 | # include <sys/types.h> |
| 16113 | # include <sys/socket.h> |
| 16114 | # include <linux/if_alg.h> |
| 16115 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16116 | main (void) |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 16117 | { |
| 16118 | struct sockaddr_alg s |
| 16119 | ; |
| 16120 | return 0; |
| 16121 | } |
| 16122 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16123 | if ac_fn_c_try_compile "$LINENO" |
| 16124 | then : |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 16125 | ac_cv_struct_sockaddr_alg=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16126 | else $as_nop |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 16127 | ac_cv_struct_sockaddr_alg=no |
| 16128 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16129 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 16130 | fi |
| 16131 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 |
| 16133 | printf "%s\n" "$ac_cv_struct_sockaddr_alg" >&6; } |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 16134 | if test $ac_cv_struct_sockaddr_alg = yes; then |
| 16135 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16136 | printf "%s\n" "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 16137 | |
| 16138 | fi |
| 16139 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16140 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16141 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16142 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 16143 | printf %s "checking whether char is unsigned... " >&6; } |
| 16144 | if test ${ac_cv_c_char_unsigned+y} |
| 16145 | then : |
| 16146 | printf %s "(cached) " >&6 |
| 16147 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16149 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16150 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16151 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16152 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16153 | { |
| 16154 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16155 | test_array [0] = 0; |
| 16156 | return test_array [0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16157 | |
| 16158 | ; |
| 16159 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16160 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16161 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16162 | if ac_fn_c_try_compile "$LINENO" |
| 16163 | then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16164 | ac_cv_c_char_unsigned=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16165 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16166 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16167 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16168 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16169 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16170 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 16171 | printf "%s\n" "$ac_cv_c_char_unsigned" >&6; } |
| 16172 | if test $ac_cv_c_char_unsigned = yes; then |
| 16173 | printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16174 | |
| 16175 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16176 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16177 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 16178 | printf %s "checking for an ANSI C-conforming const... " >&6; } |
| 16179 | if test ${ac_cv_c_const+y} |
| 16180 | then : |
| 16181 | printf %s "(cached) " >&6 |
| 16182 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16184 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16186 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16187 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16188 | { |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16190 | #ifndef __cplusplus |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16191 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16192 | typedef int charset[2]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16193 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16194 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16195 | char const *const *pcpcc; |
| 16196 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16197 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16198 | struct point {int x, y;}; |
| 16199 | static struct point const zero = {0,0}; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16200 | /* IBM XL C 1.02.0.0 rejects this. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16201 | It does not let you subtract one const X* pointer from another in |
| 16202 | an arm of an if-expression whose if-part is not a constant |
| 16203 | expression */ |
| 16204 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16205 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16206 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16207 | ++pcpcc; |
| 16208 | ppc = (char**) pcpcc; |
| 16209 | pcpcc = (char const *const *) ppc; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16210 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 16211 | char tx; |
| 16212 | char *t = &tx; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16213 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16214 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16215 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16216 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16217 | } |
| 16218 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 16219 | int x[] = {25, 17}; |
| 16220 | const int *foo = &x[0]; |
| 16221 | ++foo; |
| 16222 | } |
| 16223 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 16224 | typedef const int *iptr; |
| 16225 | iptr p = 0; |
| 16226 | ++p; |
| 16227 | } |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16228 | { /* IBM 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] | 16229 | "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] | 16230 | struct s { int j; const int *ap[3]; } bx; |
| 16231 | struct s *b = &bx; b->j = 5; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16232 | } |
| 16233 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 16234 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16235 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16236 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16237 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16238 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16240 | ; |
| 16241 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16242 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16243 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16244 | if ac_fn_c_try_compile "$LINENO" |
| 16245 | then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16246 | ac_cv_c_const=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16247 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16248 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16249 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16250 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16251 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16252 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 16253 | printf "%s\n" "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16254 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16255 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16256 | printf "%s\n" "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16257 | |
| 16258 | fi |
| 16259 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16260 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16261 | works=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16262 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
| 16263 | printf %s "checking for working signed char... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16265 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 16266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16267 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16268 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16269 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16270 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16271 | ; |
| 16272 | return 0; |
| 16273 | } |
| 16274 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16275 | if ac_fn_c_try_compile "$LINENO" |
| 16276 | then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16277 | works=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16278 | else $as_nop |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16279 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16280 | printf "%s\n" "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16281 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16282 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16283 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16284 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 16286 | printf "%s\n" "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16287 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16288 | have_prototypes=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16289 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
| 16290 | printf %s "checking for prototypes... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16292 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16293 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16294 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16295 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16296 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16297 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16298 | ; |
| 16299 | return 0; |
| 16300 | } |
| 16301 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16302 | if ac_fn_c_try_compile "$LINENO" |
| 16303 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16304 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16305 | printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16306 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16307 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16308 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16309 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16310 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
| 16311 | printf "%s\n" "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16312 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16313 | works=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16314 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
| 16315 | printf %s "checking for variable length prototypes and stdarg.h... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16317 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16318 | |
| 16319 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 16320 | int foo(int x, ...) { |
| 16321 | va_list va; |
| 16322 | va_start(va, x); |
| 16323 | va_arg(va, int); |
| 16324 | va_arg(va, char *); |
| 16325 | va_arg(va, double); |
| 16326 | return 0; |
| 16327 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16329 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16330 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16331 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 16332 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16333 | ; |
| 16334 | return 0; |
| 16335 | } |
| 16336 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16337 | if ac_fn_c_try_compile "$LINENO" |
| 16338 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16339 | |
| 16340 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16341 | printf "%s\n" "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16342 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16343 | works=yes |
| 16344 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16345 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16346 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 16348 | printf "%s\n" "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16349 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16350 | # check for socketpair |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
| 16352 | printf %s "checking for socketpair... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16354 | /* end confdefs.h. */ |
| 16355 | |
| 16356 | #include <sys/types.h> |
| 16357 | #include <sys/socket.h> |
| 16358 | |
| 16359 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16360 | main (void) |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16361 | { |
| 16362 | void *x=socketpair |
| 16363 | ; |
| 16364 | return 0; |
| 16365 | } |
| 16366 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16367 | if ac_fn_c_try_compile "$LINENO" |
| 16368 | then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16369 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16370 | printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16371 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16372 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16373 | printf "%s\n" "yes" >&6; } |
| 16374 | else $as_nop |
| 16375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16376 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16377 | |
| 16378 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16379 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16380 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16381 | # check if sockaddr has sa_len member |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
| 16383 | printf %s "checking if sockaddr has sa_len member... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16385 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16386 | #include <sys/types.h> |
| 16387 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16388 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16389 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16390 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16391 | struct sockaddr x; |
| 16392 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16393 | ; |
| 16394 | return 0; |
| 16395 | } |
| 16396 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16397 | if ac_fn_c_try_compile "$LINENO" |
| 16398 | then : |
| 16399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16400 | printf "%s\n" "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16401 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16402 | printf "%s\n" "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16403 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16404 | else $as_nop |
| 16405 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16406 | printf "%s\n" "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16407 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16408 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16409 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16410 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16411 | # 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] | 16412 | |
| 16413 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16414 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16415 | if test "x$ac_cv_func_gethostbyname_r" = xyes |
| 16416 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16417 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16418 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16419 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
| 16421 | printf %s "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16422 | OLD_CFLAGS=$CFLAGS |
| 16423 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16425 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16426 | |
| 16427 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16429 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16430 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16431 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16432 | |
| 16433 | char *name; |
| 16434 | struct hostent *he, *res; |
| 16435 | char buffer[2048]; |
| 16436 | int buflen = 2048; |
| 16437 | int h_errnop; |
| 16438 | |
| 16439 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16440 | |
| 16441 | ; |
| 16442 | return 0; |
| 16443 | } |
| 16444 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16445 | if ac_fn_c_try_compile "$LINENO" |
| 16446 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16447 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16448 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16449 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16450 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16451 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16452 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16453 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16454 | printf "%s\n" "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16455 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16456 | else $as_nop |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16457 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16459 | printf "%s\n" "no" >&6; } |
| 16460 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 |
| 16461 | printf %s "checking gethostbyname_r with 5 args... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16463 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16464 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16465 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16467 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16468 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16469 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16470 | |
| 16471 | char *name; |
| 16472 | struct hostent *he; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16473 | char buffer[2048]; |
| 16474 | int buflen = 2048; |
| 16475 | int h_errnop; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16476 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16477 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16478 | |
| 16479 | ; |
| 16480 | return 0; |
| 16481 | } |
| 16482 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16483 | if ac_fn_c_try_compile "$LINENO" |
| 16484 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16485 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16486 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16488 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16489 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16490 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16491 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16492 | printf "%s\n" "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16493 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16494 | else $as_nop |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16495 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16496 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16497 | printf "%s\n" "no" >&6; } |
| 16498 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
| 16499 | printf %s "checking gethostbyname_r with 3 args... " >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16501 | /* end confdefs.h. */ |
| 16502 | |
| 16503 | # include <netdb.h> |
| 16504 | |
| 16505 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16506 | main (void) |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16507 | { |
| 16508 | |
| 16509 | char *name; |
| 16510 | struct hostent *he; |
| 16511 | struct hostent_data data; |
| 16512 | |
| 16513 | (void) gethostbyname_r(name, he, &data); |
| 16514 | |
| 16515 | ; |
| 16516 | return 0; |
| 16517 | } |
| 16518 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16519 | if ac_fn_c_try_compile "$LINENO" |
| 16520 | then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16521 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16522 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16523 | |
| 16524 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16525 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16526 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16527 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16528 | printf "%s\n" "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16529 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16530 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16531 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16532 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16533 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16534 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16535 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16536 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16537 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16538 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16539 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16540 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16541 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16542 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16543 | CFLAGS=$OLD_CFLAGS |
| 16544 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16545 | else $as_nop |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16546 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16547 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16548 | if test "x$ac_cv_func_gethostbyname" = xyes |
| 16549 | then : |
| 16550 | printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16551 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16552 | fi |
| 16553 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16554 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16555 | fi |
| 16556 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16557 | |
| 16558 | |
| 16559 | |
| 16560 | |
| 16561 | |
| 16562 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16563 | # checks for system services |
| 16564 | # (none yet) |
| 16565 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16566 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16567 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16568 | if test "x$ac_cv_func___fpu_control" = xyes |
| 16569 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16570 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16571 | else $as_nop |
| 16572 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
| 16573 | printf %s "checking for __fpu_control in -lieee... " >&6; } |
| 16574 | if test ${ac_cv_lib_ieee___fpu_control+y} |
| 16575 | then : |
| 16576 | printf %s "(cached) " >&6 |
| 16577 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16578 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16579 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16581 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16582 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16583 | /* Override any GCC internal prototype to avoid an error. |
| 16584 | Use char because int might match the return type of a GCC |
| 16585 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16586 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16587 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16588 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16589 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16590 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16591 | ; |
| 16592 | return 0; |
| 16593 | } |
| 16594 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16595 | if ac_fn_c_try_link "$LINENO" |
| 16596 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16597 | ac_cv_lib_ieee___fpu_control=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16598 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16599 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16600 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16601 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16602 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16603 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16604 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 16606 | printf "%s\n" "$ac_cv_lib_ieee___fpu_control" >&6; } |
| 16607 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes |
| 16608 | then : |
| 16609 | printf "%s\n" "#define HAVE_LIBIEEE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16610 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16611 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16612 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16613 | fi |
| 16614 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16615 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16616 | fi |
| 16617 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16618 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16619 | # check for --with-libm=... |
| 16620 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 16621 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 16622 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 16623 | *) LIBM=-lm |
| 16624 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16625 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
| 16626 | printf %s "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16627 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16628 | # Check whether --with-libm was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16629 | if test ${with_libm+y} |
| 16630 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16631 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16632 | if test "$withval" = no |
| 16633 | then LIBM= |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
| 16635 | printf "%s\n" "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16636 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16637 | then LIBM=$withval |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16638 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
| 16639 | printf "%s\n" "set LIBM=\"$withval\"" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16640 | 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] | 16641 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16642 | else $as_nop |
| 16643 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
| 16644 | printf "%s\n" "default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16645 | fi |
| 16646 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16647 | |
| 16648 | # check for --with-libc=... |
| 16649 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16650 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
| 16651 | printf %s "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16652 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16653 | # Check whether --with-libc was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16654 | if test ${with_libc+y} |
| 16655 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16656 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16657 | if test "$withval" = no |
| 16658 | then LIBC= |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
| 16660 | printf "%s\n" "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16661 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16662 | then LIBC=$withval |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
| 16664 | printf "%s\n" "set LIBC=\"$withval\"" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16665 | 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] | 16666 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16667 | else $as_nop |
| 16668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
| 16669 | printf "%s\n" "default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16670 | fi |
| 16671 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16672 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16673 | # ************************************** |
| 16674 | # * Check for gcc x64 inline assembler * |
| 16675 | # ************************************** |
| 16676 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 |
| 16678 | printf %s "checking for x64 gcc inline assembler... " >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16680 | /* end confdefs.h. */ |
| 16681 | |
| 16682 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16683 | main (void) |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16684 | { |
| 16685 | |
| 16686 | __asm__ __volatile__ ("movq %rcx, %rax"); |
| 16687 | |
| 16688 | ; |
| 16689 | return 0; |
| 16690 | } |
| 16691 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16692 | if ac_fn_c_try_link "$LINENO" |
| 16693 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16694 | have_gcc_asm_for_x64=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16695 | else $as_nop |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16696 | have_gcc_asm_for_x64=no |
| 16697 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16698 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 16699 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 |
| 16701 | printf "%s\n" "$have_gcc_asm_for_x64" >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16702 | if test "$have_gcc_asm_for_x64" = yes |
| 16703 | then |
| 16704 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16705 | printf "%s\n" "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16706 | |
| 16707 | fi |
| 16708 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16709 | # ************************************************** |
| 16710 | # * Check for various properties of floating point * |
| 16711 | # ************************************************** |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 16712 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5 |
| 16714 | printf %s "checking whether float word ordering is bigendian... " >&6; } |
| 16715 | if test ${ax_cv_c_float_words_bigendian+y} |
| 16716 | then : |
| 16717 | printf %s "(cached) " >&6 |
| 16718 | else $as_nop |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16719 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16720 | |
| 16721 | ax_cv_c_float_words_bigendian=unknown |
| 16722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16723 | /* end confdefs.h. */ |
| 16724 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16725 | |
| 16726 | double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0; |
| 16727 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16728 | |
| 16729 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16730 | if ac_fn_c_try_compile "$LINENO" |
| 16731 | then : |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16732 | |
| 16733 | |
Arnon Yaari | 5dd8360 | 2020-04-01 18:19:09 +0300 | [diff] [blame] | 16734 | if $GREP noonsees conftest.$ac_objext >/dev/null ; then |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16735 | ax_cv_c_float_words_bigendian=yes |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16736 | fi |
Arnon Yaari | 5dd8360 | 2020-04-01 18:19:09 +0300 | [diff] [blame] | 16737 | if $GREP seesnoon conftest.$ac_objext >/dev/null ; then |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16738 | if test "$ax_cv_c_float_words_bigendian" = unknown; then |
| 16739 | ax_cv_c_float_words_bigendian=no |
| 16740 | else |
| 16741 | ax_cv_c_float_words_bigendian=unknown |
| 16742 | fi |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16743 | fi |
| 16744 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16745 | |
| 16746 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16747 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16748 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5 |
| 16750 | printf "%s\n" "$ax_cv_c_float_words_bigendian" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16751 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16752 | case $ax_cv_c_float_words_bigendian in |
| 16753 | yes) |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16754 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16755 | printf "%s\n" "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16756 | ;; |
| 16757 | no) |
| 16758 | ;; |
| 16759 | *) |
| 16760 | as_fn_error $? " |
| 16761 | |
| 16762 | Unknown float word ordering. You need to manually preset |
| 16763 | ax_cv_c_float_words_bigendian=no (or yes) according to your system. |
| 16764 | |
| 16765 | " "$LINENO" 5 ;; |
| 16766 | esac |
| 16767 | |
| 16768 | |
| 16769 | if test "$ax_cv_c_float_words_bigendian" = "yes" |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16770 | then |
| 16771 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16772 | printf "%s\n" "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16773 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16774 | elif test "$ax_cv_c_float_words_bigendian" = "no" |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16775 | then |
| 16776 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16777 | printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16778 | |
| 16779 | else |
| 16780 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 16781 | # While Python doesn't currently have full support for these platforms |
| 16782 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 16783 | # conversions work. |
| 16784 | # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big |
| 16785 | # or little, then it must be this? |
| 16786 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16787 | printf "%s\n" "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16788 | |
| 16789 | fi |
| 16790 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 16791 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 16792 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 16793 | # 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] | 16794 | # 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] | 16795 | # 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] | 16796 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 16797 | |
| 16798 | # This inline assembler syntax may also work for suncc and icc, |
| 16799 | # so we try it on all platforms. |
| 16800 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16801 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 16802 | printf %s "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] | 16803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16804 | /* end confdefs.h. */ |
| 16805 | |
| 16806 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16807 | main (void) |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16808 | { |
| 16809 | |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 16810 | unsigned short cw; |
| 16811 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 16812 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16813 | |
| 16814 | ; |
| 16815 | return 0; |
| 16816 | } |
| 16817 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16818 | if ac_fn_c_try_link "$LINENO" |
| 16819 | then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16820 | have_gcc_asm_for_x87=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16821 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16822 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16823 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16824 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 16825 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16826 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
| 16827 | printf "%s\n" "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 16828 | if test "$have_gcc_asm_for_x87" = yes |
| 16829 | then |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16830 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16831 | printf "%s\n" "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16832 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16833 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16834 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16835 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 |
| 16836 | printf %s "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] | 16837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16838 | /* end confdefs.h. */ |
| 16839 | |
| 16840 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16841 | main (void) |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 16842 | { |
| 16843 | |
| 16844 | unsigned int fpcr; |
| 16845 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); |
| 16846 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); |
| 16847 | |
| 16848 | ; |
| 16849 | return 0; |
| 16850 | } |
| 16851 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16852 | if ac_fn_c_try_link "$LINENO" |
| 16853 | then : |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 16854 | have_gcc_asm_for_mc68881=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16855 | else $as_nop |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 16856 | have_gcc_asm_for_mc68881=no |
| 16857 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16858 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 16859 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16860 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 |
| 16861 | printf "%s\n" "$have_gcc_asm_for_mc68881" >&6; } |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 16862 | if test "$have_gcc_asm_for_mc68881" = yes |
| 16863 | then |
| 16864 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16865 | printf "%s\n" "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 16866 | |
| 16867 | fi |
| 16868 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16869 | # Detect whether system arithmetic is subject to x87-style double |
| 16870 | # rounding issues. The result of this test has little meaning on non |
| 16871 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 16872 | # mode is round-to-nearest and double rounding issues are present, and |
| 16873 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
| 16875 | printf %s "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16876 | # $BASECFLAGS may affect the result |
| 16877 | ac_save_cc="$CC" |
| 16878 | CC="$CC $BASECFLAGS" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16879 | if test "$cross_compiling" = yes |
| 16880 | then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16881 | ac_cv_x87_double_rounding=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16882 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16884 | /* end confdefs.h. */ |
| 16885 | |
| 16886 | #include <stdlib.h> |
| 16887 | #include <math.h> |
| 16888 | int main() { |
| 16889 | volatile double x, y, z; |
| 16890 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 16891 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 16892 | y = 1./x; |
| 16893 | if (y != 1.) |
| 16894 | exit(0); |
| 16895 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 16896 | x = 1e16; |
| 16897 | y = 2.99999; |
| 16898 | z = x + y; |
| 16899 | if (z != 1e16+4.) |
| 16900 | exit(0); |
| 16901 | /* both tests show evidence of double rounding */ |
| 16902 | exit(1); |
| 16903 | } |
| 16904 | |
| 16905 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16906 | if ac_fn_c_try_run "$LINENO" |
| 16907 | then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16908 | ac_cv_x87_double_rounding=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16909 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16910 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16911 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16912 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16913 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16914 | fi |
| 16915 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16916 | CC="$ac_save_cc" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16917 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
| 16918 | printf "%s\n" "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16919 | if test "$ac_cv_x87_double_rounding" = yes |
| 16920 | then |
| 16921 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16922 | printf "%s\n" "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16923 | |
| 16924 | fi |
| 16925 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16926 | # ************************************ |
| 16927 | # * Check for mathematical functions * |
| 16928 | # ************************************ |
| 16929 | |
| 16930 | LIBS_SAVE=$LIBS |
| 16931 | LIBS="$LIBS $LIBM" |
| 16932 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16933 | ac_fn_c_check_func "$LINENO" "acosh" "ac_cv_func_acosh" |
| 16934 | if test "x$ac_cv_func_acosh" = xyes |
| 16935 | then : |
| 16936 | printf "%s\n" "#define HAVE_ACOSH 1" >>confdefs.h |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 16937 | |
| 16938 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16939 | ac_fn_c_check_func "$LINENO" "asinh" "ac_cv_func_asinh" |
| 16940 | if test "x$ac_cv_func_asinh" = xyes |
| 16941 | then : |
| 16942 | printf "%s\n" "#define HAVE_ASINH 1" >>confdefs.h |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 16943 | |
| 16944 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16945 | ac_fn_c_check_func "$LINENO" "atanh" "ac_cv_func_atanh" |
| 16946 | if test "x$ac_cv_func_atanh" = xyes |
| 16947 | then : |
| 16948 | printf "%s\n" "#define HAVE_ATANH 1" >>confdefs.h |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 16949 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 16950 | fi |
| 16951 | ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign" |
| 16952 | if test "x$ac_cv_func_copysign" = xyes |
| 16953 | then : |
| 16954 | printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h |
| 16955 | |
| 16956 | fi |
| 16957 | ac_fn_c_check_func "$LINENO" "erf" "ac_cv_func_erf" |
| 16958 | if test "x$ac_cv_func_erf" = xyes |
| 16959 | then : |
| 16960 | printf "%s\n" "#define HAVE_ERF 1" >>confdefs.h |
| 16961 | |
| 16962 | fi |
| 16963 | ac_fn_c_check_func "$LINENO" "erfc" "ac_cv_func_erfc" |
| 16964 | if test "x$ac_cv_func_erfc" = xyes |
| 16965 | then : |
| 16966 | printf "%s\n" "#define HAVE_ERFC 1" >>confdefs.h |
| 16967 | |
| 16968 | fi |
| 16969 | ac_fn_c_check_func "$LINENO" "expm1" "ac_cv_func_expm1" |
| 16970 | if test "x$ac_cv_func_expm1" = xyes |
| 16971 | then : |
| 16972 | printf "%s\n" "#define HAVE_EXPM1 1" >>confdefs.h |
| 16973 | |
| 16974 | fi |
| 16975 | ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite" |
| 16976 | if test "x$ac_cv_func_finite" = xyes |
| 16977 | then : |
| 16978 | printf "%s\n" "#define HAVE_FINITE 1" >>confdefs.h |
| 16979 | |
| 16980 | fi |
| 16981 | ac_fn_c_check_func "$LINENO" "gamma" "ac_cv_func_gamma" |
| 16982 | if test "x$ac_cv_func_gamma" = xyes |
| 16983 | then : |
| 16984 | printf "%s\n" "#define HAVE_GAMMA 1" >>confdefs.h |
| 16985 | |
| 16986 | fi |
| 16987 | |
| 16988 | ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot" |
| 16989 | if test "x$ac_cv_func_hypot" = xyes |
| 16990 | then : |
| 16991 | printf "%s\n" "#define HAVE_HYPOT 1" >>confdefs.h |
| 16992 | |
| 16993 | fi |
| 16994 | ac_fn_c_check_func "$LINENO" "lgamma" "ac_cv_func_lgamma" |
| 16995 | if test "x$ac_cv_func_lgamma" = xyes |
| 16996 | then : |
| 16997 | printf "%s\n" "#define HAVE_LGAMMA 1" >>confdefs.h |
| 16998 | |
| 16999 | fi |
| 17000 | ac_fn_c_check_func "$LINENO" "log1p" "ac_cv_func_log1p" |
| 17001 | if test "x$ac_cv_func_log1p" = xyes |
| 17002 | then : |
| 17003 | printf "%s\n" "#define HAVE_LOG1P 1" >>confdefs.h |
| 17004 | |
| 17005 | fi |
| 17006 | ac_fn_c_check_func "$LINENO" "log2" "ac_cv_func_log2" |
| 17007 | if test "x$ac_cv_func_log2" = xyes |
| 17008 | then : |
| 17009 | printf "%s\n" "#define HAVE_LOG2 1" >>confdefs.h |
| 17010 | |
| 17011 | fi |
| 17012 | ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round" |
| 17013 | if test "x$ac_cv_func_round" = xyes |
| 17014 | then : |
| 17015 | printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h |
| 17016 | |
| 17017 | fi |
| 17018 | ac_fn_c_check_func "$LINENO" "tgamma" "ac_cv_func_tgamma" |
| 17019 | if test "x$ac_cv_func_tgamma" = xyes |
| 17020 | then : |
| 17021 | printf "%s\n" "#define HAVE_TGAMMA 1" >>confdefs.h |
| 17022 | |
| 17023 | fi |
| 17024 | |
| 17025 | ac_fn_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
| 17026 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17027 | if test "x$ac_cv_have_decl_isinf" = xyes |
| 17028 | then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 17029 | ac_have_decl=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17030 | else $as_nop |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 17031 | ac_have_decl=0 |
| 17032 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17033 | printf "%s\n" "#define HAVE_DECL_ISINF $ac_have_decl" >>confdefs.h |
| 17034 | ac_fn_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> |
| 17035 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17036 | if test "x$ac_cv_have_decl_isnan" = xyes |
| 17037 | then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 17038 | ac_have_decl=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17039 | else $as_nop |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 17040 | ac_have_decl=0 |
| 17041 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17042 | printf "%s\n" "#define HAVE_DECL_ISNAN $ac_have_decl" >>confdefs.h |
| 17043 | ac_fn_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> |
| 17044 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17045 | if test "x$ac_cv_have_decl_isfinite" = xyes |
| 17046 | then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 17047 | ac_have_decl=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17048 | else $as_nop |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 17049 | ac_have_decl=0 |
| 17050 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17051 | printf "%s\n" "#define HAVE_DECL_ISFINITE $ac_have_decl" >>confdefs.h |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 17052 | |
| 17053 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17054 | # For multiprocessing module, check that sem_open |
| 17055 | # actually works. For FreeBSD versions <= 7.2, |
| 17056 | # the kernel module that provides POSIX semaphores |
| 17057 | # isn't loaded by default, so an attempt to call |
| 17058 | # sem_open results in a 'Signal 12' error. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
| 17060 | printf %s "checking whether POSIX semaphores are enabled... " >&6; } |
| 17061 | if test ${ac_cv_posix_semaphores_enabled+y} |
| 17062 | then : |
| 17063 | printf %s "(cached) " >&6 |
| 17064 | else $as_nop |
| 17065 | if test "$cross_compiling" = yes |
| 17066 | then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17067 | ac_cv_posix_semaphores_enabled=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17068 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17070 | /* end confdefs.h. */ |
| 17071 | |
| 17072 | #include <unistd.h> |
| 17073 | #include <fcntl.h> |
| 17074 | #include <stdio.h> |
| 17075 | #include <semaphore.h> |
| 17076 | #include <sys/stat.h> |
| 17077 | |
| 17078 | int main(void) { |
| 17079 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 17080 | if (a == SEM_FAILED) { |
| 17081 | perror("sem_open"); |
| 17082 | return 1; |
| 17083 | } |
| 17084 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 17085 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17086 | return 0; |
| 17087 | } |
| 17088 | |
| 17089 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17090 | if ac_fn_c_try_run "$LINENO" |
| 17091 | then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17092 | ac_cv_posix_semaphores_enabled=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17093 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17094 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17095 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17096 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17097 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17098 | fi |
| 17099 | |
| 17100 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17101 | fi |
| 17102 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 17104 | printf "%s\n" "$ac_cv_posix_semaphores_enabled" >&6; } |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17105 | if test $ac_cv_posix_semaphores_enabled = no |
| 17106 | then |
| 17107 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17108 | printf "%s\n" "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17109 | |
| 17110 | fi |
| 17111 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 17112 | # Multiprocessing check for broken sem_getvalue |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
| 17114 | printf %s "checking for broken sem_getvalue... " >&6; } |
| 17115 | if test ${ac_cv_broken_sem_getvalue+y} |
| 17116 | then : |
| 17117 | printf %s "(cached) " >&6 |
| 17118 | else $as_nop |
| 17119 | if test "$cross_compiling" = yes |
| 17120 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 17121 | ac_cv_broken_sem_getvalue=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17122 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 17124 | /* end confdefs.h. */ |
| 17125 | |
| 17126 | #include <unistd.h> |
| 17127 | #include <fcntl.h> |
| 17128 | #include <stdio.h> |
| 17129 | #include <semaphore.h> |
| 17130 | #include <sys/stat.h> |
| 17131 | |
| 17132 | int main(void){ |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 17133 | 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] | 17134 | int count; |
| 17135 | int res; |
| 17136 | if(a==SEM_FAILED){ |
| 17137 | perror("sem_open"); |
| 17138 | return 1; |
| 17139 | |
| 17140 | } |
| 17141 | res = sem_getvalue(a, &count); |
| 17142 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 17143 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 17144 | return res==-1 ? 1 : 0; |
| 17145 | } |
| 17146 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 17147 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17148 | if ac_fn_c_try_run "$LINENO" |
| 17149 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 17150 | ac_cv_broken_sem_getvalue=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17151 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17152 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17153 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17154 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17155 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 17156 | fi |
| 17157 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17158 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 17159 | fi |
| 17160 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
| 17162 | printf "%s\n" "$ac_cv_broken_sem_getvalue" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 17163 | if test $ac_cv_broken_sem_getvalue = yes |
| 17164 | then |
| 17165 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17166 | printf "%s\n" "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 17167 | |
| 17168 | fi |
| 17169 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17170 | ac_fn_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> |
| 17171 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17172 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes |
| 17173 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17174 | ac_have_decl=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17175 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17176 | ac_have_decl=0 |
| 17177 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17178 | printf "%s\n" "#define HAVE_DECL_RTLD_LAZY $ac_have_decl" >>confdefs.h |
| 17179 | ac_fn_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> |
| 17180 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17181 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes |
| 17182 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17183 | ac_have_decl=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17184 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17185 | ac_have_decl=0 |
| 17186 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17187 | printf "%s\n" "#define HAVE_DECL_RTLD_NOW $ac_have_decl" >>confdefs.h |
| 17188 | ac_fn_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> |
| 17189 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17190 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes |
| 17191 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17192 | ac_have_decl=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17193 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17194 | ac_have_decl=0 |
| 17195 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17196 | printf "%s\n" "#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl" >>confdefs.h |
| 17197 | ac_fn_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> |
| 17198 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17199 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes |
| 17200 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17201 | ac_have_decl=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17202 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17203 | ac_have_decl=0 |
| 17204 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17205 | printf "%s\n" "#define HAVE_DECL_RTLD_LOCAL $ac_have_decl" >>confdefs.h |
| 17206 | ac_fn_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> |
| 17207 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17208 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes |
| 17209 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17210 | ac_have_decl=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17211 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17212 | ac_have_decl=0 |
| 17213 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17214 | printf "%s\n" "#define HAVE_DECL_RTLD_NODELETE $ac_have_decl" >>confdefs.h |
| 17215 | ac_fn_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> |
| 17216 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17217 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes |
| 17218 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17219 | ac_have_decl=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17220 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17221 | ac_have_decl=0 |
| 17222 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17223 | printf "%s\n" "#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl" >>confdefs.h |
| 17224 | ac_fn_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> |
| 17225 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17226 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes |
| 17227 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17228 | ac_have_decl=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17229 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17230 | ac_have_decl=0 |
| 17231 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17232 | printf "%s\n" "#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl" >>confdefs.h |
| 17233 | ac_fn_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h> |
| 17234 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17235 | if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes |
| 17236 | then : |
Michael Felt | c5ae169 | 2017-12-19 13:58:49 +0100 | [diff] [blame] | 17237 | ac_have_decl=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17238 | else $as_nop |
Michael Felt | c5ae169 | 2017-12-19 13:58:49 +0100 | [diff] [blame] | 17239 | ac_have_decl=0 |
| 17240 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17241 | printf "%s\n" "#define HAVE_DECL_RTLD_MEMBER $ac_have_decl" >>confdefs.h |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17242 | |
| 17243 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 17244 | # determine what size digit to use for Python's longs |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17245 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
| 17246 | printf %s "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 17247 | # Check whether --enable-big-digits was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17248 | if test ${enable_big_digits+y} |
| 17249 | then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 17250 | enableval=$enable_big_digits; case $enable_big_digits in |
| 17251 | yes) |
| 17252 | enable_big_digits=30 ;; |
| 17253 | no) |
| 17254 | enable_big_digits=15 ;; |
| 17255 | 15|30) |
| 17256 | ;; |
| 17257 | *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17258 | 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] | 17259 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17260 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
| 17261 | printf "%s\n" "$enable_big_digits" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 17262 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17263 | printf "%s\n" "#define PYLONG_BITS_IN_DIGIT $enable_big_digits" >>confdefs.h |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 17264 | |
| 17265 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17266 | else $as_nop |
| 17267 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 17268 | printf "%s\n" "no value specified" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 17269 | fi |
| 17270 | |
| 17271 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17272 | # check for wchar.h |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17273 | ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
| 17274 | if test "x$ac_cv_header_wchar_h" = xyes |
| 17275 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17276 | |
| 17277 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17278 | printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17279 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17280 | wchar_h="yes" |
| 17281 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17282 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17283 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17284 | |
| 17285 | fi |
| 17286 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17287 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17288 | # determine wchar_t size |
| 17289 | if test "$wchar_h" = yes |
| 17290 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17291 | # 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] | 17292 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 17293 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 17294 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17295 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
| 17296 | printf %s "checking size of wchar_t... " >&6; } |
| 17297 | if test ${ac_cv_sizeof_wchar_t+y} |
| 17298 | then : |
| 17299 | printf %s "(cached) " >&6 |
| 17300 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17301 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17302 | " |
| 17303 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17304 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17305 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17306 | if test "$ac_cv_type_wchar_t" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17307 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17308 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17309 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17310 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17311 | else |
| 17312 | ac_cv_sizeof_wchar_t=0 |
| 17313 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17314 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17316 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17317 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
| 17318 | printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17319 | |
| 17320 | |
| 17321 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17322 | printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17323 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17324 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17325 | fi |
| 17326 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17327 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
| 17328 | printf %s "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17329 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17331 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17332 | |
| 17333 | #include <tcl.h> |
| 17334 | #if TCL_UTF_MAX != 6 |
| 17335 | # error "NOT UCS4_TCL" |
| 17336 | #endif |
| 17337 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17338 | main (void) |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17339 | { |
| 17340 | |
| 17341 | ; |
| 17342 | return 0; |
| 17343 | } |
| 17344 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17345 | if ac_fn_c_try_compile "$LINENO" |
| 17346 | then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17347 | |
| 17348 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17349 | printf "%s\n" "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17350 | |
| 17351 | have_ucs4_tcl=yes |
| 17352 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17353 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17354 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17355 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
| 17356 | printf "%s\n" "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17357 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17358 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17359 | if test "$wchar_h" = yes |
| 17360 | then |
| 17361 | # check whether wchar_t is signed or not |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
| 17363 | printf %s "checking whether wchar_t is signed... " >&6; } |
| 17364 | if test ${ac_cv_wchar_t_signed+y} |
| 17365 | then : |
| 17366 | printf %s "(cached) " >&6 |
| 17367 | else $as_nop |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17368 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17369 | if test "$cross_compiling" = yes |
| 17370 | then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17371 | ac_cv_wchar_t_signed=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17372 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17374 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17375 | |
| 17376 | #include <wchar.h> |
| 17377 | int main() |
| 17378 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 17379 | /* Success: exit code 0 */ |
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 17380 | return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17381 | } |
| 17382 | |
| 17383 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17384 | if ac_fn_c_try_run "$LINENO" |
| 17385 | then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17386 | ac_cv_wchar_t_signed=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17387 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17388 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17389 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17390 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17391 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17392 | fi |
| 17393 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17394 | fi |
| 17395 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
| 17397 | printf "%s\n" "$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17398 | fi |
| 17399 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17400 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5 |
| 17401 | printf %s "checking whether wchar_t is usable... " >&6; } |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 17402 | # 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] | 17403 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 17404 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 17405 | then |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17406 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17407 | printf "%s\n" "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17408 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17409 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17410 | printf "%s\n" "yes" >&6; } |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 17411 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17412 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17413 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17414 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17415 | |
| 17416 | # check for endianness |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17417 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 17418 | printf %s "checking whether byte ordering is bigendian... " >&6; } |
| 17419 | if test ${ac_cv_c_bigendian+y} |
| 17420 | then : |
| 17421 | printf %s "(cached) " >&6 |
| 17422 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17423 | ac_cv_c_bigendian=unknown |
| 17424 | # See if we're dealing with a universal compiler. |
| 17425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17426 | /* end confdefs.h. */ |
| 17427 | #ifndef __APPLE_CC__ |
| 17428 | not a universal capable compiler |
| 17429 | #endif |
| 17430 | typedef int dummy; |
| 17431 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17432 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17433 | if ac_fn_c_try_compile "$LINENO" |
| 17434 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17435 | |
| 17436 | # Check for potential -arch flags. It is not universal unless |
| 17437 | # there are at least two -arch flags with different values. |
| 17438 | ac_arch= |
| 17439 | ac_prev= |
| 17440 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 17441 | if test -n "$ac_prev"; then |
| 17442 | case $ac_word in |
| 17443 | i?86 | x86_64 | ppc | ppc64) |
| 17444 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 17445 | ac_arch=$ac_word |
| 17446 | else |
| 17447 | ac_cv_c_bigendian=universal |
| 17448 | break |
| 17449 | fi |
| 17450 | ;; |
| 17451 | esac |
| 17452 | ac_prev= |
| 17453 | elif test "x$ac_word" = "x-arch"; then |
| 17454 | ac_prev=arch |
| 17455 | fi |
| 17456 | done |
| 17457 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17458 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17459 | if test $ac_cv_c_bigendian = unknown; then |
| 17460 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 17461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17462 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17463 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17464 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17466 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17467 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17468 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17469 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 17470 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 17471 | && LITTLE_ENDIAN) |
| 17472 | bogus endian macros |
| 17473 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17474 | |
| 17475 | ; |
| 17476 | return 0; |
| 17477 | } |
| 17478 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17479 | if ac_fn_c_try_compile "$LINENO" |
| 17480 | then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17481 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17483 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17484 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17485 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17487 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17488 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17489 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17490 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17491 | not big endian |
| 17492 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17493 | |
| 17494 | ; |
| 17495 | return 0; |
| 17496 | } |
| 17497 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17498 | if ac_fn_c_try_compile "$LINENO" |
| 17499 | then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17500 | ac_cv_c_bigendian=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17501 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17502 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17503 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17504 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17505 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17506 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17507 | fi |
| 17508 | if test $ac_cv_c_bigendian = unknown; then |
| 17509 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 17510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17511 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17512 | #include <limits.h> |
| 17513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17514 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17515 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17516 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17517 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 17518 | bogus endian macros |
| 17519 | #endif |
| 17520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17521 | ; |
| 17522 | return 0; |
| 17523 | } |
| 17524 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17525 | if ac_fn_c_try_compile "$LINENO" |
| 17526 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17527 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 17528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17529 | /* end confdefs.h. */ |
| 17530 | #include <limits.h> |
| 17531 | |
| 17532 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17533 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17534 | { |
| 17535 | #ifndef _BIG_ENDIAN |
| 17536 | not big endian |
| 17537 | #endif |
| 17538 | |
| 17539 | ; |
| 17540 | return 0; |
| 17541 | } |
| 17542 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17543 | if ac_fn_c_try_compile "$LINENO" |
| 17544 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17545 | ac_cv_c_bigendian=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17546 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17547 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17548 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17549 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17550 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17551 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17552 | fi |
| 17553 | if test $ac_cv_c_bigendian = unknown; then |
| 17554 | # Compile a test program. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17555 | if test "$cross_compiling" = yes |
| 17556 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17557 | # Try to guess by grepping values from an object file. |
| 17558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17559 | /* end confdefs.h. */ |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17560 | unsigned short int ascii_mm[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17561 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17562 | unsigned short int ascii_ii[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17563 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 17564 | int use_ascii (int i) { |
| 17565 | return ascii_mm[i] + ascii_ii[i]; |
| 17566 | } |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17567 | unsigned short int ebcdic_ii[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17568 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17569 | unsigned short int ebcdic_mm[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17570 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 17571 | int use_ebcdic (int i) { |
| 17572 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 17573 | } |
| 17574 | extern int foo; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17575 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17576 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17577 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17578 | { |
| 17579 | return use_ascii (foo) == use_ebcdic (foo); |
| 17580 | ; |
| 17581 | return 0; |
| 17582 | } |
| 17583 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17584 | if ac_fn_c_try_compile "$LINENO" |
| 17585 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17586 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 17587 | ac_cv_c_bigendian=yes |
| 17588 | fi |
| 17589 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 17590 | if test "$ac_cv_c_bigendian" = unknown; then |
| 17591 | ac_cv_c_bigendian=no |
| 17592 | else |
| 17593 | # finding both strings is unlikely to happen, but who knows? |
| 17594 | ac_cv_c_bigendian=unknown |
| 17595 | fi |
| 17596 | fi |
| 17597 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17598 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17599 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17601 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17602 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17603 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17604 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17605 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17606 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17607 | /* Are we little or big endian? From Harbison&Steele. */ |
| 17608 | union |
| 17609 | { |
| 17610 | long int l; |
| 17611 | char c[sizeof (long int)]; |
| 17612 | } u; |
| 17613 | u.l = 1; |
| 17614 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17615 | |
| 17616 | ; |
| 17617 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17618 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17619 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17620 | if ac_fn_c_try_run "$LINENO" |
| 17621 | then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17622 | ac_cv_c_bigendian=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17623 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17624 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17625 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17626 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17627 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17628 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17629 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17630 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17631 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17632 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 17633 | printf "%s\n" "$ac_cv_c_bigendian" >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17634 | case $ac_cv_c_bigendian in #( |
| 17635 | yes) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17636 | printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17637 | ;; #( |
| 17638 | no) |
| 17639 | ;; #( |
| 17640 | universal) |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17641 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17642 | printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 17643 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17644 | ;; #( |
| 17645 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17646 | as_fn_error $? "unknown endianness |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17647 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17648 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17649 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17650 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 17651 | # ABI version string for Python extension modules. This appears between the |
| 17652 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated |
| 17653 | # from the following attributes which affect the ABI of this Python build (in |
| 17654 | # this order): |
| 17655 | # |
| 17656 | # * The Python implementation (always 'cpython-' for us) |
| 17657 | # * The major and minor version numbers |
| 17658 | # * --with-pydebug (adds a 'd') |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 17659 | # |
| 17660 | # 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] | 17661 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
| 17662 | # libraries would be named 'foo.cpython-32dmu.so'. |
Victor Stinner | 6c44fde | 2019-04-24 16:10:09 +0200 | [diff] [blame] | 17663 | # |
| 17664 | # In Python 3.2 and older, --with-wide-unicode added a 'u' flag. |
| 17665 | # In Python 3.7 and older, --with-pymalloc added a 'm' flag. |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 17666 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
| 17668 | printf %s "checking ABIFLAGS... " >&6; } |
| 17669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 |
| 17670 | printf "%s\n" "$ABIFLAGS" >&6; } |
| 17671 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 |
| 17672 | printf %s "checking SOABI... " >&6; } |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 17673 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
| 17675 | printf "%s\n" "$SOABI" >&6; } |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 17676 | |
Victor Stinner | 6d13e5b | 2019-04-26 18:56:19 +0200 | [diff] [blame] | 17677 | # Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI |
| 17678 | if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then |
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 17679 | # Similar to SOABI but remove "d" flag from ABIFLAGS |
| 17680 | |
| 17681 | ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
| 17682 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17683 | printf "%s\n" "#define ALT_SOABI \"${ALT_SOABI}\"" >>confdefs.h |
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 17684 | |
| 17685 | fi |
| 17686 | |
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 17687 | |
Matti Picus | a44ce6c | 2020-12-20 04:56:57 +0200 | [diff] [blame] | 17688 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX} |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 17689 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17690 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
| 17691 | printf %s "checking LDVERSION... " >&6; } |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 17692 | LDVERSION='$(VERSION)$(ABIFLAGS)' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 |
| 17694 | printf "%s\n" "$LDVERSION" >&6; } |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 17695 | |
E. M. Bray | c994c8f | 2019-05-24 17:33:47 +0200 | [diff] [blame] | 17696 | # On Android and Cygwin the shared libraries must be linked with libpython. |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 17697 | |
E. M. Bray | b1fc417 | 2019-05-24 18:39:39 +0200 | [diff] [blame] | 17698 | if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 17699 | LIBPYTHON="-lpython${VERSION}${ABIFLAGS}" |
E. M. Bray | b1fc417 | 2019-05-24 18:39:39 +0200 | [diff] [blame] | 17700 | else |
| 17701 | LIBPYTHON='' |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 17702 | fi |
| 17703 | |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17704 | |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 17705 | |
| 17706 | BINLIBDEST='$(LIBDIR)/python$(VERSION)' |
| 17707 | |
| 17708 | |
| 17709 | # Check for --with-platlibdir |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 17710 | # /usr/$LIDIRNAME/python$VERSION |
| 17711 | |
| 17712 | PLATLIBDIR="lib" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5 |
| 17714 | printf %s "checking for --with-platlibdir... " >&6; } |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 17715 | |
| 17716 | # Check whether --with-platlibdir was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17717 | if test ${with_platlibdir+y} |
| 17718 | then : |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 17719 | withval=$with_platlibdir; |
| 17720 | # ignore 3 options: |
| 17721 | # --with-platlibdir |
| 17722 | # --with-platlibdir= |
| 17723 | # --without-platlibdir |
| 17724 | if test -n "$withval" -a "$withval" != yes -a "$withval" != no |
| 17725 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17726 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17727 | printf "%s\n" "yes" >&6; } |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 17728 | PLATLIBDIR="$withval" |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 17729 | BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)' |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 17730 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17732 | printf "%s\n" "no" >&6; } |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 17733 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17734 | else $as_nop |
| 17735 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17736 | printf "%s\n" "no" >&6; } |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 17737 | fi |
| 17738 | |
| 17739 | |
| 17740 | |
| 17741 | |
| 17742 | if test x$PLATFORM_TRIPLET = x; then |
| 17743 | LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}" |
| 17744 | else |
| 17745 | LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 17746 | fi |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17747 | |
| 17748 | |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 17749 | # Check for --with-wheel-pkg-dir=PATH |
| 17750 | |
| 17751 | WHEEL_PKG_DIR="" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-wheel-pkg-dir" >&5 |
| 17753 | printf %s "checking for --with-wheel-pkg-dir... " >&6; } |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 17754 | |
| 17755 | # Check whether --with-wheel-pkg-dir was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17756 | if test ${with_wheel_pkg_dir+y} |
| 17757 | then : |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 17758 | withval=$with_wheel_pkg_dir; |
| 17759 | if test -n "$withval"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17760 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17761 | printf "%s\n" "yes" >&6; } |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 17762 | WHEEL_PKG_DIR="$withval" |
| 17763 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17765 | printf "%s\n" "no" >&6; } |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 17766 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17767 | else $as_nop |
| 17768 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17769 | printf "%s\n" "no" >&6; } |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 17770 | fi |
| 17771 | |
| 17772 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17773 | # Check whether right shifting a negative integer extends the sign bit |
| 17774 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17775 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
| 17776 | printf %s "checking whether right shift extends the sign bit... " >&6; } |
| 17777 | if test ${ac_cv_rshift_extends_sign+y} |
| 17778 | then : |
| 17779 | printf %s "(cached) " >&6 |
| 17780 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17781 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17782 | if test "$cross_compiling" = yes |
| 17783 | then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 17784 | ac_cv_rshift_extends_sign=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17785 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17787 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17788 | |
| 17789 | int main() |
| 17790 | { |
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 17791 | return (((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17792 | } |
| 17793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17794 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17795 | if ac_fn_c_try_run "$LINENO" |
| 17796 | then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17797 | ac_cv_rshift_extends_sign=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17798 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17799 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17800 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17801 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17802 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17803 | fi |
| 17804 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17805 | fi |
| 17806 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
| 17808 | printf "%s\n" "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17809 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17810 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17811 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17812 | printf "%s\n" "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17813 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17814 | fi |
| 17815 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17816 | # check for getc_unlocked and related locking functions |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
| 17818 | printf %s "checking for getc_unlocked() and friends... " >&6; } |
| 17819 | if test ${ac_cv_have_getc_unlocked+y} |
| 17820 | then : |
| 17821 | printf %s "(cached) " >&6 |
| 17822 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17823 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17825 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17826 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17827 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17828 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17829 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17830 | |
| 17831 | FILE *f = fopen("/dev/null", "r"); |
| 17832 | flockfile(f); |
| 17833 | getc_unlocked(f); |
| 17834 | funlockfile(f); |
| 17835 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17836 | ; |
| 17837 | return 0; |
| 17838 | } |
| 17839 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17840 | if ac_fn_c_try_link "$LINENO" |
| 17841 | then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17842 | ac_cv_have_getc_unlocked=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17843 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17844 | ac_cv_have_getc_unlocked=no |
| 17845 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17846 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17847 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17848 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17849 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
| 17851 | printf "%s\n" "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17852 | if test "$ac_cv_have_getc_unlocked" = yes |
| 17853 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17854 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17855 | printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17856 | |
| 17857 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17858 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17859 | |
| 17860 | # Check whether --with-readline was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17861 | if test ${with_readline+y} |
| 17862 | then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17863 | withval=$with_readline; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17864 | else $as_nop |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17865 | with_readline=yes |
| 17866 | fi |
| 17867 | |
| 17868 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17869 | # check where readline lives |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17870 | py_cv_lib_readline=no |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 17871 | # save the value of LIBS so we don't actually link Python with readline |
| 17872 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17873 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17874 | if test "$with_readline" != no; then |
| 17875 | case "$with_readline" in |
| 17876 | editline|edit) |
| 17877 | LIBREADLINE=edit |
| 17878 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17879 | printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17880 | |
| 17881 | ;; |
| 17882 | yes|readline) |
| 17883 | LIBREADLINE=readline |
| 17884 | ;; |
| 17885 | *) |
| 17886 | as_fn_error $? "proper usage is --with(out)-readline[=editline]" "$LINENO" 5 |
| 17887 | ;; |
| 17888 | esac |
| 17889 | |
| 17890 | # On some systems we need to link readline to a termcap compatible |
| 17891 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 17892 | # with setup.py. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17893 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
| 17894 | printf %s "checking how to link readline libs... " >&6; } |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17895 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do |
| 17896 | if test -z "$py_libtermcap"; then |
| 17897 | READLINE_LIBS="-l$LIBREADLINE" |
| 17898 | else |
| 17899 | READLINE_LIBS="-l$LIBREADLINE -l$py_libtermcap" |
| 17900 | fi |
| 17901 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 17902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17903 | /* end confdefs.h. */ |
| 17904 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17905 | /* Override any GCC internal prototype to avoid an error. |
| 17906 | Use char because int might match the return type of a GCC |
| 17907 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17908 | char readline (); |
| 17909 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17910 | main (void) |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17911 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17912 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17913 | ; |
| 17914 | return 0; |
| 17915 | } |
| 17916 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17917 | if ac_fn_c_try_link "$LINENO" |
| 17918 | then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 17919 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17920 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17921 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17922 | conftest$ac_exeext conftest.$ac_ext |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17923 | if test $py_cv_lib_readline = yes; then |
| 17924 | break |
| 17925 | fi |
| 17926 | done |
| 17927 | |
| 17928 | # Uncomment this line if you want to use READLINE_LIBS in Makefile or scripts |
| 17929 | #AC_SUBST([READLINE_LIBS]) |
| 17930 | if test $py_cv_lib_readline = no; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 17932 | printf "%s\n" "none" >&6; } |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17933 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
| 17935 | printf "%s\n" "$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 17936 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17937 | printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17938 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17939 | fi |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17940 | fi |
| 17941 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17942 | if test "$py_cv_lib_readline" = yes; then |
| 17943 | # check for readline 2.2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17944 | ac_fn_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] | 17945 | #include <stdio.h> /* Must be first for Gnu Readline */ |
| 17946 | #ifdef WITH_EDITLINE |
| 17947 | # include <editline/readline.h> |
| 17948 | #else |
| 17949 | # include <readline/readline.h> |
| 17950 | #endif |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 17951 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17952 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17953 | if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes |
| 17954 | then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17955 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17956 | printf "%s\n" "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17957 | |
| 17958 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17959 | ac_fn_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] | 17960 | #include <stdio.h> /* Must be first for Gnu Readline */ |
| 17961 | #ifdef WITH_EDITLINE |
| 17962 | # include <editline/readline.h> |
| 17963 | #else |
| 17964 | # include <readline/readline.h> |
| 17965 | #endif |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 17966 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17967 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17968 | if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes |
| 17969 | then : |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 17970 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17971 | printf "%s\n" "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 17972 | |
| 17973 | fi |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 17974 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17975 | # check for readline 4.0 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17976 | as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_rl_pre_input_hook" | $as_tr_sh` |
| 17977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -l$LIBREADLINE" >&5 |
| 17978 | printf %s "checking for rl_pre_input_hook in -l$LIBREADLINE... " >&6; } |
| 17979 | if eval test \${$as_ac_Lib+y} |
| 17980 | then : |
| 17981 | printf %s "(cached) " >&6 |
| 17982 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17983 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17984 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17986 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17987 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17988 | /* Override any GCC internal prototype to avoid an error. |
| 17989 | Use char because int might match the return type of a GCC |
| 17990 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17991 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17992 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 17993 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17994 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17995 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17996 | ; |
| 17997 | return 0; |
| 17998 | } |
| 17999 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18000 | if ac_fn_c_try_link "$LINENO" |
| 18001 | then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18002 | eval "$as_ac_Lib=yes" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18003 | else $as_nop |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18004 | eval "$as_ac_Lib=no" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18005 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18006 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18007 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18008 | LIBS=$ac_check_lib_save_LIBS |
| 18009 | fi |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18010 | eval ac_res=\$$as_ac_Lib |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18012 | printf "%s\n" "$ac_res" >&6; } |
| 18013 | if eval test \"x\$"$as_ac_Lib"\" = x"yes" |
| 18014 | then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18015 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18016 | printf "%s\n" "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18017 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18018 | fi |
| 18019 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18020 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18021 | # also in 4.0 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18022 | as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_rl_completion_display_matches_hook" | $as_tr_sh` |
| 18023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -l$LIBREADLINE" >&5 |
| 18024 | printf %s "checking for rl_completion_display_matches_hook in -l$LIBREADLINE... " >&6; } |
| 18025 | if eval test \${$as_ac_Lib+y} |
| 18026 | then : |
| 18027 | printf %s "(cached) " >&6 |
| 18028 | else $as_nop |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 18029 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18030 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 18032 | /* end confdefs.h. */ |
| 18033 | |
| 18034 | /* Override any GCC internal prototype to avoid an error. |
| 18035 | Use char because int might match the return type of a GCC |
| 18036 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 18037 | char rl_completion_display_matches_hook (); |
| 18038 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18039 | main (void) |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 18040 | { |
| 18041 | return rl_completion_display_matches_hook (); |
| 18042 | ; |
| 18043 | return 0; |
| 18044 | } |
| 18045 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18046 | if ac_fn_c_try_link "$LINENO" |
| 18047 | then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18048 | eval "$as_ac_Lib=yes" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18049 | else $as_nop |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18050 | eval "$as_ac_Lib=no" |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 18051 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18052 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18053 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 18054 | LIBS=$ac_check_lib_save_LIBS |
| 18055 | fi |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18056 | eval ac_res=\$$as_ac_Lib |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18057 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18058 | printf "%s\n" "$ac_res" >&6; } |
| 18059 | if eval test \"x\$"$as_ac_Lib"\" = x"yes" |
| 18060 | then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 18061 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18062 | printf "%s\n" "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 18063 | |
| 18064 | fi |
| 18065 | |
| 18066 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18067 | # also in 4.0, but not in editline |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18068 | as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_rl_resize_terminal" | $as_tr_sh` |
| 18069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -l$LIBREADLINE" >&5 |
| 18070 | printf %s "checking for rl_resize_terminal in -l$LIBREADLINE... " >&6; } |
| 18071 | if eval test \${$as_ac_Lib+y} |
| 18072 | then : |
| 18073 | printf %s "(cached) " >&6 |
| 18074 | else $as_nop |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18075 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18076 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18078 | /* end confdefs.h. */ |
| 18079 | |
| 18080 | /* Override any GCC internal prototype to avoid an error. |
| 18081 | Use char because int might match the return type of a GCC |
| 18082 | builtin and then its argument prototype would still apply. */ |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18083 | char rl_resize_terminal (); |
| 18084 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18085 | main (void) |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18086 | { |
| 18087 | return rl_resize_terminal (); |
| 18088 | ; |
| 18089 | return 0; |
| 18090 | } |
| 18091 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18092 | if ac_fn_c_try_link "$LINENO" |
| 18093 | then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18094 | eval "$as_ac_Lib=yes" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18095 | else $as_nop |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18096 | eval "$as_ac_Lib=no" |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18097 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18098 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18099 | conftest$ac_exeext conftest.$ac_ext |
| 18100 | LIBS=$ac_check_lib_save_LIBS |
| 18101 | fi |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18102 | eval ac_res=\$$as_ac_Lib |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18104 | printf "%s\n" "$ac_res" >&6; } |
| 18105 | if eval test \"x\$"$as_ac_Lib"\" = x"yes" |
| 18106 | then : |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18107 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18108 | printf "%s\n" "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18109 | |
| 18110 | fi |
| 18111 | |
| 18112 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18113 | # check for readline 4.2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18114 | as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_rl_completion_matches" | $as_tr_sh` |
| 18115 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -l$LIBREADLINE" >&5 |
| 18116 | printf %s "checking for rl_completion_matches in -l$LIBREADLINE... " >&6; } |
| 18117 | if eval test \${$as_ac_Lib+y} |
| 18118 | then : |
| 18119 | printf %s "(cached) " >&6 |
| 18120 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18121 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18122 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18124 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18125 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18126 | /* Override any GCC internal prototype to avoid an error. |
| 18127 | Use char because int might match the return type of a GCC |
| 18128 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18129 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18130 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18131 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18132 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18133 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18134 | ; |
| 18135 | return 0; |
| 18136 | } |
| 18137 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18138 | if ac_fn_c_try_link "$LINENO" |
| 18139 | then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18140 | eval "$as_ac_Lib=yes" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18141 | else $as_nop |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18142 | eval "$as_ac_Lib=no" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18143 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18144 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18145 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18146 | LIBS=$ac_check_lib_save_LIBS |
| 18147 | fi |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18148 | eval ac_res=\$$as_ac_Lib |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18149 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18150 | printf "%s\n" "$ac_res" >&6; } |
| 18151 | if eval test \"x\$"$as_ac_Lib"\" = x"yes" |
| 18152 | then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18153 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18154 | printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18155 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18156 | fi |
| 18157 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18158 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18159 | # also in readline 4.2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18160 | ac_fn_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] | 18161 | #include <stdio.h> /* Must be first for Gnu Readline */ |
| 18162 | #ifdef WITH_EDITLINE |
| 18163 | # include <editline/readline.h> |
| 18164 | #else |
| 18165 | # include <readline/readline.h> |
| 18166 | #endif |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 18167 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18168 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 18169 | if test "x$ac_cv_have_decl_rl_catch_signals" = xyes |
| 18170 | then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18171 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18172 | printf "%s\n" "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18173 | |
| 18174 | fi |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18175 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18176 | as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_append_history" | $as_tr_sh` |
| 18177 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for append_history in -l$LIBREADLINE" >&5 |
| 18178 | printf %s "checking for append_history in -l$LIBREADLINE... " >&6; } |
| 18179 | if eval test \${$as_ac_Lib+y} |
| 18180 | then : |
| 18181 | printf %s "(cached) " >&6 |
| 18182 | else $as_nop |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18183 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18184 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18186 | /* end confdefs.h. */ |
| 18187 | |
| 18188 | /* Override any GCC internal prototype to avoid an error. |
| 18189 | Use char because int might match the return type of a GCC |
| 18190 | builtin and then its argument prototype would still apply. */ |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18191 | char append_history (); |
| 18192 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18193 | main (void) |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18194 | { |
| 18195 | return append_history (); |
| 18196 | ; |
| 18197 | return 0; |
| 18198 | } |
| 18199 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18200 | if ac_fn_c_try_link "$LINENO" |
| 18201 | then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18202 | eval "$as_ac_Lib=yes" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18203 | else $as_nop |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18204 | eval "$as_ac_Lib=no" |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18205 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18206 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18207 | conftest$ac_exeext conftest.$ac_ext |
| 18208 | LIBS=$ac_check_lib_save_LIBS |
| 18209 | fi |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18210 | eval ac_res=\$$as_ac_Lib |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18211 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18212 | printf "%s\n" "$ac_res" >&6; } |
| 18213 | if eval test \"x\$"$as_ac_Lib"\" = x"yes" |
| 18214 | then : |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18215 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18216 | printf "%s\n" "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18217 | |
| 18218 | fi |
| 18219 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18220 | fi |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18221 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 18222 | # End of readline checks: restore LIBS |
| 18223 | LIBS=$LIBS_no_readline |
| 18224 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18225 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
| 18226 | printf %s "checking for broken nice()... " >&6; } |
| 18227 | if test ${ac_cv_broken_nice+y} |
| 18228 | then : |
| 18229 | printf %s "(cached) " >&6 |
| 18230 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18231 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18232 | if test "$cross_compiling" = yes |
| 18233 | then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 18234 | ac_cv_broken_nice=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18235 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18237 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18238 | |
Benjamin Peterson | b84df2d | 2019-02-25 21:37:59 -0800 | [diff] [blame] | 18239 | #include <stdlib.h> |
| 18240 | #include <unistd.h> |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18241 | int main() |
| 18242 | { |
| 18243 | int val1 = nice(1); |
| 18244 | if (val1 != -1 && val1 == nice(2)) |
| 18245 | exit(0); |
| 18246 | exit(1); |
| 18247 | } |
| 18248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18249 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18250 | if ac_fn_c_try_run "$LINENO" |
| 18251 | then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18252 | ac_cv_broken_nice=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18253 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18254 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18255 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18256 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18257 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18258 | fi |
| 18259 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18260 | fi |
| 18261 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18262 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
| 18263 | printf "%s\n" "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18264 | if test "$ac_cv_broken_nice" = yes |
| 18265 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18266 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18267 | printf "%s\n" "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18268 | |
| 18269 | fi |
| 18270 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
| 18272 | printf %s "checking for broken poll()... " >&6; } |
| 18273 | if test ${ac_cv_broken_poll+y} |
| 18274 | then : |
| 18275 | printf %s "(cached) " >&6 |
| 18276 | else $as_nop |
| 18277 | if test "$cross_compiling" = yes |
| 18278 | then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18279 | ac_cv_broken_poll=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18280 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18282 | /* end confdefs.h. */ |
| 18283 | |
| 18284 | #include <poll.h> |
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 18285 | #include <unistd.h> |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18286 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18287 | int main() |
| 18288 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18289 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18290 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18291 | |
| 18292 | close (42); |
| 18293 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18294 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18295 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18296 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18297 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18298 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18299 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18300 | return 1; |
| 18301 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18302 | |
| 18303 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18304 | if ac_fn_c_try_run "$LINENO" |
| 18305 | then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18306 | ac_cv_broken_poll=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18307 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18308 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18309 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18310 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18311 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18312 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18313 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18314 | fi |
| 18315 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18316 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
| 18317 | printf "%s\n" "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18318 | if test "$ac_cv_broken_poll" = yes |
| 18319 | then |
| 18320 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18321 | printf "%s\n" "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18322 | |
| 18323 | fi |
| 18324 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 18325 | # check tzset(3) exists and works like we expect it to |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18326 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
| 18327 | printf %s "checking for working tzset()... " >&6; } |
| 18328 | if test ${ac_cv_working_tzset+y} |
| 18329 | then : |
| 18330 | printf %s "(cached) " >&6 |
| 18331 | else $as_nop |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18332 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18333 | if test "$cross_compiling" = yes |
| 18334 | then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18335 | ac_cv_working_tzset=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18336 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18338 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18339 | |
| 18340 | #include <stdlib.h> |
| 18341 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18342 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18343 | |
| 18344 | #if HAVE_TZNAME |
| 18345 | extern char *tzname[]; |
| 18346 | #endif |
| 18347 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18348 | int main() |
| 18349 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18350 | /* Note that we need to ensure that not only does tzset(3) |
| 18351 | do 'something' with localtime, but it works as documented |
| 18352 | 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] | 18353 | This includes making sure that tzname is set properly if |
| 18354 | tm->tm_zone does not exist since it is the alternative way |
| 18355 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18356 | |
| 18357 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 18358 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18359 | */ |
| 18360 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 18361 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18362 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 18363 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 18364 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18365 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18366 | if (localtime(&groundhogday)->tm_hour != 0) |
| 18367 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18368 | #if HAVE_TZNAME |
| 18369 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 18370 | if (strcmp(tzname[0], "UTC") || |
| 18371 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 18372 | exit(1); |
| 18373 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18374 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 18375 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18376 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18377 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18378 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18379 | #if HAVE_TZNAME |
| 18380 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 18381 | exit(1); |
| 18382 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18383 | |
| 18384 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 18385 | tzset(); |
| 18386 | if (localtime(&groundhogday)->tm_hour != 11) |
| 18387 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18388 | #if HAVE_TZNAME |
| 18389 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 18390 | exit(1); |
| 18391 | #endif |
| 18392 | |
| 18393 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18394 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 18395 | exit(1); |
| 18396 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 18397 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18398 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18399 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18400 | exit(0); |
| 18401 | } |
| 18402 | |
| 18403 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18404 | if ac_fn_c_try_run "$LINENO" |
| 18405 | then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18406 | ac_cv_working_tzset=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18407 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18408 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18409 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18410 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18411 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18412 | fi |
| 18413 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18414 | fi |
| 18415 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18416 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
| 18417 | printf "%s\n" "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18418 | if test "$ac_cv_working_tzset" = yes |
| 18419 | then |
| 18420 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18421 | printf "%s\n" "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18422 | |
| 18423 | fi |
| 18424 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18425 | # Look for subsecond timestamps in struct stat |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18426 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
| 18427 | printf %s "checking for tv_nsec in struct stat... " >&6; } |
| 18428 | if test ${ac_cv_stat_tv_nsec+y} |
| 18429 | then : |
| 18430 | printf %s "(cached) " >&6 |
| 18431 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18433 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18434 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18435 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18436 | main (void) |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18437 | { |
| 18438 | |
| 18439 | struct stat st; |
| 18440 | st.st_mtim.tv_nsec = 1; |
| 18441 | |
| 18442 | ; |
| 18443 | return 0; |
| 18444 | } |
| 18445 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18446 | if ac_fn_c_try_compile "$LINENO" |
| 18447 | then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 18448 | ac_cv_stat_tv_nsec=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18449 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18450 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18451 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18452 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18453 | fi |
| 18454 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
| 18456 | printf "%s\n" "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18457 | if test "$ac_cv_stat_tv_nsec" = yes |
| 18458 | then |
| 18459 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18460 | printf "%s\n" "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18461 | |
| 18462 | fi |
| 18463 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18464 | # Look for BSD style subsecond timestamps in struct stat |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18465 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
| 18466 | printf %s "checking for tv_nsec2 in struct stat... " >&6; } |
| 18467 | if test ${ac_cv_stat_tv_nsec2+y} |
| 18468 | then : |
| 18469 | printf %s "(cached) " >&6 |
| 18470 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18472 | /* end confdefs.h. */ |
| 18473 | #include <sys/stat.h> |
| 18474 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18475 | main (void) |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18476 | { |
| 18477 | |
| 18478 | struct stat st; |
| 18479 | st.st_mtimespec.tv_nsec = 1; |
| 18480 | |
| 18481 | ; |
| 18482 | return 0; |
| 18483 | } |
| 18484 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18485 | if ac_fn_c_try_compile "$LINENO" |
| 18486 | then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18487 | ac_cv_stat_tv_nsec2=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18488 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18489 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18490 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18491 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18492 | fi |
| 18493 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
| 18495 | printf "%s\n" "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18496 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 18497 | then |
| 18498 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18499 | printf "%s\n" "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18500 | |
| 18501 | fi |
| 18502 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 18503 | # first curses header check |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 18504 | ac_save_cppflags="$CPPFLAGS" |
Xavier de Gaye | e13c320 | 2016-12-13 16:04:14 +0100 | [diff] [blame] | 18505 | if test "$cross_compiling" = no; then |
| 18506 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" |
| 18507 | fi |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 18508 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18509 | ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" |
| 18510 | if test "x$ac_cv_header_curses_h" = xyes |
| 18511 | then : |
| 18512 | printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h |
| 18513 | |
| 18514 | fi |
| 18515 | ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" |
| 18516 | if test "x$ac_cv_header_ncurses_h" = xyes |
| 18517 | then : |
| 18518 | printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 18519 | |
| 18520 | fi |
| 18521 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 18522 | |
| 18523 | # On Solaris, term.h requires curses.h |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18524 | 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] | 18525 | #ifdef HAVE_CURSES_H |
| 18526 | #include <curses.h> |
| 18527 | #endif |
| 18528 | |
| 18529 | " |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18530 | if test "x$ac_cv_header_term_h" = xyes |
| 18531 | then : |
| 18532 | printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 18533 | |
| 18534 | fi |
| 18535 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 18536 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18537 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18538 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
| 18539 | printf %s "checking whether mvwdelch is an expression... " >&6; } |
| 18540 | if test ${ac_cv_mvwdelch_is_expression+y} |
| 18541 | then : |
| 18542 | printf %s "(cached) " >&6 |
| 18543 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18545 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18546 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18547 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18548 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18549 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18550 | |
| 18551 | int rtn; |
| 18552 | rtn = mvwdelch(0,0,0); |
| 18553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18554 | ; |
| 18555 | return 0; |
| 18556 | } |
| 18557 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18558 | if ac_fn_c_try_compile "$LINENO" |
| 18559 | then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18560 | ac_cv_mvwdelch_is_expression=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18561 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18562 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18563 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18564 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18565 | fi |
| 18566 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18567 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 18568 | printf "%s\n" "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18569 | |
| 18570 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 18571 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18572 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18573 | printf "%s\n" "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18574 | |
| 18575 | fi |
| 18576 | |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18577 | # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque |
| 18578 | # structs since version 5.7. If the macro is defined as zero before including |
| 18579 | # [n]curses.h, ncurses will expose fields of the structs regardless of the |
| 18580 | # configuration. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
| 18582 | printf %s "checking whether WINDOW has _flags... " >&6; } |
| 18583 | if test ${ac_cv_window_has_flags+y} |
| 18584 | then : |
| 18585 | printf %s "(cached) " >&6 |
| 18586 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18588 | /* end confdefs.h. */ |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18589 | |
| 18590 | #define NCURSES_OPAQUE 0 |
| 18591 | #include <curses.h> |
| 18592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18593 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18594 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18595 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18596 | |
| 18597 | WINDOW *w; |
| 18598 | w->_flags = 0; |
| 18599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18600 | ; |
| 18601 | return 0; |
| 18602 | } |
| 18603 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18604 | if ac_fn_c_try_compile "$LINENO" |
| 18605 | then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18606 | ac_cv_window_has_flags=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18607 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18608 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18609 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18610 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18611 | fi |
| 18612 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18613 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
| 18614 | printf "%s\n" "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18615 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18616 | |
| 18617 | if test "$ac_cv_window_has_flags" = yes |
| 18618 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18619 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18620 | printf "%s\n" "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18621 | |
| 18622 | fi |
| 18623 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18624 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 |
| 18625 | printf %s "checking for is_pad... " >&6; } |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18627 | /* end confdefs.h. */ |
| 18628 | #include <curses.h> |
| 18629 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18630 | main (void) |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18631 | { |
| 18632 | |
| 18633 | #ifndef is_pad |
| 18634 | void *x=is_pad |
| 18635 | #endif |
| 18636 | |
| 18637 | ; |
| 18638 | return 0; |
| 18639 | } |
| 18640 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18641 | if ac_fn_c_try_compile "$LINENO" |
| 18642 | then : |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18643 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18644 | printf "%s\n" "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18645 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18647 | printf "%s\n" "yes" >&6; } |
| 18648 | else $as_nop |
| 18649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18650 | printf "%s\n" "no" >&6; } |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18651 | |
| 18652 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18653 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18654 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18655 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
| 18656 | printf %s "checking for is_term_resized... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18658 | /* end confdefs.h. */ |
| 18659 | #include <curses.h> |
| 18660 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18661 | main (void) |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18662 | { |
| 18663 | void *x=is_term_resized |
| 18664 | ; |
| 18665 | return 0; |
| 18666 | } |
| 18667 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18668 | if ac_fn_c_try_compile "$LINENO" |
| 18669 | then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 18670 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18671 | printf "%s\n" "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18672 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18673 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18674 | printf "%s\n" "yes" >&6; } |
| 18675 | else $as_nop |
| 18676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18677 | printf "%s\n" "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18678 | |
| 18679 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18680 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18681 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
| 18683 | printf %s "checking for resize_term... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18685 | /* end confdefs.h. */ |
| 18686 | #include <curses.h> |
| 18687 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18688 | main (void) |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18689 | { |
| 18690 | void *x=resize_term |
| 18691 | ; |
| 18692 | return 0; |
| 18693 | } |
| 18694 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18695 | if ac_fn_c_try_compile "$LINENO" |
| 18696 | then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18697 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18698 | printf "%s\n" "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18699 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18701 | printf "%s\n" "yes" >&6; } |
| 18702 | else $as_nop |
| 18703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18704 | printf "%s\n" "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18705 | |
| 18706 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18707 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18708 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18709 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
| 18710 | printf %s "checking for resizeterm... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18712 | /* end confdefs.h. */ |
| 18713 | #include <curses.h> |
| 18714 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18715 | main (void) |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18716 | { |
| 18717 | void *x=resizeterm |
| 18718 | ; |
| 18719 | return 0; |
| 18720 | } |
| 18721 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18722 | if ac_fn_c_try_compile "$LINENO" |
| 18723 | then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18724 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18725 | printf "%s\n" "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18726 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18728 | printf "%s\n" "yes" >&6; } |
| 18729 | else $as_nop |
| 18730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18731 | printf "%s\n" "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18732 | |
| 18733 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18734 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18735 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 |
| 18737 | printf %s "checking for immedok... " >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18739 | /* end confdefs.h. */ |
| 18740 | #include <curses.h> |
| 18741 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18742 | main (void) |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18743 | { |
| 18744 | |
| 18745 | #ifndef immedok |
| 18746 | void *x=immedok |
| 18747 | #endif |
| 18748 | |
| 18749 | ; |
| 18750 | return 0; |
| 18751 | } |
| 18752 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18753 | if ac_fn_c_try_compile "$LINENO" |
| 18754 | then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18755 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18756 | printf "%s\n" "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18757 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18758 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18759 | printf "%s\n" "yes" >&6; } |
| 18760 | else $as_nop |
| 18761 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18762 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18763 | |
| 18764 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18765 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18766 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18767 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 |
| 18768 | printf %s "checking for syncok... " >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18770 | /* end confdefs.h. */ |
| 18771 | #include <curses.h> |
| 18772 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18773 | main (void) |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18774 | { |
| 18775 | |
| 18776 | #ifndef syncok |
| 18777 | void *x=syncok |
| 18778 | #endif |
| 18779 | |
| 18780 | ; |
| 18781 | return 0; |
| 18782 | } |
| 18783 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18784 | if ac_fn_c_try_compile "$LINENO" |
| 18785 | then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18786 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18787 | printf "%s\n" "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18788 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18789 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18790 | printf "%s\n" "yes" >&6; } |
| 18791 | else $as_nop |
| 18792 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18793 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18794 | |
| 18795 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18796 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18797 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 |
| 18799 | printf %s "checking for wchgat... " >&6; } |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 18800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18801 | /* end confdefs.h. */ |
| 18802 | #include <curses.h> |
| 18803 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18804 | main (void) |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 18805 | { |
| 18806 | |
| 18807 | #ifndef wchgat |
| 18808 | void *x=wchgat |
| 18809 | #endif |
| 18810 | |
| 18811 | ; |
| 18812 | return 0; |
| 18813 | } |
| 18814 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18815 | if ac_fn_c_try_compile "$LINENO" |
| 18816 | then : |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 18817 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18818 | printf "%s\n" "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 18819 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18820 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18821 | printf "%s\n" "yes" >&6; } |
| 18822 | else $as_nop |
| 18823 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18824 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 18825 | |
| 18826 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18827 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 18828 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 |
| 18830 | printf %s "checking for filter... " >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18832 | /* end confdefs.h. */ |
| 18833 | #include <curses.h> |
| 18834 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18835 | main (void) |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18836 | { |
| 18837 | |
| 18838 | #ifndef filter |
| 18839 | void *x=filter |
| 18840 | #endif |
| 18841 | |
| 18842 | ; |
| 18843 | return 0; |
| 18844 | } |
| 18845 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18846 | if ac_fn_c_try_compile "$LINENO" |
| 18847 | then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18848 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18849 | printf "%s\n" "#define HAVE_CURSES_FILTER 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18850 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18851 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18852 | printf "%s\n" "yes" >&6; } |
| 18853 | else $as_nop |
| 18854 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18855 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18856 | |
| 18857 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18858 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18859 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18860 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 |
| 18861 | printf %s "checking for has_key... " >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18863 | /* end confdefs.h. */ |
| 18864 | #include <curses.h> |
| 18865 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18866 | main (void) |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18867 | { |
| 18868 | |
| 18869 | #ifndef has_key |
| 18870 | void *x=has_key |
| 18871 | #endif |
| 18872 | |
| 18873 | ; |
| 18874 | return 0; |
| 18875 | } |
| 18876 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18877 | if ac_fn_c_try_compile "$LINENO" |
| 18878 | then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18879 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18880 | printf "%s\n" "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18881 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18882 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18883 | printf "%s\n" "yes" >&6; } |
| 18884 | else $as_nop |
| 18885 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18886 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18887 | |
| 18888 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18889 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18890 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18891 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 |
| 18892 | printf %s "checking for typeahead... " >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18894 | /* end confdefs.h. */ |
| 18895 | #include <curses.h> |
| 18896 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18897 | main (void) |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18898 | { |
| 18899 | |
| 18900 | #ifndef typeahead |
| 18901 | void *x=typeahead |
| 18902 | #endif |
| 18903 | |
| 18904 | ; |
| 18905 | return 0; |
| 18906 | } |
| 18907 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18908 | if ac_fn_c_try_compile "$LINENO" |
| 18909 | then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18910 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18911 | printf "%s\n" "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18912 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18914 | printf "%s\n" "yes" >&6; } |
| 18915 | else $as_nop |
| 18916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18917 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18918 | |
| 18919 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18920 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18921 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 |
| 18923 | printf %s "checking for use_env... " >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18925 | /* end confdefs.h. */ |
| 18926 | #include <curses.h> |
| 18927 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18928 | main (void) |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18929 | { |
| 18930 | |
| 18931 | #ifndef use_env |
| 18932 | void *x=use_env |
| 18933 | #endif |
| 18934 | |
| 18935 | ; |
| 18936 | return 0; |
| 18937 | } |
| 18938 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18939 | if ac_fn_c_try_compile "$LINENO" |
| 18940 | then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18941 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18942 | printf "%s\n" "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18943 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18945 | printf "%s\n" "yes" >&6; } |
| 18946 | else $as_nop |
| 18947 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18948 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18949 | |
| 18950 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18951 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 18952 | # last curses configure check |
| 18953 | CPPFLAGS=$ac_save_cppflags |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18954 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18955 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 |
| 18956 | printf "%s\n" "$as_me: checking for device files" >&6;} |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 18957 | |
| 18958 | if test "x$cross_compiling" = xyes; then |
| 18959 | if test "${ac_cv_file__dev_ptmx+set}" != set; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18960 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 18961 | printf %s "checking for /dev/ptmx... " >&6; } |
| 18962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 18963 | printf "%s\n" "not set" >&6; } |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 18964 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 18965 | fi |
| 18966 | if test "${ac_cv_file__dev_ptc+set}" != set; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 18968 | printf %s "checking for /dev/ptc... " >&6; } |
| 18969 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 18970 | printf "%s\n" "not set" >&6; } |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 18971 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 18972 | fi |
| 18973 | fi |
| 18974 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 18976 | printf %s "checking for /dev/ptmx... " >&6; } |
| 18977 | if test ${ac_cv_file__dev_ptmx+y} |
| 18978 | then : |
| 18979 | printf %s "(cached) " >&6 |
| 18980 | else $as_nop |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 18981 | test "$cross_compiling" = yes && |
| 18982 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 18983 | if test -r "/dev/ptmx"; then |
| 18984 | ac_cv_file__dev_ptmx=yes |
| 18985 | else |
| 18986 | ac_cv_file__dev_ptmx=no |
| 18987 | fi |
| 18988 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 |
| 18990 | printf "%s\n" "$ac_cv_file__dev_ptmx" >&6; } |
| 18991 | if test "x$ac_cv_file__dev_ptmx" = xyes |
| 18992 | then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18993 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 18994 | fi |
| 18995 | |
| 18996 | if test "x$ac_cv_file__dev_ptmx" = xyes; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 18997 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 18998 | printf "%s\n" "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 18999 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 19000 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19001 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 19002 | printf %s "checking for /dev/ptc... " >&6; } |
| 19003 | if test ${ac_cv_file__dev_ptc+y} |
| 19004 | then : |
| 19005 | printf %s "(cached) " >&6 |
| 19006 | else $as_nop |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 19007 | test "$cross_compiling" = yes && |
| 19008 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 19009 | if test -r "/dev/ptc"; then |
| 19010 | ac_cv_file__dev_ptc=yes |
| 19011 | else |
| 19012 | ac_cv_file__dev_ptc=no |
| 19013 | fi |
| 19014 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 |
| 19016 | printf "%s\n" "$ac_cv_file__dev_ptc" >&6; } |
| 19017 | if test "x$ac_cv_file__dev_ptc" = xyes |
| 19018 | then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19019 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 19020 | fi |
| 19021 | |
| 19022 | if test "x$ac_cv_file__dev_ptc" = xyes; then |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 19023 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19024 | printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 19025 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 19026 | fi |
| 19027 | |
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 19028 | if test $ac_sys_system = Darwin |
| 19029 | then |
| 19030 | LIBS="$LIBS -framework CoreFoundation" |
| 19031 | fi |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 19032 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
| 19034 | printf %s "checking for %zd printf() format support... " >&6; } |
| 19035 | if test ${ac_cv_have_size_t_format+y} |
| 19036 | then : |
| 19037 | printf %s "(cached) " >&6 |
| 19038 | else $as_nop |
| 19039 | if test "$cross_compiling" = yes |
| 19040 | then : |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 19041 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 19042 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19043 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19045 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 19046 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19047 | #include <stdio.h> |
| 19048 | #include <stddef.h> |
| 19049 | #include <string.h> |
| 19050 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 19051 | #ifdef HAVE_SYS_TYPES_H |
| 19052 | #include <sys/types.h> |
| 19053 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19054 | |
| 19055 | #ifdef HAVE_SSIZE_T |
| 19056 | typedef ssize_t Py_ssize_t; |
| 19057 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 19058 | typedef long Py_ssize_t; |
| 19059 | #else |
| 19060 | typedef int Py_ssize_t; |
| 19061 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19062 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 19063 | int main() |
| 19064 | { |
| 19065 | char buffer[256]; |
| 19066 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19067 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 19068 | return 1; |
| 19069 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19070 | if (strcmp(buffer, "123")) |
| 19071 | return 1; |
| 19072 | |
| 19073 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 19074 | return 1; |
| 19075 | |
| 19076 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19077 | return 1; |
| 19078 | |
| 19079 | return 0; |
| 19080 | } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 19081 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19082 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19083 | if ac_fn_c_try_run "$LINENO" |
| 19084 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 19085 | ac_cv_have_size_t_format=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19086 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19087 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19088 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19089 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19090 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 19091 | fi |
| 19092 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 19093 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19094 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
| 19095 | printf "%s\n" "$ac_cv_have_size_t_format" >&6; } |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 19096 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 19097 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19098 | printf "%s\n" "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 19099 | |
| 19100 | fi |
| 19101 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19102 | 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] | 19103 | #ifdef HAVE_SYS_TYPES_H |
| 19104 | #include <sys/types.h> |
| 19105 | #endif |
| 19106 | #ifdef HAVE_SYS_SOCKET_H |
| 19107 | #include <sys/socket.h> |
| 19108 | #endif |
| 19109 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19110 | " |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19111 | if test "x$ac_cv_type_socklen_t" = xyes |
| 19112 | then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 19113 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19114 | else $as_nop |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 19115 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19116 | printf "%s\n" "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 19117 | |
| 19118 | fi |
| 19119 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19120 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19121 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
| 19122 | printf %s "checking for broken mbstowcs... " >&6; } |
| 19123 | if test ${ac_cv_broken_mbstowcs+y} |
| 19124 | then : |
| 19125 | printf %s "(cached) " >&6 |
| 19126 | else $as_nop |
| 19127 | if test "$cross_compiling" = yes |
| 19128 | then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19129 | ac_cv_broken_mbstowcs=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19130 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19132 | /* end confdefs.h. */ |
| 19133 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 19134 | #include <stdio.h> |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19135 | #include<stdlib.h> |
| 19136 | int main() { |
| 19137 | size_t len = -1; |
| 19138 | const char *str = "text"; |
| 19139 | len = mbstowcs(NULL, str, 0); |
| 19140 | return (len != 4); |
| 19141 | } |
| 19142 | |
| 19143 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19144 | if ac_fn_c_try_run "$LINENO" |
| 19145 | then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19146 | ac_cv_broken_mbstowcs=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19147 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19148 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19149 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19150 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19151 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19152 | fi |
| 19153 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 19154 | fi |
| 19155 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19156 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
| 19157 | printf "%s\n" "$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19158 | if test "$ac_cv_broken_mbstowcs" = yes |
| 19159 | then |
| 19160 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19161 | printf "%s\n" "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19162 | |
| 19163 | fi |
| 19164 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19165 | # Check for --with-computed-gotos |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
| 19167 | printf %s "checking for --with-computed-gotos... " >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19168 | |
| 19169 | # Check whether --with-computed-gotos was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19170 | if test ${with_computed_gotos+y} |
| 19171 | then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19172 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 19173 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19174 | then |
| 19175 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19176 | printf "%s\n" "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19177 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19178 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19179 | printf "%s\n" "yes" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19180 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 19181 | if test "$withval" = no |
| 19182 | then |
| 19183 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19184 | printf "%s\n" "#define USE_COMPUTED_GOTOS 0" >>confdefs.h |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 19185 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19186 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19187 | printf "%s\n" "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19188 | fi |
| 19189 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19190 | else $as_nop |
| 19191 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 19192 | printf "%s\n" "no value specified" >&6; } |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 19193 | fi |
| 19194 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19195 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
| 19197 | printf %s "checking whether $CC supports computed gotos... " >&6; } |
| 19198 | if test ${ac_cv_computed_gotos+y} |
| 19199 | then : |
| 19200 | printf %s "(cached) " >&6 |
| 19201 | else $as_nop |
| 19202 | if test "$cross_compiling" = yes |
| 19203 | then : |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 19204 | if test "${with_computed_gotos+set}" = set; then |
| 19205 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" |
| 19206 | else |
| 19207 | ac_cv_computed_gotos=no |
| 19208 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19209 | else $as_nop |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 19210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19211 | /* end confdefs.h. */ |
| 19212 | |
| 19213 | int main(int argc, char **argv) |
| 19214 | { |
| 19215 | static void *targets[1] = { &&LABEL1 }; |
| 19216 | goto LABEL2; |
| 19217 | LABEL1: |
| 19218 | return 0; |
| 19219 | LABEL2: |
| 19220 | goto *targets[0]; |
| 19221 | return 1; |
| 19222 | } |
| 19223 | |
| 19224 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19225 | if ac_fn_c_try_run "$LINENO" |
| 19226 | then : |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 19227 | ac_cv_computed_gotos=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19228 | else $as_nop |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 19229 | ac_cv_computed_gotos=no |
| 19230 | fi |
| 19231 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19232 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19233 | fi |
| 19234 | |
| 19235 | fi |
| 19236 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19237 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 |
| 19238 | printf "%s\n" "$ac_cv_computed_gotos" >&6; } |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 19239 | case "$ac_cv_computed_gotos" in yes*) |
| 19240 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19241 | printf "%s\n" "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 19242 | |
| 19243 | esac |
| 19244 | |
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 19245 | case $ac_sys_system in |
| 19246 | AIX*) |
| 19247 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19248 | printf "%s\n" "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h |
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 19249 | ;; |
| 19250 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19251 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19252 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 19253 | |
| 19254 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 19255 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 19256 | do |
| 19257 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 19258 | done |
| 19259 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19260 | |
Ned Deily | 8d02f91 | 2020-06-25 10:46:44 -0400 | [diff] [blame] | 19261 | SRCDIRS="Parser Objects Python Modules Modules/_io Programs" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19262 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
| 19263 | printf %s "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 19264 | for dir in $SRCDIRS; do |
| 19265 | if test ! -d $dir; then |
| 19266 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 19267 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 19268 | done |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 19270 | printf "%s\n" "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 19271 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19272 | # Availability of -O2: |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19273 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 |
| 19274 | printf %s "checking for -O2... " >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19275 | saved_cflags="$CFLAGS" |
| 19276 | CFLAGS="-O2" |
| 19277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19278 | /* end confdefs.h. */ |
| 19279 | |
| 19280 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19281 | main (void) |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19282 | { |
| 19283 | |
| 19284 | |
| 19285 | ; |
| 19286 | return 0; |
| 19287 | } |
| 19288 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19289 | if ac_fn_c_try_compile "$LINENO" |
| 19290 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19291 | have_O2=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19292 | else $as_nop |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19293 | have_O2=no |
| 19294 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19295 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19296 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 |
| 19297 | printf "%s\n" "$have_O2" >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19298 | CFLAGS="$saved_cflags" |
| 19299 | |
| 19300 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: |
| 19301 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 |
| 19303 | printf %s "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19304 | saved_cflags="$CFLAGS" |
| 19305 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" |
| 19306 | if test "$have_O2" = no; then |
| 19307 | CFLAGS="" |
| 19308 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19309 | if test "$cross_compiling" = yes |
| 19310 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19311 | have_glibc_memmove_bug=undefined |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19312 | else $as_nop |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19314 | /* end confdefs.h. */ |
| 19315 | |
| 19316 | #include <stdio.h> |
| 19317 | #include <stdlib.h> |
| 19318 | #include <string.h> |
| 19319 | void foo(void *p, void *q) { memmove(p, q, 19); } |
| 19320 | int main() { |
| 19321 | char a[32] = "123456789000000000"; |
| 19322 | foo(&a[9], a); |
| 19323 | if (strcmp(a, "123456789123456789000000000") != 0) |
| 19324 | return 1; |
| 19325 | foo(a, &a[9]); |
| 19326 | if (strcmp(a, "123456789000000000") != 0) |
| 19327 | return 1; |
| 19328 | return 0; |
| 19329 | } |
| 19330 | |
| 19331 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19332 | if ac_fn_c_try_run "$LINENO" |
| 19333 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19334 | have_glibc_memmove_bug=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19335 | else $as_nop |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19336 | have_glibc_memmove_bug=yes |
| 19337 | fi |
| 19338 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19339 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19340 | fi |
| 19341 | |
| 19342 | CFLAGS="$saved_cflags" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 |
| 19344 | printf "%s\n" "$have_glibc_memmove_bug" >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19345 | if test "$have_glibc_memmove_bug" = yes; then |
| 19346 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19347 | printf "%s\n" "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19348 | |
| 19349 | fi |
| 19350 | |
| 19351 | if test "$have_gcc_asm_for_x87" = yes; then |
| 19352 | # Some versions of gcc miscompile inline asm: |
| 19353 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 |
| 19354 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html |
| 19355 | case $CC in |
| 19356 | *gcc*) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19357 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 |
| 19358 | printf %s "checking for gcc ipa-pure-const bug... " >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19359 | saved_cflags="$CFLAGS" |
| 19360 | CFLAGS="-O2" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19361 | if test "$cross_compiling" = yes |
| 19362 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19363 | have_ipa_pure_const_bug=undefined |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19364 | else $as_nop |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19366 | /* end confdefs.h. */ |
| 19367 | |
| 19368 | __attribute__((noinline)) int |
| 19369 | foo(int *p) { |
| 19370 | int r; |
| 19371 | asm ( "movl \$6, (%1)\n\t" |
| 19372 | "xorl %0, %0\n\t" |
| 19373 | : "=r" (r) : "r" (p) : "memory" |
| 19374 | ); |
| 19375 | return r; |
| 19376 | } |
| 19377 | int main() { |
| 19378 | int p = 8; |
| 19379 | if ((foo(&p) ? : p) != 6) |
| 19380 | return 1; |
| 19381 | return 0; |
| 19382 | } |
| 19383 | |
| 19384 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19385 | if ac_fn_c_try_run "$LINENO" |
| 19386 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19387 | have_ipa_pure_const_bug=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19388 | else $as_nop |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19389 | have_ipa_pure_const_bug=yes |
| 19390 | fi |
| 19391 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19392 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19393 | fi |
| 19394 | |
| 19395 | CFLAGS="$saved_cflags" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 |
| 19397 | printf "%s\n" "$have_ipa_pure_const_bug" >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19398 | if test "$have_ipa_pure_const_bug" = yes; then |
| 19399 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19400 | printf "%s\n" "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19401 | |
| 19402 | fi |
| 19403 | ;; |
| 19404 | esac |
| 19405 | fi |
| 19406 | |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19407 | # Check for stdatomic.h |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19408 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 |
| 19409 | printf %s "checking for stdatomic.h... " >&6; } |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19411 | /* end confdefs.h. */ |
| 19412 | |
| 19413 | |
| 19414 | #include <stdatomic.h> |
Victor Stinner | 028f734 | 2019-10-22 21:53:50 +0200 | [diff] [blame] | 19415 | atomic_int int_var; |
| 19416 | atomic_uintptr_t uintptr_var; |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19417 | int main() { |
Victor Stinner | 028f734 | 2019-10-22 21:53:50 +0200 | [diff] [blame] | 19418 | atomic_store_explicit(&int_var, 5, memory_order_relaxed); |
| 19419 | atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed); |
| 19420 | int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst); |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19421 | return 0; |
| 19422 | } |
| 19423 | |
| 19424 | |
| 19425 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19426 | if ac_fn_c_try_link "$LINENO" |
| 19427 | then : |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19428 | have_stdatomic_h=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19429 | else $as_nop |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19430 | have_stdatomic_h=no |
| 19431 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19432 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19433 | conftest$ac_exeext conftest.$ac_ext |
| 19434 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 |
| 19436 | printf "%s\n" "$have_stdatomic_h" >&6; } |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19437 | |
| 19438 | if test "$have_stdatomic_h" = yes; then |
| 19439 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19440 | printf "%s\n" "#define HAVE_STD_ATOMIC 1" >>confdefs.h |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19441 | |
| 19442 | fi |
| 19443 | |
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 19444 | # Check for GCC >= 4.7 and clang __atomic builtin functions |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19445 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic_load_n and __atomic_store_n functions" >&5 |
| 19446 | printf %s "checking for builtin __atomic_load_n and __atomic_store_n functions... " >&6; } |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19448 | /* end confdefs.h. */ |
| 19449 | |
| 19450 | |
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 19451 | int val; |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19452 | int main() { |
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 19453 | __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST); |
| 19454 | (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST); |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19455 | return 0; |
| 19456 | } |
| 19457 | |
| 19458 | |
| 19459 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19460 | if ac_fn_c_try_link "$LINENO" |
| 19461 | then : |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19462 | have_builtin_atomic=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19463 | else $as_nop |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19464 | have_builtin_atomic=no |
| 19465 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19466 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19467 | conftest$ac_exeext conftest.$ac_ext |
| 19468 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19469 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 |
| 19470 | printf "%s\n" "$have_builtin_atomic" >&6; } |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19471 | |
| 19472 | if test "$have_builtin_atomic" = yes; then |
| 19473 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19474 | printf "%s\n" "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19475 | |
| 19476 | fi |
| 19477 | |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 19478 | # ensurepip option |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19479 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 |
| 19480 | printf %s "checking for ensurepip... " >&6; } |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 19481 | |
| 19482 | # Check whether --with-ensurepip was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19483 | if test ${with_ensurepip+y} |
| 19484 | then : |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 19485 | withval=$with_ensurepip; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19486 | else $as_nop |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 19487 | with_ensurepip=upgrade |
| 19488 | fi |
| 19489 | |
| 19490 | case $with_ensurepip in #( |
| 19491 | yes|upgrade) : |
| 19492 | ENSUREPIP=upgrade ;; #( |
| 19493 | install) : |
| 19494 | ENSUREPIP=install ;; #( |
| 19495 | no) : |
| 19496 | ENSUREPIP=no ;; #( |
| 19497 | *) : |
| 19498 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; |
| 19499 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 |
| 19501 | printf "%s\n" "$ENSUREPIP" >&6; } |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 19502 | |
| 19503 | |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 19504 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19505 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 |
| 19506 | printf %s "checking if the dirent structure of a d_type field... " >&6; } |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 19507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19508 | /* end confdefs.h. */ |
| 19509 | |
| 19510 | |
| 19511 | #include <dirent.h> |
| 19512 | |
| 19513 | int main() { |
| 19514 | struct dirent entry; |
| 19515 | return entry.d_type == DT_UNKNOWN; |
| 19516 | } |
| 19517 | |
| 19518 | |
| 19519 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19520 | if ac_fn_c_try_link "$LINENO" |
| 19521 | then : |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 19522 | have_dirent_d_type=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19523 | else $as_nop |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 19524 | have_dirent_d_type=no |
| 19525 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19526 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 19527 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19528 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 |
| 19529 | printf "%s\n" "$have_dirent_d_type" >&6; } |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 19530 | |
| 19531 | if test "$have_dirent_d_type" = yes; then |
| 19532 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19533 | printf "%s\n" "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 19534 | |
| 19535 | fi |
| 19536 | |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19537 | # check if the Linux getrandom() syscall is available |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19538 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 |
| 19539 | printf %s "checking for the Linux getrandom() syscall... " >&6; } |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19541 | /* end confdefs.h. */ |
| 19542 | |
| 19543 | |
Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 19544 | #include <unistd.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19545 | #include <sys/syscall.h> |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 19546 | #include <linux/random.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19547 | |
| 19548 | int main() { |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19549 | char buffer[1]; |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19550 | const size_t buflen = sizeof(buffer); |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 19551 | const int flags = GRND_NONBLOCK; |
| 19552 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19553 | (void)syscall(SYS_getrandom, buffer, buflen, flags); |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19554 | return 0; |
| 19555 | } |
| 19556 | |
| 19557 | |
| 19558 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19559 | if ac_fn_c_try_link "$LINENO" |
| 19560 | then : |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19561 | have_getrandom_syscall=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19562 | else $as_nop |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19563 | have_getrandom_syscall=no |
| 19564 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19565 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19566 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19567 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 |
| 19568 | printf "%s\n" "$have_getrandom_syscall" >&6; } |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19569 | |
| 19570 | if test "$have_getrandom_syscall" = yes; then |
| 19571 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19572 | printf "%s\n" "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19573 | |
| 19574 | fi |
| 19575 | |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19576 | # check if the getrandom() function is available |
| 19577 | # the test was written for the Solaris function of <sys/random.h> |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 |
| 19579 | printf %s "checking for the getrandom() function... " >&6; } |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19581 | /* end confdefs.h. */ |
| 19582 | |
| 19583 | |
| 19584 | #include <sys/random.h> |
| 19585 | |
| 19586 | int main() { |
| 19587 | char buffer[1]; |
| 19588 | const size_t buflen = sizeof(buffer); |
| 19589 | const int flags = 0; |
| 19590 | /* ignore the result, Python checks for ENOSYS at runtime */ |
| 19591 | (void)getrandom(buffer, buflen, flags); |
| 19592 | return 0; |
| 19593 | } |
| 19594 | |
| 19595 | |
| 19596 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19597 | if ac_fn_c_try_link "$LINENO" |
| 19598 | then : |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19599 | have_getrandom=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19600 | else $as_nop |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19601 | have_getrandom=no |
| 19602 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19603 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19604 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 |
| 19606 | printf "%s\n" "$have_getrandom" >&6; } |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19607 | |
| 19608 | if test "$have_getrandom" = yes; then |
| 19609 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19610 | printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19611 | |
| 19612 | fi |
| 19613 | |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19614 | # checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c |
| 19615 | # shm_* may only be available if linking against librt |
| 19616 | save_LIBS="$LIBS" |
| 19617 | save_includes_default="$ac_includes_default" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 |
| 19619 | printf %s "checking for library containing shm_open... " >&6; } |
| 19620 | if test ${ac_cv_search_shm_open+y} |
| 19621 | then : |
| 19622 | printf %s "(cached) " >&6 |
| 19623 | else $as_nop |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19624 | ac_func_search_save_LIBS=$LIBS |
| 19625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19626 | /* end confdefs.h. */ |
| 19627 | |
| 19628 | /* Override any GCC internal prototype to avoid an error. |
| 19629 | Use char because int might match the return type of a GCC |
| 19630 | builtin and then its argument prototype would still apply. */ |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19631 | char shm_open (); |
| 19632 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19633 | main (void) |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19634 | { |
| 19635 | return shm_open (); |
| 19636 | ; |
| 19637 | return 0; |
| 19638 | } |
| 19639 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19640 | for ac_lib in '' rt |
| 19641 | do |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19642 | if test -z "$ac_lib"; then |
| 19643 | ac_res="none required" |
| 19644 | else |
| 19645 | ac_res=-l$ac_lib |
| 19646 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19647 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19648 | if ac_fn_c_try_link "$LINENO" |
| 19649 | then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19650 | ac_cv_search_shm_open=$ac_res |
| 19651 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19652 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19653 | conftest$ac_exeext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19654 | if test ${ac_cv_search_shm_open+y} |
| 19655 | then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19656 | break |
| 19657 | fi |
| 19658 | done |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19659 | if test ${ac_cv_search_shm_open+y} |
| 19660 | then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19661 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19662 | else $as_nop |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19663 | ac_cv_search_shm_open=no |
| 19664 | fi |
| 19665 | rm conftest.$ac_ext |
| 19666 | LIBS=$ac_func_search_save_LIBS |
| 19667 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 |
| 19669 | printf "%s\n" "$ac_cv_search_shm_open" >&6; } |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19670 | ac_res=$ac_cv_search_shm_open |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19671 | if test "$ac_res" != no |
| 19672 | then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19673 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 19674 | |
| 19675 | fi |
| 19676 | |
| 19677 | if test "$ac_cv_search_shm_open" = "-lrt"; then |
| 19678 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19679 | printf "%s\n" "#define SHM_NEEDS_LIBRT 1" >>confdefs.h |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19680 | |
| 19681 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19682 | ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
| 19683 | if test "x$ac_cv_header_sys_mman_h" = xyes |
| 19684 | then : |
| 19685 | printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19686 | |
| 19687 | fi |
| 19688 | |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19689 | # temporarily override ac_includes_default for AC_CHECK_FUNCS below |
| 19690 | ac_includes_default="\ |
| 19691 | ${ac_includes_default} |
| 19692 | #ifndef __cplusplus |
| 19693 | # ifdef HAVE_SYS_MMAN_H |
| 19694 | # include <sys/mman.h> |
| 19695 | # endif |
| 19696 | #endif |
| 19697 | " |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19698 | ac_fn_c_check_func "$LINENO" "shm_open" "ac_cv_func_shm_open" |
| 19699 | if test "x$ac_cv_func_shm_open" = xyes |
| 19700 | then : |
| 19701 | printf "%s\n" "#define HAVE_SHM_OPEN 1" >>confdefs.h |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19702 | |
| 19703 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19704 | ac_fn_c_check_func "$LINENO" "shm_unlink" "ac_cv_func_shm_unlink" |
| 19705 | if test "x$ac_cv_func_shm_unlink" = xyes |
| 19706 | then : |
| 19707 | printf "%s\n" "#define HAVE_SHM_UNLINK 1" >>confdefs.h |
| 19708 | |
| 19709 | fi |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19710 | |
| 19711 | # we don't want to link with librt always, restore LIBS |
| 19712 | LIBS="$save_LIBS" |
| 19713 | ac_includes_default="$save_includes_default" |
| 19714 | |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19715 | # Check for usable OpenSSL |
| 19716 | |
| 19717 | found=false |
| 19718 | |
| 19719 | # Check whether --with-openssl was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19720 | if test ${with_openssl+y} |
| 19721 | then : |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19722 | withval=$with_openssl; |
| 19723 | case "$withval" in |
| 19724 | "" | y | ye | yes | n | no) |
| 19725 | as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 |
| 19726 | ;; |
| 19727 | *) ssldirs="$withval" |
| 19728 | ;; |
| 19729 | esac |
| 19730 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19731 | else $as_nop |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19732 | |
| 19733 | # if pkg-config is installed and openssl has installed a .pc file, |
| 19734 | # then use that information and don't search ssldirs |
| 19735 | if test -n "$ac_tool_prefix"; then |
| 19736 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 19737 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19738 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 19739 | printf %s "checking for $ac_word... " >&6; } |
| 19740 | if test ${ac_cv_prog_PKG_CONFIG+y} |
| 19741 | then : |
| 19742 | printf %s "(cached) " >&6 |
| 19743 | else $as_nop |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19744 | if test -n "$PKG_CONFIG"; then |
| 19745 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 19746 | else |
| 19747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19748 | for as_dir in $PATH |
| 19749 | do |
| 19750 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19751 | case $as_dir in #((( |
| 19752 | '') as_dir=./ ;; |
| 19753 | */) ;; |
| 19754 | *) as_dir=$as_dir/ ;; |
| 19755 | esac |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19756 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19757 | 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] | 19758 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19759 | printf "%s\n" "$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] | 19760 | break 2 |
| 19761 | fi |
| 19762 | done |
| 19763 | done |
| 19764 | IFS=$as_save_IFS |
| 19765 | |
| 19766 | fi |
| 19767 | fi |
| 19768 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 19769 | if test -n "$PKG_CONFIG"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 19771 | printf "%s\n" "$PKG_CONFIG" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19772 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19774 | printf "%s\n" "no" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19775 | fi |
| 19776 | |
| 19777 | |
| 19778 | fi |
| 19779 | if test -z "$ac_cv_prog_PKG_CONFIG"; then |
| 19780 | ac_ct_PKG_CONFIG=$PKG_CONFIG |
| 19781 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 19782 | set dummy pkg-config; ac_word=$2 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19783 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 19784 | printf %s "checking for $ac_word... " >&6; } |
| 19785 | if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} |
| 19786 | then : |
| 19787 | printf %s "(cached) " >&6 |
| 19788 | else $as_nop |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19789 | if test -n "$ac_ct_PKG_CONFIG"; then |
| 19790 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. |
| 19791 | else |
| 19792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19793 | for as_dir in $PATH |
| 19794 | do |
| 19795 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19796 | case $as_dir in #((( |
| 19797 | '') as_dir=./ ;; |
| 19798 | */) ;; |
| 19799 | *) as_dir=$as_dir/ ;; |
| 19800 | esac |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19801 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19802 | 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] | 19803 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19804 | printf "%s\n" "$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] | 19805 | break 2 |
| 19806 | fi |
| 19807 | done |
| 19808 | done |
| 19809 | IFS=$as_save_IFS |
| 19810 | |
| 19811 | fi |
| 19812 | fi |
| 19813 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG |
| 19814 | if test -n "$ac_ct_PKG_CONFIG"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19815 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 |
| 19816 | printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19817 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19818 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19819 | printf "%s\n" "no" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19820 | fi |
| 19821 | |
| 19822 | if test "x$ac_ct_PKG_CONFIG" = x; then |
| 19823 | PKG_CONFIG="" |
| 19824 | else |
| 19825 | case $cross_compiling:$ac_tool_warned in |
| 19826 | yes:) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19827 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 19828 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19829 | ac_tool_warned=yes ;; |
| 19830 | esac |
| 19831 | PKG_CONFIG=$ac_ct_PKG_CONFIG |
| 19832 | fi |
| 19833 | else |
| 19834 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" |
| 19835 | fi |
| 19836 | |
| 19837 | if test x"$PKG_CONFIG" != x""; then |
| 19838 | OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` |
| 19839 | if test $? = 0; then |
| 19840 | OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` |
| 19841 | OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` |
| 19842 | found=true |
| 19843 | fi |
| 19844 | fi |
| 19845 | |
| 19846 | # no such luck; use some default ssldirs |
| 19847 | if ! $found; then |
| 19848 | ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" |
| 19849 | fi |
| 19850 | |
| 19851 | |
| 19852 | fi |
| 19853 | |
| 19854 | |
| 19855 | |
| 19856 | # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in |
| 19857 | # an 'openssl' subdirectory |
| 19858 | |
| 19859 | if ! $found; then |
| 19860 | OPENSSL_INCLUDES= |
| 19861 | for ssldir in $ssldirs; do |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19862 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 |
| 19863 | printf %s "checking for openssl/ssl.h in $ssldir... " >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19864 | if test -f "$ssldir/include/openssl/ssl.h"; then |
| 19865 | OPENSSL_INCLUDES="-I$ssldir/include" |
| 19866 | OPENSSL_LDFLAGS="-L$ssldir/lib" |
| 19867 | OPENSSL_LIBS="-lssl -lcrypto" |
| 19868 | found=true |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19869 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19870 | printf "%s\n" "yes" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19871 | break |
| 19872 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19873 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19874 | printf "%s\n" "no" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19875 | fi |
| 19876 | done |
| 19877 | |
| 19878 | # if the file wasn't found, well, go ahead and try the link anyway -- maybe |
| 19879 | # it will just work! |
| 19880 | fi |
| 19881 | |
| 19882 | # try the preprocessor and linker with our new flags, |
| 19883 | # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS |
| 19884 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19885 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 |
| 19886 | printf %s "checking whether compiling and linking against OpenSSL works... " >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19887 | echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ |
| 19888 | "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 |
| 19889 | |
| 19890 | save_LIBS="$LIBS" |
| 19891 | save_LDFLAGS="$LDFLAGS" |
| 19892 | save_CPPFLAGS="$CPPFLAGS" |
| 19893 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" |
| 19894 | LIBS="$OPENSSL_LIBS $LIBS" |
| 19895 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" |
| 19896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19897 | /* end confdefs.h. */ |
| 19898 | #include <openssl/ssl.h> |
| 19899 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19900 | main (void) |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19901 | { |
| 19902 | SSL_new(NULL) |
| 19903 | ; |
| 19904 | return 0; |
| 19905 | } |
| 19906 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19907 | if ac_fn_c_try_link "$LINENO" |
| 19908 | then : |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19909 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19910 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19911 | printf "%s\n" "yes" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19912 | have_openssl=yes |
| 19913 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19914 | else $as_nop |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19915 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19917 | printf "%s\n" "no" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19918 | have_openssl=no |
| 19919 | |
| 19920 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19921 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19922 | conftest$ac_exeext conftest.$ac_ext |
| 19923 | CPPFLAGS="$save_CPPFLAGS" |
| 19924 | LDFLAGS="$save_LDFLAGS" |
| 19925 | LIBS="$save_LIBS" |
| 19926 | |
| 19927 | |
| 19928 | |
| 19929 | |
| 19930 | |
| 19931 | |
| 19932 | if test "$have_openssl" = yes; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19933 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5 |
| 19934 | printf %s "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19935 | |
| 19936 | save_LIBS="$LIBS" |
| 19937 | save_LDFLAGS="$LDFLAGS" |
| 19938 | save_CPPFLAGS="$CPPFLAGS" |
| 19939 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" |
| 19940 | LIBS="$OPENSSL_LIBS $LIBS" |
| 19941 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" |
| 19942 | |
| 19943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19944 | /* end confdefs.h. */ |
| 19945 | |
| 19946 | #include <openssl/x509_vfy.h> |
| 19947 | |
| 19948 | int |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19949 | main (void) |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19950 | { |
| 19951 | |
| 19952 | X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new(); |
| 19953 | X509_VERIFY_PARAM_set1_host(p, "localhost", 0); |
| 19954 | X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1"); |
| 19955 | X509_VERIFY_PARAM_set_hostflags(p, 0); |
| 19956 | |
| 19957 | ; |
| 19958 | return 0; |
| 19959 | } |
| 19960 | |
| 19961 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19962 | if ac_fn_c_try_link "$LINENO" |
| 19963 | then : |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19964 | |
| 19965 | ac_cv_has_x509_verify_param_set1_host=yes |
| 19966 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19967 | else $as_nop |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19968 | |
| 19969 | ac_cv_has_x509_verify_param_set1_host=no |
| 19970 | |
| 19971 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19972 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19973 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5 |
| 19975 | printf "%s\n" "$ac_cv_has_x509_verify_param_set1_host" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19976 | if test "$ac_cv_has_x509_verify_param_set1_host" = "yes"; then |
| 19977 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19978 | printf "%s\n" "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19979 | |
| 19980 | fi |
| 19981 | |
| 19982 | CPPFLAGS="$save_CPPFLAGS" |
| 19983 | LDFLAGS="$save_LDFLAGS" |
| 19984 | LIBS="$save_LIBS" |
| 19985 | fi |
| 19986 | |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 19987 | # ssl module default cipher suite string |
| 19988 | |
| 19989 | |
| 19990 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5 |
| 19992 | printf %s "checking for --with-ssl-default-suites... " >&6; } |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 19993 | |
| 19994 | # Check whether --with-ssl-default-suites was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19995 | if test ${with_ssl_default_suites+y} |
| 19996 | then : |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 19997 | withval=$with_ssl_default_suites; |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 19998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 19999 | printf "%s\n" "$withval" >&6; } |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 20000 | case "$withval" in |
| 20001 | python) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20002 | printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 20003 | |
| 20004 | ;; |
| 20005 | openssl) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20006 | printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 20007 | |
| 20008 | ;; |
| 20009 | *) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20010 | printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 20011 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20012 | printf "%s\n" "#define PY_SSL_DEFAULT_CIPHER_STRING \"$withval\"" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 20013 | |
| 20014 | ;; |
| 20015 | esac |
| 20016 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20017 | else $as_nop |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 20018 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: python" >&5 |
| 20020 | printf "%s\n" "python" >&6; } |
| 20021 | printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 20022 | |
| 20023 | |
| 20024 | fi |
| 20025 | |
| 20026 | |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 20027 | # builtin hash modules |
| 20028 | default_hashlib_hashes="md5,sha1,sha256,sha512,sha3,blake2" |
| 20029 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20030 | printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES /**/" >>confdefs.h |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 20031 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20032 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5 |
| 20033 | printf %s "checking for --with-builtin-hashlib-hashes... " >&6; } |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 20034 | |
| 20035 | # Check whether --with-builtin-hashlib-hashes was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20036 | if test ${with_builtin_hashlib_hashes+y} |
| 20037 | then : |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 20038 | withval=$with_builtin_hashlib_hashes; |
| 20039 | case "$withval" in |
| 20040 | yes) |
| 20041 | withval=$default_hashlib_hashes |
| 20042 | ;; |
| 20043 | no) |
| 20044 | withval="" |
| 20045 | ;; |
| 20046 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 20048 | printf "%s\n" "$withval" >&6; } |
| 20049 | printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES \"$withval\"" >>confdefs.h |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 20050 | |
| 20051 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20052 | else $as_nop |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 20053 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_hashlib_hashes" >&5 |
| 20055 | printf "%s\n" "$default_hashlib_hashes" >&6; }; |
| 20056 | printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES \"$default_hashlib_hashes\"" >>confdefs.h |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 20057 | |
| 20058 | |
| 20059 | fi |
| 20060 | |
| 20061 | |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 20062 | # --with-experimental-isolated-subinterpreters |
| 20063 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20064 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-experimental-isolated-subinterpreters" >&5 |
| 20065 | printf %s "checking for --with-experimental-isolated-subinterpreters... " >&6; } |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 20066 | |
| 20067 | # Check whether --with-experimental-isolated-subinterpreters was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20068 | if test ${with_experimental_isolated_subinterpreters+y} |
| 20069 | then : |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 20070 | withval=$with_experimental_isolated_subinterpreters; |
| 20071 | if test "$withval" != no |
| 20072 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20073 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20074 | printf "%s\n" "yes" >&6; }; |
| 20075 | printf "%s\n" "#define EXPERIMENTAL_ISOLATED_SUBINTERPRETERS 1" >>confdefs.h |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 20076 | |
| 20077 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20078 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20079 | printf "%s\n" "no" >&6; }; |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 20080 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20081 | else $as_nop |
| 20082 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20083 | printf "%s\n" "no" >&6; } |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 20084 | fi |
| 20085 | |
| 20086 | |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20087 | # --with-static-libpython |
| 20088 | STATIC_LIBPYTHON=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-static-libpython" >&5 |
| 20090 | printf %s "checking for --with-static-libpython... " >&6; } |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20091 | |
| 20092 | # Check whether --with-static-libpython was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20093 | if test ${with_static_libpython+y} |
| 20094 | then : |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20095 | withval=$with_static_libpython; |
| 20096 | if test "$withval" = no |
| 20097 | then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20098 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20099 | printf "%s\n" "no" >&6; }; |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20100 | STATIC_LIBPYTHON=0 |
| 20101 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20103 | printf "%s\n" "yes" >&6; }; |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20104 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20105 | else $as_nop |
| 20106 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20107 | printf "%s\n" "yes" >&6; } |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20108 | fi |
| 20109 | |
| 20110 | LIBRARY_DEPS='$(PY3LIBRARY) $(EXPORTSYMS)' |
Ned Deily | 0608425 | 2021-03-01 02:04:02 -0500 | [diff] [blame] | 20111 | if test "$PY_ENABLE_SHARED" = 1 || test "$enable_framework" ; then |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20112 | LIBRARY_DEPS="\$(LDLIBRARY) $LIBRARY_DEPS" |
| 20113 | if test "$STATIC_LIBPYTHON" = 1; then |
| 20114 | LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS" |
| 20115 | fi |
| 20116 | else |
| 20117 | LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS" |
| 20118 | fi |
| 20119 | |
| 20120 | |
| 20121 | |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 20122 | # Check whether to disable test modules. Once set, setup.py will not build |
| 20123 | # test extension modules and "make install" will not install test suites. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20124 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-test-modules" >&5 |
| 20125 | printf %s "checking for --disable-test-modules... " >&6; } |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 20126 | # Check whether --enable-test-modules was given. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20127 | if test ${enable_test_modules+y} |
| 20128 | then : |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 20129 | enableval=$enable_test_modules; |
| 20130 | fi |
| 20131 | |
| 20132 | if test "$enable_test_modules" = no; then |
| 20133 | TEST_MODULES=no |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20134 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20135 | printf "%s\n" "yes" >&6; } |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 20136 | else |
| 20137 | TEST_MODULES=yes |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20138 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20139 | printf "%s\n" "no" >&6; } |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 20140 | fi |
| 20141 | |
| 20142 | |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 20143 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20144 | # generate output files |
Victor Stinner | 0a8e572 | 2019-05-23 03:30:23 +0200 | [diff] [blame] | 20145 | 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] | 20146 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 20147 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
| 20148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20149 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20150 | # This file is a shell script that caches the results of configure |
| 20151 | # 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] | 20152 | # scripts and configure runs, see configure's option --config-cache. |
| 20153 | # It is not useful on other systems. If it contains results you don't |
| 20154 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20155 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20156 | # config.status only pays attention to the cache file if you give it |
| 20157 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20158 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20159 | # `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] | 20160 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20161 | # following values. |
| 20162 | |
| 20163 | _ACEOF |
| 20164 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20165 | # The following way of writing the cache mishandles newlines in values, |
| 20166 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20167 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20168 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20169 | # 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] | 20170 | ( |
| 20171 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20172 | eval ac_val=\$$ac_var |
| 20173 | case $ac_val in #( |
| 20174 | *${as_nl}*) |
| 20175 | case $ac_var in #( |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20176 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 20177 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20178 | esac |
| 20179 | case $ac_var in #( |
| 20180 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20181 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 20182 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20183 | esac ;; |
| 20184 | esac |
| 20185 | done |
| 20186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20187 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20188 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20189 | *${as_nl}ac_space=\ *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20190 | # `set' does not quote correctly, so add quotes: double-quote |
| 20191 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20192 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20193 | "s/'/'\\\\''/g; |
| 20194 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20195 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20196 | *) |
| 20197 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20198 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20199 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20200 | esac | |
| 20201 | sort |
| 20202 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20203 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20204 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20205 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20206 | :clear |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20207 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20208 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20209 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20210 | :end' >>confcache |
| 20211 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20212 | if test -w "$cache_file"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20213 | if test "x$cache_file" != "x/dev/null"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20214 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 20215 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20216 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 20217 | cat confcache >"$cache_file" |
| 20218 | else |
| 20219 | case $cache_file in #( |
| 20220 | */* | ?:*) |
| 20221 | mv -f confcache "$cache_file"$$ && |
| 20222 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 20223 | *) |
| 20224 | mv -f confcache "$cache_file" ;; |
| 20225 | esac |
| 20226 | fi |
| 20227 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20228 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 20230 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20231 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20232 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20233 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 20234 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20235 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20236 | # Let make expand exec_prefix. |
| 20237 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 20238 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20239 | DEFS=-DHAVE_CONFIG_H |
| 20240 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20241 | ac_libobjs= |
| 20242 | ac_ltlibobjs= |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20243 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20244 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20245 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20246 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20247 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20248 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20249 | # will be set to the directory where LIBOBJS objects are built. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20250 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20251 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20252 | done |
| 20253 | LIBOBJS=$ac_libobjs |
| 20254 | |
| 20255 | LTLIBOBJS=$ac_ltlibobjs |
| 20256 | |
| 20257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20258 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20259 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20260 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20261 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20262 | ac_clean_files_save=$ac_clean_files |
| 20263 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20264 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 20265 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20266 | as_write_fail=0 |
| 20267 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20268 | #! $SHELL |
| 20269 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20270 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20271 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20272 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20273 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20274 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20275 | ac_cs_recheck=false |
| 20276 | ac_cs_silent=false |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20277 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20278 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 20279 | export SHELL |
| 20280 | _ASEOF |
| 20281 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 20282 | ## -------------------- ## |
| 20283 | ## M4sh Initialization. ## |
| 20284 | ## -------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20285 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20286 | # Be more Bourne compatible |
| 20287 | DUALCASE=1; export DUALCASE # for MKS sh |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20288 | as_nop=: |
| 20289 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 20290 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20291 | emulate sh |
| 20292 | NULLCMD=: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20293 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20294 | # is contrary to our usage. Disable this feature. |
| 20295 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20296 | setopt NO_GLOB_SUBST |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20297 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20298 | case `(set -o) 2>/dev/null` in #( |
| 20299 | *posix*) : |
| 20300 | set -o posix ;; #( |
| 20301 | *) : |
| 20302 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20303 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20304 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20305 | |
| 20306 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20307 | |
| 20308 | # Reset variables that may have inherited troublesome values from |
| 20309 | # the environment. |
| 20310 | |
| 20311 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 20312 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 20313 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 20314 | # Quoting is to prevent editors from complaining about space-tab. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20315 | as_nl=' |
| 20316 | ' |
| 20317 | export as_nl |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20318 | IFS=" "" $as_nl" |
| 20319 | |
| 20320 | PS1='$ ' |
| 20321 | PS2='> ' |
| 20322 | PS4='+ ' |
| 20323 | |
| 20324 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 20325 | LC_ALL=C |
| 20326 | export LC_ALL |
| 20327 | LANGUAGE=C |
| 20328 | export LANGUAGE |
| 20329 | |
| 20330 | # We cannot yet rely on "unset" to work, but we need these variables |
| 20331 | # to be unset--not just set to an empty or harmless value--now, to |
| 20332 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 20333 | # also avoids known problems related to "unset" and subshell syntax |
| 20334 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 20335 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 20336 | do eval test \${$as_var+y} \ |
| 20337 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 20338 | done |
| 20339 | |
| 20340 | # Ensure that fds 0, 1, and 2 are open. |
| 20341 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 20342 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 20343 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20344 | |
| 20345 | # The user is always right. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20346 | if ${PATH_SEPARATOR+false} :; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20347 | PATH_SEPARATOR=: |
| 20348 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 20349 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 20350 | PATH_SEPARATOR=';' |
| 20351 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20352 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20353 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20354 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20355 | # 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] | 20356 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20357 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20358 | *[\\/]* ) as_myself=$0 ;; |
| 20359 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20360 | for as_dir in $PATH |
| 20361 | do |
| 20362 | IFS=$as_save_IFS |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20363 | case $as_dir in #((( |
| 20364 | '') as_dir=./ ;; |
| 20365 | */) ;; |
| 20366 | *) as_dir=$as_dir/ ;; |
| 20367 | esac |
| 20368 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20369 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20370 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20371 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20372 | ;; |
| 20373 | esac |
| 20374 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20375 | # in which case we are not to be found in the path. |
| 20376 | if test "x$as_myself" = x; then |
| 20377 | as_myself=$0 |
| 20378 | fi |
| 20379 | if test ! -f "$as_myself"; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20380 | printf "%s\n" "$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] | 20381 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20382 | fi |
| 20383 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20384 | |
| 20385 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20386 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 20387 | # ---------------------------------------- |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20388 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 20389 | # 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] | 20390 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20391 | as_fn_error () |
| 20392 | { |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20393 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 20394 | if test "$4"; then |
| 20395 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20396 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20397 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20398 | printf "%s\n" "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20399 | as_fn_exit $as_status |
| 20400 | } # as_fn_error |
| 20401 | |
| 20402 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20403 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20404 | # as_fn_set_status STATUS |
| 20405 | # ----------------------- |
| 20406 | # Set $? to STATUS, without forking. |
| 20407 | as_fn_set_status () |
| 20408 | { |
| 20409 | return $1 |
| 20410 | } # as_fn_set_status |
| 20411 | |
| 20412 | # as_fn_exit STATUS |
| 20413 | # ----------------- |
| 20414 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 20415 | as_fn_exit () |
| 20416 | { |
| 20417 | set +e |
| 20418 | as_fn_set_status $1 |
| 20419 | exit $1 |
| 20420 | } # as_fn_exit |
| 20421 | |
| 20422 | # as_fn_unset VAR |
| 20423 | # --------------- |
| 20424 | # Portably unset VAR. |
| 20425 | as_fn_unset () |
| 20426 | { |
| 20427 | { eval $1=; unset $1;} |
| 20428 | } |
| 20429 | as_unset=as_fn_unset |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20430 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20431 | # as_fn_append VAR VALUE |
| 20432 | # ---------------------- |
| 20433 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 20434 | # advantage of any shell optimizations that allow amortized linear growth over |
| 20435 | # repeated appends, instead of the typical quadratic growth present in naive |
| 20436 | # implementations. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20437 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 20438 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20439 | eval 'as_fn_append () |
| 20440 | { |
| 20441 | eval $1+=\$2 |
| 20442 | }' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20443 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20444 | as_fn_append () |
| 20445 | { |
| 20446 | eval $1=\$$1\$2 |
| 20447 | } |
| 20448 | fi # as_fn_append |
| 20449 | |
| 20450 | # as_fn_arith ARG... |
| 20451 | # ------------------ |
| 20452 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 20453 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 20454 | # must be portable across $(()) and expr. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20455 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 20456 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20457 | eval 'as_fn_arith () |
| 20458 | { |
| 20459 | as_val=$(( $* )) |
| 20460 | }' |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20461 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20462 | as_fn_arith () |
| 20463 | { |
| 20464 | as_val=`expr "$@" || test $? -eq 1` |
| 20465 | } |
| 20466 | fi # as_fn_arith |
| 20467 | |
| 20468 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20469 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20470 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20471 | as_expr=expr |
| 20472 | else |
| 20473 | as_expr=false |
| 20474 | fi |
| 20475 | |
| 20476 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20477 | as_basename=basename |
| 20478 | else |
| 20479 | as_basename=false |
| 20480 | fi |
| 20481 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20482 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20483 | as_dirname=dirname |
| 20484 | else |
| 20485 | as_dirname=false |
| 20486 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20487 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20488 | as_me=`$as_basename -- "$0" || |
| 20489 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20490 | X"$0" : 'X\(//\)$' \| \ |
| 20491 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20492 | printf "%s\n" X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20493 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20494 | s//\1/ |
| 20495 | q |
| 20496 | } |
| 20497 | /^X\/\(\/\/\)$/{ |
| 20498 | s//\1/ |
| 20499 | q |
| 20500 | } |
| 20501 | /^X\/\(\/\).*/{ |
| 20502 | s//\1/ |
| 20503 | q |
| 20504 | } |
| 20505 | s/.*/./; q'` |
| 20506 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20507 | # Avoid depending upon Character Ranges. |
| 20508 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20509 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20510 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20511 | as_cr_digits='0123456789' |
| 20512 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20513 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20514 | |
| 20515 | # Determine whether it's possible to make 'echo' print without a newline. |
| 20516 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 20517 | # for compatibility with existing Makefiles. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20518 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20519 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20520 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20521 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20522 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20523 | xy) ECHO_C='\c';; |
| 20524 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 20525 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20526 | esac;; |
| 20527 | *) |
| 20528 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20529 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 20530 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20531 | # For backward compatibility with old third-party macros, we provide |
| 20532 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 20533 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 20534 | as_echo='printf %s\n' |
| 20535 | as_echo_n='printf %s' |
| 20536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20537 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20538 | if test -d conf$$.dir; then |
| 20539 | rm -f conf$$.dir/conf$$.file |
| 20540 | else |
| 20541 | rm -f conf$$.dir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20542 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20543 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20544 | if (echo >conf$$.file) 2>/dev/null; then |
| 20545 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20546 | as_ln_s='ln -s' |
| 20547 | # ... but there are two gotchas: |
| 20548 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20549 | # 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] | 20550 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20551 | 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] | 20552 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20553 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20554 | as_ln_s=ln |
| 20555 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 20556 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20557 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20558 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 20559 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20560 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20561 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20562 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20563 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20564 | |
| 20565 | # as_fn_mkdir_p |
| 20566 | # ------------- |
| 20567 | # Create "$as_dir" as a directory, including parents if necessary. |
| 20568 | as_fn_mkdir_p () |
| 20569 | { |
| 20570 | |
| 20571 | case $as_dir in #( |
| 20572 | -*) as_dir=./$as_dir;; |
| 20573 | esac |
| 20574 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 20575 | as_dirs= |
| 20576 | while :; do |
| 20577 | case $as_dir in #( |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20578 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20579 | *) as_qdir=$as_dir;; |
| 20580 | esac |
| 20581 | as_dirs="'$as_qdir' $as_dirs" |
| 20582 | as_dir=`$as_dirname -- "$as_dir" || |
| 20583 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20584 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20585 | X"$as_dir" : 'X\(//\)$' \| \ |
| 20586 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20587 | printf "%s\n" X"$as_dir" | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20588 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20589 | s//\1/ |
| 20590 | q |
| 20591 | } |
| 20592 | /^X\(\/\/\)[^/].*/{ |
| 20593 | s//\1/ |
| 20594 | q |
| 20595 | } |
| 20596 | /^X\(\/\/\)$/{ |
| 20597 | s//\1/ |
| 20598 | q |
| 20599 | } |
| 20600 | /^X\(\/\).*/{ |
| 20601 | s//\1/ |
| 20602 | q |
| 20603 | } |
| 20604 | s/.*/./; q'` |
| 20605 | test -d "$as_dir" && break |
| 20606 | done |
| 20607 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20608 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20609 | |
| 20610 | |
| 20611 | } # as_fn_mkdir_p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20612 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20613 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20614 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20615 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20616 | as_mkdir_p=false |
| 20617 | fi |
| 20618 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 20619 | |
| 20620 | # as_fn_executable_p FILE |
| 20621 | # ----------------------- |
| 20622 | # Test if FILE is an executable regular file. |
| 20623 | as_fn_executable_p () |
| 20624 | { |
| 20625 | test -f "$1" && test -x "$1" |
| 20626 | } # as_fn_executable_p |
| 20627 | as_test_x='test -x' |
| 20628 | as_executable_p=as_fn_executable_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20629 | |
| 20630 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20631 | 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] | 20632 | |
| 20633 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20634 | 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] | 20635 | |
| 20636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20637 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20638 | ## ----------------------------------- ## |
| 20639 | ## Main body of $CONFIG_STATUS script. ## |
| 20640 | ## ----------------------------------- ## |
| 20641 | _ASEOF |
| 20642 | 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] | 20643 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20644 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20645 | # 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] | 20646 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20647 | # values after options handling. |
| 20648 | ac_log=" |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 20649 | This file was extended by python $as_me 3.10, which was |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20650 | generated by GNU Autoconf 2.71. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20651 | |
| 20652 | CONFIG_FILES = $CONFIG_FILES |
| 20653 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20654 | CONFIG_LINKS = $CONFIG_LINKS |
| 20655 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20656 | $ $0 $@ |
| 20657 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20658 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20659 | " |
| 20660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20661 | _ACEOF |
| 20662 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20663 | case $ac_config_files in *" |
| 20664 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 20665 | esac |
| 20666 | |
| 20667 | case $ac_config_headers in *" |
| 20668 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 20669 | esac |
| 20670 | |
| 20671 | |
| 20672 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20673 | # Files that config.status was made for. |
Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 20674 | config_files="$ac_config_files" |
| 20675 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20676 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20677 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20678 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20679 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20680 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20681 | \`$as_me' instantiates files and other configuration actions |
| 20682 | from templates according to the current configuration. Unless the files |
| 20683 | 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] | 20684 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20685 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20686 | |
| 20687 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20688 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20689 | --config print configuration, then exit |
| 20690 | -q, --quiet, --silent |
| 20691 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20692 | -d, --debug don't remove temporary files |
| 20693 | --recheck update $as_me by reconfiguring in the same conditions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20694 | --file=FILE[:TEMPLATE] |
| 20695 | instantiate the configuration file FILE |
| 20696 | --header=FILE[:TEMPLATE] |
| 20697 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20698 | |
| 20699 | Configuration files: |
| 20700 | $config_files |
| 20701 | |
| 20702 | Configuration headers: |
| 20703 | $config_headers |
| 20704 | |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 20705 | Report bugs to <https://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 20706 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20707 | _ACEOF |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20708 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 20709 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20710 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20711 | ac_cs_config='$ac_cs_config_escaped' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20712 | ac_cs_version="\\ |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 20713 | python config.status 3.10 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20714 | configured by $0, generated by GNU Autoconf 2.71, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20715 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20716 | |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20717 | Copyright (C) 2021 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20718 | This config.status script is free software; the Free Software Foundation |
| 20719 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20720 | |
| 20721 | ac_pwd='$ac_pwd' |
| 20722 | srcdir='$srcdir' |
| 20723 | INSTALL='$INSTALL' |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 20724 | MKDIR_P='$MKDIR_P' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20725 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20726 | _ACEOF |
| 20727 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20728 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20729 | # 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] | 20730 | ac_need_defaults=: |
| 20731 | while test $# != 0 |
| 20732 | do |
| 20733 | case $1 in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20734 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20735 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20736 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20737 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20738 | ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20739 | --*=) |
| 20740 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20741 | ac_optarg= |
| 20742 | ac_shift=: |
| 20743 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20744 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20745 | ac_option=$1 |
| 20746 | ac_optarg=$2 |
| 20747 | ac_shift=shift |
| 20748 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20749 | esac |
| 20750 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20751 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20752 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20753 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20754 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20755 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20756 | printf "%s\n" "$ac_cs_version"; exit ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20757 | --config | --confi | --conf | --con | --co | --c ) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20758 | printf "%s\n" "$ac_cs_config"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20759 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20760 | debug=: ;; |
| 20761 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20762 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20763 | case $ac_optarg in |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20764 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20765 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20766 | esac |
| 20767 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20768 | ac_need_defaults=false;; |
| 20769 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20770 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20771 | case $ac_optarg in |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20772 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20773 | esac |
| 20774 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20775 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20776 | --he | --h) |
| 20777 | # Conflict between --help and --header |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20778 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20779 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20780 | --help | --hel | -h ) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20781 | printf "%s\n" "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20782 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20783 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20784 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20785 | |
| 20786 | # This is an error. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20787 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20788 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20789 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20790 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20791 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20792 | |
| 20793 | esac |
| 20794 | shift |
| 20795 | done |
| 20796 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20797 | ac_configure_extra_args= |
| 20798 | |
| 20799 | if $ac_cs_silent; then |
| 20800 | exec 6>/dev/null |
| 20801 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20802 | fi |
| 20803 | |
| 20804 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20805 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20806 | if \$ac_cs_recheck; then |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 20807 | 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] | 20808 | shift |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20809 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20810 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20811 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20812 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20813 | fi |
| 20814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20815 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20816 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20817 | exec 5>>config.log |
| 20818 | { |
| 20819 | echo |
| 20820 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20821 | ## Running $as_me. ## |
| 20822 | _ASBOX |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20823 | printf "%s\n" "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20824 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20825 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20826 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20827 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20828 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20829 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20830 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20831 | |
| 20832 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20833 | for ac_config_target in $ac_config_targets |
| 20834 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20835 | case $ac_config_target in |
| 20836 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 20837 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 20838 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 20839 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 20840 | "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] | 20841 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20842 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Victor Stinner | 0a8e572 | 2019-05-23 03:30:23 +0200 | [diff] [blame] | 20843 | "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] | 20844 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 20845 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20846 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20847 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20848 | esac |
| 20849 | done |
| 20850 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20851 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20852 | # If the user did not use the arguments to specify the items to instantiate, |
| 20853 | # then the envvar interface is used. Set only those that are not. |
| 20854 | # We use the long form for the default assignment because of an extremely |
| 20855 | # bizarre bug on SunOS 4.1.3. |
| 20856 | if $ac_need_defaults; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 20857 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 20858 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20859 | fi |
| 20860 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20861 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20862 | # 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] | 20863 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20864 | # Hook for its removal unless debugging. |
| 20865 | # Note that there is a small window in which the directory will not be cleaned: |
| 20866 | # 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] | 20867 | $debug || |
| 20868 | { |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20869 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20870 | trap 'exit_status=$? |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20871 | : "${ac_tmp:=$tmp}" |
| 20872 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20873 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20874 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20875 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20876 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20878 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20879 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20880 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20881 | } || |
| 20882 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20883 | tmp=./conf$$-$RANDOM |
| 20884 | (umask 077 && mkdir "$tmp") |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20885 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20886 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20887 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20888 | # Set up the scripts for CONFIG_FILES section. |
| 20889 | # No need to generate them if there are no CONFIG_FILES. |
| 20890 | # This happens for instance with `./config.status config.h'. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20891 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20892 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20893 | |
| 20894 | ac_cr=`echo X | tr X '\015'` |
| 20895 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 20896 | # But we know of no other shell where ac_cr would be empty at this |
| 20897 | # point, so we can use a bashism as a fallback. |
| 20898 | if test "x$ac_cr" = x; then |
| 20899 | eval ac_cr=\$\'\\r\' |
| 20900 | fi |
| 20901 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 20902 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20903 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20904 | else |
| 20905 | ac_cs_awk_cr=$ac_cr |
| 20906 | fi |
| 20907 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20908 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20909 | _ACEOF |
| 20910 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20911 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20912 | { |
| 20913 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 20914 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 20915 | echo "_ACEOF" |
| 20916 | } >conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20917 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 20918 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20919 | ac_delim='%!_!# ' |
| 20920 | for ac_last_try in false false false false false :; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20921 | . ./conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20922 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20923 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20924 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 20925 | if test $ac_delim_n = $ac_delim_num; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20926 | break |
| 20927 | elif $ac_last_try; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20928 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20929 | else |
| 20930 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20931 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20932 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20933 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20934 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20935 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20936 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20937 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20938 | sed -n ' |
| 20939 | h |
| 20940 | s/^/S["/; s/!.*/"]=/ |
| 20941 | p |
| 20942 | g |
| 20943 | s/^[^!]*!// |
| 20944 | :repl |
| 20945 | t repl |
| 20946 | s/'"$ac_delim"'$// |
| 20947 | t delim |
| 20948 | :nl |
| 20949 | h |
| 20950 | s/\(.\{148\}\)..*/\1/ |
| 20951 | t more1 |
| 20952 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 20953 | p |
| 20954 | n |
| 20955 | b repl |
| 20956 | :more1 |
| 20957 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 20958 | p |
| 20959 | g |
| 20960 | s/.\{148\}// |
| 20961 | t nl |
| 20962 | :delim |
| 20963 | h |
| 20964 | s/\(.\{148\}\)..*/\1/ |
| 20965 | t more2 |
| 20966 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 20967 | p |
| 20968 | b |
| 20969 | :more2 |
| 20970 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 20971 | p |
| 20972 | g |
| 20973 | s/.\{148\}// |
| 20974 | t delim |
| 20975 | ' <conf$$subs.awk | sed ' |
| 20976 | /^[^""]/{ |
| 20977 | N |
| 20978 | s/\n// |
| 20979 | } |
| 20980 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 20981 | rm -f conf$$subs.awk |
| 20982 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20983 | _ACAWK |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20984 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20985 | for (key in S) S_is_set[key] = 1 |
| 20986 | FS = "" |
| 20987 | |
| 20988 | } |
| 20989 | { |
| 20990 | line = $ 0 |
| 20991 | nfields = split(line, field, "@") |
| 20992 | substed = 0 |
| 20993 | len = length(field[1]) |
| 20994 | for (i = 2; i < nfields; i++) { |
| 20995 | key = field[i] |
| 20996 | keylen = length(key) |
| 20997 | if (S_is_set[key]) { |
| 20998 | value = S[key] |
| 20999 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 21000 | len += length(value) + length(field[++i]) |
| 21001 | substed = 1 |
| 21002 | } else |
| 21003 | len += 1 + keylen |
| 21004 | } |
| 21005 | |
| 21006 | print line |
| 21007 | } |
| 21008 | |
| 21009 | _ACAWK |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21010 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21011 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 21012 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 21013 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 21014 | else |
| 21015 | cat |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21016 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21017 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 21018 | _ACEOF |
| 21019 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21020 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 21021 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21022 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21023 | # (actually we leave an empty line to preserve line numbers). |
| 21024 | if test "x$srcdir" = x.; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21025 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 21026 | h |
| 21027 | s/// |
| 21028 | s/^/:/ |
| 21029 | s/[ ]*$/:/ |
| 21030 | s/:\$(srcdir):/:/g |
| 21031 | s/:\${srcdir}:/:/g |
| 21032 | s/:@srcdir@:/:/g |
| 21033 | s/^:*// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21034 | s/:*$// |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21035 | x |
| 21036 | s/\(=[ ]*\).*/\1/ |
| 21037 | G |
| 21038 | s/\n// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21039 | s/^[^=]*=[ ]*$// |
| 21040 | }' |
| 21041 | fi |
| 21042 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21043 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21044 | fi # test -n "$CONFIG_FILES" |
| 21045 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21046 | # Set up the scripts for CONFIG_HEADERS section. |
| 21047 | # No need to generate them if there are no CONFIG_HEADERS. |
| 21048 | # This happens for instance with `./config.status Makefile'. |
| 21049 | if test -n "$CONFIG_HEADERS"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21050 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21051 | BEGIN { |
| 21052 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21053 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21054 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 21055 | # here-document in config.status, that substitutes the proper values into |
| 21056 | # config.h.in to produce config.h. |
| 21057 | |
| 21058 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 21059 | # handling of long lines. |
| 21060 | ac_delim='%!_!# ' |
| 21061 | for ac_last_try in false false :; do |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21062 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 21063 | if test -z "$ac_tt"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21064 | break |
| 21065 | elif $ac_last_try; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21066 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21067 | else |
| 21068 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21069 | fi |
| 21070 | done |
| 21071 | |
| 21072 | # For the awk script, D is an array of macro values keyed by name, |
| 21073 | # likewise P contains macro parameters if any. Preserve backslash |
| 21074 | # newline sequences. |
| 21075 | |
| 21076 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21077 | sed -n ' |
| 21078 | s/.\{148\}/&'"$ac_delim"'/g |
| 21079 | t rset |
| 21080 | :rset |
| 21081 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 21082 | t def |
| 21083 | d |
| 21084 | :def |
| 21085 | s/\\$// |
| 21086 | t bsnl |
| 21087 | s/["\\]/\\&/g |
| 21088 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 21089 | D["\1"]=" \3"/p |
| 21090 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 21091 | d |
| 21092 | :bsnl |
| 21093 | s/["\\]/\\&/g |
| 21094 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 21095 | D["\1"]=" \3\\\\\\n"\\/p |
| 21096 | t cont |
| 21097 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 21098 | t cont |
| 21099 | d |
| 21100 | :cont |
| 21101 | n |
| 21102 | s/.\{148\}/&'"$ac_delim"'/g |
| 21103 | t clear |
| 21104 | :clear |
| 21105 | s/\\$// |
| 21106 | t bsnlc |
| 21107 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 21108 | d |
| 21109 | :bsnlc |
| 21110 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 21111 | b cont |
| 21112 | ' <confdefs.h | sed ' |
| 21113 | s/'"$ac_delim"'/"\\\ |
| 21114 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 21115 | |
| 21116 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 21117 | for (key in D) D_is_set[key] = 1 |
| 21118 | FS = "" |
| 21119 | } |
| 21120 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 21121 | line = \$ 0 |
| 21122 | split(line, arg, " ") |
| 21123 | if (arg[1] == "#") { |
| 21124 | defundef = arg[2] |
| 21125 | mac1 = arg[3] |
| 21126 | } else { |
| 21127 | defundef = substr(arg[1], 2) |
| 21128 | mac1 = arg[2] |
| 21129 | } |
| 21130 | split(mac1, mac2, "(") #) |
| 21131 | macro = mac2[1] |
| 21132 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 21133 | if (D_is_set[macro]) { |
| 21134 | # Preserve the white space surrounding the "#". |
| 21135 | print prefix "define", macro P[macro] D[macro] |
| 21136 | next |
| 21137 | } else { |
| 21138 | # Replace #undef with comments. This is necessary, for example, |
| 21139 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 21140 | # on some systems where configure will not decide to define it. |
| 21141 | if (defundef == "undef") { |
| 21142 | print "/*", prefix defundef, macro, "*/" |
| 21143 | next |
| 21144 | } |
| 21145 | } |
| 21146 | } |
| 21147 | { print } |
| 21148 | _ACAWK |
| 21149 | _ACEOF |
| 21150 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21151 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21152 | fi # test -n "$CONFIG_HEADERS" |
| 21153 | |
| 21154 | |
| 21155 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 21156 | shift |
| 21157 | for ac_tag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21158 | do |
| 21159 | case $ac_tag in |
| 21160 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 21161 | esac |
| 21162 | case $ac_mode$ac_tag in |
| 21163 | :[FHL]*:*);; |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21164 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21165 | :[FH]-) ac_tag=-:-;; |
| 21166 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 21167 | esac |
| 21168 | ac_save_IFS=$IFS |
| 21169 | IFS=: |
| 21170 | set x $ac_tag |
| 21171 | IFS=$ac_save_IFS |
| 21172 | shift |
| 21173 | ac_file=$1 |
| 21174 | shift |
| 21175 | |
| 21176 | case $ac_mode in |
| 21177 | :L) ac_source=$1;; |
| 21178 | :[FH]) |
| 21179 | ac_file_inputs= |
| 21180 | for ac_f |
| 21181 | do |
| 21182 | case $ac_f in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21183 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21184 | *) # Look for the file first in the build tree, then in the source tree |
| 21185 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 21186 | # because $ac_f cannot contain `:'. |
| 21187 | test -f "$ac_f" || |
| 21188 | case $ac_f in |
| 21189 | [\\/$]*) false;; |
| 21190 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 21191 | esac || |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21192 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21193 | esac |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21194 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21195 | as_fn_append ac_file_inputs " '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21196 | done |
| 21197 | |
| 21198 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21199 | # use $as_me), people would be surprised to read: |
| 21200 | # /* config.h. Generated by config.status. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21201 | configure_input='Generated from '` |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21202 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21203 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21204 | if test x"$ac_file" != x-; then |
| 21205 | configure_input="$ac_file. $configure_input" |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 21207 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21208 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21209 | # Neutralize special characters interpreted by sed in replacement strings. |
| 21210 | case $configure_input in #( |
| 21211 | *\&* | *\|* | *\\* ) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21212 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21213 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 21214 | *) ac_sed_conf_input=$configure_input;; |
| 21215 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21216 | |
| 21217 | case $ac_tag in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21218 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 21219 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21220 | esac |
| 21221 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21222 | esac |
| 21223 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21224 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21225 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21226 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21227 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21228 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21229 | printf "%s\n" X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21230 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21231 | s//\1/ |
| 21232 | q |
| 21233 | } |
| 21234 | /^X\(\/\/\)[^/].*/{ |
| 21235 | s//\1/ |
| 21236 | q |
| 21237 | } |
| 21238 | /^X\(\/\/\)$/{ |
| 21239 | s//\1/ |
| 21240 | q |
| 21241 | } |
| 21242 | /^X\(\/\).*/{ |
| 21243 | s//\1/ |
| 21244 | q |
| 21245 | } |
| 21246 | s/.*/./; q'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21247 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21248 | ac_builddir=. |
| 21249 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21250 | case "$ac_dir" in |
| 21251 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21252 | *) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21253 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21254 | # A ".." for each directory in $ac_dir_suffix. |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21255 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21256 | case $ac_top_builddir_sub in |
| 21257 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21258 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21259 | esac ;; |
| 21260 | esac |
| 21261 | ac_abs_top_builddir=$ac_pwd |
| 21262 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21263 | # for backward compatibility: |
| 21264 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21265 | |
| 21266 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21267 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21268 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21269 | ac_top_srcdir=$ac_top_builddir_sub |
| 21270 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21271 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21272 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21273 | ac_top_srcdir=$srcdir |
| 21274 | ac_abs_top_srcdir=$srcdir ;; |
| 21275 | *) # Relative name. |
| 21276 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21277 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21278 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21279 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21280 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21282 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21283 | case $ac_mode in |
| 21284 | :F) |
| 21285 | # |
| 21286 | # CONFIG_FILE |
| 21287 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21288 | |
| 21289 | case $INSTALL in |
| 21290 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21291 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21292 | esac |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 21293 | ac_MKDIR_P=$MKDIR_P |
| 21294 | case $MKDIR_P in |
| 21295 | [\\/$]* | ?:[\\/]* ) ;; |
| 21296 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 21297 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21298 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21299 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21300 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21301 | # If the template does not know about datarootdir, expand it. |
| 21302 | # FIXME: This hack should be removed a few years after 2.60. |
| 21303 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21304 | ac_sed_dataroot=' |
| 21305 | /datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21306 | p |
| 21307 | q |
| 21308 | } |
| 21309 | /@datadir@/p |
| 21310 | /@docdir@/p |
| 21311 | /@infodir@/p |
| 21312 | /@localedir@/p |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21313 | /@mandir@/p' |
| 21314 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21315 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21316 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21317 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21318 | printf "%s\n" "$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] | 21319 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21320 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21321 | ac_datarootdir_hack=' |
| 21322 | s&@datadir@&$datadir&g |
| 21323 | s&@docdir@&$docdir&g |
| 21324 | s&@infodir@&$infodir&g |
| 21325 | s&@localedir@&$localedir&g |
| 21326 | s&@mandir@&$mandir&g |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21327 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21328 | esac |
| 21329 | _ACEOF |
| 21330 | |
| 21331 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21332 | # Shell code in configure.ac might set extrasub. |
| 21333 | # FIXME: do we really want to maintain this feature? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21334 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 21335 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21336 | $extrasub |
| 21337 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21338 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21339 | :t |
| 21340 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21341 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21342 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21343 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21344 | s&@srcdir@&$ac_srcdir&;t t |
| 21345 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21346 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21347 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21348 | s&@builddir@&$ac_builddir&;t t |
| 21349 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21350 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21351 | s&@INSTALL@&$ac_INSTALL&;t t |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 21352 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21353 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21354 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21355 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 21356 | >$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] | 21357 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21358 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21359 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 21360 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 21361 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21362 | { printf "%s\n" "$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] | 21363 | which seems to be undefined. Please make sure it is defined" >&5 |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21364 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21365 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21366 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21367 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21368 | case $ac_file in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21369 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 21370 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21371 | esac \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21372 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21373 | ;; |
| 21374 | :H) |
| 21375 | # |
| 21376 | # CONFIG_HEADER |
| 21377 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21378 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21379 | { |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21380 | printf "%s\n" "/* $configure_input */" >&1 \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21381 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 21382 | } >"$ac_tmp/config.h" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21383 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21384 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 21386 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21387 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21388 | rm -f "$ac_file" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21389 | mv "$ac_tmp/config.h" "$ac_file" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21390 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21391 | fi |
| 21392 | else |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21393 | printf "%s\n" "/* $configure_input */" >&1 \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21394 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21395 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21396 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21397 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21398 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21399 | |
| 21400 | esac |
| 21401 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 21402 | |
| 21403 | case $ac_file$ac_mode in |
| 21404 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; |
| 21405 | |
| 21406 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21407 | done # for ac_tag |
| 21408 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21409 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21410 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21411 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21412 | ac_clean_files=$ac_clean_files_save |
| 21413 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21414 | test $ac_write_fail = 0 || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21415 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21417 | |
| 21418 | # configure is writing to config.log, and then calls config.status. |
| 21419 | # config.status does its own redirection, appending to config.log. |
| 21420 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21421 | # by configure, so config.status won't be able to write to it; its |
| 21422 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21423 | # effectively closing config.log, so it can be properly (re)opened and |
| 21424 | # appended to by config.status. When coming back to configure, we |
| 21425 | # need to make the FD available again. |
| 21426 | if test "$no_create" != yes; then |
| 21427 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21428 | ac_config_status_args= |
| 21429 | test "$silent" = yes && |
| 21430 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21431 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21432 | $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] | 21433 | exec 5>>config.log |
| 21434 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21435 | # would make configure fail if this is the last instruction. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21436 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21437 | fi |
| 21438 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21439 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 21440 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21441 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21442 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 21443 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 21444 | echo "creating Modules/Setup.local" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 21445 | if test ! -f Modules/Setup.local |
| 21446 | then |
| 21447 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 21448 | fi |
| 21449 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 21450 | echo "creating Makefile" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 21451 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 21452 | -s Modules \ |
Antoine Pitrou | 961d54c | 2018-07-16 19:03:03 +0200 | [diff] [blame] | 21453 | Modules/Setup.local $srcdir/Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 21454 | mv config.c Modules |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 21455 | |
| 21456 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then |
| 21457 | echo "" >&6 |
| 21458 | echo "" >&6 |
Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame] | 21459 | 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] | 21460 | echo "please run ./configure --enable-optimizations" >&6 |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 21461 | echo "" >&6 |
| 21462 | echo "" >&6 |
| 21463 | fi |
Pablo Galindo | cc12888 | 2021-03-01 16:47:53 +0000 | [diff] [blame] | 21464 | |