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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 |
Pablo Galindo Salgado | c2e0b13 | 2021-07-30 16:14:28 +0100 | [diff] [blame] | 226 | IFS=$as_save_IFS |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 656 | OPENSSL_RPATH |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 657 | OPENSSL_LDFLAGS |
| 658 | OPENSSL_LIBS |
| 659 | OPENSSL_INCLUDES |
Pablo Galindo Salgado | c2e0b13 | 2021-07-30 16:14:28 +0100 | [diff] [blame] | 660 | PKG_CONFIG |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 661 | ENSUREPIP |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 662 | SRCDIRS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 663 | THREADHEADERS |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 664 | WHEEL_PKG_DIR |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 665 | LIBPL |
| 666 | PY_ENABLE_SHARED |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 667 | PLATLIBDIR |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 668 | BINLIBDEST |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 669 | LIBPYTHON |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 670 | EXT_SUFFIX |
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 671 | ALT_SOABI |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 672 | SOABI |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 673 | LIBC |
| 674 | LIBM |
| 675 | HAVE_GETHOSTBYNAME |
| 676 | HAVE_GETHOSTBYNAME_R |
| 677 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 678 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 679 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 680 | LIBOBJS |
| 681 | TRUE |
| 682 | MACHDEP_OBJS |
| 683 | DYNLOADFILE |
| 684 | DLINCLDIR |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 685 | DTRACE_OBJS |
| 686 | DTRACE_HEADERS |
| 687 | DFLAGS |
| 688 | DTRACE |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 689 | TCLTK_LIBS |
| 690 | TCLTK_INCLUDES |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 691 | LIBFFI_INCLUDEDIR |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 692 | TZPATH |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 693 | SHLIBS |
| 694 | CFLAGSFORSHARED |
| 695 | LINKFORSHARED |
| 696 | CCSHARED |
| 697 | BLDSHARED |
| 698 | LDCXXSHARED |
| 699 | LDSHARED |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 700 | SHLIB_SUFFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 701 | LIBTOOL_CRUFT |
| 702 | OTHER_LIBTOOL_OPT |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 703 | EGREP |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 704 | UNIVERSAL_ARCH_FLAGS |
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 705 | LDFLAGS_NODIST |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 706 | CFLAGS_NODIST |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 707 | BASECFLAGS |
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 708 | CFLAGS_ALIASING |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 709 | OPT |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 710 | LLVM_PROF_FOUND |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 711 | LLVM_PROFDATA |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 712 | LLVM_PROF_ERR |
| 713 | LLVM_PROF_FILE |
| 714 | LLVM_PROF_MERGER |
| 715 | PGO_PROF_USE_FLAG |
| 716 | PGO_PROF_GEN_FLAG |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 717 | LLVM_AR_FOUND |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 718 | LLVM_AR |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 719 | PROFILE_TASK |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 720 | DEF_MAKE_RULE |
| 721 | DEF_MAKE_ALL_RULE |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 722 | ABIFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 723 | LN |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 724 | MKDIR_P |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 725 | INSTALL_DATA |
| 726 | INSTALL_SCRIPT |
| 727 | INSTALL_PROGRAM |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 728 | ac_ct_READELF |
| 729 | READELF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 730 | ARFLAGS |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 731 | ac_ct_AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 732 | AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 733 | GNULD |
Stefan Krah | e6dcd37 | 2020-08-29 17:00:08 +0200 | [diff] [blame] | 734 | EXPORTSFROM |
| 735 | EXPORTSYMS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 736 | LINKCC |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 737 | LDVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 738 | RUNSHARED |
| 739 | INSTSONAME |
| 740 | LDLIBRARYDIR |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 741 | PY3LIBRARY |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 742 | BLDLIBRARY |
| 743 | DLLLIBRARY |
| 744 | LDLIBRARY |
| 745 | LIBRARY |
| 746 | BUILDEXEEXT |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 747 | NO_AS_NEEDED |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 748 | MULTIARCH_CPPFLAGS |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 749 | PLATFORM_TRIPLET |
| 750 | MULTIARCH |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 751 | ac_ct_CXX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 752 | MAINCC |
| 753 | CXX |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 754 | SED |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 755 | GREP |
| 756 | CPP |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 757 | OBJEXT |
| 758 | EXEEXT |
| 759 | ac_ct_CC |
| 760 | CPPFLAGS |
| 761 | LDFLAGS |
| 762 | CFLAGS |
| 763 | CC |
| 764 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 765 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 766 | _PYTHON_HOST_PLATFORM |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 767 | MACHDEP |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 768 | FRAMEWORKINSTALLAPPSPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 769 | FRAMEWORKUNIXTOOLSPREFIX |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 770 | FRAMEWORKPYTHONW |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 771 | FRAMEWORKALTINSTALLLAST |
| 772 | FRAMEWORKALTINSTALLFIRST |
| 773 | FRAMEWORKINSTALLLAST |
| 774 | FRAMEWORKINSTALLFIRST |
| 775 | PYTHONFRAMEWORKINSTALLDIR |
| 776 | PYTHONFRAMEWORKPREFIX |
| 777 | PYTHONFRAMEWORKDIR |
| 778 | PYTHONFRAMEWORKIDENTIFIER |
| 779 | PYTHONFRAMEWORK |
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 780 | LIPO_INTEL64_FLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 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 | ba42175 | 2021-05-03 20:33:17 +0100 | [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 | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 886 | with_openssl_rpath |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 887 | with_ssl_default_suites |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 888 | with_builtin_hashlib_hashes |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 889 | with_experimental_isolated_subinterpreters |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 890 | with_static_libpython |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 891 | enable_test_modules |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 892 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 893 | ac_precious_vars='build_alias |
| 894 | host_alias |
| 895 | target_alias |
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 896 | MACHDEP |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 897 | CC |
| 898 | CFLAGS |
| 899 | LDFLAGS |
| 900 | LIBS |
| 901 | CPPFLAGS |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 902 | CPP |
Pablo Galindo Salgado | c2e0b13 | 2021-07-30 16:14:28 +0100 | [diff] [blame] | 903 | PROFILE_TASK' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 904 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 905 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 906 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 907 | ac_init_help= |
| 908 | ac_init_version=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 909 | ac_unrecognized_opts= |
| 910 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 911 | # The variables have the same names as the options, with |
| 912 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 913 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 914 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 915 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 916 | no_recursion= |
| 917 | prefix=NONE |
| 918 | program_prefix=NONE |
| 919 | program_suffix=NONE |
| 920 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 921 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 922 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 923 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 924 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 925 | x_includes=NONE |
| 926 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 927 | |
| 928 | # Installation directory options. |
| 929 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 930 | # and all the variables that are supposed to be based on exec_prefix |
| 931 | # by default will actually change. |
| 932 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 933 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 934 | bindir='${exec_prefix}/bin' |
| 935 | sbindir='${exec_prefix}/sbin' |
| 936 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 937 | datarootdir='${prefix}/share' |
| 938 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 939 | sysconfdir='${prefix}/etc' |
| 940 | sharedstatedir='${prefix}/com' |
| 941 | localstatedir='${prefix}/var' |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 942 | runstatedir='${localstatedir}/run' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 943 | includedir='${prefix}/include' |
| 944 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 945 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 946 | infodir='${datarootdir}/info' |
| 947 | htmldir='${docdir}' |
| 948 | dvidir='${docdir}' |
| 949 | pdfdir='${docdir}' |
| 950 | psdir='${docdir}' |
| 951 | libdir='${exec_prefix}/lib' |
| 952 | localedir='${datarootdir}/locale' |
| 953 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 954 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 955 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 956 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 957 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 958 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 959 | # If the previous option needs an argument, assign it. |
| 960 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 961 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 962 | ac_prev= |
| 963 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 964 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 965 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 966 | case $ac_option in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 967 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 968 | *=) ac_optarg= ;; |
| 969 | *) ac_optarg=yes ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 970 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 971 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 972 | case $ac_dashdash$ac_option in |
| 973 | --) |
| 974 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 975 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 976 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 977 | ac_prev=bindir ;; |
| 978 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 979 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 980 | |
| 981 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 982 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 983 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 984 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 985 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 986 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 987 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 988 | ac_prev=cache_file ;; |
| 989 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 990 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 991 | cache_file=$ac_optarg ;; |
| 992 | |
| 993 | --config-cache | -C) |
| 994 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 995 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 996 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 997 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 998 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 999 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1000 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1001 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1002 | | --dataroo | --dataro | --datar) |
| 1003 | ac_prev=datarootdir ;; |
| 1004 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1005 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1006 | datarootdir=$ac_optarg ;; |
| 1007 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1008 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1009 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1010 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1011 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1012 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1013 | ac_useropt_orig=$ac_useropt |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1014 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1015 | case $ac_user_opts in |
| 1016 | *" |
| 1017 | "enable_$ac_useropt" |
| 1018 | "*) ;; |
| 1019 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1020 | ac_unrecognized_sep=', ';; |
| 1021 | esac |
| 1022 | eval enable_$ac_useropt=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1023 | |
| 1024 | -docdir | --docdir | --docdi | --doc | --do) |
| 1025 | ac_prev=docdir ;; |
| 1026 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1027 | docdir=$ac_optarg ;; |
| 1028 | |
| 1029 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1030 | ac_prev=dvidir ;; |
| 1031 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1032 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1033 | |
| 1034 | -enable-* | --enable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1035 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1036 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1037 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1038 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1039 | ac_useropt_orig=$ac_useropt |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1040 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1041 | case $ac_user_opts in |
| 1042 | *" |
| 1043 | "enable_$ac_useropt" |
| 1044 | "*) ;; |
| 1045 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1046 | ac_unrecognized_sep=', ';; |
| 1047 | esac |
| 1048 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1049 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1050 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1051 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1052 | | --exec | --exe | --ex) |
| 1053 | ac_prev=exec_prefix ;; |
| 1054 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1055 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1056 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1057 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1058 | |
| 1059 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1060 | # Obsolete; use --with-gas. |
| 1061 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1063 | -help | --help | --hel | --he | -h) |
| 1064 | ac_init_help=long ;; |
| 1065 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1066 | ac_init_help=recursive ;; |
| 1067 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1068 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1069 | |
| 1070 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1071 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1072 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1074 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1075 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1076 | ac_prev=htmldir ;; |
| 1077 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1078 | | --ht=*) |
| 1079 | htmldir=$ac_optarg ;; |
| 1080 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1081 | -includedir | --includedir | --includedi | --included | --include \ |
| 1082 | | --includ | --inclu | --incl | --inc) |
| 1083 | ac_prev=includedir ;; |
| 1084 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1085 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1086 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1087 | |
| 1088 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1089 | ac_prev=infodir ;; |
| 1090 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1091 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1092 | |
| 1093 | -libdir | --libdir | --libdi | --libd) |
| 1094 | ac_prev=libdir ;; |
| 1095 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1096 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1097 | |
| 1098 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1099 | | --libexe | --libex | --libe) |
| 1100 | ac_prev=libexecdir ;; |
| 1101 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1102 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1103 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1104 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1105 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1106 | ac_prev=localedir ;; |
| 1107 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1108 | localedir=$ac_optarg ;; |
| 1109 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1110 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1111 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1112 | ac_prev=localstatedir ;; |
| 1113 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1114 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1115 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1116 | |
| 1117 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1118 | ac_prev=mandir ;; |
| 1119 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1120 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1121 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1122 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1123 | # Obsolete; use --without-fp. |
| 1124 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1125 | |
| 1126 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1127 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1128 | no_create=yes ;; |
| 1129 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1130 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1131 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1132 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1133 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1134 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1135 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1136 | | --oldin | --oldi | --old | --ol | --o) |
| 1137 | ac_prev=oldincludedir ;; |
| 1138 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1139 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1140 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1141 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1142 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1143 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1144 | ac_prev=prefix ;; |
| 1145 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1146 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1147 | |
| 1148 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1149 | | --program-pre | --program-pr | --program-p) |
| 1150 | ac_prev=program_prefix ;; |
| 1151 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1152 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1153 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1154 | |
| 1155 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1156 | | --program-suf | --program-su | --program-s) |
| 1157 | ac_prev=program_suffix ;; |
| 1158 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1159 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1160 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1161 | |
| 1162 | -program-transform-name | --program-transform-name \ |
| 1163 | | --program-transform-nam | --program-transform-na \ |
| 1164 | | --program-transform-n | --program-transform- \ |
| 1165 | | --program-transform | --program-transfor \ |
| 1166 | | --program-transfo | --program-transf \ |
| 1167 | | --program-trans | --program-tran \ |
| 1168 | | --progr-tra | --program-tr | --program-t) |
| 1169 | ac_prev=program_transform_name ;; |
| 1170 | -program-transform-name=* | --program-transform-name=* \ |
| 1171 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1172 | | --program-transform-n=* | --program-transform-=* \ |
| 1173 | | --program-transform=* | --program-transfor=* \ |
| 1174 | | --program-transfo=* | --program-transf=* \ |
| 1175 | | --program-trans=* | --program-tran=* \ |
| 1176 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1177 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1178 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1179 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1180 | ac_prev=pdfdir ;; |
| 1181 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1182 | pdfdir=$ac_optarg ;; |
| 1183 | |
| 1184 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1185 | ac_prev=psdir ;; |
| 1186 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1187 | psdir=$ac_optarg ;; |
| 1188 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1189 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1190 | | -silent | --silent | --silen | --sile | --sil) |
| 1191 | silent=yes ;; |
| 1192 | |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 1193 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1194 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1195 | | --run | --ru | --r) |
| 1196 | ac_prev=runstatedir ;; |
| 1197 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1198 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1199 | | --run=* | --ru=* | --r=*) |
| 1200 | runstatedir=$ac_optarg ;; |
| 1201 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1202 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1203 | ac_prev=sbindir ;; |
| 1204 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1205 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1206 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1207 | |
| 1208 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1209 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1210 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1211 | | --sha | --sh) |
| 1212 | ac_prev=sharedstatedir ;; |
| 1213 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1214 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1215 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1216 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1217 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1218 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1219 | -site | --site | --sit) |
| 1220 | ac_prev=site ;; |
| 1221 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1222 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1223 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1224 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1225 | ac_prev=srcdir ;; |
| 1226 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1227 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1228 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1229 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1230 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1231 | ac_prev=sysconfdir ;; |
| 1232 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1233 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1234 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1235 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1236 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1237 | ac_prev=target_alias ;; |
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 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1240 | |
| 1241 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1242 | verbose=yes ;; |
| 1243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1244 | -version | --version | --versio | --versi | --vers | -V) |
| 1245 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1246 | |
| 1247 | -with-* | --with-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1248 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1249 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1250 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1251 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1252 | ac_useropt_orig=$ac_useropt |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1253 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1254 | case $ac_user_opts in |
| 1255 | *" |
| 1256 | "with_$ac_useropt" |
| 1257 | "*) ;; |
| 1258 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1259 | ac_unrecognized_sep=', ';; |
| 1260 | esac |
| 1261 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1262 | |
| 1263 | -without-* | --without-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1264 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1265 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1266 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1267 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1268 | ac_useropt_orig=$ac_useropt |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1269 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1270 | case $ac_user_opts in |
| 1271 | *" |
| 1272 | "with_$ac_useropt" |
| 1273 | "*) ;; |
| 1274 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1275 | ac_unrecognized_sep=', ';; |
| 1276 | esac |
| 1277 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1278 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1279 | --x) |
| 1280 | # Obsolete; use --with-x. |
| 1281 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1282 | |
| 1283 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1284 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1285 | ac_prev=x_includes ;; |
| 1286 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1287 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1288 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1289 | |
| 1290 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1291 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1292 | ac_prev=x_libraries ;; |
| 1293 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1294 | | --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] | 1295 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1296 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1297 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1298 | Try \`$0 --help' for more information" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1299 | ;; |
| 1300 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1301 | *=*) |
| 1302 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1303 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1304 | case $ac_envvar in #( |
| 1305 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1306 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1307 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1308 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1309 | export $ac_envvar ;; |
| 1310 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1311 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1312 | # FIXME: should be removed in autoconf 3.0. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1313 | 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] | 1314 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1315 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1316 | : "${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] | 1317 | ;; |
| 1318 | |
| 1319 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1320 | done |
| 1321 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1322 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1323 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1324 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1325 | fi |
| 1326 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1327 | if test -n "$ac_unrecognized_opts"; then |
| 1328 | case $enable_option_checking in |
| 1329 | no) ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1330 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1331 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1332 | esac |
| 1333 | fi |
| 1334 | |
| 1335 | # Check all directory arguments for consistency. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1336 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1337 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1338 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 1339 | libdir localedir mandir runstatedir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1340 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1341 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1342 | # Remove trailing slashes. |
| 1343 | case $ac_val in |
| 1344 | */ ) |
| 1345 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1346 | eval $ac_var=\$ac_val;; |
| 1347 | esac |
| 1348 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1349 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1350 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1351 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1352 | esac |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1353 | 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] | 1354 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1356 | # There might be people who depend on the old broken behavior: `$host' |
| 1357 | # used to hold the argument of --host etc. |
| 1358 | # FIXME: To remove some day. |
| 1359 | build=$build_alias |
| 1360 | host=$host_alias |
| 1361 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1363 | # FIXME: To remove some day. |
| 1364 | if test "x$host_alias" != x; then |
| 1365 | if test "x$build_alias" = x; then |
| 1366 | cross_compiling=maybe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1367 | elif test "x$build_alias" != "x$host_alias"; then |
| 1368 | cross_compiling=yes |
| 1369 | fi |
| 1370 | fi |
| 1371 | |
| 1372 | ac_tool_prefix= |
| 1373 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1374 | |
| 1375 | test "$silent" = yes && exec 6>/dev/null |
| 1376 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1377 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1378 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1379 | ac_ls_di=`ls -di .` && |
| 1380 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1381 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1382 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1383 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1384 | |
| 1385 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1386 | # Find the source files, if location was not specified. |
| 1387 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1388 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1389 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1390 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1391 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1392 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1393 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1394 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1395 | printf "%s\n" X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1396 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1397 | s//\1/ |
| 1398 | q |
| 1399 | } |
| 1400 | /^X\(\/\/\)[^/].*/{ |
| 1401 | s//\1/ |
| 1402 | q |
| 1403 | } |
| 1404 | /^X\(\/\/\)$/{ |
| 1405 | s//\1/ |
| 1406 | q |
| 1407 | } |
| 1408 | /^X\(\/\).*/{ |
| 1409 | s//\1/ |
| 1410 | q |
| 1411 | } |
| 1412 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1413 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1414 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1415 | srcdir=.. |
| 1416 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1417 | else |
| 1418 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1419 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1420 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1421 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1422 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1423 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1424 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1425 | ac_abs_confdir=`( |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1426 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1427 | pwd)` |
| 1428 | # When building in place, set srcdir=. |
| 1429 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1430 | srcdir=. |
| 1431 | fi |
| 1432 | # Remove unnecessary trailing slashes from srcdir. |
| 1433 | # Double slashes in file names in object file debugging info |
| 1434 | # mess up M-x gdb in Emacs. |
| 1435 | case $srcdir in |
| 1436 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1437 | esac |
| 1438 | for ac_var in $ac_precious_vars; do |
| 1439 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1440 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1441 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1442 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1443 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1445 | # |
| 1446 | # Report the --help message. |
| 1447 | # |
| 1448 | if test "$ac_init_help" = "long"; then |
| 1449 | # Omit some internal or obsolete options to make the list less imposing. |
| 1450 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1451 | cat <<_ACEOF |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1452 | \`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] | 1453 | |
| 1454 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1455 | |
| 1456 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1457 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1458 | |
| 1459 | Defaults for the options are specified in brackets. |
| 1460 | |
| 1461 | Configuration: |
| 1462 | -h, --help display this help and exit |
| 1463 | --help=short display options specific to this package |
| 1464 | --help=recursive display the short help of all the included packages |
| 1465 | -V, --version display version information and exit |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1466 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1467 | --cache-file=FILE cache test results in FILE [disabled] |
| 1468 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1469 | -n, --no-create do not create output files |
| 1470 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1472 | Installation directories: |
| 1473 | --prefix=PREFIX install architecture-independent files in PREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1474 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1475 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1476 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1477 | |
| 1478 | By default, \`make install' will install all the files in |
| 1479 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1480 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1481 | for instance \`--prefix=\$HOME'. |
| 1482 | |
| 1483 | For better control, use the options below. |
| 1484 | |
| 1485 | Fine tuning of the installation directories: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1486 | --bindir=DIR user executables [EPREFIX/bin] |
| 1487 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1488 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1489 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1490 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1491 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 1492 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1493 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1494 | --includedir=DIR C header files [PREFIX/include] |
| 1495 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1496 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1497 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1498 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1499 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1500 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1501 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1502 | --htmldir=DIR html documentation [DOCDIR] |
| 1503 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1504 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1505 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1506 | _ACEOF |
| 1507 | |
| 1508 | cat <<\_ACEOF |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1509 | |
| 1510 | System types: |
| 1511 | --build=BUILD configure for building on BUILD [guessed] |
| 1512 | --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] | 1513 | _ACEOF |
| 1514 | fi |
| 1515 | |
| 1516 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1517 | case $ac_init_help in |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1518 | short | recursive ) echo "Configuration of python 3.10:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1519 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1520 | cat <<\_ACEOF |
| 1521 | |
| 1522 | Optional Features: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1523 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1524 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1525 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1526 | --enable-universalsdk[=SDKDIR] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1527 | create a universal binary build. SDKDIR specifies |
| 1528 | which macOS SDK should be used to perform the build, |
| 1529 | see Mac/README.rst. (default is no) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1530 | --enable-framework[=INSTALLDIR] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1531 | create a Python.framework rather than a traditional |
| 1532 | Unix install. optional INSTALLDIR specifies the |
| 1533 | installation path. see Mac/README.rst (default is |
| 1534 | no) |
| 1535 | --enable-shared enable building a shared Python library (default is |
| 1536 | no) |
| 1537 | --enable-profiling enable C-level code profiling with gprof (default is |
| 1538 | no) |
| 1539 | --enable-optimizations enable expensive, stable optimizations (PGO, etc.) |
| 1540 | (default is no) |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1541 | --enable-loadable-sqlite-extensions |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1542 | support loadable extensions in _sqlite module, see |
| 1543 | Doc/library/sqlite3.rst (default is no) |
| 1544 | --enable-ipv6 enable ipv6 (with ipv4) support, see |
| 1545 | Doc/library/socket.rst (default is yes if supported) |
| 1546 | --enable-big-digits[=15|30] |
| 1547 | use big digits (30 or 15 bits) for Python longs |
| 1548 | (default is system-dependent)] |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 1549 | --disable-test-modules don't build nor install test modules |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1550 | |
| 1551 | Optional Packages: |
| 1552 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1553 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1554 | --with-universal-archs=ARCH |
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 1555 | specify the kind of macOS universal binary that |
| 1556 | should be created. This option is only valid when |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1557 | --enable-universalsdk is set; options are: |
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 1558 | ("universal2", "intel-64", "intel-32", "intel", |
| 1559 | "32-bit", "64-bit", "3-way", or "all") see |
| 1560 | Mac/README.rst |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1561 | --with-framework-name=FRAMEWORK |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1562 | specify the name for the python framework on macOS |
| 1563 | only valid when --enable-framework is set. see |
| 1564 | Mac/README.rst (default is 'Python') |
| 1565 | --with-cxx-main[=COMPILER] |
| 1566 | compile main() and link Python executable with C++ |
| 1567 | compiler specified in COMPILER (default is $CXX) |
| 1568 | --with-suffix=SUFFIX set executable suffix to SUFFIX (default is '.exe') |
| 1569 | --with-pydebug build with Py_DEBUG defined (default is no) |
Victor Stinner | f4e4703 | 2019-04-25 00:56:28 +0200 | [diff] [blame] | 1570 | --with-trace-refs enable tracing references for debugging purpose |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1571 | (default is no) |
| 1572 | --with-assertions build with C assertions enabled (default is no) |
| 1573 | --with-lto enable Link-Time-Optimization in any build (default |
| 1574 | is no) |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1575 | --with-hash-algorithm=[fnv|siphash24] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1576 | select hash algorithm for use in Python/pyhash.c |
| 1577 | (default is SipHash24) |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 1578 | --with-tzpath=<list of absolute paths separated by pathsep> |
| 1579 | Select the default time zone search path for zoneinfo.TZPATH |
| 1580 | |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1581 | --with-address-sanitizer |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1582 | enable AddressSanitizer memory error detector, |
| 1583 | 'asan' (default is no) |
| 1584 | --with-memory-sanitizer enable MemorySanitizer allocation error detector, |
| 1585 | 'msan' (default is no) |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 1586 | --with-undefined-behavior-sanitizer |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1587 | enable UndefinedBehaviorSanitizer undefined |
| 1588 | behaviour detector, 'ubsan' (default is no) |
| 1589 | --with-libs='lib1 ...' link against additional libs (default is no) |
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1590 | --with-system-expat build pyexpat module using an installed expat |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1591 | library, see Doc/library/pyexpat.rst (default is no) |
| 1592 | --with-system-ffi build _ctypes module using an installed ffi library, |
| 1593 | see Doc/library/ctypes.rst (default is |
| 1594 | system-dependent) |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1595 | --with-system-libmpdec build _decimal module using an installed libmpdec |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1596 | library, see Doc/library/decimal.rst (default is no) |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 1597 | --with-decimal-contextvar |
| 1598 | build _decimal module using a coroutine-local rather |
| 1599 | than a thread-local context (default is yes) |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1600 | --with-tcltk-includes='-I...' |
| 1601 | override search for Tcl and Tk include files |
| 1602 | --with-tcltk-libs='-L...' |
| 1603 | override search for Tcl and Tk libs |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1604 | --with-dbmliborder=db1:db2:... |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1605 | override order to check db backends for dbm; a valid |
| 1606 | value is a colon separated string with the backend |
| 1607 | names `ndbm', `gdbm' and `bdb'. |
| 1608 | --with-doc-strings enable documentation strings (default is yes) |
| 1609 | --with-pymalloc enable specialized mallocs (default is yes) |
| 1610 | --with-c-locale-coercion |
| 1611 | enable C locale coercion to a UTF-8 based locale |
| 1612 | (default is yes) |
| 1613 | --with-valgrind enable Valgrind support (default is no) |
| 1614 | --with-dtrace enable DTrace support (default is no) |
| 1615 | --with-libm=STRING override libm math library to STRING (default is |
| 1616 | system-dependent) |
| 1617 | --with-libc=STRING override libc C library to STRING (default is |
| 1618 | system-dependent) |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 1619 | --with-platlibdir=DIRNAME |
| 1620 | Python library directory name (default is "lib") |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 1621 | --with-wheel-pkg-dir=PATH |
| 1622 | Directory of wheel packages used by ensurepip |
| 1623 | (default: none) |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 1624 | --with(out)-readline[=editline] |
| 1625 | use Editline for backend or disable readline module |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1626 | --with-computed-gotos enable computed gotos in evaluation loop (enabled by |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1627 | default on supported compilers) |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1628 | --with-ensurepip[=install|upgrade|no] |
| 1629 | "install" or "upgrade" using bundled pip (default is |
| 1630 | upgrade) |
Christian Heimes | 5d6e8c1 | 2021-03-27 14:44:04 +0100 | [diff] [blame] | 1631 | --with-openssl=DIR root of the OpenSSL directory |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 1632 | --with-openssl-rpath=[DIR|auto|no] |
| 1633 | Set runtime library directory (rpath) for OpenSSL |
| 1634 | libraries, no (default): don't set rpath, auto: |
| 1635 | auto-detect rpath from --with-openssl and |
| 1636 | pkg-config, DIR: set an explicit rpath |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 1637 | --with-ssl-default-suites=[python|openssl|STRING] |
Anthony Shaw | 2de064e | 2020-01-14 17:40:10 +1100 | [diff] [blame] | 1638 | override default cipher suites string, python: use |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 1639 | Python's preferred selection (default), openssl: |
| 1640 | leave OpenSSL's defaults untouched, STRING: use a |
Christian Heimes | e983252 | 2021-05-01 20:53:10 +0200 | [diff] [blame] | 1641 | custom string, python and STRING also set TLS 1.2 as |
| 1642 | minimum TLS version |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 1643 | --with-builtin-hashlib-hashes=md5,sha1,sha256,sha512,sha3,blake2 |
| 1644 | builtin hash modules, md5, sha1, sha256, sha512, |
| 1645 | sha3 (with shake), blake2 |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 1646 | --with-experimental-isolated-subinterpreters |
| 1647 | better isolate subinterpreters, experimental build |
| 1648 | mode (default is no) |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 1649 | --without-static-libpython |
| 1650 | do not build libpythonMAJOR.MINOR.a and do not |
| 1651 | install python.o (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1652 | |
| 1653 | Some influential environment variables: |
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1654 | MACHDEP name for machine-dependent library files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1655 | CC C compiler command |
| 1656 | CFLAGS C compiler flags |
| 1657 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1658 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1659 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1660 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1661 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1662 | CPP C preprocessor |
Neil Schemenauer | 4e16a4a | 2019-07-22 12:54:25 -0700 | [diff] [blame] | 1663 | PROFILE_TASK |
| 1664 | Python args for PGO generation task |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1665 | |
| 1666 | Use these variables to override the choices made by `configure' or to help |
| 1667 | it to find libraries and programs with nonstandard names/locations. |
| 1668 | |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1669 | Report bugs to <https://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1670 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1671 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1672 | fi |
| 1673 | |
| 1674 | if test "$ac_init_help" = "recursive"; then |
| 1675 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1676 | 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] | 1677 | test -d "$ac_dir" || |
| 1678 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1679 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1680 | ac_builddir=. |
| 1681 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1682 | case "$ac_dir" in |
| 1683 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1684 | *) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1685 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1686 | # A ".." for each directory in $ac_dir_suffix. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1687 | 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] | 1688 | case $ac_top_builddir_sub in |
| 1689 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1690 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1691 | esac ;; |
| 1692 | esac |
| 1693 | ac_abs_top_builddir=$ac_pwd |
| 1694 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1695 | # for backward compatibility: |
| 1696 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1697 | |
| 1698 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1699 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1700 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1701 | ac_top_srcdir=$ac_top_builddir_sub |
| 1702 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1703 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1704 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1705 | ac_top_srcdir=$srcdir |
| 1706 | ac_abs_top_srcdir=$srcdir ;; |
| 1707 | *) # Relative name. |
| 1708 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1709 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1710 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1711 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1712 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1713 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1714 | cd "$ac_dir" || { ac_status=$?; continue; } |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1715 | # Check for configure.gnu first; this name is used for a wrapper for |
| 1716 | # Metaconfig's "Configure" on case-insensitive file systems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1717 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1718 | echo && |
| 1719 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1720 | elif test -f "$ac_srcdir/configure"; then |
| 1721 | echo && |
| 1722 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1723 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1724 | 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] | 1725 | fi || ac_status=$? |
| 1726 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1727 | done |
| 1728 | fi |
| 1729 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1730 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1731 | if $ac_init_version; then |
| 1732 | cat <<\_ACEOF |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 1733 | python configure 3.10 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1734 | generated by GNU Autoconf 2.71 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1735 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1736 | Copyright (C) 2021 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1737 | This configure script is free software; the Free Software Foundation |
| 1738 | gives unlimited permission to copy, distribute and modify it. |
| 1739 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1740 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1741 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1742 | |
| 1743 | ## ------------------------ ## |
| 1744 | ## Autoconf initialization. ## |
| 1745 | ## ------------------------ ## |
| 1746 | |
| 1747 | # ac_fn_c_try_compile LINENO |
| 1748 | # -------------------------- |
| 1749 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1750 | ac_fn_c_try_compile () |
| 1751 | { |
| 1752 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1753 | rm -f conftest.$ac_objext conftest.beam |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1754 | if { { ac_try="$ac_compile" |
| 1755 | case "(($ac_try" in |
| 1756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1757 | *) ac_try_echo=$ac_try;; |
| 1758 | esac |
| 1759 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1760 | printf "%s\n" "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1761 | (eval "$ac_compile") 2>conftest.err |
| 1762 | ac_status=$? |
| 1763 | if test -s conftest.err; then |
| 1764 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1765 | cat conftest.er1 >&5 |
| 1766 | mv -f conftest.er1 conftest.err |
| 1767 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1768 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1769 | test $ac_status = 0; } && { |
| 1770 | test -z "$ac_c_werror_flag" || |
| 1771 | test ! -s conftest.err |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1772 | } && test -s conftest.$ac_objext |
| 1773 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1774 | ac_retval=0 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1775 | else $as_nop |
| 1776 | printf "%s\n" "$as_me: failed program was:" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1778 | |
| 1779 | ac_retval=1 |
| 1780 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1781 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1782 | as_fn_set_status $ac_retval |
| 1783 | |
| 1784 | } # ac_fn_c_try_compile |
| 1785 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1786 | # ac_fn_c_try_cpp LINENO |
| 1787 | # ---------------------- |
| 1788 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1789 | ac_fn_c_try_cpp () |
| 1790 | { |
| 1791 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1792 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1793 | case "(($ac_try" in |
| 1794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1795 | *) ac_try_echo=$ac_try;; |
| 1796 | esac |
| 1797 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1798 | printf "%s\n" "$ac_try_echo"; } >&5 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1799 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1800 | ac_status=$? |
| 1801 | if test -s conftest.err; then |
| 1802 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1803 | cat conftest.er1 >&5 |
| 1804 | mv -f conftest.er1 conftest.err |
| 1805 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1806 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1807 | test $ac_status = 0; } > conftest.i && { |
| 1808 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1809 | test ! -s conftest.err |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1810 | } |
| 1811 | then : |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1812 | ac_retval=0 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1813 | else $as_nop |
| 1814 | printf "%s\n" "$as_me: failed program was:" >&5 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1816 | |
| 1817 | ac_retval=1 |
| 1818 | fi |
| 1819 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1820 | as_fn_set_status $ac_retval |
| 1821 | |
| 1822 | } # ac_fn_c_try_cpp |
| 1823 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1824 | # ac_fn_c_try_link LINENO |
| 1825 | # ----------------------- |
| 1826 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1827 | ac_fn_c_try_link () |
| 1828 | { |
| 1829 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1830 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1831 | if { { ac_try="$ac_link" |
| 1832 | case "(($ac_try" in |
| 1833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1834 | *) ac_try_echo=$ac_try;; |
| 1835 | esac |
| 1836 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1837 | printf "%s\n" "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1838 | (eval "$ac_link") 2>conftest.err |
| 1839 | ac_status=$? |
| 1840 | if test -s conftest.err; then |
| 1841 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1842 | cat conftest.er1 >&5 |
| 1843 | mv -f conftest.er1 conftest.err |
| 1844 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1845 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1846 | test $ac_status = 0; } && { |
| 1847 | test -z "$ac_c_werror_flag" || |
| 1848 | test ! -s conftest.err |
| 1849 | } && test -s conftest$ac_exeext && { |
| 1850 | test "$cross_compiling" = yes || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1851 | test -x conftest$ac_exeext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1852 | } |
| 1853 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1854 | ac_retval=0 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1855 | else $as_nop |
| 1856 | printf "%s\n" "$as_me: failed program was:" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1858 | |
| 1859 | ac_retval=1 |
| 1860 | fi |
| 1861 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1862 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1863 | # interfere with the next link command; also delete a directory that is |
| 1864 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1865 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1866 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1867 | as_fn_set_status $ac_retval |
| 1868 | |
| 1869 | } # ac_fn_c_try_link |
| 1870 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1871 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1872 | # ------------------------------------------------------- |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1873 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1874 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1875 | ac_fn_c_check_header_compile () |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1876 | { |
| 1877 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1878 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1879 | printf %s "checking for $2... " >&6; } |
| 1880 | if eval test \${$3+y} |
| 1881 | then : |
| 1882 | printf %s "(cached) " >&6 |
| 1883 | else $as_nop |
| 1884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1885 | /* end confdefs.h. */ |
| 1886 | $4 |
| 1887 | #include <$2> |
| 1888 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1889 | if ac_fn_c_try_compile "$LINENO" |
| 1890 | then : |
| 1891 | eval "$3=yes" |
| 1892 | else $as_nop |
| 1893 | eval "$3=no" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1894 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1895 | 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] | 1896 | fi |
| 1897 | eval ac_res=\$$3 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1898 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1899 | printf "%s\n" "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1900 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1901 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1902 | } # ac_fn_c_check_header_compile |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1903 | |
| 1904 | # ac_fn_c_try_run LINENO |
| 1905 | # ---------------------- |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1906 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 1907 | # executables *can* be run. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1908 | ac_fn_c_try_run () |
| 1909 | { |
| 1910 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1911 | if { { ac_try="$ac_link" |
| 1912 | case "(($ac_try" in |
| 1913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1914 | *) ac_try_echo=$ac_try;; |
| 1915 | esac |
| 1916 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1917 | printf "%s\n" "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1918 | (eval "$ac_link") 2>&5 |
| 1919 | ac_status=$? |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1920 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1921 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1922 | { { case "(($ac_try" in |
| 1923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1924 | *) ac_try_echo=$ac_try;; |
| 1925 | esac |
| 1926 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1927 | printf "%s\n" "$ac_try_echo"; } >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1928 | (eval "$ac_try") 2>&5 |
| 1929 | ac_status=$? |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1930 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1931 | test $ac_status = 0; }; } |
| 1932 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1933 | ac_retval=0 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1934 | else $as_nop |
| 1935 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 1936 | printf "%s\n" "$as_me: failed program was:" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1938 | |
| 1939 | ac_retval=$ac_status |
| 1940 | fi |
| 1941 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1942 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1943 | as_fn_set_status $ac_retval |
| 1944 | |
| 1945 | } # ac_fn_c_try_run |
| 1946 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1947 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1948 | # ------------------------------------------- |
| 1949 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1950 | # variable VAR accordingly. |
| 1951 | ac_fn_c_check_type () |
| 1952 | { |
| 1953 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1954 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1955 | printf %s "checking for $2... " >&6; } |
| 1956 | if eval test \${$3+y} |
| 1957 | then : |
| 1958 | printf %s "(cached) " >&6 |
| 1959 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1960 | eval "$3=no" |
| 1961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1962 | /* end confdefs.h. */ |
| 1963 | $4 |
| 1964 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1965 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1966 | { |
| 1967 | if (sizeof ($2)) |
| 1968 | return 0; |
| 1969 | ; |
| 1970 | return 0; |
| 1971 | } |
| 1972 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1973 | if ac_fn_c_try_compile "$LINENO" |
| 1974 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1976 | /* end confdefs.h. */ |
| 1977 | $4 |
| 1978 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1979 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1980 | { |
| 1981 | if (sizeof (($2))) |
| 1982 | return 0; |
| 1983 | ; |
| 1984 | return 0; |
| 1985 | } |
| 1986 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1987 | if ac_fn_c_try_compile "$LINENO" |
| 1988 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1989 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1990 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1991 | eval "$3=yes" |
| 1992 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1993 | 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] | 1994 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1995 | 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] | 1996 | fi |
| 1997 | eval ac_res=\$$3 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 1998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1999 | printf "%s\n" "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2000 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2001 | |
| 2002 | } # ac_fn_c_check_type |
| 2003 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2004 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2005 | # -------------------------------------------- |
| 2006 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2007 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2008 | # computed |
| 2009 | ac_fn_c_compute_int () |
| 2010 | { |
| 2011 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2012 | if test "$cross_compiling" = yes; then |
| 2013 | # Depending upon the size, compute the lo and hi bounds. |
| 2014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2015 | /* end confdefs.h. */ |
| 2016 | $4 |
| 2017 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2018 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2019 | { |
| 2020 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2021 | test_array [0] = 0; |
| 2022 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2023 | |
| 2024 | ; |
| 2025 | return 0; |
| 2026 | } |
| 2027 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2028 | if ac_fn_c_try_compile "$LINENO" |
| 2029 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2030 | ac_lo=0 ac_mid=0 |
| 2031 | while :; do |
| 2032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2033 | /* end confdefs.h. */ |
| 2034 | $4 |
| 2035 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2036 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2037 | { |
| 2038 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2039 | test_array [0] = 0; |
| 2040 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2041 | |
| 2042 | ; |
| 2043 | return 0; |
| 2044 | } |
| 2045 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2046 | if ac_fn_c_try_compile "$LINENO" |
| 2047 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2048 | ac_hi=$ac_mid; break |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2049 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2050 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2051 | if test $ac_lo -le $ac_mid; then |
| 2052 | ac_lo= ac_hi= |
| 2053 | break |
| 2054 | fi |
| 2055 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2056 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2057 | 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] | 2058 | done |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2059 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2061 | /* end confdefs.h. */ |
| 2062 | $4 |
| 2063 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2064 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2065 | { |
| 2066 | static int test_array [1 - 2 * !(($2) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2067 | test_array [0] = 0; |
| 2068 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2069 | |
| 2070 | ; |
| 2071 | return 0; |
| 2072 | } |
| 2073 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2074 | if ac_fn_c_try_compile "$LINENO" |
| 2075 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2076 | ac_hi=-1 ac_mid=-1 |
| 2077 | while :; do |
| 2078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2079 | /* end confdefs.h. */ |
| 2080 | $4 |
| 2081 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2082 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2083 | { |
| 2084 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2085 | test_array [0] = 0; |
| 2086 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2087 | |
| 2088 | ; |
| 2089 | return 0; |
| 2090 | } |
| 2091 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2092 | if ac_fn_c_try_compile "$LINENO" |
| 2093 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2094 | ac_lo=$ac_mid; break |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2095 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2096 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2097 | if test $ac_mid -le $ac_hi; then |
| 2098 | ac_lo= ac_hi= |
| 2099 | break |
| 2100 | fi |
| 2101 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2102 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2103 | 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] | 2104 | done |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2105 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2106 | ac_lo= ac_hi= |
| 2107 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2108 | 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] | 2109 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2110 | 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] | 2111 | # Binary search between lo and hi bounds. |
| 2112 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2113 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2115 | /* end confdefs.h. */ |
| 2116 | $4 |
| 2117 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2118 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2119 | { |
| 2120 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2121 | test_array [0] = 0; |
| 2122 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2123 | |
| 2124 | ; |
| 2125 | return 0; |
| 2126 | } |
| 2127 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2128 | if ac_fn_c_try_compile "$LINENO" |
| 2129 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2130 | ac_hi=$ac_mid |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2131 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2132 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2133 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2134 | 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] | 2135 | done |
| 2136 | case $ac_lo in #(( |
| 2137 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2138 | '') ac_retval=1 ;; |
| 2139 | esac |
| 2140 | else |
| 2141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2142 | /* end confdefs.h. */ |
| 2143 | $4 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2144 | static long int longval (void) { return $2; } |
| 2145 | static unsigned long int ulongval (void) { return $2; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2146 | #include <stdio.h> |
| 2147 | #include <stdlib.h> |
| 2148 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2149 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2150 | { |
| 2151 | |
| 2152 | FILE *f = fopen ("conftest.val", "w"); |
| 2153 | if (! f) |
| 2154 | return 1; |
| 2155 | if (($2) < 0) |
| 2156 | { |
| 2157 | long int i = longval (); |
| 2158 | if (i != ($2)) |
| 2159 | return 1; |
| 2160 | fprintf (f, "%ld", i); |
| 2161 | } |
| 2162 | else |
| 2163 | { |
| 2164 | unsigned long int i = ulongval (); |
| 2165 | if (i != ($2)) |
| 2166 | return 1; |
| 2167 | fprintf (f, "%lu", i); |
| 2168 | } |
| 2169 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2170 | on some platforms. */ |
| 2171 | return ferror (f) || fclose (f) != 0; |
| 2172 | |
| 2173 | ; |
| 2174 | return 0; |
| 2175 | } |
| 2176 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2177 | if ac_fn_c_try_run "$LINENO" |
| 2178 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2179 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2180 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2181 | ac_retval=1 |
| 2182 | fi |
| 2183 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2184 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2185 | rm -f conftest.val |
| 2186 | |
| 2187 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2188 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2189 | as_fn_set_status $ac_retval |
| 2190 | |
| 2191 | } # ac_fn_c_compute_int |
| 2192 | |
| 2193 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2194 | # ---------------------------------- |
| 2195 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2196 | ac_fn_c_check_func () |
| 2197 | { |
| 2198 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2200 | printf %s "checking for $2... " >&6; } |
| 2201 | if eval test \${$3+y} |
| 2202 | then : |
| 2203 | printf %s "(cached) " >&6 |
| 2204 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2206 | /* end confdefs.h. */ |
| 2207 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2208 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2209 | #define $2 innocuous_$2 |
| 2210 | |
| 2211 | /* System header to define __stub macros and hopefully few prototypes, |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2212 | which can conflict with char $2 (); below. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2213 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2214 | #include <limits.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2215 | #undef $2 |
| 2216 | |
| 2217 | /* Override any GCC internal prototype to avoid an error. |
| 2218 | Use char because int might match the return type of a GCC |
| 2219 | builtin and then its argument prototype would still apply. */ |
| 2220 | #ifdef __cplusplus |
| 2221 | extern "C" |
| 2222 | #endif |
| 2223 | char $2 (); |
| 2224 | /* The GNU C library defines this for functions which it implements |
| 2225 | to always fail with ENOSYS. Some functions are actually named |
| 2226 | something starting with __ and the normal name is an alias. */ |
| 2227 | #if defined __stub_$2 || defined __stub___$2 |
| 2228 | choke me |
| 2229 | #endif |
| 2230 | |
| 2231 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2232 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2233 | { |
| 2234 | return $2 (); |
| 2235 | ; |
| 2236 | return 0; |
| 2237 | } |
| 2238 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2239 | if ac_fn_c_try_link "$LINENO" |
| 2240 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2241 | eval "$3=yes" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2242 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2243 | eval "$3=no" |
| 2244 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2245 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2246 | conftest$ac_exeext conftest.$ac_ext |
| 2247 | fi |
| 2248 | eval ac_res=\$$3 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2250 | printf "%s\n" "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2251 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2252 | |
| 2253 | } # ac_fn_c_check_func |
| 2254 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2255 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
| 2256 | # ------------------------------------------------------------------ |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2257 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2258 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
| 2259 | ac_fn_check_decl () |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2260 | { |
| 2261 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2262 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2263 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2264 | printf %s "checking whether $as_decl_name is declared... " >&6; } |
| 2265 | if eval test \${$3+y} |
| 2266 | then : |
| 2267 | printf %s "(cached) " >&6 |
| 2268 | else $as_nop |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2269 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2270 | eval ac_save_FLAGS=\$$6 |
| 2271 | as_fn_append $6 " $5" |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2273 | /* end confdefs.h. */ |
| 2274 | $4 |
| 2275 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2276 | main (void) |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2277 | { |
| 2278 | #ifndef $as_decl_name |
| 2279 | #ifdef __cplusplus |
| 2280 | (void) $as_decl_use; |
| 2281 | #else |
| 2282 | (void) $as_decl_name; |
| 2283 | #endif |
| 2284 | #endif |
| 2285 | |
| 2286 | ; |
| 2287 | return 0; |
| 2288 | } |
| 2289 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2290 | if ac_fn_c_try_compile "$LINENO" |
| 2291 | then : |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2292 | eval "$3=yes" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2293 | else $as_nop |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2294 | eval "$3=no" |
| 2295 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2296 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2297 | eval $6=\$ac_save_FLAGS |
| 2298 | |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2299 | fi |
| 2300 | eval ac_res=\$$3 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2302 | printf "%s\n" "$ac_res" >&6; } |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2303 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2304 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2305 | } # ac_fn_check_decl |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2306 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2307 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2308 | # ---------------------------------------------------- |
| 2309 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2310 | # INCLUDES, setting cache variable VAR accordingly. |
| 2311 | ac_fn_c_check_member () |
| 2312 | { |
| 2313 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2314 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2315 | printf %s "checking for $2.$3... " >&6; } |
| 2316 | if eval test \${$4+y} |
| 2317 | then : |
| 2318 | printf %s "(cached) " >&6 |
| 2319 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2321 | /* end confdefs.h. */ |
| 2322 | $5 |
| 2323 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2324 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2325 | { |
| 2326 | static $2 ac_aggr; |
| 2327 | if (ac_aggr.$3) |
| 2328 | return 0; |
| 2329 | ; |
| 2330 | return 0; |
| 2331 | } |
| 2332 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2333 | if ac_fn_c_try_compile "$LINENO" |
| 2334 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2335 | eval "$4=yes" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2336 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2338 | /* end confdefs.h. */ |
| 2339 | $5 |
| 2340 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2341 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2342 | { |
| 2343 | static $2 ac_aggr; |
| 2344 | if (sizeof ac_aggr.$3) |
| 2345 | return 0; |
| 2346 | ; |
| 2347 | return 0; |
| 2348 | } |
| 2349 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2350 | if ac_fn_c_try_compile "$LINENO" |
| 2351 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2352 | eval "$4=yes" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2353 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2354 | eval "$4=no" |
| 2355 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2356 | 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] | 2357 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2358 | 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] | 2359 | fi |
| 2360 | eval ac_res=\$$4 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2362 | printf "%s\n" "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2363 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2364 | |
| 2365 | } # ac_fn_c_check_member |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2366 | ac_configure_args_raw= |
| 2367 | for ac_arg |
| 2368 | do |
| 2369 | case $ac_arg in |
| 2370 | *\'*) |
| 2371 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2372 | esac |
| 2373 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 2374 | done |
| 2375 | |
| 2376 | case $ac_configure_args_raw in |
| 2377 | *$as_nl*) |
| 2378 | ac_safe_unquote= ;; |
| 2379 | *) |
| 2380 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2381 | ac_unsafe_a="$ac_unsafe_z#~" |
| 2382 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2383 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2384 | esac |
| 2385 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2386 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2387 | This file contains any messages produced by compilers while |
| 2388 | running configure, to aid debugging if configure makes a mistake. |
| 2389 | |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 2390 | It was created by python $as_me 3.10, which was |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2391 | generated by GNU Autoconf 2.71. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2392 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2393 | $ $0$ac_configure_args_raw |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2394 | |
| 2395 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2396 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2397 | { |
| 2398 | cat <<_ASUNAME |
| 2399 | ## --------- ## |
| 2400 | ## Platform. ## |
| 2401 | ## --------- ## |
| 2402 | |
| 2403 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2404 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2405 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2406 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2407 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2408 | |
| 2409 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2410 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2411 | |
| 2412 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2413 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2414 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2415 | /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] | 2416 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2417 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2418 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2419 | |
| 2420 | _ASUNAME |
| 2421 | |
| 2422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2423 | for as_dir in $PATH |
| 2424 | do |
| 2425 | IFS=$as_save_IFS |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2426 | case $as_dir in #((( |
| 2427 | '') as_dir=./ ;; |
| 2428 | */) ;; |
| 2429 | *) as_dir=$as_dir/ ;; |
| 2430 | esac |
| 2431 | printf "%s\n" "PATH: $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2432 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2433 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2434 | |
| 2435 | } >&5 |
| 2436 | |
| 2437 | cat >&5 <<_ACEOF |
| 2438 | |
| 2439 | |
| 2440 | ## ----------- ## |
| 2441 | ## Core tests. ## |
| 2442 | ## ----------- ## |
| 2443 | |
| 2444 | _ACEOF |
| 2445 | |
| 2446 | |
| 2447 | # Keep a trace of the command line. |
| 2448 | # 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] | 2449 | # 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] | 2450 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2451 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2453 | ac_configure_args0= |
| 2454 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2455 | ac_must_keep_next=false |
| 2456 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2457 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2458 | for ac_arg |
| 2459 | do |
| 2460 | case $ac_arg in |
| 2461 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2462 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2463 | | -silent | --silent | --silen | --sile | --sil) |
| 2464 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2465 | *\'*) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2466 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2467 | esac |
| 2468 | case $ac_pass in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2469 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2470 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2471 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2472 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2473 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2474 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2475 | case $ac_arg in |
| 2476 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2477 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2478 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2479 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2480 | case "$ac_configure_args0 " in |
| 2481 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2482 | esac |
| 2483 | ;; |
| 2484 | -* ) ac_must_keep_next=true ;; |
| 2485 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2486 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2487 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2488 | ;; |
| 2489 | esac |
| 2490 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2491 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2492 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2493 | { ac_configure_args1=; unset ac_configure_args1;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2494 | |
| 2495 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2496 | # config.log. We remove comments because anyway the quotes in there |
| 2497 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2498 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2499 | # 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] | 2500 | trap 'exit_status=$? |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2501 | # Sanitize IFS. |
| 2502 | IFS=" "" $as_nl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 | # Save into config.log some information that might help in debugging. |
| 2504 | { |
| 2505 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2506 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2507 | printf "%s\n" "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2508 | ## Cache variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2509 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2510 | echo |
| 2511 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2512 | ( |
| 2513 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2514 | eval ac_val=\$$ac_var |
| 2515 | case $ac_val in #( |
| 2516 | *${as_nl}*) |
| 2517 | case $ac_var in #( |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2518 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2519 | 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] | 2520 | esac |
| 2521 | case $ac_var in #( |
| 2522 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2523 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2524 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2525 | esac ;; |
| 2526 | esac |
| 2527 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2528 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2529 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2530 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2532 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2533 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2534 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2535 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2536 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2537 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2538 | esac | |
| 2539 | sort |
| 2540 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2541 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2542 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2543 | printf "%s\n" "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2544 | ## Output variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2545 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2546 | echo |
| 2547 | for ac_var in $ac_subst_vars |
| 2548 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2549 | eval ac_val=\$$ac_var |
| 2550 | case $ac_val in |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2551 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2552 | esac |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2553 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2554 | done | sort |
| 2555 | echo |
| 2556 | |
| 2557 | if test -n "$ac_subst_files"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2558 | printf "%s\n" "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2559 | ## File substitutions. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2560 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2561 | echo |
| 2562 | for ac_var in $ac_subst_files |
| 2563 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2564 | eval ac_val=\$$ac_var |
| 2565 | case $ac_val in |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2566 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2567 | esac |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2568 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2569 | done | sort |
| 2570 | echo |
| 2571 | fi |
| 2572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2573 | if test -s confdefs.h; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2574 | printf "%s\n" "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2575 | ## confdefs.h. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2576 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2577 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2578 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2579 | echo |
| 2580 | fi |
| 2581 | test "$ac_signal" != 0 && |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2582 | printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2583 | printf "%s\n" "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2584 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2585 | rm -f core *.core core.conftest.* && |
| 2586 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2587 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2588 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2589 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2590 | 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] | 2591 | done |
| 2592 | ac_signal=0 |
| 2593 | |
| 2594 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2595 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2596 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2597 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2599 | # Predefined preprocessor variables. |
| 2600 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2601 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2602 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2603 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2604 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2605 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2606 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2607 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2608 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2609 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2611 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2613 | |
| 2614 | # 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] | 2615 | # Prefer an explicitly selected file to automatically selected ones. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2616 | if test -n "$CONFIG_SITE"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2617 | ac_site_files="$CONFIG_SITE" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2618 | elif test "x$prefix" != xNONE; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2619 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2620 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2621 | 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] | 2622 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2623 | |
| 2624 | for ac_site_file in $ac_site_files |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2625 | do |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2626 | case $ac_site_file in #( |
| 2627 | */*) : |
| 2628 | ;; #( |
| 2629 | *) : |
| 2630 | ac_site_file=./$ac_site_file ;; |
| 2631 | esac |
| 2632 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2633 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2634 | 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] | 2635 | sed 's/^/| /' "$ac_site_file" >&5 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2636 | . "$ac_site_file" \ |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2637 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2638 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2639 | as_fn_error $? "failed to load site script $ac_site_file |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2640 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2641 | fi |
| 2642 | done |
| 2643 | |
| 2644 | if test -r "$cache_file"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2645 | # Some versions of bash will fail to source /dev/null (special files |
| 2646 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2647 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2648 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2649 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2650 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2651 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2652 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2653 | esac |
| 2654 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2655 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2656 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2657 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2658 | >$cache_file |
| 2659 | fi |
| 2660 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 2661 | # Test code for whether the C compiler supports C89 (global declarations) |
| 2662 | ac_c_conftest_c89_globals=' |
| 2663 | /* Does the compiler advertise C89 conformance? |
| 2664 | Do not test the value of __STDC__, because some compilers set it to 0 |
| 2665 | while being otherwise adequately conformant. */ |
| 2666 | #if !defined __STDC__ |
| 2667 | # error "Compiler does not advertise C89 conformance" |
| 2668 | #endif |
| 2669 | |
| 2670 | #include <stddef.h> |
| 2671 | #include <stdarg.h> |
| 2672 | struct stat; |
| 2673 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2674 | struct buf { int x; }; |
| 2675 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2676 | static char *e (p, i) |
| 2677 | char **p; |
| 2678 | int i; |
| 2679 | { |
| 2680 | return p[i]; |
| 2681 | } |
| 2682 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2683 | { |
| 2684 | char *s; |
| 2685 | va_list v; |
| 2686 | va_start (v,p); |
| 2687 | s = g (p, va_arg (v,int)); |
| 2688 | va_end (v); |
| 2689 | return s; |
| 2690 | } |
| 2691 | |
| 2692 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2693 | function prototypes and stuff, but not \xHH hex character constants. |
| 2694 | These do not provoke an error unfortunately, instead are silently treated |
| 2695 | as an "x". The following induces an error, until -std is added to get |
| 2696 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2697 | array size at least. It is necessary to write \x00 == 0 to get something |
| 2698 | that is true only with -std. */ |
| 2699 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2700 | |
| 2701 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2702 | inside strings and character constants. */ |
| 2703 | #define FOO(x) '\''x'\'' |
| 2704 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2705 | |
| 2706 | int test (int i, double x); |
| 2707 | struct s1 {int (*f) (int a);}; |
| 2708 | struct s2 {int (*f) (double a);}; |
| 2709 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2710 | int, int);' |
| 2711 | |
| 2712 | # Test code for whether the C compiler supports C89 (body of main). |
| 2713 | ac_c_conftest_c89_main=' |
| 2714 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2715 | ' |
| 2716 | |
| 2717 | # Test code for whether the C compiler supports C99 (global declarations) |
| 2718 | ac_c_conftest_c99_globals=' |
| 2719 | // Does the compiler advertise C99 conformance? |
| 2720 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2721 | # error "Compiler does not advertise C99 conformance" |
| 2722 | #endif |
| 2723 | |
| 2724 | #include <stdbool.h> |
| 2725 | extern int puts (const char *); |
| 2726 | extern int printf (const char *, ...); |
| 2727 | extern int dprintf (int, const char *, ...); |
| 2728 | extern void *malloc (size_t); |
| 2729 | |
| 2730 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2731 | // dprintf is used instead of fprintf to avoid needing to declare |
| 2732 | // FILE and stderr. |
| 2733 | #define debug(...) dprintf (2, __VA_ARGS__) |
| 2734 | #define showlist(...) puts (#__VA_ARGS__) |
| 2735 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2736 | static void |
| 2737 | test_varargs_macros (void) |
| 2738 | { |
| 2739 | int x = 1234; |
| 2740 | int y = 5678; |
| 2741 | debug ("Flag"); |
| 2742 | debug ("X = %d\n", x); |
| 2743 | showlist (The first, second, and third items.); |
| 2744 | report (x>y, "x is %d but y is %d", x, y); |
| 2745 | } |
| 2746 | |
| 2747 | // Check long long types. |
| 2748 | #define BIG64 18446744073709551615ull |
| 2749 | #define BIG32 4294967295ul |
| 2750 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2751 | #if !BIG_OK |
| 2752 | #error "your preprocessor is broken" |
| 2753 | #endif |
| 2754 | #if BIG_OK |
| 2755 | #else |
| 2756 | #error "your preprocessor is broken" |
| 2757 | #endif |
| 2758 | static long long int bignum = -9223372036854775807LL; |
| 2759 | static unsigned long long int ubignum = BIG64; |
| 2760 | |
| 2761 | struct incomplete_array |
| 2762 | { |
| 2763 | int datasize; |
| 2764 | double data[]; |
| 2765 | }; |
| 2766 | |
| 2767 | struct named_init { |
| 2768 | int number; |
| 2769 | const wchar_t *name; |
| 2770 | double average; |
| 2771 | }; |
| 2772 | |
| 2773 | typedef const char *ccp; |
| 2774 | |
| 2775 | static inline int |
| 2776 | test_restrict (ccp restrict text) |
| 2777 | { |
| 2778 | // See if C++-style comments work. |
| 2779 | // Iterate through items via the restricted pointer. |
| 2780 | // Also check for declarations in for loops. |
| 2781 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2782 | continue; |
| 2783 | return 0; |
| 2784 | } |
| 2785 | |
| 2786 | // Check varargs and va_copy. |
| 2787 | static bool |
| 2788 | test_varargs (const char *format, ...) |
| 2789 | { |
| 2790 | va_list args; |
| 2791 | va_start (args, format); |
| 2792 | va_list args_copy; |
| 2793 | va_copy (args_copy, args); |
| 2794 | |
| 2795 | const char *str = ""; |
| 2796 | int number = 0; |
| 2797 | float fnumber = 0; |
| 2798 | |
| 2799 | while (*format) |
| 2800 | { |
| 2801 | switch (*format++) |
| 2802 | { |
| 2803 | case '\''s'\'': // string |
| 2804 | str = va_arg (args_copy, const char *); |
| 2805 | break; |
| 2806 | case '\''d'\'': // int |
| 2807 | number = va_arg (args_copy, int); |
| 2808 | break; |
| 2809 | case '\''f'\'': // float |
| 2810 | fnumber = va_arg (args_copy, double); |
| 2811 | break; |
| 2812 | default: |
| 2813 | break; |
| 2814 | } |
| 2815 | } |
| 2816 | va_end (args_copy); |
| 2817 | va_end (args); |
| 2818 | |
| 2819 | return *str && number && fnumber; |
| 2820 | } |
| 2821 | ' |
| 2822 | |
| 2823 | # Test code for whether the C compiler supports C99 (body of main). |
| 2824 | ac_c_conftest_c99_main=' |
| 2825 | // Check bool. |
| 2826 | _Bool success = false; |
| 2827 | success |= (argc != 0); |
| 2828 | |
| 2829 | // Check restrict. |
| 2830 | if (test_restrict ("String literal") == 0) |
| 2831 | success = true; |
| 2832 | char *restrict newvar = "Another string"; |
| 2833 | |
| 2834 | // Check varargs. |
| 2835 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2836 | test_varargs_macros (); |
| 2837 | |
| 2838 | // Check flexible array members. |
| 2839 | struct incomplete_array *ia = |
| 2840 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2841 | ia->datasize = 10; |
| 2842 | for (int i = 0; i < ia->datasize; ++i) |
| 2843 | ia->data[i] = i * 1.234; |
| 2844 | |
| 2845 | // Check named initializers. |
| 2846 | struct named_init ni = { |
| 2847 | .number = 34, |
| 2848 | .name = L"Test wide string", |
| 2849 | .average = 543.34343, |
| 2850 | }; |
| 2851 | |
| 2852 | ni.number = 58; |
| 2853 | |
| 2854 | int dynamic_array[ni.number]; |
| 2855 | dynamic_array[0] = argv[0][0]; |
| 2856 | dynamic_array[ni.number - 1] = 543; |
| 2857 | |
| 2858 | // work around unused variable warnings |
| 2859 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2860 | || dynamic_array[ni.number - 1] != 543); |
| 2861 | ' |
| 2862 | |
| 2863 | # Test code for whether the C compiler supports C11 (global declarations) |
| 2864 | ac_c_conftest_c11_globals=' |
| 2865 | // Does the compiler advertise C11 conformance? |
| 2866 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2867 | # error "Compiler does not advertise C11 conformance" |
| 2868 | #endif |
| 2869 | |
| 2870 | // Check _Alignas. |
| 2871 | char _Alignas (double) aligned_as_double; |
| 2872 | char _Alignas (0) no_special_alignment; |
| 2873 | extern char aligned_as_int; |
| 2874 | char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2875 | |
| 2876 | // Check _Alignof. |
| 2877 | enum |
| 2878 | { |
| 2879 | int_alignment = _Alignof (int), |
| 2880 | int_array_alignment = _Alignof (int[100]), |
| 2881 | char_alignment = _Alignof (char) |
| 2882 | }; |
| 2883 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2884 | |
| 2885 | // Check _Noreturn. |
| 2886 | int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2887 | |
| 2888 | // Check _Static_assert. |
| 2889 | struct test_static_assert |
| 2890 | { |
| 2891 | int x; |
| 2892 | _Static_assert (sizeof (int) <= sizeof (long int), |
| 2893 | "_Static_assert does not work in struct"); |
| 2894 | long int y; |
| 2895 | }; |
| 2896 | |
| 2897 | // Check UTF-8 literals. |
| 2898 | #define u8 syntax error! |
| 2899 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2900 | |
| 2901 | // Check duplicate typedefs. |
| 2902 | typedef long *long_ptr; |
| 2903 | typedef long int *long_ptr; |
| 2904 | typedef long_ptr long_ptr; |
| 2905 | |
| 2906 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2907 | struct anonymous |
| 2908 | { |
| 2909 | union { |
| 2910 | struct { int i; int j; }; |
| 2911 | struct { int k; long int l; } w; |
| 2912 | }; |
| 2913 | int m; |
| 2914 | } v1; |
| 2915 | ' |
| 2916 | |
| 2917 | # Test code for whether the C compiler supports C11 (body of main). |
| 2918 | ac_c_conftest_c11_main=' |
| 2919 | _Static_assert ((offsetof (struct anonymous, i) |
| 2920 | == offsetof (struct anonymous, w.k)), |
| 2921 | "Anonymous union alignment botch"); |
| 2922 | v1.i = 2; |
| 2923 | v1.w.k = 5; |
| 2924 | ok |= v1.i != 5; |
| 2925 | ' |
| 2926 | |
| 2927 | # Test code for whether the C compiler supports C11 (complete). |
| 2928 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 2929 | ${ac_c_conftest_c99_globals} |
| 2930 | ${ac_c_conftest_c11_globals} |
| 2931 | |
| 2932 | int |
| 2933 | main (int argc, char **argv) |
| 2934 | { |
| 2935 | int ok = 0; |
| 2936 | ${ac_c_conftest_c89_main} |
| 2937 | ${ac_c_conftest_c99_main} |
| 2938 | ${ac_c_conftest_c11_main} |
| 2939 | return ok; |
| 2940 | } |
| 2941 | " |
| 2942 | |
| 2943 | # Test code for whether the C compiler supports C99 (complete). |
| 2944 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 2945 | ${ac_c_conftest_c99_globals} |
| 2946 | |
| 2947 | int |
| 2948 | main (int argc, char **argv) |
| 2949 | { |
| 2950 | int ok = 0; |
| 2951 | ${ac_c_conftest_c89_main} |
| 2952 | ${ac_c_conftest_c99_main} |
| 2953 | return ok; |
| 2954 | } |
| 2955 | " |
| 2956 | |
| 2957 | # Test code for whether the C compiler supports C89 (complete). |
| 2958 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 2959 | |
| 2960 | int |
| 2961 | main (int argc, char **argv) |
| 2962 | { |
| 2963 | int ok = 0; |
| 2964 | ${ac_c_conftest_c89_main} |
| 2965 | return ok; |
| 2966 | } |
| 2967 | " |
| 2968 | |
| 2969 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 2970 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 2971 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 2972 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 2973 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 2974 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 2975 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 2976 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 2977 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 2978 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
| 2979 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
| 2980 | as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" |
| 2981 | |
| 2982 | # Auxiliary files required by this configure script. |
| 2983 | ac_aux_files="install-sh config.guess config.sub" |
| 2984 | |
| 2985 | # Locations in which to look for auxiliary files. |
| 2986 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
| 2987 | |
| 2988 | # Search for a directory containing all of the required auxiliary files, |
| 2989 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 2990 | # If we don't find one directory that contains all the files we need, |
| 2991 | # we report the set of missing files from the *first* directory in |
| 2992 | # $ac_aux_dir_candidates and give up. |
| 2993 | ac_missing_aux_files="" |
| 2994 | ac_first_candidate=: |
| 2995 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 2996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2997 | as_found=false |
| 2998 | for as_dir in $ac_aux_dir_candidates |
| 2999 | do |
| 3000 | IFS=$as_save_IFS |
| 3001 | case $as_dir in #((( |
| 3002 | '') as_dir=./ ;; |
| 3003 | */) ;; |
| 3004 | *) as_dir=$as_dir/ ;; |
| 3005 | esac |
| 3006 | as_found=: |
| 3007 | |
| 3008 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 3009 | ac_aux_dir_found=yes |
| 3010 | ac_install_sh= |
| 3011 | for ac_aux in $ac_aux_files |
| 3012 | do |
| 3013 | # As a special case, if "install-sh" is required, that requirement |
| 3014 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 3015 | # and $ac_install_sh is set appropriately for whichever one is found. |
| 3016 | if test x"$ac_aux" = x"install-sh" |
| 3017 | then |
| 3018 | if test -f "${as_dir}install-sh"; then |
| 3019 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 3020 | ac_install_sh="${as_dir}install-sh -c" |
| 3021 | elif test -f "${as_dir}install.sh"; then |
| 3022 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 3023 | ac_install_sh="${as_dir}install.sh -c" |
| 3024 | elif test -f "${as_dir}shtool"; then |
| 3025 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 3026 | ac_install_sh="${as_dir}shtool install -c" |
| 3027 | else |
| 3028 | ac_aux_dir_found=no |
| 3029 | if $ac_first_candidate; then |
| 3030 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 3031 | else |
| 3032 | break |
| 3033 | fi |
| 3034 | fi |
| 3035 | else |
| 3036 | if test -f "${as_dir}${ac_aux}"; then |
| 3037 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 3038 | else |
| 3039 | ac_aux_dir_found=no |
| 3040 | if $ac_first_candidate; then |
| 3041 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 3042 | else |
| 3043 | break |
| 3044 | fi |
| 3045 | fi |
| 3046 | fi |
| 3047 | done |
| 3048 | if test "$ac_aux_dir_found" = yes; then |
| 3049 | ac_aux_dir="$as_dir" |
| 3050 | break |
| 3051 | fi |
| 3052 | ac_first_candidate=false |
| 3053 | |
| 3054 | as_found=false |
| 3055 | done |
| 3056 | IFS=$as_save_IFS |
| 3057 | if $as_found |
| 3058 | then : |
| 3059 | |
| 3060 | else $as_nop |
| 3061 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
| 3062 | fi |
| 3063 | |
| 3064 | |
| 3065 | # These three variables are undocumented and unsupported, |
| 3066 | # and are intended to be withdrawn in a future Autoconf release. |
| 3067 | # They can cause serious problems if a builder's source tree is in a directory |
| 3068 | # whose full name contains unusual characters. |
| 3069 | if test -f "${ac_aux_dir}config.guess"; then |
| 3070 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 3071 | fi |
| 3072 | if test -f "${ac_aux_dir}config.sub"; then |
| 3073 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 3074 | fi |
| 3075 | if test -f "$ac_aux_dir/configure"; then |
| 3076 | ac_configure="$SHELL ${ac_aux_dir}configure" |
| 3077 | fi |
| 3078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3079 | # Check that the precious variables saved in the cache have kept the same |
| 3080 | # value. |
| 3081 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3082 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3083 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3084 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3085 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3086 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3087 | case $ac_old_set,$ac_new_set in |
| 3088 | set,) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 3090 | 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] | 3091 | ac_cache_corrupted=: ;; |
| 3092 | ,set) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3093 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 3094 | 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] | 3095 | ac_cache_corrupted=: ;; |
| 3096 | ,);; |
| 3097 | *) |
| 3098 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3099 | # differences in whitespace do not lead to failure. |
| 3100 | ac_old_val_w=`echo x $ac_old_val` |
| 3101 | ac_new_val_w=`echo x $ac_new_val` |
| 3102 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 3104 | 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] | 3105 | ac_cache_corrupted=: |
| 3106 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 3108 | 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] | 3109 | eval $ac_var=\$ac_old_val |
| 3110 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 3112 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
| 3113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 3114 | 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] | 3115 | fi;; |
| 3116 | esac |
| 3117 | # Pass precious variables to config.status. |
| 3118 | if test "$ac_new_set" = set; then |
| 3119 | case $ac_new_val in |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3120 | *\'*) 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] | 3121 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 3122 | esac |
| 3123 | case " $ac_configure_args " in |
| 3124 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3125 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3126 | esac |
| 3127 | fi |
| 3128 | done |
| 3129 | if $ac_cache_corrupted; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3130 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3131 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3133 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3134 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
| 3135 | and start over" "$LINENO" 5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3136 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3137 | ## -------------------- ## |
| 3138 | ## Main body of script. ## |
| 3139 | ## -------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3140 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3141 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3142 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3146 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3147 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3148 | |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 3149 | |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 3150 | |
| 3151 | |
Martin Panter | c5ee3ca | 2016-09-12 01:32:03 +0000 | [diff] [blame] | 3152 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 3153 | # If we're building out-of-tree, we need to make sure the following |
| 3154 | # resources get picked up before their $srcdir counterparts. |
| 3155 | # Objects/ -> typeslots.inc |
Victor Stinner | 94faa07 | 2021-03-23 20:47:40 +0100 | [diff] [blame] | 3156 | # Include/ -> Python.h |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 3157 | # Python/ -> importlib.h |
| 3158 | # (A side effect of this is that these resources will automatically be |
| 3159 | # regenerated when building out-of-tree, regardless of whether or not |
| 3160 | # the $srcdir counterpart is up-to-date. This is an acceptable trade |
| 3161 | # off.) |
| 3162 | BASECPPFLAGS="-IObjects -IInclude -IPython" |
| 3163 | else |
| 3164 | BASECPPFLAGS="" |
| 3165 | fi |
| 3166 | |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3167 | |
| 3168 | |
| 3169 | |
| 3170 | |
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 3171 | if test -e $srcdir/.git |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3172 | then |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3173 | # Extract the first word of "git", so it can be a program name with args. |
| 3174 | set dummy git; ac_word=$2 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3176 | printf %s "checking for $ac_word... " >&6; } |
| 3177 | if test ${ac_cv_prog_HAS_GIT+y} |
| 3178 | then : |
| 3179 | printf %s "(cached) " >&6 |
| 3180 | else $as_nop |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3181 | if test -n "$HAS_GIT"; then |
| 3182 | 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] | 3183 | else |
| 3184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3185 | for as_dir in $PATH |
| 3186 | do |
| 3187 | IFS=$as_save_IFS |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3188 | case $as_dir in #((( |
| 3189 | '') as_dir=./ ;; |
| 3190 | */) ;; |
| 3191 | *) as_dir=$as_dir/ ;; |
| 3192 | esac |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3193 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3194 | 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] | 3195 | ac_cv_prog_HAS_GIT="found" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3196 | 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] | 3197 | break 2 |
| 3198 | fi |
| 3199 | done |
| 3200 | done |
| 3201 | IFS=$as_save_IFS |
| 3202 | |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3203 | 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] | 3204 | fi |
| 3205 | fi |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3206 | HAS_GIT=$ac_cv_prog_HAS_GIT |
| 3207 | if test -n "$HAS_GIT"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3208 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 |
| 3209 | printf "%s\n" "$HAS_GIT" >&6; } |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3210 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3211 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3212 | printf "%s\n" "no" >&6; } |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3213 | fi |
| 3214 | |
| 3215 | |
| 3216 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3217 | HAS_GIT=no-repository |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3218 | fi |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3219 | if test $HAS_GIT = found |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3220 | then |
Xiang Zhang | 4c85557 | 2018-08-20 22:36:19 +0800 | [diff] [blame] | 3221 | GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" |
| 3222 | GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" |
| 3223 | GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3224 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 3225 | GITVERSION="" |
| 3226 | GITTAG="" |
| 3227 | GITBRANCH="" |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 3228 | fi |
| 3229 | |
| 3230 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3231 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3232 | |
| 3233 | |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3234 | |
| 3235 | |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3236 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3237 | # Make sure we can run config.sub. |
| 3238 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 3239 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 3240 | |
| 3241 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3242 | printf %s "checking build system type... " >&6; } |
| 3243 | if test ${ac_cv_build+y} |
| 3244 | then : |
| 3245 | printf %s "(cached) " >&6 |
| 3246 | else $as_nop |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3247 | ac_build_alias=$build_alias |
| 3248 | test "x$ac_build_alias" = x && |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3249 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3250 | test "x$ac_build_alias" = x && |
| 3251 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3252 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 3253 | 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] | 3254 | |
| 3255 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3256 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3257 | printf "%s\n" "$ac_cv_build" >&6; } |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3258 | case $ac_cv_build in |
| 3259 | *-*-*) ;; |
| 3260 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 3261 | esac |
| 3262 | build=$ac_cv_build |
| 3263 | ac_save_IFS=$IFS; IFS='-' |
| 3264 | set x $ac_cv_build |
| 3265 | shift |
| 3266 | build_cpu=$1 |
| 3267 | build_vendor=$2 |
| 3268 | shift; shift |
| 3269 | # Remember, the first character of IFS is used to create $*, |
| 3270 | # except with old shells: |
| 3271 | build_os=$* |
| 3272 | IFS=$ac_save_IFS |
| 3273 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3274 | |
| 3275 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3276 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3277 | printf %s "checking host system type... " >&6; } |
| 3278 | if test ${ac_cv_host+y} |
| 3279 | then : |
| 3280 | printf %s "(cached) " >&6 |
| 3281 | else $as_nop |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3282 | if test "x$host_alias" = x; then |
| 3283 | ac_cv_host=$ac_cv_build |
| 3284 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3285 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 3286 | 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] | 3287 | fi |
| 3288 | |
| 3289 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3291 | printf "%s\n" "$ac_cv_host" >&6; } |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 3292 | case $ac_cv_host in |
| 3293 | *-*-*) ;; |
| 3294 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 3295 | esac |
| 3296 | host=$ac_cv_host |
| 3297 | ac_save_IFS=$IFS; IFS='-' |
| 3298 | set x $ac_cv_host |
| 3299 | shift |
| 3300 | host_cpu=$1 |
| 3301 | host_vendor=$2 |
| 3302 | shift; shift |
| 3303 | # Remember, the first character of IFS is used to create $*, |
| 3304 | # except with old shells: |
| 3305 | host_os=$* |
| 3306 | IFS=$ac_save_IFS |
| 3307 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3308 | |
| 3309 | |
| 3310 | |
doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 3311 | |
| 3312 | |
Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 3313 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile |
| 3314 | rm -f pybuilddir.txt |
| 3315 | |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3316 | for ac_prog in python$PACKAGE_VERSION python3 python |
| 3317 | do |
| 3318 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3319 | set dummy $ac_prog; ac_word=$2 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3320 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3321 | printf %s "checking for $ac_word... " >&6; } |
| 3322 | if test ${ac_cv_prog_PYTHON_FOR_REGEN+y} |
| 3323 | then : |
| 3324 | printf %s "(cached) " >&6 |
| 3325 | else $as_nop |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 3326 | if test -n "$PYTHON_FOR_REGEN"; then |
| 3327 | 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] | 3328 | else |
| 3329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3330 | for as_dir in $PATH |
| 3331 | do |
| 3332 | IFS=$as_save_IFS |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3333 | case $as_dir in #((( |
| 3334 | '') as_dir=./ ;; |
| 3335 | */) ;; |
| 3336 | *) as_dir=$as_dir/ ;; |
| 3337 | esac |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3338 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3339 | 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] | 3340 | ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3341 | 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] | 3342 | break 2 |
| 3343 | fi |
| 3344 | done |
| 3345 | done |
| 3346 | IFS=$as_save_IFS |
| 3347 | |
| 3348 | fi |
| 3349 | fi |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 3350 | PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN |
| 3351 | if test -n "$PYTHON_FOR_REGEN"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 |
| 3353 | printf "%s\n" "$PYTHON_FOR_REGEN" >&6; } |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3354 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3355 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3356 | printf "%s\n" "no" >&6; } |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3357 | fi |
| 3358 | |
| 3359 | |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 3360 | test -n "$PYTHON_FOR_REGEN" && break |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3361 | done |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 3362 | test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3363 | |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3364 | |
| 3365 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3366 | if test "$cross_compiling" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3367 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 |
| 3368 | printf %s "checking for python interpreter for cross build... " >&6; } |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3369 | if test -z "$PYTHON_FOR_BUILD"; then |
| 3370 | for interp in python$PACKAGE_VERSION python3 python; do |
| 3371 | which $interp >/dev/null 2>&1 || continue |
Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 3372 | 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] | 3373 | break |
| 3374 | fi |
| 3375 | interp= |
| 3376 | done |
| 3377 | if test x$interp = x; then |
| 3378 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 |
| 3379 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3380 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 |
| 3381 | printf "%s\n" "$interp" >&6; } |
Xavier de Gaye | 92dec54 | 2016-09-11 22:22:24 +0200 | [diff] [blame] | 3382 | 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] | 3383 | fi |
Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 3384 | elif test "$cross_compiling" = maybe; then |
| 3385 | 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] | 3386 | else |
| 3387 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' |
| 3388 | fi |
| 3389 | |
| 3390 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3391 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 3392 | if test "$prefix" != "/"; then |
| 3393 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 3394 | fi |
| 3395 | |
| 3396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3397 | |
| 3398 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 3399 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 3400 | # with other autoconf-based packages that include Python.h |
| 3401 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 3402 | rm confdefs.h |
| 3403 | mv confdefs.h.new confdefs.h |
| 3404 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 3405 | |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 3406 | VERSION=3.10 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 3407 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 3408 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3409 | |
| 3410 | SOVERSION=1.0 |
| 3411 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3412 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 3413 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 3414 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3415 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3416 | |
| 3417 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3418 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 3419 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 3420 | # them. |
| 3421 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3422 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3423 | |
| 3424 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3425 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 3426 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 3427 | # them. |
| 3428 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3429 | printf "%s\n" "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3430 | |
| 3431 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3432 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3433 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 3434 | # them. |
| 3435 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3436 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3437 | |
| 3438 | |
| 3439 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3440 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3441 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3442 | # Arguments passed to configure. |
| 3443 | |
| 3444 | CONFIG_ARGS="$ac_configure_args" |
| 3445 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3446 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
| 3447 | printf %s "checking for --enable-universalsdk... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3448 | # Check whether --enable-universalsdk was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3449 | if test ${enable_universalsdk+y} |
| 3450 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3451 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3452 | case $enableval in |
| 3453 | yes) |
Serhiy Storchaka | 88cc339 | 2018-06-04 08:20:25 +0300 | [diff] [blame] | 3454 | # Locate the best usable SDK, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3455 | # information |
| 3456 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3457 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3458 | then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3459 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 3460 | if test ! -d "${enableval}" |
| 3461 | then |
| 3462 | enableval=/ |
| 3463 | fi |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3464 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3465 | ;; |
| 3466 | esac |
| 3467 | case $enableval in |
| 3468 | no) |
| 3469 | UNIVERSALSDK= |
| 3470 | enable_universalsdk= |
| 3471 | ;; |
| 3472 | *) |
| 3473 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3474 | if test ! -d "${UNIVERSALSDK}" |
| 3475 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3476 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3477 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3478 | ;; |
| 3479 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3480 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3481 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3482 | else $as_nop |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3483 | |
| 3484 | UNIVERSALSDK= |
| 3485 | enable_universalsdk= |
| 3486 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3487 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3488 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3489 | if test -n "${UNIVERSALSDK}" |
| 3490 | then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3491 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
| 3492 | printf "%s\n" "${UNIVERSALSDK}" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3493 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 3494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3495 | printf "%s\n" "no" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3496 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3497 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3498 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3499 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3500 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3501 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3502 | # For backward compatibility reasons we prefer to select '32-bit' if available, |
| 3503 | # otherwise use 'intel' |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3504 | UNIVERSAL_ARCHS="32-bit" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3505 | if test "`uname -s`" = "Darwin" |
| 3506 | then |
| 3507 | if test -n "${UNIVERSALSDK}" |
| 3508 | then |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3509 | 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] | 3510 | then |
| 3511 | UNIVERSAL_ARCHS="intel" |
| 3512 | fi |
| 3513 | fi |
| 3514 | fi |
| 3515 | |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3516 | |
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 3517 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 4931 | $ac_c_conftest_c89_program |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4932 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 4945 | fi |
Pablo Galindo Salgado | c2e0b13 | 2021-07-30 16:14:28 +0100 | [diff] [blame] | 4946 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 |
Miss Islington (bot) | 25a9cf1 | 2021-05-24 21:18:53 -0700 | [diff] [blame] | 7315 | # The Apple-supplied ar in Xcode or the Command Line Tools is apparently sufficient |
| 7316 | found_llvm_ar=`/usr/bin/xcrun -find ar 2>/dev/null` |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7317 | if test -n "${found_llvm_ar}" |
| 7318 | then |
Miss Islington (bot) | 25a9cf1 | 2021-05-24 21:18:53 -0700 | [diff] [blame] | 7319 | LLVM_AR='/usr/bin/xcrun ar' |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7320 | LLVM_AR_FOUND=found |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7321 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5 |
| 7322 | 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] | 7323 | fi |
| 7324 | fi |
| 7325 | if test $LLVM_AR_FOUND = not-found |
| 7326 | then |
| 7327 | LLVM_PROFR_ERR=yes |
| 7328 | as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5 |
| 7329 | else |
| 7330 | LLVM_AR_ERR=no |
| 7331 | fi |
| 7332 | AR="${LLVM_AR}" |
| 7333 | case $ac_sys_system in |
| 7334 | Darwin*) |
| 7335 | # Any changes made here should be reflected in the GCC+Darwin case below |
| 7336 | LTOFLAGS="-flto -Wl,-export_dynamic" |
Miss Islington (bot) | 25a9cf1 | 2021-05-24 21:18:53 -0700 | [diff] [blame] | 7337 | LTOCFLAGS="-flto" |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7338 | ;; |
| 7339 | *) |
| 7340 | LTOFLAGS="-flto" |
| 7341 | ;; |
| 7342 | esac |
| 7343 | ;; |
| 7344 | *gcc*) |
| 7345 | case $ac_sys_system in |
| 7346 | Darwin*) |
| 7347 | LTOFLAGS="-flto -Wl,-export_dynamic" |
Miss Islington (bot) | 25a9cf1 | 2021-05-24 21:18:53 -0700 | [diff] [blame] | 7348 | LTOCFLAGS="-flto" |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7349 | ;; |
| 7350 | *) |
| 7351 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" |
| 7352 | ;; |
| 7353 | esac |
| 7354 | ;; |
| 7355 | esac |
| 7356 | |
| 7357 | if test "$ac_cv_prog_cc_g" = "yes" |
| 7358 | then |
| 7359 | # bpo-30345: Add -g to LDFLAGS when compiling with LTO |
| 7360 | # to get debug symbols. |
| 7361 | LTOFLAGS="$LTOFLAGS -g" |
| 7362 | fi |
| 7363 | |
Miss Islington (bot) | 25a9cf1 | 2021-05-24 21:18:53 -0700 | [diff] [blame] | 7364 | CFLAGS_NODIST="$CFLAGS_NODIST ${LTOCFLAGS-$LTOFLAGS}" |
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 7365 | LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" |
serge-sans-paille | 5ad36f9 | 2018-10-25 01:54:22 +0200 | [diff] [blame] | 7366 | fi |
| 7367 | |
| 7368 | # Enable PGO flags. |
| 7369 | |
| 7370 | |
| 7371 | |
| 7372 | |
| 7373 | |
| 7374 | |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7375 | if test -n "$ac_tool_prefix"; then |
| 7376 | # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args. |
| 7377 | set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7378 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7379 | printf %s "checking for $ac_word... " >&6; } |
| 7380 | if test ${ac_cv_path_LLVM_PROFDATA+y} |
| 7381 | then : |
| 7382 | printf %s "(cached) " >&6 |
| 7383 | else $as_nop |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7384 | case $LLVM_PROFDATA in |
| 7385 | [\\/]* | ?:[\\/]*) |
| 7386 | ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. |
| 7387 | ;; |
| 7388 | *) |
| 7389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7390 | for as_dir in ${llvm_path} |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7391 | do |
| 7392 | IFS=$as_save_IFS |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7393 | case $as_dir in #((( |
| 7394 | '') as_dir=./ ;; |
| 7395 | */) ;; |
| 7396 | *) as_dir=$as_dir/ ;; |
| 7397 | esac |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7398 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7399 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7400 | ac_cv_path_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext" |
| 7401 | 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] | 7402 | break 2 |
| 7403 | fi |
| 7404 | done |
| 7405 | done |
| 7406 | IFS=$as_save_IFS |
| 7407 | |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7408 | ;; |
| 7409 | esac |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7410 | fi |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7411 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA |
| 7412 | if test -n "$LLVM_PROFDATA"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7413 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 |
| 7414 | printf "%s\n" "$LLVM_PROFDATA" >&6; } |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7415 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7416 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7417 | printf "%s\n" "no" >&6; } |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7418 | fi |
| 7419 | |
| 7420 | |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7421 | fi |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7422 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7423 | ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA |
| 7424 | # 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] | 7425 | set dummy llvm-profdata; ac_word=$2 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7426 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7427 | printf %s "checking for $ac_word... " >&6; } |
| 7428 | if test ${ac_cv_path_ac_pt_LLVM_PROFDATA+y} |
| 7429 | then : |
| 7430 | printf %s "(cached) " >&6 |
| 7431 | else $as_nop |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7432 | case $ac_pt_LLVM_PROFDATA in |
| 7433 | [\\/]* | ?:[\\/]*) |
| 7434 | ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. |
| 7435 | ;; |
| 7436 | *) |
| 7437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7438 | for as_dir in ${llvm_path} |
| 7439 | do |
| 7440 | IFS=$as_save_IFS |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7441 | case $as_dir in #((( |
| 7442 | '') as_dir=./ ;; |
| 7443 | */) ;; |
| 7444 | *) as_dir=$as_dir/ ;; |
| 7445 | esac |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7446 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7447 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7448 | ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext" |
| 7449 | 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] | 7450 | break 2 |
| 7451 | fi |
| 7452 | done |
| 7453 | done |
| 7454 | IFS=$as_save_IFS |
| 7455 | |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7456 | ;; |
| 7457 | esac |
| 7458 | fi |
| 7459 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA |
| 7460 | if test -n "$ac_pt_LLVM_PROFDATA"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7461 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 |
| 7462 | printf "%s\n" "$ac_pt_LLVM_PROFDATA" >&6; } |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7463 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7464 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7465 | printf "%s\n" "no" >&6; } |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7466 | fi |
| 7467 | |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7468 | if test "x$ac_pt_LLVM_PROFDATA" = x; then |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7469 | LLVM_PROFDATA="''" |
Benjamin Peterson | f3095b0 | 2019-09-13 15:30:36 +0100 | [diff] [blame] | 7470 | else |
| 7471 | case $cross_compiling:$ac_tool_warned in |
| 7472 | yes:) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7473 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7474 | 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] | 7475 | ac_tool_warned=yes ;; |
| 7476 | esac |
| 7477 | LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7478 | fi |
| 7479 | else |
| 7480 | LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" |
| 7481 | fi |
| 7482 | |
| 7483 | |
| 7484 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" |
| 7485 | then |
| 7486 | LLVM_PROF_FOUND="found" |
| 7487 | else |
| 7488 | LLVM_PROF_FOUND="not-found" |
| 7489 | fi |
| 7490 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" |
| 7491 | then |
| 7492 | found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` |
| 7493 | if test -n "${found_llvm_profdata}" |
| 7494 | then |
| 7495 | # llvm-profdata isn't directly in $PATH in some cases. |
| 7496 | # https://apple.stackexchange.com/questions/197053/ |
| 7497 | LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' |
| 7498 | LLVM_PROF_FOUND=found |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 |
| 7500 | 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] | 7501 | fi |
| 7502 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7503 | LLVM_PROF_ERR=no |
| 7504 | case $CC in |
| 7505 | *clang*) |
| 7506 | # Any changes made here should be reflected in the GCC+Darwin case below |
| 7507 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" |
| 7508 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7509 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7510 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
| 7511 | if test $LLVM_PROF_FOUND = not-found |
| 7512 | then |
| 7513 | LLVM_PROF_ERR=yes |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7514 | if test "${REQUIRE_PGO}" = "yes" |
| 7515 | then |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 7516 | 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] | 7517 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7518 | fi |
| 7519 | ;; |
| 7520 | *gcc*) |
| 7521 | case $ac_sys_system in |
| 7522 | Darwin*) |
| 7523 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" |
| 7524 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7525 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7526 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7527 | if test "${LLVM_PROF_FOUND}" = "not-found" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7528 | then |
| 7529 | LLVM_PROF_ERR=yes |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 7530 | if test "${REQUIRE_PGO}" = "yes" |
| 7531 | then |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 7532 | 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] | 7533 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7534 | fi |
| 7535 | ;; |
| 7536 | *) |
| 7537 | PGO_PROF_GEN_FLAG="-fprofile-generate" |
| 7538 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" |
| 7539 | LLVM_PROF_MERGER="true" |
| 7540 | LLVM_PROF_FILE="" |
| 7541 | ;; |
| 7542 | esac |
| 7543 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7544 | *icc*) |
| 7545 | PGO_PROF_GEN_FLAG="-prof-gen" |
| 7546 | PGO_PROF_USE_FLAG="-prof-use" |
| 7547 | LLVM_PROF_MERGER="true" |
| 7548 | LLVM_PROF_FILE="" |
| 7549 | ;; |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 7550 | esac |
| 7551 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7552 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 7553 | # merged with this chunk of code? |
| 7554 | |
| 7555 | # Optimizer/debugger flags |
| 7556 | # ------------------------ |
| 7557 | # (The following bit of code is complicated enough - please keep things |
| 7558 | # indented properly. Just pretend you're editing Python code. ;-) |
| 7559 | |
| 7560 | # There are two parallel sets of case statements below, one that checks to |
| 7561 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 7562 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 7563 | # user set OPT. |
| 7564 | |
Victor Stinner | 23a683a | 2019-04-12 21:27:37 +0200 | [diff] [blame] | 7565 | case $CC in |
| 7566 | *clang*) |
| 7567 | cc_is_clang=1 |
| 7568 | ;; |
| 7569 | *) |
| 7570 | if $CC --version 2>&1 | grep -q clang |
| 7571 | then |
| 7572 | cc_is_clang=1 |
| 7573 | else |
| 7574 | cc_is_clang= |
| 7575 | fi |
| 7576 | esac |
| 7577 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7578 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 7579 | # it on the command line |
| 7580 | |
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 7581 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 7582 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7583 | then |
| 7584 | case $GCC in |
| 7585 | yes) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7586 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 7587 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 7588 | WRAP="-fwrapv" |
| 7589 | fi |
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 7590 | |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 7591 | if test -n "${cc_is_clang}" |
| 7592 | then |
| 7593 | # Clang also needs -fwrapv |
| 7594 | WRAP="-fwrapv" |
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 7595 | # bpo-30104: disable strict aliasing to compile correctly dtoa.c, |
| 7596 | # see Makefile.pre.in for more information |
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 7597 | CFLAGS_ALIASING="-fno-strict-aliasing" |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 7598 | fi |
| 7599 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7600 | case $ac_cv_prog_cc_g in |
| 7601 | yes) |
| 7602 | if test "$Py_DEBUG" = 'true' ; then |
| 7603 | # Optimization messes up debuggers, so turn it off for |
| 7604 | # debug builds. |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 7605 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 7606 | OPT="-g -Og -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 7607 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 7608 | OPT="-g -O0 -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 7609 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7610 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 7611 | OPT="-g $WRAP -O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7612 | fi |
| 7613 | ;; |
| 7614 | *) |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 7615 | OPT="-O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7616 | ;; |
| 7617 | esac |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 7618 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7619 | case $ac_sys_system in |
| 7620 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 7621 | ;; |
| 7622 | esac |
| 7623 | ;; |
| 7624 | |
| 7625 | *) |
| 7626 | OPT="-O" |
| 7627 | ;; |
| 7628 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7629 | fi |
| 7630 | |
| 7631 | |
| 7632 | |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 7633 | |
stratakis | cf10a75 | 2018-12-19 18:19:01 +0100 | [diff] [blame] | 7634 | |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 7635 | # The -arch flags for universal builds on macOS |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7636 | UNIVERSAL_ARCH_FLAGS= |
| 7637 | |
| 7638 | |
| 7639 | # tweak BASECFLAGS based on compiler and platform |
| 7640 | case $GCC in |
| 7641 | yes) |
Benjamin Peterson | 050af5d | 2016-09-10 17:53:13 -0700 | [diff] [blame] | 7642 | CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" |
Benjamin Peterson | d170256 | 2016-09-07 12:00:06 -0700 | [diff] [blame] | 7643 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 |
| 7645 | printf %s "checking for -Wextra... " >&6; } |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7646 | ac_save_cc="$CC" |
| 7647 | CC="$CC -Wextra -Werror" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7648 | if test ${ac_cv_extra_warnings+y} |
| 7649 | then : |
| 7650 | printf %s "(cached) " >&6 |
| 7651 | else $as_nop |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7653 | /* end confdefs.h. */ |
| 7654 | |
| 7655 | |
| 7656 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7657 | main (void) |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7658 | { |
| 7659 | |
| 7660 | ; |
| 7661 | return 0; |
| 7662 | } |
| 7663 | |
| 7664 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7665 | if ac_fn_c_try_compile "$LINENO" |
| 7666 | then : |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7667 | |
| 7668 | ac_cv_extra_warnings=yes |
| 7669 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7670 | else $as_nop |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7671 | |
| 7672 | ac_cv_extra_warnings=no |
| 7673 | |
| 7674 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7675 | 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] | 7676 | fi |
| 7677 | |
| 7678 | CC="$ac_save_cc" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 |
| 7680 | printf "%s\n" "$ac_cv_extra_warnings" >&6; } |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7681 | |
| 7682 | if test $ac_cv_extra_warnings = yes |
| 7683 | then |
| 7684 | CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" |
| 7685 | fi |
| 7686 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7687 | # Python doesn't violate C99 aliasing rules, but older versions of |
| 7688 | # GCC produce warnings for legal Python code. Enable |
| 7689 | # -fno-strict-aliasing on versions of GCC that support but produce |
| 7690 | # warnings. See Issue3326 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
| 7692 | printf %s "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7693 | ac_save_cc="$CC" |
| 7694 | CC="$CC -fno-strict-aliasing" |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7695 | save_CFLAGS="$CFLAGS" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7696 | if test ${ac_cv_no_strict_aliasing+y} |
| 7697 | then : |
| 7698 | printf %s "(cached) " >&6 |
| 7699 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7701 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7702 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7703 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7704 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7705 | main (void) |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7706 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7707 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7708 | ; |
| 7709 | return 0; |
| 7710 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7711 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7712 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7713 | if ac_fn_c_try_compile "$LINENO" |
| 7714 | then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7715 | |
| 7716 | CC="$ac_save_cc -fstrict-aliasing" |
| 7717 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" |
| 7718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7719 | /* end confdefs.h. */ |
| 7720 | |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7721 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7722 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7723 | main (void) |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7724 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7725 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7726 | ; |
| 7727 | return 0; |
| 7728 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7729 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7730 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7731 | if ac_fn_c_try_compile "$LINENO" |
| 7732 | then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7733 | |
| 7734 | ac_cv_no_strict_aliasing=no |
| 7735 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7736 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7737 | |
| 7738 | ac_cv_no_strict_aliasing=yes |
| 7739 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7740 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7741 | 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] | 7742 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7743 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7744 | |
| 7745 | ac_cv_no_strict_aliasing=no |
| 7746 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7747 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7748 | 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] | 7749 | fi |
| 7750 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7751 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7752 | CC="$ac_save_cc" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7753 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
| 7754 | printf "%s\n" "$ac_cv_no_strict_aliasing" >&6; } |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7755 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7756 | then |
| 7757 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 7758 | fi |
| 7759 | |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7760 | # ICC doesn't recognize the option, but only emits a warning |
| 7761 | ## XXX does it emit an unused result warning and can it be disabled? |
| 7762 | case "$CC" in |
| 7763 | *icc*) |
| 7764 | ac_cv_disable_unused_result_warning=no |
| 7765 | ;; |
| 7766 | *) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7767 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 |
| 7768 | 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] | 7769 | ac_save_cc="$CC" |
| 7770 | CC="$CC -Wunused-result -Werror" |
| 7771 | save_CFLAGS="$CFLAGS" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7772 | if test ${ac_cv_disable_unused_result_warning+y} |
| 7773 | then : |
| 7774 | printf %s "(cached) " >&6 |
| 7775 | else $as_nop |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7777 | /* end confdefs.h. */ |
| 7778 | |
| 7779 | |
| 7780 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7781 | main (void) |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7782 | { |
| 7783 | |
| 7784 | ; |
| 7785 | return 0; |
| 7786 | } |
| 7787 | |
| 7788 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7789 | if ac_fn_c_try_compile "$LINENO" |
| 7790 | then : |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7791 | |
| 7792 | ac_cv_disable_unused_result_warning=yes |
| 7793 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7794 | else $as_nop |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7795 | |
| 7796 | ac_cv_disable_unused_result_warning=no |
| 7797 | |
| 7798 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7799 | 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] | 7800 | fi |
| 7801 | |
| 7802 | CFLAGS="$save_CFLAGS" |
| 7803 | CC="$ac_save_cc" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7804 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 |
| 7805 | printf "%s\n" "$ac_cv_disable_unused_result_warning" >&6; } |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7806 | ;; |
| 7807 | esac |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7808 | |
| 7809 | if test $ac_cv_disable_unused_result_warning = yes |
| 7810 | then |
| 7811 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7812 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" |
| 7813 | fi |
| 7814 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7815 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 |
| 7816 | 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] | 7817 | ac_save_cc="$CC" |
| 7818 | CC="$CC -Wunused-parameter -Werror" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7819 | if test ${ac_cv_disable_unused_parameter_warning+y} |
| 7820 | then : |
| 7821 | printf %s "(cached) " >&6 |
| 7822 | else $as_nop |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7824 | /* end confdefs.h. */ |
| 7825 | |
| 7826 | |
| 7827 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7828 | main (void) |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7829 | { |
| 7830 | |
| 7831 | ; |
| 7832 | return 0; |
| 7833 | } |
| 7834 | |
| 7835 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7836 | if ac_fn_c_try_compile "$LINENO" |
| 7837 | then : |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7838 | |
| 7839 | ac_cv_disable_unused_parameter_warning=yes |
| 7840 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7841 | else $as_nop |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7842 | |
| 7843 | ac_cv_disable_unused_parameter_warning=no |
| 7844 | |
| 7845 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7846 | 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] | 7847 | fi |
| 7848 | |
| 7849 | CC="$ac_save_cc" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 |
| 7851 | printf "%s\n" "$ac_cv_disable_unused_parameter_warning" >&6; } |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7852 | |
| 7853 | if test $ac_cv_disable_unused_parameter_warning = yes |
| 7854 | then |
| 7855 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" |
| 7856 | fi |
| 7857 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7858 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 |
| 7859 | 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] | 7860 | ac_save_cc="$CC" |
| 7861 | CC="$CC -Wmissing-field-initializers -Werror" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7862 | if test ${ac_cv_disable_missing_field_initializers+y} |
| 7863 | then : |
| 7864 | printf %s "(cached) " >&6 |
| 7865 | else $as_nop |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7867 | /* end confdefs.h. */ |
| 7868 | |
| 7869 | |
| 7870 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7871 | main (void) |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7872 | { |
| 7873 | |
| 7874 | ; |
| 7875 | return 0; |
| 7876 | } |
| 7877 | |
| 7878 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7879 | if ac_fn_c_try_compile "$LINENO" |
| 7880 | then : |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7881 | |
| 7882 | ac_cv_disable_missing_field_initializers=yes |
| 7883 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7884 | else $as_nop |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7885 | |
| 7886 | ac_cv_disable_missing_field_initializers=no |
| 7887 | |
| 7888 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7889 | 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] | 7890 | fi |
| 7891 | |
| 7892 | CC="$ac_save_cc" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7893 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 |
| 7894 | printf "%s\n" "$ac_cv_disable_missing_field_initializers" >&6; } |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7895 | |
| 7896 | if test $ac_cv_disable_missing_field_initializers = yes |
| 7897 | then |
| 7898 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7899 | fi |
| 7900 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 |
| 7902 | 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] | 7903 | ac_save_cc="$CC" |
| 7904 | CC="$CC -Wsign-compare" |
| 7905 | save_CFLAGS="$CFLAGS" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7906 | if test ${ac_cv_enable_sign_compare_warning+y} |
| 7907 | then : |
| 7908 | printf %s "(cached) " >&6 |
| 7909 | else $as_nop |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7911 | /* end confdefs.h. */ |
| 7912 | |
| 7913 | |
| 7914 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7915 | main (void) |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7916 | { |
| 7917 | |
| 7918 | ; |
| 7919 | return 0; |
| 7920 | } |
| 7921 | |
| 7922 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7923 | if ac_fn_c_try_compile "$LINENO" |
| 7924 | then : |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7925 | |
| 7926 | ac_cv_enable_sign_compare_warning=yes |
| 7927 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7928 | else $as_nop |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7929 | |
| 7930 | ac_cv_enable_sign_compare_warning=no |
| 7931 | |
| 7932 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7933 | 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] | 7934 | fi |
| 7935 | |
| 7936 | CFLAGS="$save_CFLAGS" |
| 7937 | CC="$ac_save_cc" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 |
| 7939 | printf "%s\n" "$ac_cv_enable_sign_compare_warning" >&6; } |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7940 | |
| 7941 | if test $ac_cv_enable_sign_compare_warning = yes |
| 7942 | then |
| 7943 | BASECFLAGS="$BASECFLAGS -Wsign-compare" |
| 7944 | fi |
| 7945 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 |
| 7947 | 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] | 7948 | ac_save_cc="$CC" |
| 7949 | CC="$CC -Wunreachable-code" |
| 7950 | save_CFLAGS="$CFLAGS" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7951 | if test ${ac_cv_enable_unreachable_code_warning+y} |
| 7952 | then : |
| 7953 | printf %s "(cached) " >&6 |
| 7954 | else $as_nop |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7956 | /* end confdefs.h. */ |
| 7957 | |
| 7958 | |
| 7959 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7960 | main (void) |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7961 | { |
| 7962 | |
| 7963 | ; |
| 7964 | return 0; |
| 7965 | } |
| 7966 | |
| 7967 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7968 | if ac_fn_c_try_compile "$LINENO" |
| 7969 | then : |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7970 | |
| 7971 | ac_cv_enable_unreachable_code_warning=yes |
| 7972 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7973 | else $as_nop |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7974 | |
| 7975 | ac_cv_enable_unreachable_code_warning=no |
| 7976 | |
| 7977 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7978 | 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] | 7979 | fi |
| 7980 | |
| 7981 | CFLAGS="$save_CFLAGS" |
| 7982 | CC="$ac_save_cc" |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7983 | |
| 7984 | # Don't enable unreachable code warning in debug mode, since it usually |
| 7985 | # results in non-standard code paths. |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7986 | # Issue #24324: Unfortunately, the unreachable code warning does not work |
| 7987 | # correctly on gcc and has been silently removed from the compiler. |
| 7988 | # It is supported on clang but on OS X systems gcc may be an alias |
| 7989 | # for clang. Try to determine if the compiler is not really gcc and, |
| 7990 | # if so, only then enable the warning. |
| 7991 | if test $ac_cv_enable_unreachable_code_warning = yes && \ |
| 7992 | test "$Py_DEBUG" != "true" && \ |
| 7993 | 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] | 7994 | then |
| 7995 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7996 | else |
| 7997 | ac_cv_enable_unreachable_code_warning=no |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7998 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 7999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 |
| 8000 | printf "%s\n" "$ac_cv_enable_unreachable_code_warning" >&6; } |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 8001 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8002 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5 |
| 8003 | 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] | 8004 | ac_save_cc="$CC" |
| 8005 | CC="$CC -Werror -Wstrict-prototypes" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8006 | if test ${ac_cv_enable_enable_strict_prototypes_warning+y} |
| 8007 | then : |
| 8008 | printf %s "(cached) " >&6 |
| 8009 | else $as_nop |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 8010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8011 | /* end confdefs.h. */ |
| 8012 | |
| 8013 | |
| 8014 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8015 | main (void) |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 8016 | { |
| 8017 | |
| 8018 | ; |
| 8019 | return 0; |
| 8020 | } |
| 8021 | |
| 8022 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8023 | if ac_fn_c_try_compile "$LINENO" |
| 8024 | then : |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 8025 | |
| 8026 | ac_cv_enable_strict_prototypes_warning=yes |
| 8027 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8028 | else $as_nop |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 8029 | |
| 8030 | ac_cv_enable_strict_prototypes_warning=no |
| 8031 | |
| 8032 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8033 | 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] | 8034 | fi |
| 8035 | |
| 8036 | CC="$ac_save_cc" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8037 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 |
| 8038 | printf "%s\n" "$ac_cv_enable_strict_prototypes_warning" >&6; } |
INADA Naoki | e336484 | 2018-06-05 20:40:53 +0900 | [diff] [blame] | 8039 | |
| 8040 | if test $ac_cv_enable_strict_prototypes_warning = yes |
| 8041 | then |
| 8042 | CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" |
| 8043 | fi |
| 8044 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 |
| 8046 | 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] | 8047 | ac_save_cc="$CC" |
| 8048 | CC="$CC -Werror=implicit-function-declaration" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8049 | if test ${ac_cv_enable_implicit_function_declaration_error+y} |
| 8050 | then : |
| 8051 | printf %s "(cached) " >&6 |
| 8052 | else $as_nop |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 8053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8054 | /* end confdefs.h. */ |
| 8055 | |
| 8056 | |
| 8057 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8058 | main (void) |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 8059 | { |
| 8060 | |
| 8061 | ; |
| 8062 | return 0; |
| 8063 | } |
| 8064 | |
| 8065 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8066 | if ac_fn_c_try_compile "$LINENO" |
| 8067 | then : |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 8068 | |
| 8069 | ac_cv_enable_implicit_function_declaration_error=yes |
| 8070 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8071 | else $as_nop |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 8072 | |
| 8073 | ac_cv_enable_implicit_function_declaration_error=no |
| 8074 | |
| 8075 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8076 | 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] | 8077 | fi |
| 8078 | |
| 8079 | CC="$ac_save_cc" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8080 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 |
| 8081 | printf "%s\n" "$ac_cv_enable_implicit_function_declaration_error" >&6; } |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 8082 | |
| 8083 | if test $ac_cv_enable_implicit_function_declaration_error = yes |
| 8084 | then |
| 8085 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" |
| 8086 | fi |
| 8087 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8088 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5 |
| 8089 | printf %s "checking if we can use visibility in $CC... " >&6; } |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 8090 | ac_save_cc="$CC" |
| 8091 | CC="$CC -fvisibility=hidden" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8092 | if test ${ac_cv_enable_visibility+y} |
| 8093 | then : |
| 8094 | printf %s "(cached) " >&6 |
| 8095 | else $as_nop |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 8096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8097 | /* end confdefs.h. */ |
| 8098 | |
| 8099 | |
| 8100 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8101 | main (void) |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 8102 | { |
| 8103 | |
| 8104 | ; |
| 8105 | return 0; |
| 8106 | } |
| 8107 | |
| 8108 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8109 | if ac_fn_c_try_compile "$LINENO" |
| 8110 | then : |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 8111 | |
| 8112 | ac_cv_enable_visibility=yes |
| 8113 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8114 | else $as_nop |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 8115 | |
| 8116 | ac_cv_enable_visibility=no |
| 8117 | |
| 8118 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8119 | 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] | 8120 | fi |
| 8121 | |
| 8122 | CC="$ac_save_cc" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5 |
| 8124 | printf "%s\n" "$ac_cv_enable_visibility" >&6; } |
Vinay Sajip | 0b60f64 | 2019-10-15 08:26:12 +0100 | [diff] [blame] | 8125 | |
| 8126 | if test $ac_cv_enable_visibility = yes |
| 8127 | then |
| 8128 | CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden" |
| 8129 | fi |
| 8130 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8131 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 8132 | # support. Without this, treatment of subnormals doesn't follow |
| 8133 | # the standard. |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 8134 | case $host in |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8135 | alpha*) |
| 8136 | BASECFLAGS="$BASECFLAGS -mieee" |
| 8137 | ;; |
| 8138 | esac |
| 8139 | |
| 8140 | case $ac_sys_system in |
| 8141 | SCO_SV*) |
| 8142 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 8143 | ;; |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8144 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8145 | Darwin*) |
| 8146 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 8147 | # used to be here, but non-Apple gcc doesn't accept them. |
| 8148 | if test "${CC}" = gcc |
| 8149 | then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8150 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 |
| 8151 | printf %s "checking which compiler should be used... " >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8152 | case "${UNIVERSALSDK}" in |
| 8153 | */MacOSX10.4u.sdk) |
| 8154 | # Build using 10.4 SDK, force usage of gcc when the |
| 8155 | # compiler is gcc, otherwise the user will get very |
| 8156 | # confusing error messages when building on OSX 10.6 |
| 8157 | CC=gcc-4.0 |
| 8158 | CPP=cpp-4.0 |
| 8159 | ;; |
| 8160 | esac |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 8162 | printf "%s\n" "$CC" >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8163 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8164 | |
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 8165 | LIPO_INTEL64_FLAGS="" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8166 | if test "${enable_universalsdk}" |
| 8167 | then |
| 8168 | case "$UNIVERSAL_ARCHS" in |
| 8169 | 32-bit) |
| 8170 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 8171 | LIPO_32BIT_FLAGS="" |
| 8172 | ARCH_RUN_32BIT="" |
| 8173 | ;; |
| 8174 | 64-bit) |
| 8175 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 8176 | LIPO_32BIT_FLAGS="" |
| 8177 | ARCH_RUN_32BIT="true" |
| 8178 | ;; |
| 8179 | all) |
| 8180 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 8181 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 8182 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 8183 | ;; |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 8184 | universal2) |
| 8185 | UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64" |
| 8186 | LIPO_32BIT_FLAGS="" |
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 8187 | LIPO_INTEL64_FLAGS="-extract x86_64" |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 8188 | ARCH_RUN_32BIT="true" |
Ned Deily | 0cb33da | 2021-05-02 04:48:29 -0400 | [diff] [blame] | 8189 | ;; |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8190 | intel) |
| 8191 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 8192 | LIPO_32BIT_FLAGS="-extract i386" |
| 8193 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
| 8194 | ;; |
| 8195 | intel-32) |
| 8196 | UNIVERSAL_ARCH_FLAGS="-arch i386" |
| 8197 | LIPO_32BIT_FLAGS="" |
| 8198 | ARCH_RUN_32BIT="" |
| 8199 | ;; |
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 8200 | intel-64) |
| 8201 | UNIVERSAL_ARCH_FLAGS="-arch x86_64" |
| 8202 | LIPO_32BIT_FLAGS="" |
| 8203 | ARCH_RUN_32BIT="true" |
| 8204 | ;; |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8205 | 3-way) |
| 8206 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 8207 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 8208 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 8209 | ;; |
| 8210 | *) |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 8211 | 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] | 8212 | ;; |
| 8213 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8214 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8215 | if test "${UNIVERSALSDK}" != "/" |
| 8216 | then |
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 8217 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 8218 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8219 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 8220 | else |
| 8221 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" |
| 8222 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8223 | fi |
| 8224 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8225 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8226 | # Calculate an appropriate deployment target for this build: |
| 8227 | # The deployment target value is used explicitly to enable certain |
| 8228 | # features are enabled (such as builtin libedit support for readline) |
Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 8229 | # 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] | 8230 | # component of the string returned by distutils.get_platform(). |
| 8231 | # |
| 8232 | # Use the value from: |
| 8233 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified |
| 8234 | # 2. the operating system version of the build machine if >= 10.6 |
| 8235 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests |
| 8236 | # below to pick either 10.3, 10.4, or 10.5 as the target. |
| 8237 | # 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] | 8238 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 |
| 8240 | printf %s "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 8241 | cur_target_major=`sw_vers -productVersion | \ |
| 8242 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 8243 | cur_target_minor=`sw_vers -productVersion | \ |
| 8244 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 8245 | cur_target="${cur_target_major}.${cur_target_minor}" |
| 8246 | if test ${cur_target_major} -eq 10 && \ |
| 8247 | test ${cur_target_minor} -ge 3 && \ |
| 8248 | test ${cur_target_minor} -le 5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8249 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 8250 | # OS X 10.3 through 10.5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8251 | cur_target=10.3 |
| 8252 | if test ${enable_universalsdk} |
| 8253 | then |
| 8254 | case "$UNIVERSAL_ARCHS" in |
| 8255 | all|3-way|intel|64-bit) |
| 8256 | # These configurations were first supported in 10.5 |
| 8257 | cur_target='10.5' |
| 8258 | ;; |
| 8259 | esac |
| 8260 | else |
| 8261 | if test `/usr/bin/arch` = "i386" |
| 8262 | then |
| 8263 | # 10.4 was the first release to support Intel archs |
| 8264 | cur_target="10.4" |
| 8265 | fi |
| 8266 | fi |
| 8267 | fi |
| 8268 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8269 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8270 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 8271 | # environment with a value that is the same as what we'll use |
| 8272 | # in the Makefile to ensure that we'll get the same compiler |
| 8273 | # environment during configure and build time. |
| 8274 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 8275 | export MACOSX_DEPLOYMENT_TARGET |
| 8276 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 |
| 8278 | printf "%s\n" "$MACOSX_DEPLOYMENT_TARGET" >&6; } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8279 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8280 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5 |
| 8281 | printf %s "checking if specified universal architectures work... " >&6; } |
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 8282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8283 | /* end confdefs.h. */ |
| 8284 | #include <stdio.h> |
| 8285 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8286 | main (void) |
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 8287 | { |
| 8288 | printf("%d", 42); |
| 8289 | ; |
| 8290 | return 0; |
| 8291 | } |
| 8292 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8293 | if ac_fn_c_try_link "$LINENO" |
| 8294 | then : |
| 8295 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8296 | printf "%s\n" "yes" >&6; } |
| 8297 | else $as_nop |
| 8298 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8299 | printf "%s\n" "no" >&6; } |
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 8300 | as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5 |
| 8301 | |
| 8302 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8303 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Ronald Oussoren | 0f20bd9 | 2020-11-22 02:13:11 +0100 | [diff] [blame] | 8304 | conftest$ac_exeext conftest.$ac_ext |
| 8305 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 8306 | # end of Darwin* tests |
| 8307 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8308 | esac |
| 8309 | ;; |
| 8310 | |
| 8311 | *) |
| 8312 | case $ac_sys_system in |
| 8313 | OpenUNIX*|UnixWare*) |
| 8314 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 8315 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8316 | SCO_SV*) |
| 8317 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 8318 | ;; |
| 8319 | esac |
| 8320 | ;; |
| 8321 | esac |
| 8322 | |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 8323 | case "$CC" in |
| 8324 | *icc*) |
Stefan Krah | 84a7917 | 2020-09-04 22:33:17 +0200 | [diff] [blame] | 8325 | # ICC needs -fp-model strict or floats behave badly |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 8326 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" |
| 8327 | ;; |
Stefan Krah | 84a7917 | 2020-09-04 22:33:17 +0200 | [diff] [blame] | 8328 | *xlc*) |
| 8329 | CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1" |
| 8330 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 8331 | esac |
| 8332 | |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 8333 | if test "$assertions" = 'true'; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8334 | : |
| 8335 | else |
| 8336 | OPT="-DNDEBUG $OPT" |
| 8337 | fi |
| 8338 | |
| 8339 | if test "$ac_arch_flags" |
| 8340 | then |
| 8341 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 8342 | fi |
| 8343 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8344 | # On some compilers, pthreads are available without further options |
| 8345 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 8346 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 8347 | # So we have to see first whether pthreads are available without |
| 8348 | # options before we can check whether -Kpthread improves anything. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8349 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
| 8350 | printf %s "checking whether pthreads are available without options... " >&6; } |
| 8351 | if test ${ac_cv_pthread_is_default+y} |
| 8352 | then : |
| 8353 | printf %s "(cached) " >&6 |
| 8354 | else $as_nop |
| 8355 | if test "$cross_compiling" = yes |
| 8356 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8357 | ac_cv_pthread_is_default=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8358 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8360 | /* end confdefs.h. */ |
| 8361 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 8362 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8363 | #include <pthread.h> |
| 8364 | |
| 8365 | void* routine(void* p){return NULL;} |
| 8366 | |
| 8367 | int main(){ |
| 8368 | pthread_t p; |
| 8369 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 8370 | return 1; |
| 8371 | (void)pthread_detach(p); |
| 8372 | return 0; |
| 8373 | } |
| 8374 | |
| 8375 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8376 | if ac_fn_c_try_run "$LINENO" |
| 8377 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8378 | |
| 8379 | ac_cv_pthread_is_default=yes |
| 8380 | ac_cv_kthread=no |
| 8381 | ac_cv_pthread=no |
| 8382 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8383 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8384 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8385 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8386 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8387 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8388 | fi |
| 8389 | |
| 8390 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8391 | fi |
| 8392 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
| 8394 | printf "%s\n" "$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8395 | |
| 8396 | |
| 8397 | if test $ac_cv_pthread_is_default = yes |
| 8398 | then |
| 8399 | ac_cv_kpthread=no |
| 8400 | else |
| 8401 | # -Kpthread, if available, provides the right #defines |
| 8402 | # and linker options to make pthread_create available |
| 8403 | # Some compilers won't report that they do not support -Kpthread, |
| 8404 | # so we need to run a program to see whether it really made the |
| 8405 | # function available. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8406 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
| 8407 | printf %s "checking whether $CC accepts -Kpthread... " >&6; } |
| 8408 | if test ${ac_cv_kpthread+y} |
| 8409 | then : |
| 8410 | printf %s "(cached) " >&6 |
| 8411 | else $as_nop |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8412 | ac_save_cc="$CC" |
| 8413 | CC="$CC -Kpthread" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8414 | if test "$cross_compiling" = yes |
| 8415 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8416 | ac_cv_kpthread=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8417 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8419 | /* end confdefs.h. */ |
| 8420 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 8421 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8422 | #include <pthread.h> |
| 8423 | |
| 8424 | void* routine(void* p){return NULL;} |
| 8425 | |
| 8426 | int main(){ |
| 8427 | pthread_t p; |
| 8428 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 8429 | return 1; |
| 8430 | (void)pthread_detach(p); |
| 8431 | return 0; |
| 8432 | } |
| 8433 | |
| 8434 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8435 | if ac_fn_c_try_run "$LINENO" |
| 8436 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8437 | ac_cv_kpthread=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8438 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8439 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8440 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8441 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8442 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8443 | fi |
| 8444 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8445 | CC="$ac_save_cc" |
| 8446 | fi |
| 8447 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8448 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
| 8449 | printf "%s\n" "$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8450 | fi |
| 8451 | |
| 8452 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 8453 | then |
| 8454 | # -Kthread, if available, provides the right #defines |
| 8455 | # and linker options to make pthread_create available |
| 8456 | # Some compilers won't report that they do not support -Kthread, |
| 8457 | # so we need to run a program to see whether it really made the |
| 8458 | # function available. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8459 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
| 8460 | printf %s "checking whether $CC accepts -Kthread... " >&6; } |
| 8461 | if test ${ac_cv_kthread+y} |
| 8462 | then : |
| 8463 | printf %s "(cached) " >&6 |
| 8464 | else $as_nop |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8465 | ac_save_cc="$CC" |
| 8466 | CC="$CC -Kthread" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8467 | if test "$cross_compiling" = yes |
| 8468 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8469 | ac_cv_kthread=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8470 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8472 | /* end confdefs.h. */ |
| 8473 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 8474 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8475 | #include <pthread.h> |
| 8476 | |
| 8477 | void* routine(void* p){return NULL;} |
| 8478 | |
| 8479 | int main(){ |
| 8480 | pthread_t p; |
| 8481 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 8482 | return 1; |
| 8483 | (void)pthread_detach(p); |
| 8484 | return 0; |
| 8485 | } |
| 8486 | |
| 8487 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8488 | if ac_fn_c_try_run "$LINENO" |
| 8489 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8490 | ac_cv_kthread=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8491 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8492 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8493 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8494 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8495 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8496 | fi |
| 8497 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8498 | CC="$ac_save_cc" |
| 8499 | fi |
| 8500 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8501 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
| 8502 | printf "%s\n" "$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8503 | fi |
| 8504 | |
| 8505 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 8506 | then |
| 8507 | # -pthread, if available, provides the right #defines |
| 8508 | # and linker options to make pthread_create available |
| 8509 | # Some compilers won't report that they do not support -pthread, |
| 8510 | # so we need to run a program to see whether it really made the |
| 8511 | # function available. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8512 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
| 8513 | printf %s "checking whether $CC accepts -pthread... " >&6; } |
| 8514 | if test ${ac_cv_pthread+y} |
| 8515 | then : |
| 8516 | printf %s "(cached) " >&6 |
| 8517 | else $as_nop |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8518 | ac_save_cc="$CC" |
| 8519 | CC="$CC -pthread" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8520 | if test "$cross_compiling" = yes |
| 8521 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8522 | ac_cv_pthread=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8523 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8525 | /* end confdefs.h. */ |
| 8526 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 8527 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8528 | #include <pthread.h> |
| 8529 | |
| 8530 | void* routine(void* p){return NULL;} |
| 8531 | |
| 8532 | int main(){ |
| 8533 | pthread_t p; |
| 8534 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 8535 | return 1; |
| 8536 | (void)pthread_detach(p); |
| 8537 | return 0; |
| 8538 | } |
| 8539 | |
| 8540 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8541 | if ac_fn_c_try_run "$LINENO" |
| 8542 | then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8543 | ac_cv_pthread=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8544 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8545 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8546 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8547 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8548 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8549 | fi |
| 8550 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8551 | CC="$ac_save_cc" |
| 8552 | fi |
| 8553 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
| 8555 | printf "%s\n" "$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8556 | fi |
| 8557 | |
| 8558 | # If we have set a CC compiler flag for thread support then |
| 8559 | # check if it works for CXX, too. |
| 8560 | ac_cv_cxx_thread=no |
| 8561 | if test ! -z "$CXX" |
| 8562 | then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8563 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
| 8564 | printf %s "checking whether $CXX also accepts flags for thread support... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8565 | ac_save_cxx="$CXX" |
| 8566 | |
| 8567 | if test "$ac_cv_kpthread" = "yes" |
| 8568 | then |
| 8569 | CXX="$CXX -Kpthread" |
| 8570 | ac_cv_cxx_thread=yes |
| 8571 | elif test "$ac_cv_kthread" = "yes" |
| 8572 | then |
| 8573 | CXX="$CXX -Kthread" |
| 8574 | ac_cv_cxx_thread=yes |
| 8575 | elif test "$ac_cv_pthread" = "yes" |
| 8576 | then |
| 8577 | CXX="$CXX -pthread" |
| 8578 | ac_cv_cxx_thread=yes |
| 8579 | fi |
| 8580 | |
| 8581 | if test $ac_cv_cxx_thread = yes |
| 8582 | then |
| 8583 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 8584 | $CXX -c conftest.$ac_ext 2>&5 |
| 8585 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 8586 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 8587 | then |
| 8588 | ac_cv_cxx_thread=yes |
| 8589 | else |
| 8590 | ac_cv_cxx_thread=no |
| 8591 | fi |
| 8592 | rm -fr conftest* |
| 8593 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8594 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
| 8595 | printf "%s\n" "$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8596 | fi |
| 8597 | CXX="$ac_save_cxx" |
| 8598 | |
| 8599 | |
| 8600 | # checks for header files |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8601 | # Autoupdate added the next two lines to ensure that your configure |
| 8602 | # script's behavior did not change. They are probably safe to remove. |
| 8603 | |
| 8604 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 8605 | printf %s "checking for egrep... " >&6; } |
| 8606 | if test ${ac_cv_path_EGREP+y} |
| 8607 | then : |
| 8608 | printf %s "(cached) " >&6 |
| 8609 | else $as_nop |
| 8610 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 8611 | then ac_cv_path_EGREP="$GREP -E" |
| 8612 | else |
| 8613 | if test -z "$EGREP"; then |
| 8614 | ac_path_EGREP_found=false |
| 8615 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 8616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8617 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 8618 | do |
| 8619 | IFS=$as_save_IFS |
| 8620 | case $as_dir in #((( |
| 8621 | '') as_dir=./ ;; |
| 8622 | */) ;; |
| 8623 | *) as_dir=$as_dir/ ;; |
| 8624 | esac |
| 8625 | for ac_prog in egrep |
| 8626 | do |
| 8627 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8628 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 8629 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 8630 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 8631 | # Check for GNU $ac_path_EGREP |
| 8632 | case `"$ac_path_EGREP" --version 2>&1` in |
| 8633 | *GNU*) |
| 8634 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 8635 | *) |
| 8636 | ac_count=0 |
| 8637 | printf %s 0123456789 >"conftest.in" |
| 8638 | while : |
| 8639 | do |
| 8640 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 8641 | mv "conftest.tmp" "conftest.in" |
| 8642 | cp "conftest.in" "conftest.nl" |
| 8643 | printf "%s\n" 'EGREP' >> "conftest.nl" |
| 8644 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 8645 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 8646 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 8647 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 8648 | # Best one so far, save it but keep looking for a better one |
| 8649 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 8650 | ac_path_EGREP_max=$ac_count |
| 8651 | fi |
| 8652 | # 10*(2^10) chars as input seems more than enough |
| 8653 | test $ac_count -gt 10 && break |
| 8654 | done |
| 8655 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 8656 | esac |
| 8657 | |
| 8658 | $ac_path_EGREP_found && break 3 |
| 8659 | done |
| 8660 | done |
| 8661 | done |
| 8662 | IFS=$as_save_IFS |
| 8663 | if test -z "$ac_cv_path_EGREP"; then |
| 8664 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 8665 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 8666 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8667 | ac_cv_path_EGREP=$EGREP |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 8668 | fi |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 8669 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8670 | fi |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 8671 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8672 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 8673 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
| 8674 | EGREP="$ac_cv_path_EGREP" |
| 8675 | |
| 8676 | |
| 8677 | |
| 8678 | ac_fn_c_check_header_compile "$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default" |
| 8679 | if test "x$ac_cv_header_asm_types_h" = xyes |
| 8680 | then : |
| 8681 | printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 8682 | |
| 8683 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8684 | ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" |
| 8685 | if test "x$ac_cv_header_crypt_h" = xyes |
| 8686 | then : |
| 8687 | printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 8688 | |
| 8689 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8690 | ac_fn_c_check_header_compile "$LINENO" "conio.h" "ac_cv_header_conio_h" "$ac_includes_default" |
| 8691 | if test "x$ac_cv_header_conio_h" = xyes |
| 8692 | then : |
| 8693 | printf "%s\n" "#define HAVE_CONIO_H 1" >>confdefs.h |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 8694 | |
| 8695 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8696 | ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default" |
| 8697 | if test "x$ac_cv_header_direct_h" = xyes |
| 8698 | then : |
| 8699 | printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 8700 | |
| 8701 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8702 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
| 8703 | if test "x$ac_cv_header_dlfcn_h" = xyes |
| 8704 | then : |
| 8705 | printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 8706 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 8707 | fi |
| 8708 | ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
| 8709 | if test "x$ac_cv_header_errno_h" = xyes |
| 8710 | then : |
| 8711 | printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h |
| 8712 | |
| 8713 | fi |
| 8714 | ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
| 8715 | if test "x$ac_cv_header_fcntl_h" = xyes |
| 8716 | then : |
| 8717 | printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h |
| 8718 | |
| 8719 | fi |
| 8720 | ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" |
| 8721 | if test "x$ac_cv_header_grp_h" = xyes |
| 8722 | then : |
| 8723 | printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h |
| 8724 | |
| 8725 | fi |
| 8726 | ac_fn_c_check_header_compile "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default" |
| 8727 | if test "x$ac_cv_header_ieeefp_h" = xyes |
| 8728 | then : |
| 8729 | printf "%s\n" "#define HAVE_IEEEFP_H 1" >>confdefs.h |
| 8730 | |
| 8731 | fi |
| 8732 | ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" |
| 8733 | if test "x$ac_cv_header_io_h" = xyes |
| 8734 | then : |
| 8735 | printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h |
| 8736 | |
| 8737 | fi |
| 8738 | ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" |
| 8739 | if test "x$ac_cv_header_langinfo_h" = xyes |
| 8740 | then : |
| 8741 | printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h |
| 8742 | |
| 8743 | fi |
| 8744 | ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" |
| 8745 | if test "x$ac_cv_header_libintl_h" = xyes |
| 8746 | then : |
| 8747 | printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h |
| 8748 | |
| 8749 | fi |
| 8750 | ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default" |
| 8751 | if test "x$ac_cv_header_process_h" = xyes |
| 8752 | then : |
| 8753 | printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h |
| 8754 | |
| 8755 | fi |
| 8756 | ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 8757 | if test "x$ac_cv_header_pthread_h" = xyes |
| 8758 | then : |
| 8759 | printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h |
| 8760 | |
| 8761 | fi |
| 8762 | ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" |
| 8763 | if test "x$ac_cv_header_sched_h" = xyes |
| 8764 | then : |
| 8765 | printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h |
| 8766 | |
| 8767 | fi |
| 8768 | ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" |
| 8769 | if test "x$ac_cv_header_shadow_h" = xyes |
| 8770 | then : |
| 8771 | printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h |
| 8772 | |
| 8773 | fi |
| 8774 | ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" |
| 8775 | if test "x$ac_cv_header_signal_h" = xyes |
| 8776 | then : |
| 8777 | printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h |
| 8778 | |
| 8779 | fi |
| 8780 | ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" |
| 8781 | if test "x$ac_cv_header_stropts_h" = xyes |
| 8782 | then : |
| 8783 | printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h |
| 8784 | |
| 8785 | fi |
| 8786 | ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" |
| 8787 | if test "x$ac_cv_header_termios_h" = xyes |
| 8788 | then : |
| 8789 | printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h |
| 8790 | |
| 8791 | fi |
| 8792 | ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" |
| 8793 | if test "x$ac_cv_header_utime_h" = xyes |
| 8794 | then : |
| 8795 | printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h |
| 8796 | |
| 8797 | fi |
| 8798 | ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" |
| 8799 | if test "x$ac_cv_header_poll_h" = xyes |
| 8800 | then : |
| 8801 | printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h |
| 8802 | |
| 8803 | fi |
| 8804 | ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default" |
| 8805 | if test "x$ac_cv_header_sys_devpoll_h" = xyes |
| 8806 | then : |
| 8807 | printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
| 8808 | |
| 8809 | fi |
| 8810 | ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" |
| 8811 | if test "x$ac_cv_header_sys_epoll_h" = xyes |
| 8812 | then : |
| 8813 | printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h |
| 8814 | |
| 8815 | fi |
| 8816 | ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" |
| 8817 | if test "x$ac_cv_header_sys_poll_h" = xyes |
| 8818 | then : |
| 8819 | printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h |
| 8820 | |
| 8821 | fi |
| 8822 | ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default" |
| 8823 | if test "x$ac_cv_header_sys_audioio_h" = xyes |
| 8824 | then : |
| 8825 | printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h |
| 8826 | |
| 8827 | fi |
| 8828 | ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" |
| 8829 | if test "x$ac_cv_header_sys_xattr_h" = xyes |
| 8830 | then : |
| 8831 | printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h |
| 8832 | |
| 8833 | fi |
| 8834 | ac_fn_c_check_header_compile "$LINENO" "sys/bsdtty.h" "ac_cv_header_sys_bsdtty_h" "$ac_includes_default" |
| 8835 | if test "x$ac_cv_header_sys_bsdtty_h" = xyes |
| 8836 | then : |
| 8837 | printf "%s\n" "#define HAVE_SYS_BSDTTY_H 1" >>confdefs.h |
| 8838 | |
| 8839 | fi |
| 8840 | ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" |
| 8841 | if test "x$ac_cv_header_sys_event_h" = xyes |
| 8842 | then : |
| 8843 | printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h |
| 8844 | |
| 8845 | fi |
| 8846 | ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" |
| 8847 | if test "x$ac_cv_header_sys_file_h" = xyes |
| 8848 | then : |
| 8849 | printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h |
| 8850 | |
| 8851 | fi |
| 8852 | ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
| 8853 | if test "x$ac_cv_header_sys_ioctl_h" = xyes |
| 8854 | then : |
| 8855 | printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
| 8856 | |
| 8857 | fi |
| 8858 | ac_fn_c_check_header_compile "$LINENO" "sys/kern_control.h" "ac_cv_header_sys_kern_control_h" "$ac_includes_default" |
| 8859 | if test "x$ac_cv_header_sys_kern_control_h" = xyes |
| 8860 | then : |
| 8861 | printf "%s\n" "#define HAVE_SYS_KERN_CONTROL_H 1" >>confdefs.h |
| 8862 | |
| 8863 | fi |
| 8864 | ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" |
| 8865 | if test "x$ac_cv_header_sys_loadavg_h" = xyes |
| 8866 | then : |
| 8867 | printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h |
| 8868 | |
| 8869 | fi |
| 8870 | ac_fn_c_check_header_compile "$LINENO" "sys/lock.h" "ac_cv_header_sys_lock_h" "$ac_includes_default" |
| 8871 | if test "x$ac_cv_header_sys_lock_h" = xyes |
| 8872 | then : |
| 8873 | printf "%s\n" "#define HAVE_SYS_LOCK_H 1" >>confdefs.h |
| 8874 | |
| 8875 | fi |
| 8876 | ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
| 8877 | if test "x$ac_cv_header_sys_mkdev_h" = xyes |
| 8878 | then : |
| 8879 | printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h |
| 8880 | |
| 8881 | fi |
| 8882 | ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default" |
| 8883 | if test "x$ac_cv_header_sys_modem_h" = xyes |
| 8884 | then : |
| 8885 | printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h |
| 8886 | |
| 8887 | fi |
| 8888 | ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| 8889 | if test "x$ac_cv_header_sys_param_h" = xyes |
| 8890 | then : |
| 8891 | printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
| 8892 | |
| 8893 | fi |
| 8894 | ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" |
| 8895 | if test "x$ac_cv_header_sys_random_h" = xyes |
| 8896 | then : |
| 8897 | printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h |
| 8898 | |
| 8899 | fi |
| 8900 | ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
| 8901 | if test "x$ac_cv_header_sys_select_h" = xyes |
| 8902 | then : |
| 8903 | printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
| 8904 | |
| 8905 | fi |
| 8906 | ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default" |
| 8907 | if test "x$ac_cv_header_sys_sendfile_h" = xyes |
| 8908 | then : |
| 8909 | printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h |
| 8910 | |
| 8911 | fi |
| 8912 | ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
| 8913 | if test "x$ac_cv_header_sys_socket_h" = xyes |
| 8914 | then : |
| 8915 | printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h |
| 8916 | |
| 8917 | fi |
| 8918 | ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" |
| 8919 | if test "x$ac_cv_header_sys_statvfs_h" = xyes |
| 8920 | then : |
| 8921 | printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h |
| 8922 | |
| 8923 | fi |
| 8924 | ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" |
| 8925 | if test "x$ac_cv_header_sys_stat_h" = xyes |
| 8926 | then : |
| 8927 | printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h |
| 8928 | |
| 8929 | fi |
| 8930 | ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" |
| 8931 | if test "x$ac_cv_header_sys_syscall_h" = xyes |
| 8932 | then : |
| 8933 | printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h |
| 8934 | |
| 8935 | fi |
| 8936 | ac_fn_c_check_header_compile "$LINENO" "sys/sys_domain.h" "ac_cv_header_sys_sys_domain_h" "$ac_includes_default" |
| 8937 | if test "x$ac_cv_header_sys_sys_domain_h" = xyes |
| 8938 | then : |
| 8939 | printf "%s\n" "#define HAVE_SYS_SYS_DOMAIN_H 1" >>confdefs.h |
| 8940 | |
| 8941 | fi |
| 8942 | ac_fn_c_check_header_compile "$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "$ac_includes_default" |
| 8943 | if test "x$ac_cv_header_sys_termio_h" = xyes |
| 8944 | then : |
| 8945 | printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h |
| 8946 | |
| 8947 | fi |
| 8948 | ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 8949 | if test "x$ac_cv_header_sys_time_h" = xyes |
| 8950 | then : |
| 8951 | printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 8952 | |
| 8953 | fi |
| 8954 | ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default" |
| 8955 | if test "x$ac_cv_header_sys_times_h" = xyes |
| 8956 | then : |
| 8957 | printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h |
| 8958 | |
| 8959 | fi |
| 8960 | ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 8961 | if test "x$ac_cv_header_sys_types_h" = xyes |
| 8962 | then : |
| 8963 | printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h |
| 8964 | |
| 8965 | fi |
| 8966 | ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" |
| 8967 | if test "x$ac_cv_header_sys_uio_h" = xyes |
| 8968 | then : |
| 8969 | printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h |
| 8970 | |
| 8971 | fi |
| 8972 | ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" |
| 8973 | if test "x$ac_cv_header_sys_un_h" = xyes |
| 8974 | then : |
| 8975 | printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h |
| 8976 | |
| 8977 | fi |
| 8978 | ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" |
| 8979 | if test "x$ac_cv_header_sys_utsname_h" = xyes |
| 8980 | then : |
| 8981 | printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h |
| 8982 | |
| 8983 | fi |
| 8984 | ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" |
| 8985 | if test "x$ac_cv_header_sys_wait_h" = xyes |
| 8986 | then : |
| 8987 | printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
| 8988 | |
| 8989 | fi |
| 8990 | ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" |
| 8991 | if test "x$ac_cv_header_pty_h" = xyes |
| 8992 | then : |
| 8993 | printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h |
| 8994 | |
| 8995 | fi |
| 8996 | ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" |
| 8997 | if test "x$ac_cv_header_libutil_h" = xyes |
| 8998 | then : |
| 8999 | printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h |
| 9000 | |
| 9001 | fi |
| 9002 | ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" |
| 9003 | if test "x$ac_cv_header_sys_resource_h" = xyes |
| 9004 | then : |
| 9005 | printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h |
| 9006 | |
| 9007 | fi |
| 9008 | ac_fn_c_check_header_compile "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default" |
| 9009 | if test "x$ac_cv_header_netpacket_packet_h" = xyes |
| 9010 | then : |
| 9011 | printf "%s\n" "#define HAVE_NETPACKET_PACKET_H 1" >>confdefs.h |
| 9012 | |
| 9013 | fi |
| 9014 | ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default" |
| 9015 | if test "x$ac_cv_header_sysexits_h" = xyes |
| 9016 | then : |
| 9017 | printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h |
| 9018 | |
| 9019 | fi |
| 9020 | ac_fn_c_check_header_compile "$LINENO" "bluetooth.h" "ac_cv_header_bluetooth_h" "$ac_includes_default" |
| 9021 | if test "x$ac_cv_header_bluetooth_h" = xyes |
| 9022 | then : |
| 9023 | printf "%s\n" "#define HAVE_BLUETOOTH_H 1" >>confdefs.h |
| 9024 | |
| 9025 | fi |
| 9026 | ac_fn_c_check_header_compile "$LINENO" "linux/tipc.h" "ac_cv_header_linux_tipc_h" "$ac_includes_default" |
| 9027 | if test "x$ac_cv_header_linux_tipc_h" = xyes |
| 9028 | then : |
| 9029 | printf "%s\n" "#define HAVE_LINUX_TIPC_H 1" >>confdefs.h |
| 9030 | |
| 9031 | fi |
| 9032 | ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default" |
| 9033 | if test "x$ac_cv_header_linux_random_h" = xyes |
| 9034 | then : |
| 9035 | printf "%s\n" "#define HAVE_LINUX_RANDOM_H 1" >>confdefs.h |
| 9036 | |
| 9037 | fi |
| 9038 | ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default" |
| 9039 | if test "x$ac_cv_header_spawn_h" = xyes |
| 9040 | then : |
| 9041 | printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h |
| 9042 | |
| 9043 | fi |
| 9044 | ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" |
| 9045 | if test "x$ac_cv_header_util_h" = xyes |
| 9046 | then : |
| 9047 | printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h |
| 9048 | |
| 9049 | fi |
| 9050 | ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" |
| 9051 | if test "x$ac_cv_header_alloca_h" = xyes |
| 9052 | then : |
| 9053 | printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h |
| 9054 | |
| 9055 | fi |
| 9056 | ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" |
| 9057 | if test "x$ac_cv_header_endian_h" = xyes |
| 9058 | then : |
| 9059 | printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h |
| 9060 | |
| 9061 | fi |
| 9062 | ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" |
| 9063 | if test "x$ac_cv_header_sys_endian_h" = xyes |
| 9064 | then : |
| 9065 | printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h |
| 9066 | |
| 9067 | fi |
| 9068 | ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
| 9069 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes |
| 9070 | then : |
| 9071 | printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h |
| 9072 | |
| 9073 | fi |
| 9074 | ac_fn_c_check_header_compile "$LINENO" "linux/memfd.h" "ac_cv_header_linux_memfd_h" "$ac_includes_default" |
| 9075 | if test "x$ac_cv_header_linux_memfd_h" = xyes |
| 9076 | then : |
| 9077 | printf "%s\n" "#define HAVE_LINUX_MEMFD_H 1" >>confdefs.h |
| 9078 | |
| 9079 | fi |
| 9080 | ac_fn_c_check_header_compile "$LINENO" "linux/wait.h" "ac_cv_header_linux_wait_h" "$ac_includes_default" |
| 9081 | if test "x$ac_cv_header_linux_wait_h" = xyes |
| 9082 | then : |
| 9083 | printf "%s\n" "#define HAVE_LINUX_WAIT_H 1" >>confdefs.h |
| 9084 | |
| 9085 | fi |
| 9086 | ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default" |
| 9087 | if test "x$ac_cv_header_sys_memfd_h" = xyes |
| 9088 | then : |
| 9089 | printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h |
| 9090 | |
| 9091 | fi |
| 9092 | ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
| 9093 | if test "x$ac_cv_header_sys_mman_h" = xyes |
| 9094 | then : |
| 9095 | printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h |
| 9096 | |
| 9097 | fi |
| 9098 | ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" |
| 9099 | if test "x$ac_cv_header_sys_eventfd_h" = xyes |
| 9100 | then : |
| 9101 | printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h |
| 9102 | |
| 9103 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9104 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9105 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9106 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9107 | as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9108 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 9109 | printf %s "checking for $ac_hdr that defines DIR... " >&6; } |
| 9110 | if eval test \${$as_ac_Header+y} |
| 9111 | then : |
| 9112 | printf %s "(cached) " >&6 |
| 9113 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9115 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9116 | #include <sys/types.h> |
| 9117 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9119 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9120 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9121 | { |
| 9122 | if ((DIR *) 0) |
| 9123 | return 0; |
| 9124 | ; |
| 9125 | return 0; |
| 9126 | } |
| 9127 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9128 | if ac_fn_c_try_compile "$LINENO" |
| 9129 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9130 | eval "$as_ac_Header=yes" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9131 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9132 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9133 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9134 | 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] | 9135 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9136 | eval ac_res=\$$as_ac_Header |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9137 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 9138 | printf "%s\n" "$ac_res" >&6; } |
| 9139 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
| 9140 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9141 | cat >>confdefs.h <<_ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9142 | #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] | 9143 | _ACEOF |
| 9144 | |
| 9145 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9146 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9147 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9148 | done |
| 9149 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9150 | if test $ac_header_dirent = dirent.h; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 9152 | printf %s "checking for library containing opendir... " >&6; } |
| 9153 | if test ${ac_cv_search_opendir+y} |
| 9154 | then : |
| 9155 | printf %s "(cached) " >&6 |
| 9156 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9157 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9159 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9160 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9161 | /* Override any GCC internal prototype to avoid an error. |
| 9162 | Use char because int might match the return type of a GCC |
| 9163 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9164 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9165 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9166 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9167 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9168 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9169 | ; |
| 9170 | return 0; |
| 9171 | } |
| 9172 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9173 | for ac_lib in '' dir |
| 9174 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9175 | if test -z "$ac_lib"; then |
| 9176 | ac_res="none required" |
| 9177 | else |
| 9178 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9179 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9180 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9181 | if ac_fn_c_try_link "$LINENO" |
| 9182 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9183 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9184 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9185 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9186 | conftest$ac_exeext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9187 | if test ${ac_cv_search_opendir+y} |
| 9188 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9189 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9190 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9191 | done |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9192 | if test ${ac_cv_search_opendir+y} |
| 9193 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9194 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9195 | else $as_nop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9196 | ac_cv_search_opendir=no |
| 9197 | fi |
| 9198 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9199 | LIBS=$ac_func_search_save_LIBS |
| 9200 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 9202 | printf "%s\n" "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9203 | ac_res=$ac_cv_search_opendir |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9204 | if test "$ac_res" != no |
| 9205 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9206 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9207 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9208 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9209 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9210 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9211 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 9212 | printf %s "checking for library containing opendir... " >&6; } |
| 9213 | if test ${ac_cv_search_opendir+y} |
| 9214 | then : |
| 9215 | printf %s "(cached) " >&6 |
| 9216 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9217 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9219 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9220 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9221 | /* Override any GCC internal prototype to avoid an error. |
| 9222 | Use char because int might match the return type of a GCC |
| 9223 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9224 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9225 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9226 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9227 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9228 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9229 | ; |
| 9230 | return 0; |
| 9231 | } |
| 9232 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9233 | for ac_lib in '' x |
| 9234 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9235 | if test -z "$ac_lib"; then |
| 9236 | ac_res="none required" |
| 9237 | else |
| 9238 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9239 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9240 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9241 | if ac_fn_c_try_link "$LINENO" |
| 9242 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9243 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9244 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9245 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9246 | conftest$ac_exeext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9247 | if test ${ac_cv_search_opendir+y} |
| 9248 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9249 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9250 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9251 | done |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9252 | if test ${ac_cv_search_opendir+y} |
| 9253 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9254 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9255 | else $as_nop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9256 | ac_cv_search_opendir=no |
| 9257 | fi |
| 9258 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9259 | LIBS=$ac_func_search_save_LIBS |
| 9260 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9261 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 9262 | printf "%s\n" "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9263 | ac_res=$ac_cv_search_opendir |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9264 | if test "$ac_res" != no |
| 9265 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9266 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9267 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9268 | fi |
| 9269 | |
| 9270 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9271 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 9272 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9273 | ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
| 9274 | if test "x$ac_cv_header_sys_mkdev_h" = xyes |
| 9275 | then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 9276 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9277 | printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 9278 | |
| 9279 | fi |
| 9280 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9281 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 9282 | ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
| 9283 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes |
| 9284 | then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 9285 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9286 | printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 9287 | |
| 9288 | fi |
| 9289 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 9290 | fi |
| 9291 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9292 | |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 9293 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. |
| 9294 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 |
| 9295 | SAVE_CFLAGS=$CFLAGS |
| 9296 | CFLAGS="-std=c99 $CFLAGS" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9297 | ac_fn_c_check_header_compile "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" |
| 9298 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes |
| 9299 | then : |
| 9300 | printf "%s\n" "#define HAVE_BLUETOOTH_BLUETOOTH_H 1" >>confdefs.h |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 9301 | |
| 9302 | fi |
| 9303 | |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 9304 | CFLAGS=$SAVE_CFLAGS |
| 9305 | |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 9306 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9307 | 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] | 9308 | #ifdef STDC_HEADERS |
| 9309 | # include <stdlib.h> |
| 9310 | # include <stddef.h> |
| 9311 | #else |
| 9312 | # ifdef HAVE_STDLIB_H |
| 9313 | # include <stdlib.h> |
| 9314 | # endif |
| 9315 | #endif |
| 9316 | #ifdef HAVE_SYS_SOCKET_H |
| 9317 | # include <sys/socket.h> |
| 9318 | #endif |
| 9319 | |
| 9320 | " |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9321 | if test "x$ac_cv_header_net_if_h" = xyes |
| 9322 | then : |
| 9323 | printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 9324 | |
| 9325 | fi |
| 9326 | |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 9327 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 9328 | # On Linux, netlink.h requires asm/types.h |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9329 | 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] | 9330 | #ifdef HAVE_ASM_TYPES_H |
| 9331 | #include <asm/types.h> |
| 9332 | #endif |
| 9333 | #ifdef HAVE_SYS_SOCKET_H |
| 9334 | #include <sys/socket.h> |
| 9335 | #endif |
| 9336 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9337 | " |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9338 | if test "x$ac_cv_header_linux_netlink_h" = xyes |
| 9339 | then : |
| 9340 | 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] | 9341 | |
| 9342 | fi |
| 9343 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 9344 | |
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 9345 | # On Linux, qrtr.h requires asm/types.h |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9346 | 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] | 9347 | #ifdef HAVE_ASM_TYPES_H |
| 9348 | #include <asm/types.h> |
| 9349 | #endif |
| 9350 | #ifdef HAVE_SYS_SOCKET_H |
| 9351 | #include <sys/socket.h> |
| 9352 | #endif |
| 9353 | |
| 9354 | " |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9355 | if test "x$ac_cv_header_linux_qrtr_h" = xyes |
| 9356 | then : |
| 9357 | printf "%s\n" "#define HAVE_LINUX_QRTR_H 1" >>confdefs.h |
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 9358 | |
| 9359 | fi |
| 9360 | |
Bjorn Andersson | bb81651 | 2018-09-26 06:47:52 -0700 | [diff] [blame] | 9361 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9362 | 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] | 9363 | #ifdef HAVE_SYS_SOCKET_H |
| 9364 | #include <sys/socket.h> |
| 9365 | #endif |
| 9366 | |
| 9367 | " |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9368 | if test "x$ac_cv_header_linux_vm_sockets_h" = xyes |
| 9369 | then : |
| 9370 | printf "%s\n" "#define HAVE_LINUX_VM_SOCKETS_H 1" >>confdefs.h |
caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 9371 | |
| 9372 | fi |
| 9373 | |
caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 9374 | |
karl ding | 360371f | 2020-04-29 15:31:19 -0700 | [diff] [blame] | 9375 | # On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9376 | 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] | 9377 | #ifdef HAVE_SYS_SOCKET_H |
| 9378 | #include <sys/socket.h> |
| 9379 | #endif |
| 9380 | |
| 9381 | " |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9382 | if test "x$ac_cv_header_linux_can_h" = xyes |
| 9383 | then : |
| 9384 | 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] | 9385 | |
| 9386 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9387 | ac_fn_c_check_header_compile "$LINENO" "linux/can/bcm.h" "ac_cv_header_linux_can_bcm_h" " |
| 9388 | #ifdef HAVE_SYS_SOCKET_H |
| 9389 | #include <sys/socket.h> |
| 9390 | #endif |
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 9391 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9392 | " |
| 9393 | if test "x$ac_cv_header_linux_can_bcm_h" = xyes |
| 9394 | then : |
| 9395 | printf "%s\n" "#define HAVE_LINUX_CAN_BCM_H 1" >>confdefs.h |
| 9396 | |
| 9397 | fi |
| 9398 | ac_fn_c_check_header_compile "$LINENO" "linux/can/j1939.h" "ac_cv_header_linux_can_j1939_h" " |
| 9399 | #ifdef HAVE_SYS_SOCKET_H |
| 9400 | #include <sys/socket.h> |
| 9401 | #endif |
| 9402 | |
| 9403 | " |
| 9404 | if test "x$ac_cv_header_linux_can_j1939_h" = xyes |
| 9405 | then : |
| 9406 | printf "%s\n" "#define HAVE_LINUX_CAN_J1939_H 1" >>confdefs.h |
| 9407 | |
| 9408 | fi |
| 9409 | ac_fn_c_check_header_compile "$LINENO" "linux/can/raw.h" "ac_cv_header_linux_can_raw_h" " |
| 9410 | #ifdef HAVE_SYS_SOCKET_H |
| 9411 | #include <sys/socket.h> |
| 9412 | #endif |
| 9413 | |
| 9414 | " |
| 9415 | if test "x$ac_cv_header_linux_can_raw_h" = xyes |
| 9416 | then : |
| 9417 | printf "%s\n" "#define HAVE_LINUX_CAN_RAW_H 1" >>confdefs.h |
| 9418 | |
| 9419 | fi |
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 9420 | |
| 9421 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9422 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9423 | was_it_defined=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
| 9425 | printf %s "checking for clock_t in time.h... " >&6; } |
| 9426 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9428 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9429 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9430 | |
| 9431 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9432 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9433 | $EGREP "clock_t" >/dev/null 2>&1 |
| 9434 | then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9435 | was_it_defined=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9436 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9437 | |
| 9438 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9439 | printf "%s\n" "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9440 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9441 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9442 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9443 | rm -rf conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9444 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9445 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 9446 | printf "%s\n" "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9447 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9448 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
| 9449 | printf %s "checking for makedev... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9451 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9452 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 9453 | #if defined(MAJOR_IN_MKDEV) |
| 9454 | #include <sys/mkdev.h> |
| 9455 | #elif defined(MAJOR_IN_SYSMACROS) |
| 9456 | #include <sys/sysmacros.h> |
| 9457 | #else |
| 9458 | #include <sys/types.h> |
| 9459 | #endif |
| 9460 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9461 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9462 | main (void) |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9463 | { |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 9464 | |
| 9465 | makedev(0, 0) |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9466 | ; |
| 9467 | return 0; |
| 9468 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9469 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9470 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9471 | if ac_fn_c_try_link "$LINENO" |
| 9472 | then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9473 | ac_cv_has_makedev=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9474 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9475 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9476 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9477 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9478 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9479 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
| 9480 | printf "%s\n" "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9481 | if test "$ac_cv_has_makedev" = "yes"; then |
| 9482 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9483 | printf "%s\n" "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 9484 | |
| 9485 | fi |
| 9486 | |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9487 | # byte swapping |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 |
| 9489 | printf %s "checking for le64toh... " >&6; } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9491 | /* end confdefs.h. */ |
| 9492 | |
| 9493 | #ifdef HAVE_ENDIAN_H |
| 9494 | #include <endian.h> |
| 9495 | #elif defined(HAVE_SYS_ENDIAN_H) |
| 9496 | #include <sys/endian.h> |
| 9497 | #endif |
| 9498 | |
| 9499 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9500 | main (void) |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9501 | { |
| 9502 | |
| 9503 | le64toh(1) |
| 9504 | ; |
| 9505 | return 0; |
| 9506 | } |
| 9507 | |
| 9508 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9509 | if ac_fn_c_try_link "$LINENO" |
| 9510 | then : |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9511 | ac_cv_has_le64toh=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9512 | else $as_nop |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9513 | ac_cv_has_le64toh=no |
| 9514 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9515 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9516 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9517 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 |
| 9518 | printf "%s\n" "$ac_cv_has_le64toh" >&6; } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9519 | if test "$ac_cv_has_le64toh" = "yes"; then |
| 9520 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9521 | printf "%s\n" "#define HAVE_HTOLE64 1" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9522 | |
| 9523 | fi |
| 9524 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 9525 | use_lfs=yes |
doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 9526 | # Don't use largefile support for GNU/Hurd |
| 9527 | case $ac_sys_system in GNU*) |
| 9528 | use_lfs=no |
| 9529 | esac |
| 9530 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 9531 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 9532 | # Two defines needed to enable largefile support on various platforms |
| 9533 | # These may affect some typedefs |
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 9534 | case $ac_sys_system/$ac_sys_release in |
| 9535 | AIX*) |
| 9536 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9537 | printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h |
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 9538 | |
| 9539 | ;; |
| 9540 | esac |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 9541 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9542 | printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9543 | |
| 9544 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9545 | printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 9546 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 9547 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9548 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 9549 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 9550 | cat >> confdefs.h <<\EOF |
| 9551 | #if defined(SCO_DS) |
| 9552 | #undef _OFF_T |
| 9553 | #endif |
| 9554 | EOF |
| 9555 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9556 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9557 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9558 | if test "x$ac_cv_type_mode_t" = xyes |
| 9559 | then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9560 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9561 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9562 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9563 | printf "%s\n" "#define mode_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 | |
| 9565 | fi |
| 9566 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9567 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9568 | if test "x$ac_cv_type_off_t" = xyes |
| 9569 | then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9570 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9571 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9572 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9573 | printf "%s\n" "#define off_t long int" >>confdefs.h |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 9574 | |
| 9575 | fi |
| 9576 | |
| 9577 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9578 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
| 9579 | " |
| 9580 | if test "x$ac_cv_type_pid_t" = xyes |
| 9581 | then : |
| 9582 | |
| 9583 | else $as_nop |
| 9584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9585 | /* end confdefs.h. */ |
| 9586 | |
| 9587 | #if defined _WIN64 && !defined __CYGWIN__ |
| 9588 | LLP64 |
| 9589 | #endif |
| 9590 | |
| 9591 | int |
| 9592 | main (void) |
| 9593 | { |
| 9594 | |
| 9595 | ; |
| 9596 | return 0; |
| 9597 | } |
| 9598 | |
Pablo Galindo Salgado | c2e0b13 | 2021-07-30 16:14:28 +0100 | [diff] [blame] | 9599 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9600 | if ac_fn_c_try_compile "$LINENO" |
| 9601 | then : |
| 9602 | ac_pid_type='int' |
| 9603 | else $as_nop |
| 9604 | ac_pid_type='__int64' |
| 9605 | fi |
| 9606 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9607 | |
| 9608 | printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
| 9609 | |
| 9610 | |
| 9611 | fi |
| 9612 | |
| 9613 | |
| 9614 | |
| 9615 | printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9616 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9617 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9618 | if test "x$ac_cv_type_size_t" = xyes |
| 9619 | then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9620 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9621 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9622 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9623 | printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | |
| 9625 | fi |
| 9626 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9627 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 9628 | printf %s "checking for uid_t in sys/types.h... " >&6; } |
| 9629 | if test ${ac_cv_type_uid_t+y} |
| 9630 | then : |
| 9631 | printf %s "(cached) " >&6 |
| 9632 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9634 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9635 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9636 | |
| 9637 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9638 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9639 | $EGREP "uid_t" >/dev/null 2>&1 |
| 9640 | then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9641 | ac_cv_type_uid_t=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9642 | else $as_nop |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9643 | ac_cv_type_uid_t=no |
| 9644 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9645 | rm -rf conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9646 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9647 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9648 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 9649 | printf "%s\n" "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9650 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9651 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9652 | printf "%s\n" "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9653 | |
| 9654 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9655 | printf "%s\n" "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9656 | |
| 9657 | fi |
| 9658 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 9659 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9660 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9661 | if test "x$ac_cv_type_ssize_t" = xyes |
| 9662 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9663 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9664 | printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9665 | |
| 9666 | fi |
| 9667 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 9668 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9669 | if test "x$ac_cv_type___uint128_t" = xyes |
| 9670 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 9671 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9672 | printf "%s\n" "#define HAVE_GCC_UINT128_T 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 9673 | |
| 9674 | fi |
| 9675 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 9676 | |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 9677 | # Sizes and alignments of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 9678 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9679 | # The cast to long int works around a bug in the HP C Compiler |
| 9680 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9681 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9682 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9683 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 9684 | printf %s "checking size of int... " >&6; } |
| 9685 | if test ${ac_cv_sizeof_int+y} |
| 9686 | then : |
| 9687 | printf %s "(cached) " >&6 |
| 9688 | else $as_nop |
| 9689 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" |
| 9690 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9691 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9692 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9693 | if test "$ac_cv_type_int" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9694 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9695 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9696 | as_fn_error 77 "cannot compute sizeof (int) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9697 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9698 | else |
| 9699 | ac_cv_sizeof_int=0 |
| 9700 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9701 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9703 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 9705 | printf "%s\n" "$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9706 | |
| 9707 | |
| 9708 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9709 | 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] | 9710 | |
| 9711 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9712 | # The cast to long int works around a bug in the HP C Compiler |
| 9713 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9714 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9715 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9716 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 9717 | printf %s "checking size of long... " >&6; } |
| 9718 | if test ${ac_cv_sizeof_long+y} |
| 9719 | then : |
| 9720 | printf %s "(cached) " >&6 |
| 9721 | else $as_nop |
| 9722 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" |
| 9723 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9724 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9725 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9726 | if test "$ac_cv_type_long" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9727 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9728 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9729 | as_fn_error 77 "cannot compute sizeof (long) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9730 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9731 | else |
| 9732 | ac_cv_sizeof_long=0 |
| 9733 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9734 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9736 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 9738 | printf "%s\n" "$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9739 | |
| 9740 | |
| 9741 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9742 | 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] | 9743 | |
| 9744 | |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 9745 | # The cast to long int works around a bug in the HP C Compiler, |
| 9746 | # see AC_CHECK_SIZEOF for more information. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5 |
| 9748 | printf %s "checking alignment of long... " >&6; } |
| 9749 | if test ${ac_cv_alignof_long+y} |
| 9750 | then : |
| 9751 | printf %s "(cached) " >&6 |
| 9752 | else $as_nop |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 9753 | if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9754 | typedef struct { char x; long y; } ac__type_alignof_;" |
| 9755 | then : |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 9756 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9757 | else $as_nop |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 9758 | if test "$ac_cv_type_long" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9759 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9760 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 9761 | as_fn_error 77 "cannot compute alignment of long |
| 9762 | See \`config.log' for more details" "$LINENO" 5; } |
| 9763 | else |
| 9764 | ac_cv_alignof_long=0 |
| 9765 | fi |
| 9766 | fi |
| 9767 | |
| 9768 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5 |
| 9770 | printf "%s\n" "$ac_cv_alignof_long" >&6; } |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 9771 | |
| 9772 | |
| 9773 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9774 | printf "%s\n" "#define ALIGNOF_LONG $ac_cv_alignof_long" >>confdefs.h |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 9775 | |
| 9776 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9777 | # The cast to long int works around a bug in the HP C Compiler |
| 9778 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9779 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9780 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9781 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 9782 | printf %s "checking size of long long... " >&6; } |
| 9783 | if test ${ac_cv_sizeof_long_long+y} |
| 9784 | then : |
| 9785 | printf %s "(cached) " >&6 |
| 9786 | else $as_nop |
| 9787 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" |
| 9788 | then : |
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 9789 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9790 | else $as_nop |
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 9791 | if test "$ac_cv_type_long_long" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9792 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9793 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 9794 | as_fn_error 77 "cannot compute sizeof (long long) |
| 9795 | See \`config.log' for more details" "$LINENO" 5; } |
| 9796 | else |
| 9797 | ac_cv_sizeof_long_long=0 |
| 9798 | fi |
| 9799 | fi |
| 9800 | |
| 9801 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 9803 | printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } |
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 9804 | |
| 9805 | |
| 9806 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9807 | 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] | 9808 | |
| 9809 | |
| 9810 | # The cast to long int works around a bug in the HP C Compiler |
| 9811 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9812 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9813 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9814 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 9815 | printf %s "checking size of void *... " >&6; } |
| 9816 | if test ${ac_cv_sizeof_void_p+y} |
| 9817 | then : |
| 9818 | printf %s "(cached) " >&6 |
| 9819 | else $as_nop |
| 9820 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" |
| 9821 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9822 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9823 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9824 | if test "$ac_cv_type_void_p" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9825 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9826 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9827 | as_fn_error 77 "cannot compute sizeof (void *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9828 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9829 | else |
| 9830 | ac_cv_sizeof_void_p=0 |
| 9831 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9832 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9833 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9835 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 9836 | printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9837 | |
| 9838 | |
| 9839 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9840 | 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] | 9841 | |
| 9842 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9843 | # The cast to long int works around a bug in the HP C Compiler |
| 9844 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9845 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9846 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9847 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 9848 | printf %s "checking size of short... " >&6; } |
| 9849 | if test ${ac_cv_sizeof_short+y} |
| 9850 | then : |
| 9851 | printf %s "(cached) " >&6 |
| 9852 | else $as_nop |
| 9853 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" |
| 9854 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9855 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9856 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9857 | if test "$ac_cv_type_short" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9858 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9859 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9860 | as_fn_error 77 "cannot compute sizeof (short) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9861 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9862 | else |
| 9863 | ac_cv_sizeof_short=0 |
| 9864 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9865 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9867 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9868 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 9869 | printf "%s\n" "$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9870 | |
| 9871 | |
| 9872 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9873 | 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] | 9874 | |
| 9875 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9876 | # The cast to long int works around a bug in the HP C Compiler |
| 9877 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9878 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9879 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9880 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 9881 | printf %s "checking size of float... " >&6; } |
| 9882 | if test ${ac_cv_sizeof_float+y} |
| 9883 | then : |
| 9884 | printf %s "(cached) " >&6 |
| 9885 | else $as_nop |
| 9886 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default" |
| 9887 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9888 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9889 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9890 | if test "$ac_cv_type_float" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9891 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9892 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9893 | as_fn_error 77 "cannot compute sizeof (float) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9894 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9895 | else |
| 9896 | ac_cv_sizeof_float=0 |
| 9897 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9898 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 9902 | printf "%s\n" "$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9903 | |
| 9904 | |
| 9905 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9906 | 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] | 9907 | |
| 9908 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9909 | # The cast to long int works around a bug in the HP C Compiler |
| 9910 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9911 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9912 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 9914 | printf %s "checking size of double... " >&6; } |
| 9915 | if test ${ac_cv_sizeof_double+y} |
| 9916 | then : |
| 9917 | printf %s "(cached) " >&6 |
| 9918 | else $as_nop |
| 9919 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default" |
| 9920 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9921 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9922 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9923 | if test "$ac_cv_type_double" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9924 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9925 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9926 | as_fn_error 77 "cannot compute sizeof (double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9927 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9928 | else |
| 9929 | ac_cv_sizeof_double=0 |
| 9930 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9931 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9933 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 9935 | printf "%s\n" "$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9936 | |
| 9937 | |
| 9938 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9939 | 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] | 9940 | |
| 9941 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9942 | # The cast to long int works around a bug in the HP C Compiler |
| 9943 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9944 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9945 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
| 9947 | printf %s "checking size of fpos_t... " >&6; } |
| 9948 | if test ${ac_cv_sizeof_fpos_t+y} |
| 9949 | then : |
| 9950 | printf %s "(cached) " >&6 |
| 9951 | else $as_nop |
| 9952 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default" |
| 9953 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9954 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9955 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9956 | if test "$ac_cv_type_fpos_t" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9957 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9958 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9959 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9960 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9961 | else |
| 9962 | ac_cv_sizeof_fpos_t=0 |
| 9963 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9964 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9966 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
| 9968 | printf "%s\n" "$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9969 | |
| 9970 | |
| 9971 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9972 | 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] | 9973 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9974 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9975 | # The cast to long int works around a bug in the HP C Compiler |
| 9976 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9977 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9978 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9979 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 9980 | printf %s "checking size of size_t... " >&6; } |
| 9981 | if test ${ac_cv_sizeof_size_t+y} |
| 9982 | then : |
| 9983 | printf %s "(cached) " >&6 |
| 9984 | else $as_nop |
| 9985 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" |
| 9986 | then : |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9987 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9988 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9989 | if test "$ac_cv_type_size_t" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 9990 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9991 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9992 | as_fn_error 77 "cannot compute sizeof (size_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9993 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9994 | else |
| 9995 | ac_cv_sizeof_size_t=0 |
| 9996 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9997 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9998 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9999 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 10001 | printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10002 | |
| 10003 | |
| 10004 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10005 | 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] | 10006 | |
| 10007 | |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 10008 | # The cast to long int works around a bug in the HP C Compiler, |
| 10009 | # see AC_CHECK_SIZEOF for more information. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5 |
| 10011 | printf %s "checking alignment of size_t... " >&6; } |
| 10012 | if test ${ac_cv_alignof_size_t+y} |
| 10013 | then : |
| 10014 | printf %s "(cached) " >&6 |
| 10015 | else $as_nop |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 10016 | if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_size_t" "$ac_includes_default |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10017 | typedef struct { char x; size_t y; } ac__type_alignof_;" |
| 10018 | then : |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 10019 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10020 | else $as_nop |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 10021 | if test "$ac_cv_type_size_t" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10022 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10023 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 10024 | as_fn_error 77 "cannot compute alignment of size_t |
| 10025 | See \`config.log' for more details" "$LINENO" 5; } |
| 10026 | else |
| 10027 | ac_cv_alignof_size_t=0 |
| 10028 | fi |
| 10029 | fi |
| 10030 | |
| 10031 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10032 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_size_t" >&5 |
| 10033 | printf "%s\n" "$ac_cv_alignof_size_t" >&6; } |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 10034 | |
| 10035 | |
| 10036 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10037 | printf "%s\n" "#define ALIGNOF_SIZE_T $ac_cv_alignof_size_t" >>confdefs.h |
Jessica Clarke | dec0757 | 2021-03-31 11:12:39 +0100 | [diff] [blame] | 10038 | |
| 10039 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10040 | # The cast to long int works around a bug in the HP C Compiler |
| 10041 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10042 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10043 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10044 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
| 10045 | printf %s "checking size of pid_t... " >&6; } |
| 10046 | if test ${ac_cv_sizeof_pid_t+y} |
| 10047 | then : |
| 10048 | printf %s "(cached) " >&6 |
| 10049 | else $as_nop |
| 10050 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default" |
| 10051 | then : |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10052 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10053 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10054 | if test "$ac_cv_type_pid_t" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10055 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10056 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10057 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10058 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10059 | else |
| 10060 | ac_cv_sizeof_pid_t=0 |
| 10061 | fi |
| 10062 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10063 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10064 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10065 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
| 10066 | printf "%s\n" "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10067 | |
| 10068 | |
| 10069 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10070 | 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] | 10071 | |
| 10072 | |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 10073 | # The cast to long int works around a bug in the HP C Compiler |
| 10074 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10075 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10076 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10077 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
| 10078 | printf %s "checking size of uintptr_t... " >&6; } |
| 10079 | if test ${ac_cv_sizeof_uintptr_t+y} |
| 10080 | then : |
| 10081 | printf %s "(cached) " >&6 |
| 10082 | else $as_nop |
| 10083 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default" |
| 10084 | then : |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 10085 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10086 | else $as_nop |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 10087 | if test "$ac_cv_type_uintptr_t" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10088 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10089 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 10090 | as_fn_error 77 "cannot compute sizeof (uintptr_t) |
| 10091 | See \`config.log' for more details" "$LINENO" 5; } |
| 10092 | else |
| 10093 | ac_cv_sizeof_uintptr_t=0 |
| 10094 | fi |
| 10095 | fi |
| 10096 | |
| 10097 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10098 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 10099 | printf "%s\n" "$ac_cv_sizeof_uintptr_t" >&6; } |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 10100 | |
| 10101 | |
| 10102 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10103 | 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] | 10104 | |
| 10105 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10106 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10107 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10108 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
| 10109 | printf %s "checking for long double... " >&6; } |
| 10110 | if test ${ac_cv_type_long_double+y} |
| 10111 | then : |
| 10112 | printf %s "(cached) " >&6 |
| 10113 | else $as_nop |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 10114 | if test "$GCC" = yes; then |
| 10115 | ac_cv_type_long_double=yes |
| 10116 | else |
| 10117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10118 | /* end confdefs.h. */ |
| 10119 | /* The Stardent Vistra knows sizeof (long double), but does |
| 10120 | not support it. */ |
| 10121 | long double foo = 0.0L; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10122 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10123 | main (void) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10124 | { |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 10125 | static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 10126 | sizeof (double) <= sizeof (long double))]; |
| 10127 | test_array [0] = 0; |
| 10128 | return test_array [0]; |
| 10129 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10130 | ; |
| 10131 | return 0; |
| 10132 | } |
| 10133 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10134 | if ac_fn_c_try_compile "$LINENO" |
| 10135 | then : |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 10136 | ac_cv_type_long_double=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10137 | else $as_nop |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 10138 | ac_cv_type_long_double=no |
| 10139 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10140 | 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] | 10141 | fi |
| 10142 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 |
| 10144 | printf "%s\n" "$ac_cv_type_long_double" >&6; } |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 10145 | if test $ac_cv_type_long_double = yes; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10146 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10147 | printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10148 | |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 10149 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10150 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10151 | # The cast to long int works around a bug in the HP C Compiler |
| 10152 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10153 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10154 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10155 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
| 10156 | printf %s "checking size of long double... " >&6; } |
| 10157 | if test ${ac_cv_sizeof_long_double+y} |
| 10158 | then : |
| 10159 | printf %s "(cached) " >&6 |
| 10160 | else $as_nop |
| 10161 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default" |
| 10162 | then : |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10163 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10164 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10165 | if test "$ac_cv_type_long_double" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10166 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10167 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10168 | as_fn_error 77 "cannot compute sizeof (long double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10169 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10170 | else |
| 10171 | ac_cv_sizeof_long_double=0 |
| 10172 | fi |
| 10173 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10174 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10175 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10176 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
| 10177 | printf "%s\n" "$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10178 | |
| 10179 | |
| 10180 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10181 | 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] | 10182 | |
| 10183 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10184 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10185 | # The cast to long int works around a bug in the HP C Compiler |
| 10186 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10187 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10188 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
| 10190 | printf %s "checking size of _Bool... " >&6; } |
| 10191 | if test ${ac_cv_sizeof__Bool+y} |
| 10192 | then : |
| 10193 | printf %s "(cached) " >&6 |
| 10194 | else $as_nop |
| 10195 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default" |
| 10196 | then : |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 10197 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10198 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10199 | if test "$ac_cv_type__Bool" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10200 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10201 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10202 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10203 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10204 | else |
| 10205 | ac_cv_sizeof__Bool=0 |
| 10206 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 10207 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10208 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 10209 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10210 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
| 10211 | printf "%s\n" "$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10212 | |
| 10213 | |
| 10214 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10215 | printf "%s\n" "#define SIZEOF__BOOL $ac_cv_sizeof__Bool" >>confdefs.h |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 10216 | |
| 10217 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 10218 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10219 | # The cast to long int works around a bug in the HP C Compiler |
| 10220 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10221 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10222 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 10224 | printf %s "checking size of off_t... " >&6; } |
| 10225 | if test ${ac_cv_sizeof_off_t+y} |
| 10226 | then : |
| 10227 | printf %s "(cached) " >&6 |
| 10228 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10229 | 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] | 10230 | #ifdef HAVE_SYS_TYPES_H |
| 10231 | #include <sys/types.h> |
| 10232 | #endif |
| 10233 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10234 | " |
| 10235 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10236 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10237 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10238 | if test "$ac_cv_type_off_t" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10239 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10240 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10241 | as_fn_error 77 "cannot compute sizeof (off_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10242 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10243 | else |
| 10244 | ac_cv_sizeof_off_t=0 |
| 10245 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10246 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10247 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10248 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 10250 | printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10252 | |
| 10253 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10254 | 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] | 10255 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10256 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10257 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10258 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
| 10259 | printf %s "checking whether to enable large file support... " >&6; } |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 10260 | 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] | 10261 | "$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] | 10262 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10263 | printf "%s\n" "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10264 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10265 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10266 | printf "%s\n" "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10267 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10268 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10269 | printf "%s\n" "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10270 | fi |
| 10271 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10272 | # The cast to long int works around a bug in the HP C Compiler |
| 10273 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10274 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10275 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10276 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 10277 | printf %s "checking size of time_t... " >&6; } |
| 10278 | if test ${ac_cv_sizeof_time_t+y} |
| 10279 | then : |
| 10280 | printf %s "(cached) " >&6 |
| 10281 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10282 | 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] | 10283 | #ifdef HAVE_SYS_TYPES_H |
| 10284 | #include <sys/types.h> |
| 10285 | #endif |
| 10286 | #ifdef HAVE_TIME_H |
| 10287 | #include <time.h> |
| 10288 | #endif |
| 10289 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10290 | " |
| 10291 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10292 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10293 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10294 | if test "$ac_cv_type_time_t" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10295 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10296 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10297 | as_fn_error 77 "cannot compute sizeof (time_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10298 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10299 | else |
| 10300 | ac_cv_sizeof_time_t=0 |
| 10301 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10302 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10303 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10304 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10305 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 10306 | printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10308 | |
| 10309 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10310 | 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] | 10311 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10312 | |
| 10313 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10314 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10315 | ac_save_cc="$CC" |
| 10316 | if test "$ac_cv_kpthread" = "yes" |
| 10317 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10318 | elif test "$ac_cv_kthread" = "yes" |
| 10319 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10320 | elif test "$ac_cv_pthread" = "yes" |
| 10321 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10322 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10323 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10324 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
| 10325 | printf %s "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10326 | have_pthread_t=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10328 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10329 | |
| 10330 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10331 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10332 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10333 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 10334 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10335 | ; |
| 10336 | return 0; |
| 10337 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10339 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10340 | if ac_fn_c_try_compile "$LINENO" |
| 10341 | then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10342 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10343 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10344 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10345 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
| 10346 | printf "%s\n" "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10347 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10348 | # 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] | 10349 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10350 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10351 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
| 10353 | printf %s "checking size of pthread_t... " >&6; } |
| 10354 | if test ${ac_cv_sizeof_pthread_t+y} |
| 10355 | then : |
| 10356 | printf %s "(cached) " >&6 |
| 10357 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10358 | 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] | 10359 | #ifdef HAVE_PTHREAD_H |
| 10360 | #include <pthread.h> |
| 10361 | #endif |
| 10362 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10363 | " |
| 10364 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10365 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10366 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10367 | if test "$ac_cv_type_pthread_t" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10368 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10369 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10370 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10371 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10372 | else |
| 10373 | ac_cv_sizeof_pthread_t=0 |
| 10374 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10375 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10376 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10377 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10378 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
| 10379 | printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10380 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10381 | |
| 10382 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10383 | 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] | 10384 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10385 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10386 | fi |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10387 | |
| 10388 | # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. |
| 10389 | # This checking will be unnecessary after removing deprecated TLS API. |
| 10390 | # The cast to long int works around a bug in the HP C Compiler |
| 10391 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10392 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10393 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10394 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 |
| 10395 | printf %s "checking size of pthread_key_t... " >&6; } |
| 10396 | if test ${ac_cv_sizeof_pthread_key_t+y} |
| 10397 | then : |
| 10398 | printf %s "(cached) " >&6 |
| 10399 | else $as_nop |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10400 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10401 | " |
| 10402 | then : |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10403 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10404 | else $as_nop |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10405 | if test "$ac_cv_type_pthread_key_t" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10406 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10407 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10408 | as_fn_error 77 "cannot compute sizeof (pthread_key_t) |
| 10409 | See \`config.log' for more details" "$LINENO" 5; } |
| 10410 | else |
| 10411 | ac_cv_sizeof_pthread_key_t=0 |
| 10412 | fi |
| 10413 | fi |
| 10414 | |
| 10415 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10416 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 |
| 10417 | printf "%s\n" "$ac_cv_sizeof_pthread_key_t" >&6; } |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10418 | |
| 10419 | |
| 10420 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10421 | 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] | 10422 | |
| 10423 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 |
| 10425 | printf %s "checking whether pthread_key_t is compatible with int... " >&6; } |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10426 | if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then |
| 10427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10428 | /* end confdefs.h. */ |
| 10429 | #include <pthread.h> |
| 10430 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10431 | main (void) |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10432 | { |
| 10433 | pthread_key_t k; k * 1; |
| 10434 | ; |
| 10435 | return 0; |
| 10436 | } |
| 10437 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10438 | if ac_fn_c_try_compile "$LINENO" |
| 10439 | then : |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10440 | ac_pthread_key_t_is_arithmetic_type=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10441 | else $as_nop |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10442 | ac_pthread_key_t_is_arithmetic_type=no |
| 10443 | |
| 10444 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10445 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10446 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5 |
| 10447 | printf "%s\n" "$ac_pthread_key_t_is_arithmetic_type" >&6; } |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10448 | if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then |
| 10449 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10450 | 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] | 10451 | |
| 10452 | fi |
| 10453 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10455 | printf "%s\n" "no" >&6; } |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 10456 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10457 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10458 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10459 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10460 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 10461 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10462 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 10463 | ;; |
| 10464 | Darwin/*) |
| 10465 | OTHER_LIBTOOL_OPT="" |
| 10466 | ;; |
| 10467 | esac |
| 10468 | |
| 10469 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10470 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10471 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 10472 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10473 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 10474 | if test "${enable_universalsdk}"; then |
| 10475 | : |
| 10476 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 10477 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10478 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10479 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10480 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 10481 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 10482 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10483 | if test ${gcc_version} '<' 4.0 |
| 10484 | then |
| 10485 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 10486 | else |
| 10487 | LIBTOOL_CRUFT="" |
| 10488 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10489 | if test "$cross_compiling" = yes |
| 10490 | then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 10491 | ac_osx_32bit=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10492 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10494 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 10495 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10496 | #include <unistd.h> |
| 10497 | int main(int argc, char*argv[]) |
| 10498 | { |
| 10499 | if (sizeof(long) == 4) { |
| 10500 | return 0; |
| 10501 | } else { |
| 10502 | return 1; |
| 10503 | } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 10504 | } |
| 10505 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10506 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10507 | if ac_fn_c_try_run "$LINENO" |
| 10508 | then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10509 | ac_osx_32bit=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10510 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10511 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10512 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10513 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10514 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10515 | fi |
| 10516 | |
| 10517 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10518 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 10519 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10520 | i386) |
| 10521 | MACOSX_DEFAULT_ARCH="i386" |
| 10522 | ;; |
| 10523 | ppc) |
| 10524 | MACOSX_DEFAULT_ARCH="ppc" |
| 10525 | ;; |
| 10526 | *) |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 10527 | as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10528 | ;; |
| 10529 | esac |
| 10530 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 10531 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10532 | i386) |
| 10533 | MACOSX_DEFAULT_ARCH="x86_64" |
| 10534 | ;; |
| 10535 | ppc) |
| 10536 | MACOSX_DEFAULT_ARCH="ppc64" |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 10537 | ;; |
| 10538 | arm64) |
| 10539 | MACOSX_DEFAULT_ARCH="arm64" |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10540 | ;; |
| 10541 | *) |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 10542 | as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10543 | ;; |
| 10544 | esac |
| 10545 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 10546 | fi |
| 10547 | |
| 10548 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10549 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10550 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10551 | esac |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10552 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
| 10553 | printf %s "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10554 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10555 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10556 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10557 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10558 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10559 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10560 | printf "%s\n" "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10561 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10563 | printf "%s\n" "yes" >&6; } |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 10564 | if test $enable_shared = "yes" |
| 10565 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10566 | 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] | 10567 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10568 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10570 | printf "%s\n" "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10571 | fi |
| 10572 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10573 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
| 10574 | printf %s "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10575 | case $ac_sys_system/$ac_sys_release in |
| 10576 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10577 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10578 | printf "%s\n" "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10579 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10580 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
| 10581 | printf "%s\n" "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10582 | ;; |
| 10583 | *) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10585 | printf "%s\n" "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10586 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10587 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10588 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10589 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10590 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10591 | |
| 10592 | |
| 10593 | |
| 10594 | |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10595 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10596 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 10597 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) |
| 10598 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 |
| 10600 | printf %s "checking the extension of shared libraries... " >&6; } |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 10601 | if test -z "$SHLIB_SUFFIX"; then |
| 10602 | case $ac_sys_system in |
| 10603 | hp*|HP*) |
| 10604 | case `uname -m` in |
| 10605 | ia64) SHLIB_SUFFIX=.so;; |
| 10606 | *) SHLIB_SUFFIX=.sl;; |
| 10607 | esac |
| 10608 | ;; |
| 10609 | CYGWIN*) SHLIB_SUFFIX=.dll;; |
| 10610 | *) SHLIB_SUFFIX=.so;; |
| 10611 | esac |
| 10612 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10613 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 |
| 10614 | printf "%s\n" "$SHLIB_SUFFIX" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10615 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10616 | # LDSHARED is the ld *command* used to create shared library |
Benjamin Peterson | 0693063 | 2017-09-04 16:36:05 -0700 | [diff] [blame] | 10617 | # -- "cc -G" on SunOS 5.x. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10618 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10619 | # Python, as opposed to building Python itself as a shared library.) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
| 10621 | printf %s "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10622 | if test -z "$LDSHARED" |
| 10623 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10624 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10625 | AIX*) |
Martin Panter | 395733d | 2016-11-20 07:56:37 +0000 | [diff] [blame] | 10626 | BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 10627 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10628 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10629 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10630 | if test "$GCC" = "yes" ; then |
| 10631 | LDSHARED='$(CC) -shared' |
| 10632 | LDCXXSHARED='$(CXX) -shared' |
| 10633 | else |
| 10634 | LDSHARED='$(CC) -G' |
| 10635 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10636 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 10637 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10638 | if test "$GCC" = "yes" ; then |
| 10639 | LDSHARED='$(CC) -shared' |
| 10640 | LDCXXSHARED='$(CXX) -shared' |
| 10641 | else |
Rob Boehne | 9d25bd1 | 2017-12-06 11:58:17 -0600 | [diff] [blame] | 10642 | LDSHARED='$(CC) -b' |
Benjamin Peterson | 62ed6be | 2017-12-21 21:43:09 -0800 | [diff] [blame] | 10643 | LDCXXSHARED='$(CXX) -b' |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 10644 | fi ;; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10645 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 10646 | LDSHARED='$(CC) -bundle' |
| 10647 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10648 | if test "$enable_framework" ; then |
| 10649 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10650 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10651 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10652 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10653 | else |
| 10654 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10655 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10656 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10657 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10658 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 10659 | LDSHARED='$(CC) -bundle' |
| 10660 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10661 | if test "$enable_framework" ; then |
| 10662 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10663 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10664 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10665 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10666 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10667 | # No framework, use the Python app as bundle-loader |
| 10668 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10669 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10670 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10671 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10672 | Darwin/*) |
| 10673 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 10674 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 10675 | |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 10676 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
| 10677 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 10678 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
| 10679 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 10680 | if test ${dep_target_major} -eq 10 && \ |
| 10681 | test ${dep_target_minor} -le 2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10682 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 10683 | # building for OS X 10.0 through 10.2 |
Ned Deily | 8703178 | 2021-05-02 20:28:43 -0400 | [diff] [blame] | 10684 | as_fn_error $? "MACOSX_DEPLOYMENT_TARGET too old ($MACOSX_DEPLOYMENT_TARGET), only 10.3 or later is supported" "$LINENO" 5 |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 10685 | else |
| 10686 | # building for OS X 10.3 and later |
| 10687 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' |
| 10688 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' |
| 10689 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10690 | fi |
| 10691 | ;; |
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 10692 | Linux*|GNU*|QNX*|VxWorks*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10693 | LDSHARED='$(CC) -shared' |
| 10694 | LDCXXSHARED='$(CXX) -shared';; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10695 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10696 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10697 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 10698 | LDSHARED='$(CC) -shared' |
| 10699 | LDCXXSHARED='$(CXX) -shared' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10700 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 10701 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10702 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10703 | OpenBSD*) |
| 10704 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10705 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 10706 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 10707 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10708 | else |
| 10709 | case `uname -r` in |
| 10710 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 10711 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10712 | ;; |
| 10713 | *) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 10714 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 10715 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10716 | ;; |
| 10717 | esac |
| 10718 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10719 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 10720 | LDSHARED='$(CC) -shared' |
| 10721 | LDCXXSHARED='$(CXX) -shared';; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10722 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10723 | if test "$GCC" = "yes" ; then |
| 10724 | LDSHARED='$(CC) -shared' |
| 10725 | LDCXXSHARED='$(CXX) -shared' |
| 10726 | else |
| 10727 | LDSHARED='$(CC) -G' |
| 10728 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10729 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10730 | SCO_SV*) |
| 10731 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 10732 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 10733 | CYGWIN*) |
| 10734 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 10735 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10736 | *) LDSHARED="ld";; |
| 10737 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10738 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10739 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
| 10740 | printf "%s\n" "$LDSHARED" >&6; } |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 10741 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10742 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10743 | # 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] | 10744 | # library (module) -- this is only needed for a few systems |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
| 10746 | printf %s "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10747 | if test -z "$CCSHARED" |
| 10748 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10749 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10750 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 10751 | then CCSHARED="-fPIC"; |
| 10752 | elif test `uname -p` = sparc; |
| 10753 | then CCSHARED="-xcode=pic32"; |
| 10754 | else CCSHARED="-Kpic"; |
| 10755 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10756 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 10757 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10758 | else CCSHARED="+z"; |
| 10759 | fi;; |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 10760 | Linux-android*) ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10761 | Linux*|GNU*) CCSHARED="-fPIC";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10762 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10763 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10764 | if test "$GCC" = "yes" |
| 10765 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10766 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10767 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10768 | SCO_SV*) |
| 10769 | if test "$GCC" = "yes" |
| 10770 | then CCSHARED="-fPIC" |
| 10771 | else CCSHARED="-Kpic -belf" |
| 10772 | fi;; |
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 10773 | VxWorks*) |
| 10774 | CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic" |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10775 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10776 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10777 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
| 10778 | printf "%s\n" "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10779 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10780 | # the python executable -- this is only needed for a few systems |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10781 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
| 10782 | printf %s "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10783 | if test -z "$LINKFORSHARED" |
| 10784 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10785 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10786 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 10787 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10788 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 10789 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 10790 | Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10791 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10792 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10793 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 10794 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Ned Deily | 5bbbc73 | 2019-07-02 03:12:18 -0400 | [diff] [blame] | 10795 | |
| 10796 | # Issue #18075: the default maximum stack size (8MBytes) is too |
| 10797 | # small for the default recursion limit. Increase the stack size |
| 10798 | # to ensure that tests don't crash |
Ronald Oussoren | 1a057ba | 2019-08-01 07:43:07 +0200 | [diff] [blame] | 10799 | # Note: This matches the value of THREAD_STACK_SIZE in |
| 10800 | # thread_pthread.h |
Ned Deily | 5bbbc73 | 2019-07-02 03:12:18 -0400 | [diff] [blame] | 10801 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" |
| 10802 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10803 | if test "$enable_framework" |
| 10804 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10805 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10806 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10807 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10808 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10809 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 10810 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10811 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 10812 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10813 | then |
| 10814 | LINKFORSHARED="-Wl,--export-dynamic" |
| 10815 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10816 | SunOS/5*) case $CC in |
| 10817 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 10818 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 10819 | then |
| 10820 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10821 | fi;; |
| 10822 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 10823 | CYGWIN*) |
| 10824 | if test $enable_shared = "no" |
| 10825 | then |
| 10826 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 10827 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 10828 | QNX*) |
| 10829 | # -Wl,-E causes the symbols to be added to the dynamic |
| 10830 | # symbol table so that they can be found when a module |
| 10831 | # is loaded. -N 2048K causes the stack size to be set |
| 10832 | # to 2048 kilobytes so that the stack doesn't overflow |
| 10833 | # when running test_compile.py. |
| 10834 | LINKFORSHARED='-Wl,-E -N 2048K';; |
pxinwr | 32f5fdd | 2019-02-27 19:09:28 +0800 | [diff] [blame] | 10835 | VxWorks*) |
pxinwr | c117426 | 2020-12-15 06:14:43 +0800 | [diff] [blame] | 10836 | LINKFORSHARED='-Wl,-export-dynamic';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10837 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10838 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
| 10840 | printf "%s\n" "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10841 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10842 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10843 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10844 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
| 10845 | printf %s "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10846 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 10847 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 10848 | case $ac_sys_system in |
| 10849 | CYGWIN*) |
| 10850 | # Cygwin needs CCSHARED when building extension DLLs |
| 10851 | # but not when building the interpreter DLL. |
| 10852 | CFLAGSFORSHARED='';; |
| 10853 | *) |
| 10854 | CFLAGSFORSHARED='$(CCSHARED)' |
| 10855 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10856 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10857 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
| 10858 | printf "%s\n" "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10859 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10860 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 10861 | # library (with --enable-shared). |
| 10862 | # 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] | 10863 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 10864 | # if it is not required, since it creates a dependency of the shared library |
| 10865 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 10866 | # don't need to link LIBS explicitly. The default should be only changed |
| 10867 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10868 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10869 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
| 10870 | printf %s "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10871 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10872 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 10873 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10874 | esac |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
| 10876 | printf "%s\n" "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10877 | |
| 10878 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10879 | # checks for libraries |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10880 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 |
| 10881 | printf %s "checking for sendfile in -lsendfile... " >&6; } |
| 10882 | if test ${ac_cv_lib_sendfile_sendfile+y} |
| 10883 | then : |
| 10884 | printf %s "(cached) " >&6 |
| 10885 | else $as_nop |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10886 | ac_check_lib_save_LIBS=$LIBS |
| 10887 | LIBS="-lsendfile $LIBS" |
| 10888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10889 | /* end confdefs.h. */ |
| 10890 | |
| 10891 | /* Override any GCC internal prototype to avoid an error. |
| 10892 | Use char because int might match the return type of a GCC |
| 10893 | builtin and then its argument prototype would still apply. */ |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10894 | char sendfile (); |
| 10895 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10896 | main (void) |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10897 | { |
| 10898 | return sendfile (); |
| 10899 | ; |
| 10900 | return 0; |
| 10901 | } |
| 10902 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10903 | if ac_fn_c_try_link "$LINENO" |
| 10904 | then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10905 | ac_cv_lib_sendfile_sendfile=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10906 | else $as_nop |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10907 | ac_cv_lib_sendfile_sendfile=no |
| 10908 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10909 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10910 | conftest$ac_exeext conftest.$ac_ext |
| 10911 | LIBS=$ac_check_lib_save_LIBS |
| 10912 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 |
| 10914 | printf "%s\n" "$ac_cv_lib_sendfile_sendfile" >&6; } |
| 10915 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes |
| 10916 | then : |
| 10917 | printf "%s\n" "#define HAVE_LIBSENDFILE 1" >>confdefs.h |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10918 | |
| 10919 | LIBS="-lsendfile $LIBS" |
| 10920 | |
| 10921 | fi |
| 10922 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10923 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 10924 | printf %s "checking for dlopen in -ldl... " >&6; } |
| 10925 | if test ${ac_cv_lib_dl_dlopen+y} |
| 10926 | then : |
| 10927 | printf %s "(cached) " >&6 |
| 10928 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10929 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10930 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10932 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10933 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10934 | /* Override any GCC internal prototype to avoid an error. |
| 10935 | Use char because int might match the return type of a GCC |
| 10936 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10937 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10938 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10939 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10940 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10941 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10942 | ; |
| 10943 | return 0; |
| 10944 | } |
| 10945 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10946 | if ac_fn_c_try_link "$LINENO" |
| 10947 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10948 | ac_cv_lib_dl_dlopen=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10949 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10950 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10951 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10952 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10953 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10954 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10955 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10956 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10957 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 10958 | if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 10959 | then : |
| 10960 | printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10961 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10962 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10963 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10964 | fi |
| 10965 | # Dynamic linking for SunOS/Solaris and SYSV |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 10967 | printf %s "checking for shl_load in -ldld... " >&6; } |
| 10968 | if test ${ac_cv_lib_dld_shl_load+y} |
| 10969 | then : |
| 10970 | printf %s "(cached) " >&6 |
| 10971 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10972 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10973 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10975 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10977 | /* Override any GCC internal prototype to avoid an error. |
| 10978 | Use char because int might match the return type of a GCC |
| 10979 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10980 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10981 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10982 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10983 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10984 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10985 | ; |
| 10986 | return 0; |
| 10987 | } |
| 10988 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10989 | if ac_fn_c_try_link "$LINENO" |
| 10990 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10991 | ac_cv_lib_dld_shl_load=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10992 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10993 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10994 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10995 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10996 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10997 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10998 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 10999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11000 | printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } |
| 11001 | if test "x$ac_cv_lib_dld_shl_load" = xyes |
| 11002 | then : |
| 11003 | printf "%s\n" "#define HAVE_LIBDLD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11004 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11005 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11006 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11007 | fi |
| 11008 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11009 | |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11010 | # checks for uuid.h location |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11011 | ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" |
| 11012 | if test "x$ac_cv_header_uuid_uuid_h" = xyes |
| 11013 | then : |
| 11014 | printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h |
| 11015 | |
| 11016 | fi |
| 11017 | ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default" |
| 11018 | if test "x$ac_cv_header_uuid_h" = xyes |
| 11019 | then : |
| 11020 | printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11021 | |
| 11022 | fi |
| 11023 | |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11024 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11025 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 |
| 11026 | printf %s "checking for uuid_generate_time_safe... " >&6; } |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 11027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11028 | /* end confdefs.h. */ |
| 11029 | #include <uuid/uuid.h> |
| 11030 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11031 | main (void) |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 11032 | { |
| 11033 | |
| 11034 | #ifndef uuid_generate_time_safe |
Berker Peksag | 0e163d2 | 2017-11-09 00:43:14 +0300 | [diff] [blame] | 11035 | void *x = uuid_generate_time_safe |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 11036 | #endif |
| 11037 | |
| 11038 | ; |
| 11039 | return 0; |
| 11040 | } |
| 11041 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11042 | if ac_fn_c_try_compile "$LINENO" |
| 11043 | then : |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 11044 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11045 | printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 11046 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11048 | printf "%s\n" "yes" >&6; } |
| 11049 | else $as_nop |
| 11050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11051 | printf "%s\n" "no" >&6; } |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 11052 | |
| 11053 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11054 | 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] | 11055 | |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11056 | # 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] | 11057 | # FreeBSD and OpenBSD provides support as well |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5 |
| 11059 | printf %s "checking for uuid_create... " >&6; } |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11061 | /* end confdefs.h. */ |
| 11062 | #include <uuid.h> |
| 11063 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11064 | main (void) |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11065 | { |
| 11066 | |
| 11067 | #ifndef uuid_create |
| 11068 | void *x = uuid_create |
| 11069 | #endif |
| 11070 | |
| 11071 | ; |
| 11072 | return 0; |
| 11073 | } |
| 11074 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11075 | if ac_fn_c_try_compile "$LINENO" |
| 11076 | then : |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11077 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11078 | printf "%s\n" "#define HAVE_UUID_CREATE 1" >>confdefs.h |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11079 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11080 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11081 | printf "%s\n" "yes" >&6; } |
| 11082 | else $as_nop |
| 11083 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11084 | printf "%s\n" "no" >&6; } |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 11085 | |
| 11086 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11087 | 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] | 11088 | |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11089 | # Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet |
| 11090 | # stream in big-endian byte-order |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11091 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5 |
| 11092 | printf %s "checking for uuid_enc_be... " >&6; } |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11094 | /* end confdefs.h. */ |
| 11095 | #include <uuid.h> |
| 11096 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11097 | main (void) |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11098 | { |
| 11099 | |
| 11100 | #ifndef uuid_enc_be |
Ned Deily | ced0adb | 2018-06-09 18:19:57 -0400 | [diff] [blame] | 11101 | void *x = uuid_enc_be |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11102 | #endif |
| 11103 | |
| 11104 | ; |
| 11105 | return 0; |
| 11106 | } |
| 11107 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11108 | if ac_fn_c_try_compile "$LINENO" |
| 11109 | then : |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11110 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11111 | printf "%s\n" "#define HAVE_UUID_ENC_BE 1" >>confdefs.h |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11112 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11114 | printf "%s\n" "yes" >&6; } |
| 11115 | else $as_nop |
| 11116 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11117 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 11118 | |
| 11119 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11120 | 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] | 11121 | |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 11122 | # 'Real Time' functions on Solaris |
| 11123 | # posix4 on Solaris 2.6 |
| 11124 | # pthread (first!) on Linux |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
| 11126 | printf %s "checking for library containing sem_init... " >&6; } |
| 11127 | if test ${ac_cv_search_sem_init+y} |
| 11128 | then : |
| 11129 | printf %s "(cached) " >&6 |
| 11130 | else $as_nop |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11131 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11133 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11134 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11135 | /* Override any GCC internal prototype to avoid an error. |
| 11136 | Use char because int might match the return type of a GCC |
| 11137 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11138 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11139 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11140 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11142 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11143 | ; |
| 11144 | return 0; |
| 11145 | } |
| 11146 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11147 | for ac_lib in '' pthread rt posix4 |
| 11148 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11149 | if test -z "$ac_lib"; then |
| 11150 | ac_res="none required" |
| 11151 | else |
| 11152 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 11153 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11154 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11155 | if ac_fn_c_try_link "$LINENO" |
| 11156 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11157 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11158 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11159 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11160 | conftest$ac_exeext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11161 | if test ${ac_cv_search_sem_init+y} |
| 11162 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11163 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 11164 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11165 | done |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11166 | if test ${ac_cv_search_sem_init+y} |
| 11167 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11168 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11169 | else $as_nop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11170 | ac_cv_search_sem_init=no |
| 11171 | fi |
| 11172 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11173 | LIBS=$ac_func_search_save_LIBS |
| 11174 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
| 11176 | printf "%s\n" "$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11177 | ac_res=$ac_cv_search_sem_init |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11178 | if test "$ac_res" != no |
| 11179 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11180 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11181 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11182 | fi |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 11183 | |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11184 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11185 | # check if we need libintl for locale functions |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11186 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
| 11187 | printf %s "checking for textdomain in -lintl... " >&6; } |
| 11188 | if test ${ac_cv_lib_intl_textdomain+y} |
| 11189 | then : |
| 11190 | printf %s "(cached) " >&6 |
| 11191 | else $as_nop |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11192 | ac_check_lib_save_LIBS=$LIBS |
| 11193 | LIBS="-lintl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11195 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11196 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11197 | /* Override any GCC internal prototype to avoid an error. |
| 11198 | Use char because int might match the return type of a GCC |
| 11199 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11200 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11201 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11202 | main (void) |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11203 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11204 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11205 | ; |
| 11206 | return 0; |
| 11207 | } |
| 11208 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11209 | if ac_fn_c_try_link "$LINENO" |
| 11210 | then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11211 | ac_cv_lib_intl_textdomain=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11212 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11213 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11214 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11215 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11216 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11217 | LIBS=$ac_check_lib_save_LIBS |
| 11218 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
| 11220 | printf "%s\n" "$ac_cv_lib_intl_textdomain" >&6; } |
| 11221 | if test "x$ac_cv_lib_intl_textdomain" = xyes |
| 11222 | then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11223 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11224 | printf "%s\n" "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11225 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 11226 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11227 | fi |
| 11228 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11229 | |
| 11230 | # checks for system dependent C++ extensions support |
| 11231 | case "$ac_sys_system" in |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11232 | AIX*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
| 11233 | printf %s "checking for genuine AIX C++ extensions support... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11235 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11236 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 11237 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11238 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11239 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11240 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11241 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11242 | ; |
| 11243 | return 0; |
| 11244 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11246 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11247 | if ac_fn_c_try_link "$LINENO" |
| 11248 | then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11249 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11250 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11251 | printf "%s\n" "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11252 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11253 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11254 | printf "%s\n" "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11255 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11256 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11257 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11258 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11259 | printf "%s\n" "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11260 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11261 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11262 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 11263 | conftest$ac_exeext conftest.$ac_ext |
| 11264 | # BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag |
| 11265 | # of the AIX system used to build/package Python executable. This tag serves |
| 11266 | # as a baseline for bdist module packages |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11267 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5 |
| 11268 | printf %s "checking for the system builddate... " >&6; } |
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 11269 | AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }') |
| 11270 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11271 | printf "%s\n" "#define AIX_BUILDDATE $AIX_BUILDDATE" >>confdefs.h |
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 11272 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11273 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5 |
| 11274 | printf "%s\n" "$AIX_BUILDDATE" >&6; } |
Michael Felt | 39afa2d | 2019-12-15 15:17:53 +0100 | [diff] [blame] | 11275 | ;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11276 | *) ;; |
| 11277 | esac |
| 11278 | |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11279 | # check for systems that require aligned memory access |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11280 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 |
| 11281 | printf %s "checking aligned memory access is required... " >&6; } |
| 11282 | if test ${ac_cv_aligned_required+y} |
| 11283 | then : |
| 11284 | printf %s "(cached) " >&6 |
| 11285 | else $as_nop |
| 11286 | if test "$cross_compiling" = yes |
| 11287 | then : |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 11288 | ac_cv_aligned_required=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11289 | else $as_nop |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11291 | /* end confdefs.h. */ |
| 11292 | |
| 11293 | int main() |
| 11294 | { |
| 11295 | char s[16]; |
| 11296 | int i, *p1, *p2; |
| 11297 | for (i=0; i < 16; i++) |
| 11298 | s[i] = i; |
| 11299 | p1 = (int*)(s+1); |
| 11300 | p2 = (int*)(s+2); |
| 11301 | if (*p1 == *p2) |
| 11302 | return 1; |
| 11303 | return 0; |
| 11304 | } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11305 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11306 | if ac_fn_c_try_run "$LINENO" |
| 11307 | then : |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 11308 | ac_cv_aligned_required=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11309 | else $as_nop |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 11310 | ac_cv_aligned_required=yes |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11311 | fi |
| 11312 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11313 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11314 | fi |
| 11315 | |
| 11316 | |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 11317 | fi |
| 11318 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11319 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 |
| 11320 | printf "%s\n" "$ac_cv_aligned_required" >&6; } |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 11321 | if test "$ac_cv_aligned_required" = yes ; then |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11322 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11323 | printf "%s\n" "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11324 | |
| 11325 | fi |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11326 | |
| 11327 | # str, bytes and memoryview hash algorithm |
| 11328 | |
| 11329 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11330 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 |
| 11331 | printf %s "checking for --with-hash-algorithm... " >&6; } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11332 | |
| 11333 | # Check whether --with-hash_algorithm was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11334 | if test ${with_hash_algorithm+y} |
| 11335 | then : |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11336 | withval=$with_hash_algorithm; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11337 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 11338 | printf "%s\n" "$withval" >&6; } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11339 | case "$withval" in |
| 11340 | siphash24) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11341 | printf "%s\n" "#define Py_HASH_ALGORITHM 1" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11342 | |
| 11343 | ;; |
| 11344 | fnv) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11345 | printf "%s\n" "#define Py_HASH_ALGORITHM 2" >>confdefs.h |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11346 | |
| 11347 | ;; |
| 11348 | *) |
| 11349 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 |
| 11350 | ;; |
| 11351 | esac |
| 11352 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11353 | else $as_nop |
| 11354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default" >&5 |
| 11355 | printf "%s\n" "default" >&6; } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 11356 | fi |
| 11357 | |
| 11358 | |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11359 | validate_tzpath() { |
| 11360 | # Checks that each element of hte path is an absolute path |
| 11361 | if test -z "$1"; then |
| 11362 | # Empty string is allowed: it indicates no system TZPATH |
| 11363 | return 0 |
| 11364 | fi |
| 11365 | |
| 11366 | # Bad paths are those that don't start with / |
Paul Ganssle | 0f66498 | 2021-01-12 13:17:52 -0500 | [diff] [blame] | 11367 | if ( echo $1 | grep '\(^\|:\)\([^/]\|$\)' > /dev/null); then |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11368 | as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5 |
| 11369 | return 1; |
| 11370 | fi |
| 11371 | } |
| 11372 | |
| 11373 | TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11374 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5 |
| 11375 | printf %s "checking for --with-tzpath... " >&6; } |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11376 | |
| 11377 | # Check whether --with-tzpath was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11378 | if test ${with_tzpath+y} |
| 11379 | then : |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11380 | withval=$with_tzpath; |
| 11381 | case "$withval" in |
| 11382 | yes) |
| 11383 | as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5 |
| 11384 | ;; |
| 11385 | *) |
| 11386 | validate_tzpath "$withval" |
| 11387 | TZPATH="$withval" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5 |
| 11389 | printf "%s\n" "\"$withval\"" >&6; } |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11390 | ;; |
| 11391 | esac |
| 11392 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11393 | else $as_nop |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11394 | validate_tzpath "$TZPATH" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11395 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5 |
| 11396 | printf "%s\n" "\"$TZPATH\"" >&6; } |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 11397 | fi |
| 11398 | |
| 11399 | |
| 11400 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 |
| 11402 | printf %s "checking for --with-address-sanitizer... " >&6; } |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 11403 | |
| 11404 | # Check whether --with-address_sanitizer was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11405 | if test ${with_address_sanitizer+y} |
| 11406 | then : |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 11407 | withval=$with_address_sanitizer; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11408 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 11409 | printf "%s\n" "$withval" >&6; } |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 11410 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" |
| 11411 | LDFLAGS="-fsanitize=address $LDFLAGS" |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11412 | # ASan works by controlling memory allocation, our own malloc interferes. |
| 11413 | with_pymalloc="no" |
| 11414 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11415 | else $as_nop |
| 11416 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11417 | printf "%s\n" "no" >&6; } |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11418 | fi |
| 11419 | |
| 11420 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11421 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5 |
| 11422 | printf %s "checking for --with-memory-sanitizer... " >&6; } |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11423 | |
| 11424 | # Check whether --with-memory_sanitizer was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11425 | if test ${with_memory_sanitizer+y} |
| 11426 | then : |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11427 | withval=$with_memory_sanitizer; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11428 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 11429 | printf "%s\n" "$withval" >&6; } |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11430 | BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS" |
| 11431 | LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS" |
| 11432 | # MSan works by controlling memory allocation, our own malloc interferes. |
| 11433 | with_pymalloc="no" |
| 11434 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11435 | else $as_nop |
| 11436 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11437 | printf "%s\n" "no" >&6; } |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11438 | fi |
| 11439 | |
| 11440 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11441 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5 |
| 11442 | printf %s "checking for --with-undefined-behavior-sanitizer... " >&6; } |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11443 | |
| 11444 | # Check whether --with-undefined_behavior_sanitizer was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11445 | if test ${with_undefined_behavior_sanitizer+y} |
| 11446 | then : |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11447 | withval=$with_undefined_behavior_sanitizer; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11448 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 11449 | printf "%s\n" "$withval" >&6; } |
Gregory P. Smith | 1584a00 | 2018-11-12 12:07:14 -0800 | [diff] [blame] | 11450 | BASECFLAGS="-fsanitize=undefined $BASECFLAGS" |
| 11451 | LDFLAGS="-fsanitize=undefined $LDFLAGS" |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 11452 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11453 | else $as_nop |
| 11454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11455 | printf "%s\n" "no" >&6; } |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 11456 | fi |
| 11457 | |
| 11458 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11459 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11460 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
| 11461 | printf %s "checking for t_open in -lnsl... " >&6; } |
| 11462 | if test ${ac_cv_lib_nsl_t_open+y} |
| 11463 | then : |
| 11464 | printf %s "(cached) " >&6 |
| 11465 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11466 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11467 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11469 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11470 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11471 | /* Override any GCC internal prototype to avoid an error. |
| 11472 | Use char because int might match the return type of a GCC |
| 11473 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11474 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11475 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11476 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11477 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11478 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11479 | ; |
| 11480 | return 0; |
| 11481 | } |
| 11482 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11483 | if ac_fn_c_try_link "$LINENO" |
| 11484 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11485 | ac_cv_lib_nsl_t_open=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11486 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11487 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11488 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11489 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11490 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11491 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11492 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11493 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
| 11494 | printf "%s\n" "$ac_cv_lib_nsl_t_open" >&6; } |
| 11495 | if test "x$ac_cv_lib_nsl_t_open" = xyes |
| 11496 | then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11497 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11498 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 11499 | # SVR4 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 11501 | printf %s "checking for socket in -lsocket... " >&6; } |
| 11502 | if test ${ac_cv_lib_socket_socket+y} |
| 11503 | then : |
| 11504 | printf %s "(cached) " >&6 |
| 11505 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11506 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11507 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11509 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11510 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11511 | /* Override any GCC internal prototype to avoid an error. |
| 11512 | Use char because int might match the return type of a GCC |
| 11513 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11514 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11515 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11516 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11517 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11518 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11519 | ; |
| 11520 | return 0; |
| 11521 | } |
| 11522 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11523 | if ac_fn_c_try_link "$LINENO" |
| 11524 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11525 | ac_cv_lib_socket_socket=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11526 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11527 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11528 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11529 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11530 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11531 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11532 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11533 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 11534 | printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } |
| 11535 | if test "x$ac_cv_lib_socket_socket" = xyes |
| 11536 | then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11537 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11538 | fi |
| 11539 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 11540 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
| 11542 | printf %s "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11543 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11544 | # Check whether --with-libs was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11545 | if test ${with_libs+y} |
| 11546 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11547 | withval=$with_libs; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 11549 | printf "%s\n" "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11550 | LIBS="$withval $LIBS" |
| 11551 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11552 | else $as_nop |
| 11553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11554 | printf "%s\n" "no" >&6; } |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 11555 | fi |
| 11556 | |
| 11557 | |
Pablo Galindo Salgado | c2e0b13 | 2021-07-30 16:14:28 +0100 | [diff] [blame] | 11558 | PKG_PROG_PKG_CONFIG |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11559 | |
| 11560 | # Check for use of the system expat library |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
| 11562 | printf %s "checking for --with-system-expat... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11563 | |
| 11564 | # Check whether --with-system_expat was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11565 | if test ${with_system_expat+y} |
| 11566 | then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11567 | withval=$with_system_expat; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11568 | else $as_nop |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 11569 | with_system_expat="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11570 | fi |
| 11571 | |
| 11572 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11573 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
| 11574 | printf "%s\n" "$with_system_expat" >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11575 | |
| 11576 | # Check for use of the system libffi library |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11577 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
| 11578 | printf %s "checking for --with-system-ffi... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11579 | |
| 11580 | # Check whether --with-system_ffi was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11581 | if test ${with_system_ffi+y} |
| 11582 | then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11583 | withval=$with_system_ffi; |
| 11584 | fi |
| 11585 | |
| 11586 | |
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 11587 | if test "$ac_sys_system" = "Darwin" |
| 11588 | then |
| 11589 | case "$with_system_ffi" in |
| 11590 | "") |
| 11591 | with_system_ffi="no" |
| 11592 | ;; |
| 11593 | yes|no) |
| 11594 | ;; |
| 11595 | *) |
| 11596 | as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 |
| 11597 | ;; |
| 11598 | esac |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
| 11600 | printf "%s\n" "$with_system_ffi" >&6; } |
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 11601 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11603 | printf "%s\n" "yes" >&6; } |
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 11604 | if test "$with_system_ffi" != "" |
| 11605 | then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11606 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 |
| 11607 | 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] | 11608 | fi |
| 11609 | with_system_ffi="yes" |
| 11610 | fi |
Zachary Ware | 935043d | 2016-09-09 17:01:21 -0700 | [diff] [blame] | 11611 | |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 11612 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 11613 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 11614 | else |
| 11615 | LIBFFI_INCLUDEDIR="" |
| 11616 | fi |
| 11617 | |
| 11618 | |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 11619 | # Check for use of the system libmpdec library |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 |
| 11621 | printf %s "checking for --with-system-libmpdec... " >&6; } |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 11622 | |
| 11623 | # Check whether --with-system_libmpdec was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11624 | if test ${with_system_libmpdec+y} |
| 11625 | then : |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 11626 | withval=$with_system_libmpdec; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11627 | else $as_nop |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 11628 | with_system_libmpdec="no" |
| 11629 | fi |
| 11630 | |
| 11631 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11632 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 |
| 11633 | printf "%s\n" "$with_system_libmpdec" >&6; } |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 11634 | |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 11635 | # Check whether _decimal should use a coroutine-local or thread-local context |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5 |
| 11637 | printf %s "checking for --with-decimal-contextvar... " >&6; } |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 11638 | |
| 11639 | # Check whether --with-decimal_contextvar was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11640 | if test ${with_decimal_contextvar+y} |
| 11641 | then : |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 11642 | withval=$with_decimal_contextvar; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11643 | else $as_nop |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 11644 | with_decimal_contextvar="yes" |
| 11645 | fi |
| 11646 | |
| 11647 | |
| 11648 | if test "$with_decimal_contextvar" != "no" |
| 11649 | then |
| 11650 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11651 | printf "%s\n" "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 11652 | |
| 11653 | fi |
| 11654 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11655 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5 |
| 11656 | printf "%s\n" "$with_decimal_contextvar" >&6; } |
Stefan Krah | 815280e | 2020-02-29 19:43:42 +0100 | [diff] [blame] | 11657 | |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 11658 | # Check for support for loadable sqlite extensions |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 |
| 11660 | printf %s "checking for --enable-loadable-sqlite-extensions... " >&6; } |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 11661 | # Check whether --enable-loadable-sqlite-extensions was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11662 | if test ${enable_loadable_sqlite_extensions+y} |
| 11663 | then : |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 11664 | enableval=$enable_loadable_sqlite_extensions; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11665 | else $as_nop |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 11666 | enable_loadable_sqlite_extensions="no" |
| 11667 | fi |
| 11668 | |
| 11669 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 |
| 11671 | printf "%s\n" "$enable_loadable_sqlite_extensions" >&6; } |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 11672 | |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11673 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path |
| 11674 | |
| 11675 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 |
| 11677 | printf %s "checking for --with-tcltk-includes... " >&6; } |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11678 | |
| 11679 | # Check whether --with-tcltk-includes was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11680 | if test ${with_tcltk_includes+y} |
| 11681 | then : |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11682 | withval=$with_tcltk_includes; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11683 | else $as_nop |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11684 | with_tcltk_includes="default" |
| 11685 | fi |
| 11686 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 |
| 11688 | printf "%s\n" "$with_tcltk_includes" >&6; } |
| 11689 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 |
| 11690 | printf %s "checking for --with-tcltk-libs... " >&6; } |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11691 | |
| 11692 | # Check whether --with-tcltk-libs was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11693 | if test ${with_tcltk_libs+y} |
| 11694 | then : |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11695 | withval=$with_tcltk_libs; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11696 | else $as_nop |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11697 | with_tcltk_libs="default" |
| 11698 | fi |
| 11699 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 |
| 11701 | printf "%s\n" "$with_tcltk_libs" >&6; } |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11702 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault |
| 11703 | then |
| 11704 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" |
| 11705 | then |
| 11706 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 |
| 11707 | fi |
Manolis Stamatogiannakis | d202794 | 2021-03-01 04:29:57 +0100 | [diff] [blame] | 11708 | if test -n "$PKG_CONFIG" && "$PKG_CONFIG" --exists tcl tk; then |
| 11709 | TCLTK_INCLUDES="`"$PKG_CONFIG" tcl tk --cflags-only-I 2>/dev/null`" |
| 11710 | TCLTK_LIBS="`"$PKG_CONFIG" tcl tk --libs 2>/dev/null`" |
| 11711 | else |
| 11712 | TCLTK_INCLUDES="" |
| 11713 | TCLTK_LIBS="" |
| 11714 | fi |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 11715 | else |
| 11716 | TCLTK_INCLUDES="$with_tcltk_includes" |
| 11717 | TCLTK_LIBS="$with_tcltk_libs" |
| 11718 | fi |
| 11719 | |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 11720 | # Check for --with-dbmliborder |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11721 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
| 11722 | printf %s "checking for --with-dbmliborder... " >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 11723 | |
| 11724 | # Check whether --with-dbmliborder was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11725 | if test ${with_dbmliborder+y} |
| 11726 | then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 11727 | withval=$with_dbmliborder; |
| 11728 | if test x$with_dbmliborder = xyes |
| 11729 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11730 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 11731 | else |
| 11732 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 11733 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 11734 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11735 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 11736 | fi |
| 11737 | done |
| 11738 | fi |
| 11739 | fi |
| 11740 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
| 11742 | printf "%s\n" "$with_dbmliborder" >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 11743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11744 | # Templates for things AC_DEFINEd more than once. |
| 11745 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11746 | |
| 11747 | |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11748 | if test "$ac_cv_pthread_is_default" = yes |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11749 | then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11750 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11751 | printf "%s\n" "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11752 | |
| 11753 | posix_threads=yes |
Jesús Cea | 52d1b86 | 2019-09-28 03:44:32 +0200 | [diff] [blame] | 11754 | if test "$ac_sys_system" = "SunOS"; then |
| 11755 | CFLAGS="$CFLAGS -D_REENTRANT" |
| 11756 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11757 | elif test "$ac_cv_kpthread" = "yes" |
| 11758 | then |
| 11759 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11760 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11761 | CXX="$CXX -Kpthread" |
| 11762 | fi |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11763 | posix_threads=yes |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11764 | elif test "$ac_cv_kthread" = "yes" |
| 11765 | then |
| 11766 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11767 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11768 | CXX="$CXX -Kthread" |
| 11769 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11770 | posix_threads=yes |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11771 | elif test "$ac_cv_pthread" = "yes" |
| 11772 | then |
| 11773 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11774 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11775 | CXX="$CXX -pthread" |
| 11776 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11777 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11778 | else |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11779 | if test ! -z "$withval" -a -d "$withval" |
| 11780 | then LDFLAGS="$LDFLAGS -L$withval" |
| 11781 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11782 | |
| 11783 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 11784 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 11785 | # (e.g. gnu pth with pthread emulation) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
| 11787 | printf %s "checking for _POSIX_THREADS in unistd.h... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11789 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11790 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11791 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11792 | #ifdef _POSIX_THREADS |
| 11793 | yes |
| 11794 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11795 | |
| 11796 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11797 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11798 | $EGREP "yes" >/dev/null 2>&1 |
| 11799 | then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11800 | unistd_defines_pthreads=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11801 | else $as_nop |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11802 | unistd_defines_pthreads=no |
| 11803 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11804 | rm -rf conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11805 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11806 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
| 11807 | printf "%s\n" "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11808 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11809 | printf "%s\n" "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11810 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11811 | # Just looking for pthread_create in libpthread is not enough: |
| 11812 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 11813 | # So we really have to include pthread.h, and then link. |
| 11814 | _libs=$LIBS |
| 11815 | LIBS="$LIBS -lpthread" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11816 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 11817 | printf %s "checking for pthread_create in -lpthread... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11819 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 11820 | |
| 11821 | #include <stdio.h> |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11822 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11823 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11824 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11825 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11826 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11827 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11828 | |
| 11829 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11830 | ; |
| 11831 | return 0; |
| 11832 | } |
| 11833 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11834 | if ac_fn_c_try_link "$LINENO" |
| 11835 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11836 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11838 | printf "%s\n" "yes" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11839 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11840 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11841 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11842 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11843 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11844 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11845 | if test "x$ac_cv_func_pthread_detach" = xyes |
| 11846 | then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11847 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11848 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11849 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11850 | else $as_nop |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11851 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11852 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
| 11853 | printf %s "checking for pthread_create in -lpthreads... " >&6; } |
| 11854 | if test ${ac_cv_lib_pthreads_pthread_create+y} |
| 11855 | then : |
| 11856 | printf %s "(cached) " >&6 |
| 11857 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11859 | LIBS="-lpthreads $LIBS" |
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. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11862 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11863 | /* Override any GCC internal prototype to avoid an error. |
| 11864 | Use char because int might match the return type of a GCC |
| 11865 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11866 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11867 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11868 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11869 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11870 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11871 | ; |
| 11872 | return 0; |
| 11873 | } |
| 11874 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11875 | if ac_fn_c_try_link "$LINENO" |
| 11876 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11877 | ac_cv_lib_pthreads_pthread_create=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11878 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11879 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11880 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11881 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11882 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11883 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11884 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11885 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 11886 | printf "%s\n" "$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 11887 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes |
| 11888 | then : |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11889 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11890 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11891 | LIBS="$LIBS -lpthreads" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11892 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11893 | else $as_nop |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11894 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11895 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
| 11896 | printf %s "checking for pthread_create in -lc_r... " >&6; } |
| 11897 | if test ${ac_cv_lib_c_r_pthread_create+y} |
| 11898 | then : |
| 11899 | printf %s "(cached) " >&6 |
| 11900 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11901 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11902 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11904 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11905 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11906 | /* Override any GCC internal prototype to avoid an error. |
| 11907 | Use char because int might match the return type of a GCC |
| 11908 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11909 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11910 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11911 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11912 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11913 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11914 | ; |
| 11915 | return 0; |
| 11916 | } |
| 11917 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11918 | if ac_fn_c_try_link "$LINENO" |
| 11919 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11920 | ac_cv_lib_c_r_pthread_create=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11921 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11922 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11923 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11924 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11925 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11926 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11927 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 11929 | printf "%s\n" "$ac_cv_lib_c_r_pthread_create" >&6; } |
| 11930 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes |
| 11931 | then : |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11932 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11933 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11934 | LIBS="$LIBS -lc_r" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11935 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11936 | else $as_nop |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11937 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
| 11939 | printf %s "checking for __pthread_create_system in -lpthread... " >&6; } |
| 11940 | if test ${ac_cv_lib_pthread___pthread_create_system+y} |
| 11941 | then : |
| 11942 | printf %s "(cached) " >&6 |
| 11943 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11944 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11945 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11947 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11948 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11949 | /* Override any GCC internal prototype to avoid an error. |
| 11950 | Use char because int might match the return type of a GCC |
| 11951 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11952 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11953 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11954 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11955 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11956 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11957 | ; |
| 11958 | return 0; |
| 11959 | } |
| 11960 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11961 | if ac_fn_c_try_link "$LINENO" |
| 11962 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11963 | ac_cv_lib_pthread___pthread_create_system=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11964 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11965 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11966 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11967 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11968 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11969 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11970 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 11972 | printf "%s\n" "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 11973 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes |
| 11974 | then : |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11975 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11976 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11977 | LIBS="$LIBS -lpthread" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 11978 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11979 | else $as_nop |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11980 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11981 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
| 11982 | printf %s "checking for pthread_create in -lcma... " >&6; } |
| 11983 | if test ${ac_cv_lib_cma_pthread_create+y} |
| 11984 | then : |
| 11985 | printf %s "(cached) " >&6 |
| 11986 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11987 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11988 | LIBS="-lcma $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11990 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11991 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11992 | /* Override any GCC internal prototype to avoid an error. |
| 11993 | Use char because int might match the return type of a GCC |
| 11994 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11995 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11996 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 11997 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11998 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11999 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12000 | ; |
| 12001 | return 0; |
| 12002 | } |
| 12003 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12004 | if ac_fn_c_try_link "$LINENO" |
| 12005 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12006 | ac_cv_lib_cma_pthread_create=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12007 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12008 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12009 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12010 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12011 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12012 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12013 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 12015 | printf "%s\n" "$ac_cv_lib_cma_pthread_create" >&6; } |
| 12016 | if test "x$ac_cv_lib_cma_pthread_create" = xyes |
| 12017 | then : |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12018 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12019 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12020 | LIBS="$LIBS -lcma" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 12021 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12022 | else $as_nop |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 12023 | |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 12024 | as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 |
| 12025 | |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 12026 | fi |
| 12027 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12028 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12029 | fi |
| 12030 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 12031 | fi |
| 12032 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12033 | fi |
| 12034 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12035 | fi |
| 12036 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12037 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12038 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12039 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12040 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12041 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
| 12042 | printf %s "checking for usconfig in -lmpc... " >&6; } |
| 12043 | if test ${ac_cv_lib_mpc_usconfig+y} |
| 12044 | then : |
| 12045 | printf %s "(cached) " >&6 |
| 12046 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12047 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12048 | LIBS="-lmpc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12050 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12051 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12052 | /* Override any GCC internal prototype to avoid an error. |
| 12053 | Use char because int might match the return type of a GCC |
| 12054 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12055 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12056 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12057 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12058 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12059 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12060 | ; |
| 12061 | return 0; |
| 12062 | } |
| 12063 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12064 | if ac_fn_c_try_link "$LINENO" |
| 12065 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12066 | ac_cv_lib_mpc_usconfig=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12067 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12068 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12069 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12070 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12071 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12072 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12073 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 12075 | printf "%s\n" "$ac_cv_lib_mpc_usconfig" >&6; } |
| 12076 | if test "x$ac_cv_lib_mpc_usconfig" = xyes |
| 12077 | then : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12078 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12079 | LIBS="$LIBS -lmpc" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 12080 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12081 | fi |
| 12082 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12083 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12084 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12085 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12086 | if test "$posix_threads" = "yes"; then |
| 12087 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12088 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12089 | printf "%s\n" "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12090 | |
| 12091 | fi |
| 12092 | |
| 12093 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 12094 | case $ac_sys_system/$ac_sys_release in |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 12095 | SunOS/5.6) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12096 | printf "%s\n" "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12097 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12098 | ;; |
| 12099 | SunOS/5.8) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12100 | 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] | 12101 | |
| 12102 | ;; |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 12103 | AIX/*) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12104 | printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 12105 | |
| 12106 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12107 | esac |
| 12108 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12109 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 12110 | printf %s "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
| 12111 | if test ${ac_cv_pthread_system_supported+y} |
| 12112 | then : |
| 12113 | printf %s "(cached) " >&6 |
| 12114 | else $as_nop |
| 12115 | if test "$cross_compiling" = yes |
| 12116 | then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12117 | ac_cv_pthread_system_supported=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12118 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12120 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 12121 | |
| 12122 | #include <stdio.h> |
| 12123 | #include <pthread.h> |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12124 | void *foo(void *parm) { |
| 12125 | return NULL; |
| 12126 | } |
| 12127 | main() { |
| 12128 | pthread_attr_t attr; |
| 12129 | pthread_t id; |
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 12130 | if (pthread_attr_init(&attr)) return (-1); |
| 12131 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1); |
| 12132 | if (pthread_create(&id, &attr, foo, NULL)) return (-1); |
| 12133 | return (0); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12134 | } |
| 12135 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12136 | if ac_fn_c_try_run "$LINENO" |
| 12137 | then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12138 | ac_cv_pthread_system_supported=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12139 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12140 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12141 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12142 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12143 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12144 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12145 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12146 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12147 | fi |
| 12148 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12149 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
| 12150 | printf "%s\n" "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12151 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 12152 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12153 | 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] | 12154 | |
| 12155 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12156 | |
| 12157 | for ac_func in pthread_sigmask |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12158 | do : |
| 12159 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12160 | if test "x$ac_cv_func_pthread_sigmask" = xyes |
| 12161 | then : |
| 12162 | printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12163 | case $ac_sys_system in |
| 12164 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12165 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12166 | printf "%s\n" "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12167 | |
| 12168 | ;; |
| 12169 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12170 | fi |
Pablo Galindo Salgado | c2e0b13 | 2021-07-30 16:14:28 +0100 | [diff] [blame] | 12171 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12172 | done |
| 12173 | ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" |
| 12174 | if test "x$ac_cv_func_pthread_getcpuclockid" = xyes |
| 12175 | then : |
| 12176 | printf "%s\n" "#define HAVE_PTHREAD_GETCPUCLOCKID 1" >>confdefs.h |
pdox | e14679c | 2017-10-05 00:01:56 -0700 | [diff] [blame] | 12177 | |
| 12178 | fi |
pdox | e14679c | 2017-10-05 00:01:56 -0700 | [diff] [blame] | 12179 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12180 | fi |
| 12181 | |
| 12182 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12183 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12184 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
| 12186 | printf %s "checking if --enable-ipv6 is specified... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12187 | # Check whether --enable-ipv6 was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12188 | if test ${enable_ipv6+y} |
| 12189 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12190 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12191 | no) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12192 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12193 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12194 | ipv6=no |
| 12195 | ;; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12196 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12197 | printf "%s\n" "yes" >&6; } |
| 12198 | printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12199 | |
| 12200 | ipv6=yes |
| 12201 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12202 | esac |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12203 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12204 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12206 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12207 | /* AF_INET6 available check */ |
| 12208 | #include <sys/types.h> |
| 12209 | #include <sys/socket.h> |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 12210 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12211 | main (void) |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12212 | { |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 12213 | int domain = AF_INET6; |
| 12214 | ; |
| 12215 | return 0; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12216 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12217 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12218 | if ac_fn_c_try_compile "$LINENO" |
| 12219 | then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12220 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12221 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12222 | printf "%s\n" "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12223 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12224 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12225 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12226 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12228 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12229 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12230 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12231 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12232 | 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] | 12233 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12234 | if test "$ipv6" = "yes"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12235 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
| 12236 | printf %s "checking if RFC2553 API is available... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12238 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12239 | |
| 12240 | #include <sys/types.h> |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12241 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12242 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12243 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12244 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12245 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12246 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12247 | ; |
| 12248 | return 0; |
| 12249 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12251 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12252 | if ac_fn_c_try_compile "$LINENO" |
| 12253 | then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12254 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12255 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12256 | printf "%s\n" "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12257 | ipv6=yes |
| 12258 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12259 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12260 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12261 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12262 | printf "%s\n" "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12263 | ipv6=no |
| 12264 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12265 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12266 | 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] | 12267 | fi |
| 12268 | |
| 12269 | if test "$ipv6" = "yes"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12270 | printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12271 | |
| 12272 | fi |
| 12273 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12274 | fi |
| 12275 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12276 | |
| 12277 | ipv6type=unknown |
| 12278 | ipv6lib=none |
| 12279 | ipv6trylibc=no |
| 12280 | |
| 12281 | if test "$ipv6" = "yes"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
| 12283 | printf %s "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 12284 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 12285 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12286 | case $i in |
| 12287 | inria) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12289 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12290 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12291 | #include <netinet/in.h> |
| 12292 | #ifdef IPV6_INRIA_VERSION |
| 12293 | yes |
| 12294 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12295 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12296 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12297 | $EGREP "yes" >/dev/null 2>&1 |
| 12298 | then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12299 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12300 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12301 | rm -rf conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12302 | |
| 12303 | ;; |
| 12304 | kame) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12306 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12307 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12308 | #include <netinet/in.h> |
| 12309 | #ifdef __KAME__ |
| 12310 | yes |
| 12311 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12312 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12313 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12314 | $EGREP "yes" >/dev/null 2>&1 |
| 12315 | then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12316 | ipv6type=$i; |
| 12317 | ipv6lib=inet6 |
| 12318 | ipv6libdir=/usr/local/v6/lib |
| 12319 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12320 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12321 | rm -rf conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12322 | |
| 12323 | ;; |
| 12324 | linux-glibc) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12326 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12327 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12328 | #include <features.h> |
| 12329 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 12330 | yes |
| 12331 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12332 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12333 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12334 | $EGREP "yes" >/dev/null 2>&1 |
| 12335 | then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12336 | ipv6type=$i; |
| 12337 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12338 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12339 | rm -rf conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12340 | |
| 12341 | ;; |
| 12342 | linux-inet6) |
| 12343 | if test -d /usr/inet6; then |
| 12344 | ipv6type=$i |
| 12345 | ipv6lib=inet6 |
| 12346 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12347 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12348 | fi |
| 12349 | ;; |
| 12350 | solaris) |
| 12351 | if test -f /etc/netconfig; then |
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 12352 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12353 | ipv6type=$i |
| 12354 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12355 | fi |
| 12356 | fi |
| 12357 | ;; |
| 12358 | toshiba) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12360 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12361 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12362 | #include <sys/param.h> |
| 12363 | #ifdef _TOSHIBA_INET6 |
| 12364 | yes |
| 12365 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12366 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12367 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12368 | $EGREP "yes" >/dev/null 2>&1 |
| 12369 | then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12370 | ipv6type=$i; |
| 12371 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12372 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12373 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12374 | rm -rf conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12375 | |
| 12376 | ;; |
| 12377 | v6d) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12379 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12380 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12381 | #include </usr/local/v6/include/sys/v6config.h> |
| 12382 | #ifdef __V6D__ |
| 12383 | yes |
| 12384 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12385 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12386 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12387 | $EGREP "yes" >/dev/null 2>&1 |
| 12388 | then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12389 | ipv6type=$i; |
| 12390 | ipv6lib=v6; |
| 12391 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12392 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12393 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12394 | rm -rf conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12395 | |
| 12396 | ;; |
| 12397 | zeta) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12399 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12400 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12401 | #include <sys/param.h> |
| 12402 | #ifdef _ZETA_MINAMI_INET6 |
| 12403 | yes |
| 12404 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12405 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12406 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12407 | $EGREP "yes" >/dev/null 2>&1 |
| 12408 | then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12409 | ipv6type=$i; |
| 12410 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12411 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12412 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12413 | rm -rf conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12414 | |
| 12415 | ;; |
| 12416 | esac |
| 12417 | if test "$ipv6type" != "unknown"; then |
| 12418 | break |
| 12419 | fi |
| 12420 | done |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12421 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
| 12422 | printf "%s\n" "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12423 | fi |
| 12424 | |
| 12425 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 12426 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 12427 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 12428 | echo "using lib$ipv6lib" |
| 12429 | else |
| 12430 | if test $ipv6trylibc = "yes"; then |
| 12431 | echo "using libc" |
| 12432 | else |
| 12433 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 12434 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 12435 | echo 'ipv6 kit and compile beforehand.' |
| 12436 | exit 1 |
| 12437 | fi |
| 12438 | fi |
| 12439 | fi |
| 12440 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12441 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 |
| 12442 | printf %s "checking for CAN_RAW_FD_FRAMES... " >&6; } |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12444 | /* end confdefs.h. */ |
| 12445 | /* CAN_RAW_FD_FRAMES available check */ |
| 12446 | #include <linux/can/raw.h> |
| 12447 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12448 | main (void) |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12449 | { |
| 12450 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; |
| 12451 | ; |
| 12452 | return 0; |
| 12453 | } |
| 12454 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12455 | if ac_fn_c_try_compile "$LINENO" |
| 12456 | then : |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12457 | |
| 12458 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12459 | 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] | 12460 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12461 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12462 | printf "%s\n" "yes" >&6; } |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12463 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12464 | else $as_nop |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12465 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12467 | printf "%s\n" "no" >&6; } |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 12468 | |
| 12469 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12470 | 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] | 12471 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12472 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5 |
| 12473 | printf %s "checking for CAN_RAW_JOIN_FILTERS... " >&6; } |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12475 | /* end confdefs.h. */ |
| 12476 | |
| 12477 | #include <linux/can/raw.h> |
| 12478 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12479 | main (void) |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12480 | { |
| 12481 | int can_raw_join_filters = CAN_RAW_JOIN_FILTERS; |
| 12482 | ; |
| 12483 | return 0; |
| 12484 | } |
| 12485 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12486 | if ac_fn_c_try_compile "$LINENO" |
| 12487 | then : |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12488 | |
| 12489 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12490 | 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] | 12491 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12493 | printf "%s\n" "yes" >&6; } |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12494 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12495 | else $as_nop |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12496 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12498 | printf "%s\n" "no" >&6; } |
Zackery Spytz | 97e0de0 | 2020-04-09 06:03:49 -0600 | [diff] [blame] | 12499 | |
| 12500 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12501 | 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] | 12502 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12503 | # Check for --with-doc-strings |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12504 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
| 12505 | printf %s "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12506 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12507 | # Check whether --with-doc-strings was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12508 | if test ${with_doc_strings+y} |
| 12509 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12510 | withval=$with_doc_strings; |
| 12511 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12512 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12513 | |
| 12514 | if test -z "$with_doc_strings" |
| 12515 | then with_doc_strings="yes" |
| 12516 | fi |
| 12517 | if test "$with_doc_strings" != "no" |
| 12518 | then |
| 12519 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12520 | printf "%s\n" "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12521 | |
| 12522 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12523 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
| 12524 | printf "%s\n" "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12525 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 12526 | # Check for Python-specific malloc support |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12527 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
| 12528 | printf %s "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12529 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12530 | # Check whether --with-pymalloc was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12531 | if test ${with_pymalloc+y} |
| 12532 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12533 | withval=$with_pymalloc; |
| 12534 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12535 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12536 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12537 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12538 | then |
| 12539 | with_pymalloc="yes" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12540 | fi |
| 12541 | if test "$with_pymalloc" != "no" |
| 12542 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12543 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12544 | printf "%s\n" "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12545 | |
| 12546 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12547 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
| 12548 | printf "%s\n" "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12549 | |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 12550 | # Check for --with-c-locale-coercion |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 |
| 12552 | printf %s "checking for --with-c-locale-coercion... " >&6; } |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 12553 | |
| 12554 | # Check whether --with-c-locale-coercion was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12555 | if test ${with_c_locale_coercion+y} |
| 12556 | then : |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 12557 | withval=$with_c_locale_coercion; |
| 12558 | fi |
| 12559 | |
| 12560 | |
| 12561 | if test -z "$with_c_locale_coercion" |
| 12562 | then |
| 12563 | with_c_locale_coercion="yes" |
| 12564 | fi |
| 12565 | if test "$with_c_locale_coercion" != "no" |
| 12566 | then |
| 12567 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12568 | printf "%s\n" "#define PY_COERCE_C_LOCALE 1" >>confdefs.h |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 12569 | |
| 12570 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12571 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 |
| 12572 | printf "%s\n" "$with_c_locale_coercion" >&6; } |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 12573 | |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12574 | # Check for Valgrind support |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12575 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
| 12576 | printf %s "checking for --with-valgrind... " >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12577 | |
| 12578 | # Check whether --with-valgrind was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12579 | if test ${with_valgrind+y} |
| 12580 | then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12581 | withval=$with_valgrind; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12582 | else $as_nop |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12583 | with_valgrind=no |
| 12584 | fi |
| 12585 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12586 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
| 12587 | printf "%s\n" "$with_valgrind" >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12588 | if test "$with_valgrind" != no; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12589 | ac_fn_c_check_header_compile "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" |
| 12590 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes |
| 12591 | then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12592 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12593 | printf "%s\n" "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12594 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12595 | else $as_nop |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12596 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12597 | |
| 12598 | fi |
| 12599 | |
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 12600 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 12601 | fi |
| 12602 | |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12603 | # Check for DTrace support |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12604 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 |
| 12605 | printf %s "checking for --with-dtrace... " >&6; } |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12606 | |
| 12607 | # Check whether --with-dtrace was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12608 | if test ${with_dtrace+y} |
| 12609 | then : |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12610 | withval=$with_dtrace; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12611 | else $as_nop |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12612 | with_dtrace=no |
| 12613 | fi |
| 12614 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 |
| 12616 | printf "%s\n" "$with_dtrace" >&6; } |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12617 | |
| 12618 | |
| 12619 | |
| 12620 | |
| 12621 | |
| 12622 | DTRACE= |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12623 | DTRACE_HEADERS= |
| 12624 | DTRACE_OBJS= |
| 12625 | |
| 12626 | if test "$with_dtrace" = "yes" |
| 12627 | then |
| 12628 | # Extract the first word of "dtrace", so it can be a program name with args. |
| 12629 | set dummy dtrace; ac_word=$2 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12630 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12631 | printf %s "checking for $ac_word... " >&6; } |
| 12632 | if test ${ac_cv_path_DTRACE+y} |
| 12633 | then : |
| 12634 | printf %s "(cached) " >&6 |
| 12635 | else $as_nop |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12636 | case $DTRACE in |
| 12637 | [\\/]* | ?:[\\/]*) |
| 12638 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. |
| 12639 | ;; |
| 12640 | *) |
| 12641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12642 | for as_dir in $PATH |
| 12643 | do |
| 12644 | IFS=$as_save_IFS |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12645 | case $as_dir in #((( |
| 12646 | '') as_dir=./ ;; |
| 12647 | */) ;; |
| 12648 | *) as_dir=$as_dir/ ;; |
| 12649 | esac |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12650 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12651 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 12652 | ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext" |
| 12653 | 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] | 12654 | break 2 |
| 12655 | fi |
| 12656 | done |
| 12657 | done |
| 12658 | IFS=$as_save_IFS |
| 12659 | |
| 12660 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" |
| 12661 | ;; |
| 12662 | esac |
| 12663 | fi |
| 12664 | DTRACE=$ac_cv_path_DTRACE |
| 12665 | if test -n "$DTRACE"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 |
| 12667 | printf "%s\n" "$DTRACE" >&6; } |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12668 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12670 | printf "%s\n" "no" >&6; } |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12671 | fi |
| 12672 | |
| 12673 | |
| 12674 | if test "$DTRACE" = "not found"; then |
| 12675 | as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 |
| 12676 | fi |
| 12677 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12678 | printf "%s\n" "#define WITH_DTRACE 1" >>confdefs.h |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12679 | |
| 12680 | DTRACE_HEADERS="Include/pydtrace_probes.h" |
| 12681 | |
| 12682 | # On OS X, DTrace providers do not need to be explicitly compiled and |
| 12683 | # linked into the binary. Correspondingly, dtrace(1) is missing the ELF |
| 12684 | # generation flag '-G'. We check for presence of this flag, rather than |
| 12685 | # hardcoding support by OS, in the interest of robustness. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12686 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 |
| 12687 | printf %s "checking whether DTrace probes require linking... " >&6; } |
| 12688 | if test ${ac_cv_dtrace_link+y} |
| 12689 | then : |
| 12690 | printf %s "(cached) " >&6 |
| 12691 | else $as_nop |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12692 | ac_cv_dtrace_link=no |
Jakub Kulík | 5c8f537 | 2019-01-24 18:29:48 +0100 | [diff] [blame] | 12693 | echo 'BEGIN{}' > conftest.d |
Petr Viktorin | 3c97e1e | 2020-03-11 14:27:42 +0100 | [diff] [blame] | 12694 | "$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] | 12695 | ac_cv_dtrace_link=yes |
| 12696 | |
| 12697 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12698 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 |
| 12699 | printf "%s\n" "$ac_cv_dtrace_link" >&6; } |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 12700 | if test "$ac_cv_dtrace_link" = "yes"; then |
| 12701 | DTRACE_OBJS="Python/pydtrace.o" |
| 12702 | fi |
| 12703 | fi |
| 12704 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12705 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12706 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 12707 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12708 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12709 | # 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] | 12710 | # platforms have dlopen(), but don't want to use it. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12711 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 12712 | if test "x$ac_cv_func_dlopen" = xyes |
| 12713 | then : |
| 12714 | printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12715 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12716 | fi |
| 12717 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12718 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12719 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 12720 | # loading of modules. |
| 12721 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12722 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
| 12723 | printf %s "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12724 | if test -z "$DYNLOADFILE" |
| 12725 | then |
| 12726 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12727 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12728 | *) |
| 12729 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 12730 | # out any dynamic loading |
| 12731 | if test "$ac_cv_func_dlopen" = yes |
| 12732 | then DYNLOADFILE="dynload_shlib.o" |
| 12733 | else DYNLOADFILE="dynload_stub.o" |
| 12734 | fi |
| 12735 | ;; |
| 12736 | esac |
| 12737 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12738 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
| 12739 | printf "%s\n" "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12740 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 12741 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12742 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12743 | printf "%s\n" "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12744 | |
| 12745 | fi |
| 12746 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12747 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 12748 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12749 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12750 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
| 12751 | printf %s "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12752 | if test -z "$MACHDEP_OBJS" |
| 12753 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12754 | MACHDEP_OBJS=$extra_machdep_objs |
| 12755 | else |
| 12756 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12757 | fi |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12758 | if test -z "$MACHDEP_OBJS"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 12760 | printf "%s\n" "none" >&6; } |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12761 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 |
| 12763 | printf "%s\n" "$MACHDEP_OBJS" >&6; } |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12764 | fi |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12765 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12766 | # checks for library functions |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12767 | ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm" |
| 12768 | if test "x$ac_cv_func_alarm" = xyes |
| 12769 | then : |
| 12770 | printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12771 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12772 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 12773 | ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" |
| 12774 | if test "x$ac_cv_func_accept4" = xyes |
| 12775 | then : |
| 12776 | printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h |
| 12777 | |
| 12778 | fi |
| 12779 | ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" |
| 12780 | if test "x$ac_cv_func_setitimer" = xyes |
| 12781 | then : |
| 12782 | printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h |
| 12783 | |
| 12784 | fi |
| 12785 | ac_fn_c_check_func "$LINENO" "getitimer" "ac_cv_func_getitimer" |
| 12786 | if test "x$ac_cv_func_getitimer" = xyes |
| 12787 | then : |
| 12788 | printf "%s\n" "#define HAVE_GETITIMER 1" >>confdefs.h |
| 12789 | |
| 12790 | fi |
| 12791 | ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" |
| 12792 | if test "x$ac_cv_func_bind_textdomain_codeset" = xyes |
| 12793 | then : |
| 12794 | printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h |
| 12795 | |
| 12796 | fi |
| 12797 | ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown" |
| 12798 | if test "x$ac_cv_func_chown" = xyes |
| 12799 | then : |
| 12800 | printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h |
| 12801 | |
| 12802 | fi |
| 12803 | ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock" |
| 12804 | if test "x$ac_cv_func_clock" = xyes |
| 12805 | then : |
| 12806 | printf "%s\n" "#define HAVE_CLOCK 1" >>confdefs.h |
| 12807 | |
| 12808 | fi |
| 12809 | ac_fn_c_check_func "$LINENO" "confstr" "ac_cv_func_confstr" |
| 12810 | if test "x$ac_cv_func_confstr" = xyes |
| 12811 | then : |
| 12812 | printf "%s\n" "#define HAVE_CONFSTR 1" >>confdefs.h |
| 12813 | |
| 12814 | fi |
| 12815 | ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range" |
| 12816 | if test "x$ac_cv_func_close_range" = xyes |
| 12817 | then : |
| 12818 | printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h |
| 12819 | |
| 12820 | fi |
| 12821 | ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range" |
| 12822 | if test "x$ac_cv_func_copy_file_range" = xyes |
| 12823 | then : |
| 12824 | printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
| 12825 | |
| 12826 | fi |
| 12827 | ac_fn_c_check_func "$LINENO" "ctermid" "ac_cv_func_ctermid" |
| 12828 | if test "x$ac_cv_func_ctermid" = xyes |
| 12829 | then : |
| 12830 | printf "%s\n" "#define HAVE_CTERMID 1" >>confdefs.h |
| 12831 | |
| 12832 | fi |
| 12833 | ac_fn_c_check_func "$LINENO" "dup3" "ac_cv_func_dup3" |
| 12834 | if test "x$ac_cv_func_dup3" = xyes |
| 12835 | then : |
| 12836 | printf "%s\n" "#define HAVE_DUP3 1" >>confdefs.h |
| 12837 | |
| 12838 | fi |
| 12839 | ac_fn_c_check_func "$LINENO" "execv" "ac_cv_func_execv" |
| 12840 | if test "x$ac_cv_func_execv" = xyes |
| 12841 | then : |
| 12842 | printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h |
| 12843 | |
| 12844 | fi |
| 12845 | ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" |
| 12846 | if test "x$ac_cv_func_explicit_bzero" = xyes |
| 12847 | then : |
| 12848 | printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h |
| 12849 | |
| 12850 | fi |
| 12851 | ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset" |
| 12852 | if test "x$ac_cv_func_explicit_memset" = xyes |
| 12853 | then : |
| 12854 | printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h |
| 12855 | |
| 12856 | fi |
| 12857 | ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat" |
| 12858 | if test "x$ac_cv_func_faccessat" = xyes |
| 12859 | then : |
| 12860 | printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h |
| 12861 | |
| 12862 | fi |
| 12863 | ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod" |
| 12864 | if test "x$ac_cv_func_fchmod" = xyes |
| 12865 | then : |
| 12866 | printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h |
| 12867 | |
| 12868 | fi |
| 12869 | ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat" |
| 12870 | if test "x$ac_cv_func_fchmodat" = xyes |
| 12871 | then : |
| 12872 | printf "%s\n" "#define HAVE_FCHMODAT 1" >>confdefs.h |
| 12873 | |
| 12874 | fi |
| 12875 | ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" |
| 12876 | if test "x$ac_cv_func_fchown" = xyes |
| 12877 | then : |
| 12878 | printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h |
| 12879 | |
| 12880 | fi |
| 12881 | ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat" |
| 12882 | if test "x$ac_cv_func_fchownat" = xyes |
| 12883 | then : |
| 12884 | printf "%s\n" "#define HAVE_FCHOWNAT 1" >>confdefs.h |
| 12885 | |
| 12886 | fi |
| 12887 | ac_fn_c_check_func "$LINENO" "fdwalk" "ac_cv_func_fdwalk" |
| 12888 | if test "x$ac_cv_func_fdwalk" = xyes |
| 12889 | then : |
| 12890 | printf "%s\n" "#define HAVE_FDWALK 1" >>confdefs.h |
| 12891 | |
| 12892 | fi |
| 12893 | ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve" |
| 12894 | if test "x$ac_cv_func_fexecve" = xyes |
| 12895 | then : |
| 12896 | printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h |
| 12897 | |
| 12898 | fi |
| 12899 | ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir" |
| 12900 | if test "x$ac_cv_func_fdopendir" = xyes |
| 12901 | then : |
| 12902 | printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h |
| 12903 | |
| 12904 | fi |
| 12905 | ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" |
| 12906 | if test "x$ac_cv_func_fork" = xyes |
| 12907 | then : |
| 12908 | printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h |
| 12909 | |
| 12910 | fi |
| 12911 | ac_fn_c_check_func "$LINENO" "fpathconf" "ac_cv_func_fpathconf" |
| 12912 | if test "x$ac_cv_func_fpathconf" = xyes |
| 12913 | then : |
| 12914 | printf "%s\n" "#define HAVE_FPATHCONF 1" >>confdefs.h |
| 12915 | |
| 12916 | fi |
| 12917 | ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat" |
| 12918 | if test "x$ac_cv_func_fstatat" = xyes |
| 12919 | then : |
| 12920 | printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h |
| 12921 | |
| 12922 | fi |
| 12923 | ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime" |
| 12924 | if test "x$ac_cv_func_ftime" = xyes |
| 12925 | then : |
| 12926 | printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h |
| 12927 | |
| 12928 | fi |
| 12929 | ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" |
| 12930 | if test "x$ac_cv_func_ftruncate" = xyes |
| 12931 | then : |
| 12932 | printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h |
| 12933 | |
| 12934 | fi |
| 12935 | ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat" |
| 12936 | if test "x$ac_cv_func_futimesat" = xyes |
| 12937 | then : |
| 12938 | printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h |
| 12939 | |
| 12940 | fi |
| 12941 | ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens" |
| 12942 | if test "x$ac_cv_func_futimens" = xyes |
| 12943 | then : |
| 12944 | printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h |
| 12945 | |
| 12946 | fi |
| 12947 | ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes" |
| 12948 | if test "x$ac_cv_func_futimes" = xyes |
| 12949 | then : |
| 12950 | printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h |
| 12951 | |
| 12952 | fi |
| 12953 | ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" |
| 12954 | if test "x$ac_cv_func_gai_strerror" = xyes |
| 12955 | then : |
| 12956 | printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h |
| 12957 | |
| 12958 | fi |
| 12959 | ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" |
| 12960 | if test "x$ac_cv_func_getentropy" = xyes |
| 12961 | then : |
| 12962 | printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h |
| 12963 | |
| 12964 | fi |
| 12965 | ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r" |
| 12966 | if test "x$ac_cv_func_getgrgid_r" = xyes |
| 12967 | then : |
| 12968 | printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h |
| 12969 | |
| 12970 | fi |
| 12971 | ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r" |
| 12972 | if test "x$ac_cv_func_getgrnam_r" = xyes |
| 12973 | then : |
| 12974 | printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h |
| 12975 | |
| 12976 | fi |
| 12977 | ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist" |
| 12978 | if test "x$ac_cv_func_getgrouplist" = xyes |
| 12979 | then : |
| 12980 | printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h |
| 12981 | |
| 12982 | fi |
| 12983 | ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups" |
| 12984 | if test "x$ac_cv_func_getgroups" = xyes |
| 12985 | then : |
| 12986 | printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h |
| 12987 | |
| 12988 | fi |
| 12989 | ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin" |
| 12990 | if test "x$ac_cv_func_getlogin" = xyes |
| 12991 | then : |
| 12992 | printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h |
| 12993 | |
| 12994 | fi |
| 12995 | ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" |
| 12996 | if test "x$ac_cv_func_getloadavg" = xyes |
| 12997 | then : |
| 12998 | printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h |
| 12999 | |
| 13000 | fi |
| 13001 | ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername" |
| 13002 | if test "x$ac_cv_func_getpeername" = xyes |
| 13003 | then : |
| 13004 | printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h |
| 13005 | |
| 13006 | fi |
| 13007 | ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid" |
| 13008 | if test "x$ac_cv_func_getpgid" = xyes |
| 13009 | then : |
| 13010 | printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h |
| 13011 | |
| 13012 | fi |
| 13013 | ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid" |
| 13014 | if test "x$ac_cv_func_getpid" = xyes |
| 13015 | then : |
| 13016 | printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h |
| 13017 | |
| 13018 | fi |
| 13019 | ac_fn_c_check_func "$LINENO" "getpriority" "ac_cv_func_getpriority" |
| 13020 | if test "x$ac_cv_func_getpriority" = xyes |
| 13021 | then : |
| 13022 | printf "%s\n" "#define HAVE_GETPRIORITY 1" >>confdefs.h |
| 13023 | |
| 13024 | fi |
| 13025 | ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" |
| 13026 | if test "x$ac_cv_func_getresuid" = xyes |
| 13027 | then : |
| 13028 | printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h |
| 13029 | |
| 13030 | fi |
| 13031 | ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid" |
| 13032 | if test "x$ac_cv_func_getresgid" = xyes |
| 13033 | then : |
| 13034 | printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h |
| 13035 | |
| 13036 | fi |
| 13037 | ac_fn_c_check_func "$LINENO" "getpwent" "ac_cv_func_getpwent" |
| 13038 | if test "x$ac_cv_func_getpwent" = xyes |
| 13039 | then : |
| 13040 | printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h |
| 13041 | |
| 13042 | fi |
| 13043 | ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" |
| 13044 | if test "x$ac_cv_func_getpwnam_r" = xyes |
| 13045 | then : |
| 13046 | printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h |
| 13047 | |
| 13048 | fi |
| 13049 | ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" |
| 13050 | if test "x$ac_cv_func_getpwuid_r" = xyes |
| 13051 | then : |
| 13052 | printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h |
| 13053 | |
| 13054 | fi |
| 13055 | ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" |
| 13056 | if test "x$ac_cv_func_getspnam" = xyes |
| 13057 | then : |
| 13058 | printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h |
| 13059 | |
| 13060 | fi |
| 13061 | ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent" |
| 13062 | if test "x$ac_cv_func_getspent" = xyes |
| 13063 | then : |
| 13064 | printf "%s\n" "#define HAVE_GETSPENT 1" >>confdefs.h |
| 13065 | |
| 13066 | fi |
| 13067 | ac_fn_c_check_func "$LINENO" "getsid" "ac_cv_func_getsid" |
| 13068 | if test "x$ac_cv_func_getsid" = xyes |
| 13069 | then : |
| 13070 | printf "%s\n" "#define HAVE_GETSID 1" >>confdefs.h |
| 13071 | |
| 13072 | fi |
| 13073 | ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd" |
| 13074 | if test "x$ac_cv_func_getwd" = xyes |
| 13075 | then : |
| 13076 | printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h |
| 13077 | |
| 13078 | fi |
| 13079 | ac_fn_c_check_func "$LINENO" "if_nameindex" "ac_cv_func_if_nameindex" |
| 13080 | if test "x$ac_cv_func_if_nameindex" = xyes |
| 13081 | then : |
| 13082 | printf "%s\n" "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h |
| 13083 | |
| 13084 | fi |
| 13085 | ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" |
| 13086 | if test "x$ac_cv_func_initgroups" = xyes |
| 13087 | then : |
| 13088 | printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h |
| 13089 | |
| 13090 | fi |
| 13091 | ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill" |
| 13092 | if test "x$ac_cv_func_kill" = xyes |
| 13093 | then : |
| 13094 | printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h |
| 13095 | |
| 13096 | fi |
| 13097 | ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg" |
| 13098 | if test "x$ac_cv_func_killpg" = xyes |
| 13099 | then : |
| 13100 | printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h |
| 13101 | |
| 13102 | fi |
| 13103 | ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown" |
| 13104 | if test "x$ac_cv_func_lchown" = xyes |
| 13105 | then : |
| 13106 | printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h |
| 13107 | |
| 13108 | fi |
| 13109 | ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf" |
| 13110 | if test "x$ac_cv_func_lockf" = xyes |
| 13111 | then : |
| 13112 | printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h |
| 13113 | |
| 13114 | fi |
| 13115 | ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat" |
| 13116 | if test "x$ac_cv_func_linkat" = xyes |
| 13117 | then : |
| 13118 | printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h |
| 13119 | |
| 13120 | fi |
| 13121 | ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat" |
| 13122 | if test "x$ac_cv_func_lstat" = xyes |
| 13123 | then : |
| 13124 | printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h |
| 13125 | |
| 13126 | fi |
| 13127 | ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes" |
| 13128 | if test "x$ac_cv_func_lutimes" = xyes |
| 13129 | then : |
| 13130 | printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h |
| 13131 | |
| 13132 | fi |
| 13133 | ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" |
| 13134 | if test "x$ac_cv_func_mmap" = xyes |
| 13135 | then : |
| 13136 | printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h |
| 13137 | |
| 13138 | fi |
| 13139 | ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" |
| 13140 | if test "x$ac_cv_func_memrchr" = xyes |
| 13141 | then : |
| 13142 | printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h |
| 13143 | |
| 13144 | fi |
| 13145 | ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc" |
| 13146 | if test "x$ac_cv_func_mbrtowc" = xyes |
| 13147 | then : |
| 13148 | printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h |
| 13149 | |
| 13150 | fi |
| 13151 | ac_fn_c_check_func "$LINENO" "mkdirat" "ac_cv_func_mkdirat" |
| 13152 | if test "x$ac_cv_func_mkdirat" = xyes |
| 13153 | then : |
| 13154 | printf "%s\n" "#define HAVE_MKDIRAT 1" >>confdefs.h |
| 13155 | |
| 13156 | fi |
| 13157 | ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo" |
| 13158 | if test "x$ac_cv_func_mkfifo" = xyes |
| 13159 | then : |
| 13160 | printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h |
| 13161 | |
| 13162 | fi |
| 13163 | ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise" |
| 13164 | if test "x$ac_cv_func_madvise" = xyes |
| 13165 | then : |
| 13166 | printf "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h |
| 13167 | |
| 13168 | fi |
| 13169 | ac_fn_c_check_func "$LINENO" "mkfifoat" "ac_cv_func_mkfifoat" |
| 13170 | if test "x$ac_cv_func_mkfifoat" = xyes |
| 13171 | then : |
| 13172 | printf "%s\n" "#define HAVE_MKFIFOAT 1" >>confdefs.h |
| 13173 | |
| 13174 | fi |
| 13175 | ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod" |
| 13176 | if test "x$ac_cv_func_mknod" = xyes |
| 13177 | then : |
| 13178 | printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h |
| 13179 | |
| 13180 | fi |
| 13181 | ac_fn_c_check_func "$LINENO" "mknodat" "ac_cv_func_mknodat" |
| 13182 | if test "x$ac_cv_func_mknodat" = xyes |
| 13183 | then : |
| 13184 | printf "%s\n" "#define HAVE_MKNODAT 1" >>confdefs.h |
| 13185 | |
| 13186 | fi |
| 13187 | ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" |
| 13188 | if test "x$ac_cv_func_mktime" = xyes |
| 13189 | then : |
| 13190 | printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h |
| 13191 | |
| 13192 | fi |
| 13193 | ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap" |
| 13194 | if test "x$ac_cv_func_mremap" = xyes |
| 13195 | then : |
| 13196 | printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h |
| 13197 | |
| 13198 | fi |
| 13199 | ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice" |
| 13200 | if test "x$ac_cv_func_nice" = xyes |
| 13201 | then : |
| 13202 | printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h |
| 13203 | |
| 13204 | fi |
| 13205 | ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" |
| 13206 | if test "x$ac_cv_func_openat" = xyes |
| 13207 | then : |
| 13208 | printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h |
| 13209 | |
| 13210 | fi |
| 13211 | ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf" |
| 13212 | if test "x$ac_cv_func_pathconf" = xyes |
| 13213 | then : |
| 13214 | printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h |
| 13215 | |
| 13216 | fi |
| 13217 | ac_fn_c_check_func "$LINENO" "pause" "ac_cv_func_pause" |
| 13218 | if test "x$ac_cv_func_pause" = xyes |
| 13219 | then : |
| 13220 | printf "%s\n" "#define HAVE_PAUSE 1" >>confdefs.h |
| 13221 | |
| 13222 | fi |
| 13223 | ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" |
| 13224 | if test "x$ac_cv_func_pipe2" = xyes |
| 13225 | then : |
| 13226 | printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h |
| 13227 | |
| 13228 | fi |
| 13229 | ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock" |
| 13230 | if test "x$ac_cv_func_plock" = xyes |
| 13231 | then : |
| 13232 | printf "%s\n" "#define HAVE_PLOCK 1" >>confdefs.h |
| 13233 | |
| 13234 | fi |
| 13235 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" |
| 13236 | if test "x$ac_cv_func_poll" = xyes |
| 13237 | then : |
| 13238 | printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h |
| 13239 | |
| 13240 | fi |
| 13241 | ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate" |
| 13242 | if test "x$ac_cv_func_posix_fallocate" = xyes |
| 13243 | then : |
| 13244 | printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h |
| 13245 | |
| 13246 | fi |
| 13247 | ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise" |
| 13248 | if test "x$ac_cv_func_posix_fadvise" = xyes |
| 13249 | then : |
| 13250 | printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h |
| 13251 | |
| 13252 | fi |
| 13253 | ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn" |
| 13254 | if test "x$ac_cv_func_posix_spawn" = xyes |
| 13255 | then : |
| 13256 | printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h |
| 13257 | |
| 13258 | fi |
| 13259 | ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp" |
| 13260 | if test "x$ac_cv_func_posix_spawnp" = xyes |
| 13261 | then : |
| 13262 | printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h |
| 13263 | |
| 13264 | fi |
| 13265 | ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" |
| 13266 | if test "x$ac_cv_func_pread" = xyes |
| 13267 | then : |
| 13268 | printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h |
| 13269 | |
| 13270 | fi |
| 13271 | ac_fn_c_check_func "$LINENO" "preadv" "ac_cv_func_preadv" |
| 13272 | if test "x$ac_cv_func_preadv" = xyes |
| 13273 | then : |
| 13274 | printf "%s\n" "#define HAVE_PREADV 1" >>confdefs.h |
| 13275 | |
| 13276 | fi |
| 13277 | ac_fn_c_check_func "$LINENO" "preadv2" "ac_cv_func_preadv2" |
| 13278 | if test "x$ac_cv_func_preadv2" = xyes |
| 13279 | then : |
| 13280 | printf "%s\n" "#define HAVE_PREADV2 1" >>confdefs.h |
| 13281 | |
| 13282 | fi |
| 13283 | ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock" |
| 13284 | if test "x$ac_cv_func_pthread_condattr_setclock" = xyes |
| 13285 | then : |
| 13286 | printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h |
| 13287 | |
| 13288 | fi |
| 13289 | ac_fn_c_check_func "$LINENO" "pthread_init" "ac_cv_func_pthread_init" |
| 13290 | if test "x$ac_cv_func_pthread_init" = xyes |
| 13291 | then : |
| 13292 | printf "%s\n" "#define HAVE_PTHREAD_INIT 1" >>confdefs.h |
| 13293 | |
| 13294 | fi |
| 13295 | ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill" |
| 13296 | if test "x$ac_cv_func_pthread_kill" = xyes |
| 13297 | then : |
| 13298 | printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h |
| 13299 | |
| 13300 | fi |
| 13301 | ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite" |
| 13302 | if test "x$ac_cv_func_pwrite" = xyes |
| 13303 | then : |
| 13304 | printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h |
| 13305 | |
| 13306 | fi |
| 13307 | ac_fn_c_check_func "$LINENO" "pwritev" "ac_cv_func_pwritev" |
| 13308 | if test "x$ac_cv_func_pwritev" = xyes |
| 13309 | then : |
| 13310 | printf "%s\n" "#define HAVE_PWRITEV 1" >>confdefs.h |
| 13311 | |
| 13312 | fi |
| 13313 | ac_fn_c_check_func "$LINENO" "pwritev2" "ac_cv_func_pwritev2" |
| 13314 | if test "x$ac_cv_func_pwritev2" = xyes |
| 13315 | then : |
| 13316 | printf "%s\n" "#define HAVE_PWRITEV2 1" >>confdefs.h |
| 13317 | |
| 13318 | fi |
| 13319 | ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink" |
| 13320 | if test "x$ac_cv_func_readlink" = xyes |
| 13321 | then : |
| 13322 | printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h |
| 13323 | |
| 13324 | fi |
| 13325 | ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat" |
| 13326 | if test "x$ac_cv_func_readlinkat" = xyes |
| 13327 | then : |
| 13328 | printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h |
| 13329 | |
| 13330 | fi |
| 13331 | ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv" |
| 13332 | if test "x$ac_cv_func_readv" = xyes |
| 13333 | then : |
| 13334 | printf "%s\n" "#define HAVE_READV 1" >>confdefs.h |
| 13335 | |
| 13336 | fi |
| 13337 | ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" |
| 13338 | if test "x$ac_cv_func_realpath" = xyes |
| 13339 | then : |
| 13340 | printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h |
| 13341 | |
| 13342 | fi |
| 13343 | ac_fn_c_check_func "$LINENO" "renameat" "ac_cv_func_renameat" |
| 13344 | if test "x$ac_cv_func_renameat" = xyes |
| 13345 | then : |
| 13346 | printf "%s\n" "#define HAVE_RENAMEAT 1" >>confdefs.h |
| 13347 | |
| 13348 | fi |
| 13349 | ac_fn_c_check_func "$LINENO" "sem_open" "ac_cv_func_sem_open" |
| 13350 | if test "x$ac_cv_func_sem_open" = xyes |
| 13351 | then : |
| 13352 | printf "%s\n" "#define HAVE_SEM_OPEN 1" >>confdefs.h |
| 13353 | |
| 13354 | fi |
| 13355 | ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" |
| 13356 | if test "x$ac_cv_func_sem_timedwait" = xyes |
| 13357 | then : |
| 13358 | printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h |
| 13359 | |
| 13360 | fi |
| 13361 | ac_fn_c_check_func "$LINENO" "sem_getvalue" "ac_cv_func_sem_getvalue" |
| 13362 | if test "x$ac_cv_func_sem_getvalue" = xyes |
| 13363 | then : |
| 13364 | printf "%s\n" "#define HAVE_SEM_GETVALUE 1" >>confdefs.h |
| 13365 | |
| 13366 | fi |
| 13367 | ac_fn_c_check_func "$LINENO" "sem_unlink" "ac_cv_func_sem_unlink" |
| 13368 | if test "x$ac_cv_func_sem_unlink" = xyes |
| 13369 | then : |
| 13370 | printf "%s\n" "#define HAVE_SEM_UNLINK 1" >>confdefs.h |
| 13371 | |
| 13372 | fi |
| 13373 | ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" |
| 13374 | if test "x$ac_cv_func_sendfile" = xyes |
| 13375 | then : |
| 13376 | printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h |
| 13377 | |
| 13378 | fi |
| 13379 | ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid" |
| 13380 | if test "x$ac_cv_func_setegid" = xyes |
| 13381 | then : |
| 13382 | printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h |
| 13383 | |
| 13384 | fi |
| 13385 | ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" |
| 13386 | if test "x$ac_cv_func_seteuid" = xyes |
| 13387 | then : |
| 13388 | printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h |
| 13389 | |
| 13390 | fi |
| 13391 | ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid" |
| 13392 | if test "x$ac_cv_func_setgid" = xyes |
| 13393 | then : |
| 13394 | printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h |
| 13395 | |
| 13396 | fi |
| 13397 | ac_fn_c_check_func "$LINENO" "sethostname" "ac_cv_func_sethostname" |
| 13398 | if test "x$ac_cv_func_sethostname" = xyes |
| 13399 | then : |
| 13400 | printf "%s\n" "#define HAVE_SETHOSTNAME 1" >>confdefs.h |
| 13401 | |
| 13402 | fi |
| 13403 | ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" |
| 13404 | if test "x$ac_cv_func_setlocale" = xyes |
| 13405 | then : |
| 13406 | printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h |
| 13407 | |
| 13408 | fi |
| 13409 | ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" |
| 13410 | if test "x$ac_cv_func_setregid" = xyes |
| 13411 | then : |
| 13412 | printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h |
| 13413 | |
| 13414 | fi |
| 13415 | ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" |
| 13416 | if test "x$ac_cv_func_setreuid" = xyes |
| 13417 | then : |
| 13418 | printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h |
| 13419 | |
| 13420 | fi |
| 13421 | ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" |
| 13422 | if test "x$ac_cv_func_setresuid" = xyes |
| 13423 | then : |
| 13424 | printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h |
| 13425 | |
| 13426 | fi |
| 13427 | ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" |
| 13428 | if test "x$ac_cv_func_setresgid" = xyes |
| 13429 | then : |
| 13430 | printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h |
| 13431 | |
| 13432 | fi |
| 13433 | ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" |
| 13434 | if test "x$ac_cv_func_setsid" = xyes |
| 13435 | then : |
| 13436 | printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h |
| 13437 | |
| 13438 | fi |
| 13439 | ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" |
| 13440 | if test "x$ac_cv_func_setpgid" = xyes |
| 13441 | then : |
| 13442 | printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h |
| 13443 | |
| 13444 | fi |
| 13445 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
| 13446 | if test "x$ac_cv_func_setpgrp" = xyes |
| 13447 | then : |
| 13448 | printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h |
| 13449 | |
| 13450 | fi |
| 13451 | ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority" |
| 13452 | if test "x$ac_cv_func_setpriority" = xyes |
| 13453 | then : |
| 13454 | printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h |
| 13455 | |
| 13456 | fi |
| 13457 | ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid" |
| 13458 | if test "x$ac_cv_func_setuid" = xyes |
| 13459 | then : |
| 13460 | printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h |
| 13461 | |
| 13462 | fi |
| 13463 | ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf" |
| 13464 | if test "x$ac_cv_func_setvbuf" = xyes |
| 13465 | then : |
| 13466 | printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h |
| 13467 | |
| 13468 | fi |
| 13469 | ac_fn_c_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max" |
| 13470 | if test "x$ac_cv_func_sched_get_priority_max" = xyes |
| 13471 | then : |
| 13472 | printf "%s\n" "#define HAVE_SCHED_GET_PRIORITY_MAX 1" >>confdefs.h |
| 13473 | |
| 13474 | fi |
| 13475 | ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity" |
| 13476 | if test "x$ac_cv_func_sched_setaffinity" = xyes |
| 13477 | then : |
| 13478 | printf "%s\n" "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h |
| 13479 | |
| 13480 | fi |
| 13481 | ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler" |
| 13482 | if test "x$ac_cv_func_sched_setscheduler" = xyes |
| 13483 | then : |
| 13484 | printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h |
| 13485 | |
| 13486 | fi |
| 13487 | ac_fn_c_check_func "$LINENO" "sched_setparam" "ac_cv_func_sched_setparam" |
| 13488 | if test "x$ac_cv_func_sched_setparam" = xyes |
| 13489 | then : |
| 13490 | printf "%s\n" "#define HAVE_SCHED_SETPARAM 1" >>confdefs.h |
| 13491 | |
| 13492 | fi |
| 13493 | ac_fn_c_check_func "$LINENO" "sched_rr_get_interval" "ac_cv_func_sched_rr_get_interval" |
| 13494 | if test "x$ac_cv_func_sched_rr_get_interval" = xyes |
| 13495 | then : |
| 13496 | printf "%s\n" "#define HAVE_SCHED_RR_GET_INTERVAL 1" >>confdefs.h |
| 13497 | |
| 13498 | fi |
| 13499 | ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" |
| 13500 | if test "x$ac_cv_func_sigaction" = xyes |
| 13501 | then : |
| 13502 | printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h |
| 13503 | |
| 13504 | fi |
| 13505 | ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack" |
| 13506 | if test "x$ac_cv_func_sigaltstack" = xyes |
| 13507 | then : |
| 13508 | printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h |
| 13509 | |
| 13510 | fi |
| 13511 | ac_fn_c_check_func "$LINENO" "sigfillset" "ac_cv_func_sigfillset" |
| 13512 | if test "x$ac_cv_func_sigfillset" = xyes |
| 13513 | then : |
| 13514 | printf "%s\n" "#define HAVE_SIGFILLSET 1" >>confdefs.h |
| 13515 | |
| 13516 | fi |
| 13517 | ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" |
| 13518 | if test "x$ac_cv_func_siginterrupt" = xyes |
| 13519 | then : |
| 13520 | printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h |
| 13521 | |
| 13522 | fi |
| 13523 | ac_fn_c_check_func "$LINENO" "sigpending" "ac_cv_func_sigpending" |
| 13524 | if test "x$ac_cv_func_sigpending" = xyes |
| 13525 | then : |
| 13526 | printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h |
| 13527 | |
| 13528 | fi |
| 13529 | ac_fn_c_check_func "$LINENO" "sigrelse" "ac_cv_func_sigrelse" |
| 13530 | if test "x$ac_cv_func_sigrelse" = xyes |
| 13531 | then : |
| 13532 | printf "%s\n" "#define HAVE_SIGRELSE 1" >>confdefs.h |
| 13533 | |
| 13534 | fi |
| 13535 | ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait" |
| 13536 | if test "x$ac_cv_func_sigtimedwait" = xyes |
| 13537 | then : |
| 13538 | printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h |
| 13539 | |
| 13540 | fi |
| 13541 | ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" |
| 13542 | if test "x$ac_cv_func_sigwait" = xyes |
| 13543 | then : |
| 13544 | printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h |
| 13545 | |
| 13546 | fi |
| 13547 | ac_fn_c_check_func "$LINENO" "sigwaitinfo" "ac_cv_func_sigwaitinfo" |
| 13548 | if test "x$ac_cv_func_sigwaitinfo" = xyes |
| 13549 | then : |
| 13550 | printf "%s\n" "#define HAVE_SIGWAITINFO 1" >>confdefs.h |
| 13551 | |
| 13552 | fi |
| 13553 | ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" |
| 13554 | if test "x$ac_cv_func_snprintf" = xyes |
| 13555 | then : |
| 13556 | printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h |
| 13557 | |
| 13558 | fi |
| 13559 | ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice" |
| 13560 | if test "x$ac_cv_func_splice" = xyes |
| 13561 | then : |
| 13562 | printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h |
| 13563 | |
| 13564 | fi |
| 13565 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" |
| 13566 | if test "x$ac_cv_func_strftime" = xyes |
| 13567 | then : |
| 13568 | printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h |
| 13569 | |
| 13570 | fi |
| 13571 | ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" |
| 13572 | if test "x$ac_cv_func_strlcpy" = xyes |
| 13573 | then : |
| 13574 | printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h |
| 13575 | |
| 13576 | fi |
| 13577 | ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" |
| 13578 | if test "x$ac_cv_func_strsignal" = xyes |
| 13579 | then : |
| 13580 | printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h |
| 13581 | |
| 13582 | fi |
| 13583 | ac_fn_c_check_func "$LINENO" "symlinkat" "ac_cv_func_symlinkat" |
| 13584 | if test "x$ac_cv_func_symlinkat" = xyes |
| 13585 | then : |
| 13586 | printf "%s\n" "#define HAVE_SYMLINKAT 1" >>confdefs.h |
| 13587 | |
| 13588 | fi |
| 13589 | ac_fn_c_check_func "$LINENO" "sync" "ac_cv_func_sync" |
| 13590 | if test "x$ac_cv_func_sync" = xyes |
| 13591 | then : |
| 13592 | printf "%s\n" "#define HAVE_SYNC 1" >>confdefs.h |
| 13593 | |
| 13594 | fi |
| 13595 | ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" |
| 13596 | if test "x$ac_cv_func_sysconf" = xyes |
| 13597 | then : |
| 13598 | printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h |
| 13599 | |
| 13600 | fi |
| 13601 | ac_fn_c_check_func "$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp" |
| 13602 | if test "x$ac_cv_func_tcgetpgrp" = xyes |
| 13603 | then : |
| 13604 | printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h |
| 13605 | |
| 13606 | fi |
| 13607 | ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp" |
| 13608 | if test "x$ac_cv_func_tcsetpgrp" = xyes |
| 13609 | then : |
| 13610 | printf "%s\n" "#define HAVE_TCSETPGRP 1" >>confdefs.h |
| 13611 | |
| 13612 | fi |
| 13613 | ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam" |
| 13614 | if test "x$ac_cv_func_tempnam" = xyes |
| 13615 | then : |
| 13616 | printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h |
| 13617 | |
| 13618 | fi |
| 13619 | ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" |
| 13620 | if test "x$ac_cv_func_timegm" = xyes |
| 13621 | then : |
| 13622 | printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h |
| 13623 | |
| 13624 | fi |
| 13625 | ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times" |
| 13626 | if test "x$ac_cv_func_times" = xyes |
| 13627 | then : |
| 13628 | printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h |
| 13629 | |
| 13630 | fi |
| 13631 | ac_fn_c_check_func "$LINENO" "tmpfile" "ac_cv_func_tmpfile" |
| 13632 | if test "x$ac_cv_func_tmpfile" = xyes |
| 13633 | then : |
| 13634 | printf "%s\n" "#define HAVE_TMPFILE 1" >>confdefs.h |
| 13635 | |
| 13636 | fi |
| 13637 | ac_fn_c_check_func "$LINENO" "tmpnam" "ac_cv_func_tmpnam" |
| 13638 | if test "x$ac_cv_func_tmpnam" = xyes |
| 13639 | then : |
| 13640 | printf "%s\n" "#define HAVE_TMPNAM 1" >>confdefs.h |
| 13641 | |
| 13642 | fi |
| 13643 | ac_fn_c_check_func "$LINENO" "tmpnam_r" "ac_cv_func_tmpnam_r" |
| 13644 | if test "x$ac_cv_func_tmpnam_r" = xyes |
| 13645 | then : |
| 13646 | printf "%s\n" "#define HAVE_TMPNAM_R 1" >>confdefs.h |
| 13647 | |
| 13648 | fi |
| 13649 | ac_fn_c_check_func "$LINENO" "truncate" "ac_cv_func_truncate" |
| 13650 | if test "x$ac_cv_func_truncate" = xyes |
| 13651 | then : |
| 13652 | printf "%s\n" "#define HAVE_TRUNCATE 1" >>confdefs.h |
| 13653 | |
| 13654 | fi |
| 13655 | ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" |
| 13656 | if test "x$ac_cv_func_uname" = xyes |
| 13657 | then : |
| 13658 | printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h |
| 13659 | |
| 13660 | fi |
| 13661 | ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat" |
| 13662 | if test "x$ac_cv_func_unlinkat" = xyes |
| 13663 | then : |
| 13664 | printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h |
| 13665 | |
| 13666 | fi |
| 13667 | ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat" |
| 13668 | if test "x$ac_cv_func_utimensat" = xyes |
| 13669 | then : |
| 13670 | printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h |
| 13671 | |
| 13672 | fi |
| 13673 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" |
| 13674 | if test "x$ac_cv_func_utimes" = xyes |
| 13675 | then : |
| 13676 | printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h |
| 13677 | |
| 13678 | fi |
| 13679 | ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork" |
| 13680 | if test "x$ac_cv_func_vfork" = xyes |
| 13681 | then : |
| 13682 | printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h |
| 13683 | |
| 13684 | fi |
| 13685 | ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid" |
| 13686 | if test "x$ac_cv_func_waitid" = xyes |
| 13687 | then : |
| 13688 | printf "%s\n" "#define HAVE_WAITID 1" >>confdefs.h |
| 13689 | |
| 13690 | fi |
| 13691 | ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" |
| 13692 | if test "x$ac_cv_func_waitpid" = xyes |
| 13693 | then : |
| 13694 | printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h |
| 13695 | |
| 13696 | fi |
| 13697 | ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3" |
| 13698 | if test "x$ac_cv_func_wait3" = xyes |
| 13699 | then : |
| 13700 | printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h |
| 13701 | |
| 13702 | fi |
| 13703 | ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4" |
| 13704 | if test "x$ac_cv_func_wait4" = xyes |
| 13705 | then : |
| 13706 | printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h |
| 13707 | |
| 13708 | fi |
| 13709 | ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll" |
| 13710 | if test "x$ac_cv_func_wcscoll" = xyes |
| 13711 | then : |
| 13712 | printf "%s\n" "#define HAVE_WCSCOLL 1" >>confdefs.h |
| 13713 | |
| 13714 | fi |
| 13715 | ac_fn_c_check_func "$LINENO" "wcsftime" "ac_cv_func_wcsftime" |
| 13716 | if test "x$ac_cv_func_wcsftime" = xyes |
| 13717 | then : |
| 13718 | printf "%s\n" "#define HAVE_WCSFTIME 1" >>confdefs.h |
| 13719 | |
| 13720 | fi |
| 13721 | ac_fn_c_check_func "$LINENO" "wcsxfrm" "ac_cv_func_wcsxfrm" |
| 13722 | if test "x$ac_cv_func_wcsxfrm" = xyes |
| 13723 | then : |
| 13724 | printf "%s\n" "#define HAVE_WCSXFRM 1" >>confdefs.h |
| 13725 | |
| 13726 | fi |
| 13727 | ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp" |
| 13728 | if test "x$ac_cv_func_wmemcmp" = xyes |
| 13729 | then : |
| 13730 | printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h |
| 13731 | |
| 13732 | fi |
| 13733 | ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" |
| 13734 | if test "x$ac_cv_func_writev" = xyes |
| 13735 | then : |
| 13736 | printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h |
| 13737 | |
| 13738 | fi |
| 13739 | ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty" |
| 13740 | if test "x$ac_cv_func__getpty" = xyes |
| 13741 | then : |
| 13742 | printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h |
| 13743 | |
| 13744 | fi |
| 13745 | ac_fn_c_check_func "$LINENO" "rtpSpawn" "ac_cv_func_rtpSpawn" |
| 13746 | if test "x$ac_cv_func_rtpSpawn" = xyes |
| 13747 | then : |
| 13748 | printf "%s\n" "#define HAVE_RTPSPAWN 1" >>confdefs.h |
| 13749 | |
| 13750 | fi |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13751 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13752 | |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 13753 | # Force lchmod off for Linux. Linux disallows changing the mode of symbolic |
| 13754 | # links. Some libc implementations have a stub lchmod implementation that always |
| 13755 | # returns an error. |
| 13756 | if test "$MACHDEP" != linux; then |
| 13757 | ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13758 | if test "x$ac_cv_func_lchmod" = xyes |
| 13759 | then : |
| 13760 | printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h |
| 13761 | |
| 13762 | fi |
| 13763 | |
| 13764 | fi |
| 13765 | |
| 13766 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| 13767 | printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| 13768 | if test ${ac_cv_c_undeclared_builtin_options+y} |
| 13769 | then : |
| 13770 | printf %s "(cached) " >&6 |
| 13771 | else $as_nop |
| 13772 | ac_save_CFLAGS=$CFLAGS |
| 13773 | ac_cv_c_undeclared_builtin_options='cannot detect' |
| 13774 | for ac_arg in '' -fno-builtin; do |
| 13775 | CFLAGS="$ac_save_CFLAGS $ac_arg" |
| 13776 | # This test program should *not* compile successfully. |
| 13777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13778 | /* end confdefs.h. */ |
| 13779 | |
| 13780 | int |
| 13781 | main (void) |
| 13782 | { |
| 13783 | (void) strchr; |
| 13784 | ; |
| 13785 | return 0; |
| 13786 | } |
Benjamin Peterson | ed709d5 | 2018-09-12 17:22:11 -0700 | [diff] [blame] | 13787 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13788 | if ac_fn_c_try_compile "$LINENO" |
| 13789 | then : |
| 13790 | |
| 13791 | else $as_nop |
| 13792 | # This test program should compile successfully. |
| 13793 | # No library function is consistently available on |
| 13794 | # freestanding implementations, so test against a dummy |
| 13795 | # declaration. Include always-available headers on the |
| 13796 | # off chance that they somehow elicit warnings. |
| 13797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13798 | /* end confdefs.h. */ |
| 13799 | #include <float.h> |
| 13800 | #include <limits.h> |
| 13801 | #include <stdarg.h> |
| 13802 | #include <stddef.h> |
| 13803 | extern void ac_decl (int, char *); |
| 13804 | |
| 13805 | int |
| 13806 | main (void) |
| 13807 | { |
| 13808 | (void) ac_decl (0, (char *) 0); |
| 13809 | (void) ac_decl; |
| 13810 | |
| 13811 | ; |
| 13812 | return 0; |
| 13813 | } |
| 13814 | _ACEOF |
| 13815 | if ac_fn_c_try_compile "$LINENO" |
| 13816 | then : |
| 13817 | if test x"$ac_arg" = x |
| 13818 | then : |
| 13819 | ac_cv_c_undeclared_builtin_options='none needed' |
| 13820 | else $as_nop |
| 13821 | ac_cv_c_undeclared_builtin_options=$ac_arg |
| 13822 | fi |
| 13823 | break |
| 13824 | fi |
| 13825 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13826 | fi |
| 13827 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13828 | done |
| 13829 | CFLAGS=$ac_save_CFLAGS |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 13830 | |
| 13831 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13832 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| 13833 | printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } |
| 13834 | case $ac_cv_c_undeclared_builtin_options in #( |
| 13835 | 'cannot detect') : |
| 13836 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13837 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13838 | as_fn_error $? "cannot make $CC report undeclared builtins |
| 13839 | See \`config.log' for more details" "$LINENO" 5; } ;; #( |
| 13840 | 'none needed') : |
| 13841 | ac_c_undeclared_builtin_options='' ;; #( |
| 13842 | *) : |
| 13843 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| 13844 | esac |
Benjamin Peterson | 40caa05 | 2018-09-12 15:52:40 -0700 | [diff] [blame] | 13845 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13846 | 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] | 13847 | #include <dirent.h> |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13848 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 13849 | if test "x$ac_cv_have_decl_dirfd" = xyes |
| 13850 | then : |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 13851 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13852 | printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 13853 | |
| 13854 | fi |
| 13855 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13856 | # For some functions, having a definition is not sufficient, since |
| 13857 | # we want to take their address. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13858 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
| 13859 | printf %s "checking for chroot... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13861 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13862 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13863 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13864 | main (void) |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13865 | { |
| 13866 | void *x=chroot |
| 13867 | ; |
| 13868 | return 0; |
| 13869 | } |
| 13870 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13871 | if ac_fn_c_try_compile "$LINENO" |
| 13872 | then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13873 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13874 | printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13875 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13876 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13877 | printf "%s\n" "yes" >&6; } |
| 13878 | else $as_nop |
| 13879 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13880 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13881 | |
| 13882 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13883 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13884 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
| 13885 | printf %s "checking for link... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13887 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13888 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13889 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13890 | main (void) |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13891 | { |
| 13892 | void *x=link |
| 13893 | ; |
| 13894 | return 0; |
| 13895 | } |
| 13896 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13897 | if ac_fn_c_try_compile "$LINENO" |
| 13898 | then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13899 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13900 | printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13901 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13902 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13903 | printf "%s\n" "yes" >&6; } |
| 13904 | else $as_nop |
| 13905 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13906 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13907 | |
| 13908 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13909 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13910 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
| 13911 | printf %s "checking for symlink... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13913 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13914 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13915 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13916 | main (void) |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13917 | { |
| 13918 | void *x=symlink |
| 13919 | ; |
| 13920 | return 0; |
| 13921 | } |
| 13922 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13923 | if ac_fn_c_try_compile "$LINENO" |
| 13924 | then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13925 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13926 | printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13927 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13929 | printf "%s\n" "yes" >&6; } |
| 13930 | else $as_nop |
| 13931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13932 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13933 | |
| 13934 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13935 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
| 13937 | printf %s "checking for fchdir... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13939 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13940 | #include <unistd.h> |
| 13941 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13942 | main (void) |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13943 | { |
| 13944 | void *x=fchdir |
| 13945 | ; |
| 13946 | return 0; |
| 13947 | } |
| 13948 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13949 | if ac_fn_c_try_compile "$LINENO" |
| 13950 | then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13951 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13952 | printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13953 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13954 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13955 | printf "%s\n" "yes" >&6; } |
| 13956 | else $as_nop |
| 13957 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13958 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13959 | |
| 13960 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13961 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
| 13963 | printf %s "checking for fsync... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13965 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13966 | #include <unistd.h> |
| 13967 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13968 | main (void) |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13969 | { |
| 13970 | void *x=fsync |
| 13971 | ; |
| 13972 | return 0; |
| 13973 | } |
| 13974 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13975 | if ac_fn_c_try_compile "$LINENO" |
| 13976 | then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13977 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13978 | printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13979 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13981 | printf "%s\n" "yes" >&6; } |
| 13982 | else $as_nop |
| 13983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13984 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13985 | |
| 13986 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13987 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
| 13989 | printf %s "checking for fdatasync... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13991 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13992 | #include <unistd.h> |
| 13993 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 13994 | main (void) |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13995 | { |
| 13996 | void *x=fdatasync |
| 13997 | ; |
| 13998 | return 0; |
| 13999 | } |
| 14000 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14001 | if ac_fn_c_try_compile "$LINENO" |
| 14002 | then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14003 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14004 | printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14005 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14007 | printf "%s\n" "yes" >&6; } |
| 14008 | else $as_nop |
| 14009 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14010 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14011 | |
| 14012 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14013 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
| 14015 | printf %s "checking for epoll... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14017 | /* end confdefs.h. */ |
| 14018 | #include <sys/epoll.h> |
| 14019 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14020 | main (void) |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14021 | { |
| 14022 | void *x=epoll_create |
| 14023 | ; |
| 14024 | return 0; |
| 14025 | } |
| 14026 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14027 | if ac_fn_c_try_compile "$LINENO" |
| 14028 | then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14029 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14030 | printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14031 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14032 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14033 | printf "%s\n" "yes" >&6; } |
| 14034 | else $as_nop |
| 14035 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14036 | printf "%s\n" "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14037 | |
| 14038 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14039 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14040 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 |
| 14041 | printf %s "checking for epoll_create1... " >&6; } |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 14042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14043 | /* end confdefs.h. */ |
| 14044 | #include <sys/epoll.h> |
| 14045 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14046 | main (void) |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 14047 | { |
| 14048 | void *x=epoll_create1 |
| 14049 | ; |
| 14050 | return 0; |
| 14051 | } |
| 14052 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14053 | if ac_fn_c_try_compile "$LINENO" |
| 14054 | then : |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 14055 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14056 | printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 14057 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14059 | printf "%s\n" "yes" >&6; } |
| 14060 | else $as_nop |
| 14061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14062 | printf "%s\n" "no" >&6; } |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 14063 | |
| 14064 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14065 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14066 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
| 14067 | printf %s "checking for kqueue... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14069 | /* end confdefs.h. */ |
| 14070 | |
| 14071 | #include <sys/types.h> |
| 14072 | #include <sys/event.h> |
| 14073 | |
| 14074 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14075 | main (void) |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14076 | { |
| 14077 | int x=kqueue() |
| 14078 | ; |
| 14079 | return 0; |
| 14080 | } |
| 14081 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14082 | if ac_fn_c_try_compile "$LINENO" |
| 14083 | then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14084 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14085 | printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14086 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14087 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14088 | printf "%s\n" "yes" >&6; } |
| 14089 | else $as_nop |
| 14090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14091 | printf "%s\n" "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 14092 | |
| 14093 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14094 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14095 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 |
| 14096 | printf %s "checking for prlimit... " >&6; } |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 14097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14098 | /* end confdefs.h. */ |
| 14099 | |
| 14100 | #include <sys/time.h> |
| 14101 | #include <sys/resource.h> |
| 14102 | |
| 14103 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14104 | main (void) |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 14105 | { |
| 14106 | void *x=prlimit |
| 14107 | ; |
| 14108 | return 0; |
| 14109 | } |
| 14110 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14111 | if ac_fn_c_try_compile "$LINENO" |
| 14112 | then : |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 14113 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14114 | printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 14115 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14116 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14117 | printf "%s\n" "yes" >&6; } |
| 14118 | else $as_nop |
| 14119 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14120 | printf "%s\n" "no" >&6; } |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 14121 | |
| 14122 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14123 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14124 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5 |
| 14125 | printf %s "checking for _dyld_shared_cache_contains_path... " >&6; } |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 14126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14127 | /* end confdefs.h. */ |
| 14128 | #include <mach-o/dyld.h> |
| 14129 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14130 | main (void) |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 14131 | { |
| 14132 | void *x=_dyld_shared_cache_contains_path |
| 14133 | ; |
| 14134 | return 0; |
| 14135 | } |
| 14136 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14137 | if ac_fn_c_try_compile "$LINENO" |
| 14138 | then : |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 14139 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14140 | 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] | 14141 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14142 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14143 | printf "%s\n" "yes" >&6; } |
| 14144 | else $as_nop |
| 14145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14146 | printf "%s\n" "no" >&6; } |
Ronald Oussoren | 4176193 | 2020-11-08 10:05:27 +0100 | [diff] [blame] | 14147 | |
| 14148 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14149 | 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] | 14150 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 |
| 14152 | printf %s "checking for memfd_create... " >&6; } |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 14153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14154 | /* end confdefs.h. */ |
| 14155 | |
| 14156 | #ifdef HAVE_SYS_MMAN_H |
| 14157 | #include <sys/mman.h> |
| 14158 | #endif |
| 14159 | #ifdef HAVE_SYS_MEMFD_H |
| 14160 | #include <sys/memfd.h> |
| 14161 | #endif |
| 14162 | |
| 14163 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14164 | main (void) |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 14165 | { |
| 14166 | void *x=memfd_create |
| 14167 | ; |
| 14168 | return 0; |
| 14169 | } |
| 14170 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14171 | if ac_fn_c_try_compile "$LINENO" |
| 14172 | then : |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 14173 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14174 | printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 14175 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14176 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14177 | printf "%s\n" "yes" >&6; } |
| 14178 | else $as_nop |
| 14179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14180 | printf "%s\n" "no" >&6; } |
Zackery Spytz | 43fdbd2 | 2019-05-29 13:57:07 -0600 | [diff] [blame] | 14181 | |
| 14182 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14183 | 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] | 14184 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
| 14186 | printf %s "checking for eventfd... " >&6; } |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 14187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14188 | /* end confdefs.h. */ |
| 14189 | |
| 14190 | #ifdef HAVE_SYS_EVENTFD_H |
| 14191 | #include <sys/eventfd.h> |
| 14192 | #endif |
| 14193 | |
| 14194 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14195 | main (void) |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 14196 | { |
| 14197 | int x = eventfd(0, EFD_CLOEXEC) |
| 14198 | ; |
| 14199 | return 0; |
| 14200 | } |
| 14201 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14202 | if ac_fn_c_try_compile "$LINENO" |
| 14203 | then : |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 14204 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14205 | printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 14206 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14208 | printf "%s\n" "yes" >&6; } |
| 14209 | else $as_nop |
| 14210 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14211 | printf "%s\n" "no" >&6; } |
Christian Heimes | cd9fed6 | 2020-11-13 19:48:52 +0100 | [diff] [blame] | 14212 | |
| 14213 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14214 | 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] | 14215 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14216 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 14217 | # functions ctermid_r, setgroups in the library, but no prototype |
| 14218 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 14219 | # address to avoid compiler warnings and potential miscompilations |
| 14220 | # because of the missing prototypes. |
| 14221 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14222 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
| 14223 | printf %s "checking for ctermid_r... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14225 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14226 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14227 | #include <stdio.h> |
| 14228 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14229 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14230 | main (void) |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14231 | { |
| 14232 | void* p = ctermid_r |
| 14233 | ; |
| 14234 | return 0; |
| 14235 | } |
| 14236 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14237 | if ac_fn_c_try_compile "$LINENO" |
| 14238 | then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14239 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14240 | printf "%s\n" "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14241 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14242 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14243 | printf "%s\n" "yes" >&6; } |
| 14244 | else $as_nop |
| 14245 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14246 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14247 | |
| 14248 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14249 | 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] | 14250 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
| 14252 | printf %s "checking for flock declaration... " >&6; } |
| 14253 | if test ${ac_cv_flock_decl+y} |
| 14254 | then : |
| 14255 | printf %s "(cached) " >&6 |
| 14256 | else $as_nop |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14258 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14259 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14260 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14261 | main (void) |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14262 | { |
| 14263 | void* p = flock |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14264 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14265 | ; |
| 14266 | return 0; |
| 14267 | } |
| 14268 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14269 | if ac_fn_c_try_compile "$LINENO" |
| 14270 | then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14271 | ac_cv_flock_decl=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14272 | else $as_nop |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14273 | ac_cv_flock_decl=no |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14274 | |
| 14275 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14276 | 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] | 14277 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14278 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 |
| 14280 | printf "%s\n" "$ac_cv_flock_decl" >&6; } |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14281 | if test "x${ac_cv_flock_decl}" = xyes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14282 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14283 | for ac_func in flock |
| 14284 | do : |
| 14285 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14286 | if test "x$ac_cv_func_flock" = xyes |
| 14287 | then : |
| 14288 | printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14289 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14290 | else $as_nop |
| 14291 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 |
| 14292 | printf %s "checking for flock in -lbsd... " >&6; } |
| 14293 | if test ${ac_cv_lib_bsd_flock+y} |
| 14294 | then : |
| 14295 | printf %s "(cached) " >&6 |
| 14296 | else $as_nop |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14297 | ac_check_lib_save_LIBS=$LIBS |
| 14298 | LIBS="-lbsd $LIBS" |
| 14299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14300 | /* end confdefs.h. */ |
| 14301 | |
| 14302 | /* Override any GCC internal prototype to avoid an error. |
| 14303 | Use char because int might match the return type of a GCC |
| 14304 | builtin and then its argument prototype would still apply. */ |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14305 | char flock (); |
| 14306 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14307 | main (void) |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14308 | { |
| 14309 | return flock (); |
| 14310 | ; |
| 14311 | return 0; |
| 14312 | } |
| 14313 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14314 | if ac_fn_c_try_link "$LINENO" |
| 14315 | then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14316 | ac_cv_lib_bsd_flock=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14317 | else $as_nop |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14318 | ac_cv_lib_bsd_flock=no |
| 14319 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14320 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14321 | conftest$ac_exeext conftest.$ac_ext |
| 14322 | LIBS=$ac_check_lib_save_LIBS |
| 14323 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14324 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 |
| 14325 | printf "%s\n" "$ac_cv_lib_bsd_flock" >&6; } |
| 14326 | if test "x$ac_cv_lib_bsd_flock" = xyes |
| 14327 | then : |
| 14328 | printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14329 | |
| 14330 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14331 | printf "%s\n" "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14332 | |
| 14333 | |
| 14334 | fi |
| 14335 | |
| 14336 | |
| 14337 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14338 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 14339 | done |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 14340 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14341 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14342 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
| 14343 | printf %s "checking for getpagesize... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14345 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14346 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14347 | #include <unistd.h> |
| 14348 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14349 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14350 | main (void) |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14351 | { |
| 14352 | void* p = getpagesize |
| 14353 | ; |
| 14354 | return 0; |
| 14355 | } |
| 14356 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14357 | if ac_fn_c_try_compile "$LINENO" |
| 14358 | then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14359 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14360 | printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14361 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14363 | printf "%s\n" "yes" >&6; } |
| 14364 | else $as_nop |
| 14365 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14366 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14367 | |
| 14368 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14369 | 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] | 14370 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
| 14372 | printf %s "checking for broken unsetenv... " >&6; } |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 14373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14374 | /* end confdefs.h. */ |
| 14375 | |
| 14376 | #include <stdlib.h> |
| 14377 | |
| 14378 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14379 | main (void) |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 14380 | { |
| 14381 | int res = unsetenv("DUMMY") |
| 14382 | ; |
| 14383 | return 0; |
| 14384 | } |
| 14385 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14386 | if ac_fn_c_try_compile "$LINENO" |
| 14387 | then : |
| 14388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14389 | printf "%s\n" "no" >&6; } |
| 14390 | else $as_nop |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 14391 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14392 | printf "%s\n" "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 14393 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14394 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14395 | printf "%s\n" "yes" >&6; } |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 14396 | |
| 14397 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14398 | 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] | 14399 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14400 | for ac_prog in true |
| 14401 | do |
| 14402 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14403 | set dummy $ac_prog; ac_word=$2 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14404 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14405 | printf %s "checking for $ac_word... " >&6; } |
| 14406 | if test ${ac_cv_prog_TRUE+y} |
| 14407 | then : |
| 14408 | printf %s "(cached) " >&6 |
| 14409 | else $as_nop |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14410 | if test -n "$TRUE"; then |
| 14411 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 14412 | else |
| 14413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14414 | for as_dir in $PATH |
| 14415 | do |
| 14416 | IFS=$as_save_IFS |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14417 | case $as_dir in #((( |
| 14418 | '') as_dir=./ ;; |
| 14419 | */) ;; |
| 14420 | *) as_dir=$as_dir/ ;; |
| 14421 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14422 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14423 | 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] | 14424 | ac_cv_prog_TRUE="$ac_prog" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14425 | 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] | 14426 | break 2 |
| 14427 | fi |
| 14428 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14429 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14430 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14431 | |
| 14432 | fi |
| 14433 | fi |
| 14434 | TRUE=$ac_cv_prog_TRUE |
| 14435 | if test -n "$TRUE"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14436 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
| 14437 | printf "%s\n" "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14438 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14439 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14440 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14441 | fi |
| 14442 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14443 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14444 | test -n "$TRUE" && break |
| 14445 | done |
| 14446 | test -n "$TRUE" || TRUE="/bin/true" |
| 14447 | |
| 14448 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14449 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
| 14450 | printf %s "checking for inet_aton in -lc... " >&6; } |
| 14451 | if test ${ac_cv_lib_c_inet_aton+y} |
| 14452 | then : |
| 14453 | printf %s "(cached) " >&6 |
| 14454 | else $as_nop |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14455 | ac_check_lib_save_LIBS=$LIBS |
| 14456 | LIBS="-lc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14458 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14459 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14460 | /* Override any GCC internal prototype to avoid an error. |
| 14461 | Use char because int might match the return type of a GCC |
| 14462 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14463 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14464 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14465 | main (void) |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14466 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14467 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14468 | ; |
| 14469 | return 0; |
| 14470 | } |
| 14471 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14472 | if ac_fn_c_try_link "$LINENO" |
| 14473 | then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14474 | ac_cv_lib_c_inet_aton=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14475 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14476 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14477 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14478 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14479 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14480 | LIBS=$ac_check_lib_save_LIBS |
| 14481 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14482 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
| 14483 | printf "%s\n" "$ac_cv_lib_c_inet_aton" >&6; } |
| 14484 | if test "x$ac_cv_lib_c_inet_aton" = xyes |
| 14485 | then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14486 | $ac_cv_prog_TRUE |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14487 | else $as_nop |
| 14488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
| 14489 | printf %s "checking for inet_aton in -lresolv... " >&6; } |
| 14490 | if test ${ac_cv_lib_resolv_inet_aton+y} |
| 14491 | then : |
| 14492 | printf %s "(cached) " >&6 |
| 14493 | else $as_nop |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14494 | ac_check_lib_save_LIBS=$LIBS |
| 14495 | LIBS="-lresolv $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14497 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14498 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14499 | /* Override any GCC internal prototype to avoid an error. |
| 14500 | Use char because int might match the return type of a GCC |
| 14501 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14502 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14503 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14504 | main (void) |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14505 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14506 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14507 | ; |
| 14508 | return 0; |
| 14509 | } |
| 14510 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14511 | if ac_fn_c_try_link "$LINENO" |
| 14512 | then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14513 | ac_cv_lib_resolv_inet_aton=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14514 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14515 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14516 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14517 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14518 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14519 | LIBS=$ac_check_lib_save_LIBS |
| 14520 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14521 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 14522 | printf "%s\n" "$ac_cv_lib_resolv_inet_aton" >&6; } |
| 14523 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes |
| 14524 | then : |
| 14525 | printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14526 | |
| 14527 | LIBS="-lresolv $LIBS" |
| 14528 | |
| 14529 | fi |
| 14530 | |
| 14531 | |
| 14532 | fi |
| 14533 | |
| 14534 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14535 | # On Tru64, chflags seems to be present, but calling it will |
| 14536 | # exit Python |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14537 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
| 14538 | printf %s "checking for chflags... " >&6; } |
| 14539 | if test ${ac_cv_have_chflags+y} |
| 14540 | then : |
| 14541 | printf %s "(cached) " >&6 |
| 14542 | else $as_nop |
| 14543 | if test "$cross_compiling" = yes |
| 14544 | then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14545 | ac_cv_have_chflags=cross |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14546 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14548 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 14549 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14550 | #include <sys/stat.h> |
| 14551 | #include <unistd.h> |
| 14552 | int main(int argc, char*argv[]) |
| 14553 | { |
| 14554 | if(chflags(argv[0], 0) != 0) |
| 14555 | return 1; |
| 14556 | return 0; |
| 14557 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 14558 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14559 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14560 | if ac_fn_c_try_run "$LINENO" |
| 14561 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14562 | ac_cv_have_chflags=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14563 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14564 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14565 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14566 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14567 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14568 | fi |
| 14569 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14570 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14571 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14572 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
| 14573 | printf "%s\n" "$ac_cv_have_chflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14574 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14575 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14576 | if test "x$ac_cv_func_chflags" = xyes |
| 14577 | then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14578 | ac_cv_have_chflags="yes" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14579 | else $as_nop |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14580 | ac_cv_have_chflags="no" |
| 14581 | fi |
| 14582 | |
| 14583 | fi |
| 14584 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14585 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14586 | printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14587 | |
| 14588 | fi |
| 14589 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
| 14591 | printf %s "checking for lchflags... " >&6; } |
| 14592 | if test ${ac_cv_have_lchflags+y} |
| 14593 | then : |
| 14594 | printf %s "(cached) " >&6 |
| 14595 | else $as_nop |
| 14596 | if test "$cross_compiling" = yes |
| 14597 | then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14598 | ac_cv_have_lchflags=cross |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14599 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14601 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 14602 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14603 | #include <sys/stat.h> |
| 14604 | #include <unistd.h> |
| 14605 | int main(int argc, char*argv[]) |
| 14606 | { |
| 14607 | if(lchflags(argv[0], 0) != 0) |
| 14608 | return 1; |
| 14609 | return 0; |
| 14610 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 14611 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14612 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14613 | if ac_fn_c_try_run "$LINENO" |
| 14614 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14615 | ac_cv_have_lchflags=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14616 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14617 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 14618 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14619 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14620 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14621 | fi |
| 14622 | |
| 14623 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14624 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14625 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
| 14626 | printf "%s\n" "$ac_cv_have_lchflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14627 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14628 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14629 | if test "x$ac_cv_func_lchflags" = xyes |
| 14630 | then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14631 | ac_cv_have_lchflags="yes" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14632 | else $as_nop |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 14633 | ac_cv_have_lchflags="no" |
| 14634 | fi |
| 14635 | |
| 14636 | fi |
| 14637 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14638 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14639 | printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14640 | |
| 14641 | fi |
| 14642 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14643 | case $ac_sys_system/$ac_sys_release in |
| 14644 | Darwin/*) |
| 14645 | _CUR_CFLAGS="${CFLAGS}" |
| 14646 | _CUR_LDFLAGS="${LDFLAGS}" |
| 14647 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 14648 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 14649 | ;; |
| 14650 | esac |
| 14651 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14652 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
| 14653 | printf %s "checking for inflateCopy in -lz... " >&6; } |
| 14654 | if test ${ac_cv_lib_z_inflateCopy+y} |
| 14655 | then : |
| 14656 | printf %s "(cached) " >&6 |
| 14657 | else $as_nop |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14658 | ac_check_lib_save_LIBS=$LIBS |
| 14659 | LIBS="-lz $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14661 | /* end confdefs.h. */ |
| 14662 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14663 | /* Override any GCC internal prototype to avoid an error. |
| 14664 | Use char because int might match the return type of a GCC |
| 14665 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14666 | char inflateCopy (); |
| 14667 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14668 | main (void) |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14669 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14670 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14671 | ; |
| 14672 | return 0; |
| 14673 | } |
| 14674 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14675 | if ac_fn_c_try_link "$LINENO" |
| 14676 | then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14677 | ac_cv_lib_z_inflateCopy=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14678 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14679 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14680 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14681 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14682 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14683 | LIBS=$ac_check_lib_save_LIBS |
| 14684 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 14686 | printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; } |
| 14687 | if test "x$ac_cv_lib_z_inflateCopy" = xyes |
| 14688 | then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14689 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14690 | printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14691 | |
| 14692 | fi |
| 14693 | |
| 14694 | |
| 14695 | case $ac_sys_system/$ac_sys_release in |
| 14696 | Darwin/*) |
| 14697 | CFLAGS="${_CUR_CFLAGS}" |
| 14698 | LDFLAGS="${_CUR_LDFLAGS}" |
| 14699 | ;; |
| 14700 | esac |
| 14701 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
| 14703 | printf %s "checking for hstrerror... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14705 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14706 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14707 | #include <netdb.h> |
| 14708 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14709 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14710 | main (void) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14711 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14712 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14713 | ; |
| 14714 | return 0; |
| 14715 | } |
| 14716 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14717 | if ac_fn_c_try_link "$LINENO" |
| 14718 | then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14719 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14720 | printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14721 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14722 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14723 | printf "%s\n" "yes" >&6; } |
| 14724 | else $as_nop |
| 14725 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14726 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14727 | |
| 14728 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14729 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14730 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14731 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14732 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
| 14733 | printf %s "checking for inet_aton... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14735 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14736 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14737 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14738 | #include <sys/socket.h> |
| 14739 | #include <netinet/in.h> |
| 14740 | #include <arpa/inet.h> |
| 14741 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14742 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14743 | main (void) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14744 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14745 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14746 | ; |
| 14747 | return 0; |
| 14748 | } |
| 14749 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14750 | if ac_fn_c_try_link "$LINENO" |
| 14751 | then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14752 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14753 | printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14754 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14755 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14756 | printf "%s\n" "yes" >&6; } |
| 14757 | else $as_nop |
| 14758 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14759 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14760 | |
| 14761 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14762 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14763 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14764 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
| 14766 | printf %s "checking for inet_pton... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14768 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14769 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14770 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14771 | #include <sys/socket.h> |
| 14772 | #include <netinet/in.h> |
| 14773 | #include <arpa/inet.h> |
| 14774 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14775 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14776 | main (void) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14777 | { |
| 14778 | void* p = inet_pton |
| 14779 | ; |
| 14780 | return 0; |
| 14781 | } |
| 14782 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14783 | if ac_fn_c_try_compile "$LINENO" |
| 14784 | then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14785 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14786 | printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14787 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14789 | printf "%s\n" "yes" >&6; } |
| 14790 | else $as_nop |
| 14791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14792 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14793 | |
| 14794 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14795 | 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] | 14796 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14797 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
| 14799 | printf %s "checking for setgroups... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14801 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14802 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14803 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14804 | #ifdef HAVE_GRP_H |
| 14805 | #include <grp.h> |
| 14806 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14807 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14808 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14809 | main (void) |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14810 | { |
| 14811 | void* p = setgroups |
| 14812 | ; |
| 14813 | return 0; |
| 14814 | } |
| 14815 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14816 | if ac_fn_c_try_compile "$LINENO" |
| 14817 | then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14818 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14819 | printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14820 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14822 | printf "%s\n" "yes" >&6; } |
| 14823 | else $as_nop |
| 14824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14825 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14826 | |
| 14827 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14828 | 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] | 14829 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14830 | # check for openpty and forkpty |
| 14831 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14832 | |
| 14833 | for ac_func in openpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14834 | do : |
| 14835 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14836 | if test "x$ac_cv_func_openpty" = xyes |
| 14837 | then : |
| 14838 | printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14839 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14840 | else $as_nop |
| 14841 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
| 14842 | printf %s "checking for openpty in -lutil... " >&6; } |
| 14843 | if test ${ac_cv_lib_util_openpty+y} |
| 14844 | then : |
| 14845 | printf %s "(cached) " >&6 |
| 14846 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14847 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14848 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14850 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14851 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14852 | /* Override any GCC internal prototype to avoid an error. |
| 14853 | Use char because int might match the return type of a GCC |
| 14854 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14855 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14856 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14857 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14858 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14859 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14860 | ; |
| 14861 | return 0; |
| 14862 | } |
| 14863 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14864 | if ac_fn_c_try_link "$LINENO" |
| 14865 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14866 | ac_cv_lib_util_openpty=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14867 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14868 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14869 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14870 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14871 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14872 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14873 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
| 14875 | printf "%s\n" "$ac_cv_lib_util_openpty" >&6; } |
| 14876 | if test "x$ac_cv_lib_util_openpty" = xyes |
| 14877 | then : |
| 14878 | printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14879 | LIBS="$LIBS -lutil" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14880 | else $as_nop |
| 14881 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
| 14882 | printf %s "checking for openpty in -lbsd... " >&6; } |
| 14883 | if test ${ac_cv_lib_bsd_openpty+y} |
| 14884 | then : |
| 14885 | printf %s "(cached) " >&6 |
| 14886 | else $as_nop |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14887 | ac_check_lib_save_LIBS=$LIBS |
| 14888 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14890 | /* end confdefs.h. */ |
| 14891 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14892 | /* Override any GCC internal prototype to avoid an error. |
| 14893 | Use char because int might match the return type of a GCC |
| 14894 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14895 | char openpty (); |
| 14896 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14897 | main (void) |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14898 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14899 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14900 | ; |
| 14901 | return 0; |
| 14902 | } |
| 14903 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14904 | if ac_fn_c_try_link "$LINENO" |
| 14905 | then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14906 | ac_cv_lib_bsd_openpty=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14907 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14908 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14909 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14910 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14911 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14912 | LIBS=$ac_check_lib_save_LIBS |
| 14913 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14914 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
| 14915 | printf "%s\n" "$ac_cv_lib_bsd_openpty" >&6; } |
| 14916 | if test "x$ac_cv_lib_bsd_openpty" = xyes |
| 14917 | then : |
| 14918 | printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14919 | LIBS="$LIBS -lbsd" |
| 14920 | fi |
| 14921 | |
| 14922 | |
| 14923 | fi |
| 14924 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14925 | |
| 14926 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14927 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14928 | done |
| 14929 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14930 | for ac_func in forkpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14931 | do : |
| 14932 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14933 | if test "x$ac_cv_func_forkpty" = xyes |
| 14934 | then : |
| 14935 | printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14936 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14937 | else $as_nop |
| 14938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
| 14939 | printf %s "checking for forkpty in -lutil... " >&6; } |
| 14940 | if test ${ac_cv_lib_util_forkpty+y} |
| 14941 | then : |
| 14942 | printf %s "(cached) " >&6 |
| 14943 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14944 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14945 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14947 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14948 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14949 | /* Override any GCC internal prototype to avoid an error. |
| 14950 | Use char because int might match the return type of a GCC |
| 14951 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14952 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14953 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14954 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14955 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14956 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14957 | ; |
| 14958 | return 0; |
| 14959 | } |
| 14960 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14961 | if ac_fn_c_try_link "$LINENO" |
| 14962 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14963 | ac_cv_lib_util_forkpty=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14964 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14965 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14966 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14967 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14968 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14969 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14970 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
| 14972 | printf "%s\n" "$ac_cv_lib_util_forkpty" >&6; } |
| 14973 | if test "x$ac_cv_lib_util_forkpty" = xyes |
| 14974 | then : |
| 14975 | printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14976 | LIBS="$LIBS -lutil" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14977 | else $as_nop |
| 14978 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
| 14979 | printf %s "checking for forkpty in -lbsd... " >&6; } |
| 14980 | if test ${ac_cv_lib_bsd_forkpty+y} |
| 14981 | then : |
| 14982 | printf %s "(cached) " >&6 |
| 14983 | else $as_nop |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14984 | ac_check_lib_save_LIBS=$LIBS |
| 14985 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14987 | /* end confdefs.h. */ |
| 14988 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14989 | /* Override any GCC internal prototype to avoid an error. |
| 14990 | Use char because int might match the return type of a GCC |
| 14991 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14992 | char forkpty (); |
| 14993 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 14994 | main (void) |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14995 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14996 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14997 | ; |
| 14998 | return 0; |
| 14999 | } |
| 15000 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15001 | if ac_fn_c_try_link "$LINENO" |
| 15002 | then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15003 | ac_cv_lib_bsd_forkpty=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15004 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15005 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15006 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15007 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15008 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15009 | LIBS=$ac_check_lib_save_LIBS |
| 15010 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 15012 | printf "%s\n" "$ac_cv_lib_bsd_forkpty" >&6; } |
| 15013 | if test "x$ac_cv_lib_bsd_forkpty" = xyes |
| 15014 | then : |
| 15015 | printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15016 | LIBS="$LIBS -lbsd" |
| 15017 | fi |
| 15018 | |
| 15019 | |
| 15020 | fi |
| 15021 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15022 | |
| 15023 | fi |
Christian Heimes | 39258d3 | 2021-04-17 11:36:35 +0200 | [diff] [blame] | 15024 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15025 | done |
Pablo Galindo Salgado | c2e0b13 | 2021-07-30 16:14:28 +0100 | [diff] [blame] | 15026 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15027 | # check for long file support functions |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15028 | ac_fn_c_check_func "$LINENO" "fseek64" "ac_cv_func_fseek64" |
| 15029 | if test "x$ac_cv_func_fseek64" = xyes |
| 15030 | then : |
| 15031 | printf "%s\n" "#define HAVE_FSEEK64 1" >>confdefs.h |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15032 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15033 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15034 | ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko" |
| 15035 | if test "x$ac_cv_func_fseeko" = xyes |
| 15036 | then : |
| 15037 | printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h |
| 15038 | |
| 15039 | fi |
| 15040 | ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs" |
| 15041 | if test "x$ac_cv_func_fstatvfs" = xyes |
| 15042 | then : |
| 15043 | printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h |
| 15044 | |
| 15045 | fi |
| 15046 | ac_fn_c_check_func "$LINENO" "ftell64" "ac_cv_func_ftell64" |
| 15047 | if test "x$ac_cv_func_ftell64" = xyes |
| 15048 | then : |
| 15049 | printf "%s\n" "#define HAVE_FTELL64 1" >>confdefs.h |
| 15050 | |
| 15051 | fi |
| 15052 | ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello" |
| 15053 | if test "x$ac_cv_func_ftello" = xyes |
| 15054 | then : |
| 15055 | printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h |
| 15056 | |
| 15057 | fi |
| 15058 | ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" |
| 15059 | if test "x$ac_cv_func_statvfs" = xyes |
| 15060 | then : |
| 15061 | printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h |
| 15062 | |
| 15063 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15064 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15065 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15066 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15067 | if test "x$ac_cv_func_dup2" = xyes |
| 15068 | then : |
| 15069 | printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15070 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15071 | else $as_nop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15072 | case " $LIBOBJS " in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15073 | *" dup2.$ac_objext "* ) ;; |
| 15074 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15075 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15076 | esac |
| 15077 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15078 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15079 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15080 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15081 | for ac_func in getpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15082 | do : |
| 15083 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15084 | if test "x$ac_cv_func_getpgrp" = xyes |
| 15085 | then : |
| 15086 | printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15088 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15089 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15090 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15091 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15092 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15093 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15094 | ; |
| 15095 | return 0; |
| 15096 | } |
| 15097 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15098 | if ac_fn_c_try_compile "$LINENO" |
| 15099 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15100 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15101 | printf "%s\n" "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15102 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15103 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15104 | 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] | 15105 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15106 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15107 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15108 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15109 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15110 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15111 | do : |
| 15112 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15113 | if test "x$ac_cv_func_setpgrp" = xyes |
| 15114 | then : |
| 15115 | printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15117 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15118 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15119 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15120 | main (void) |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15121 | { |
| 15122 | setpgrp(0,0); |
| 15123 | ; |
| 15124 | return 0; |
| 15125 | } |
| 15126 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15127 | if ac_fn_c_try_compile "$LINENO" |
| 15128 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15130 | printf "%s\n" "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15131 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15132 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15133 | 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] | 15134 | |
| 15135 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15136 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15137 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15138 | |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15139 | # We search for both crypt and crypt_r as one or the other may be defined |
| 15140 | # This gets us our -lcrypt in LIBS when required on the target platform. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
| 15142 | printf %s "checking for library containing crypt... " >&6; } |
| 15143 | if test ${ac_cv_search_crypt+y} |
| 15144 | then : |
| 15145 | printf %s "(cached) " >&6 |
| 15146 | else $as_nop |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15147 | ac_func_search_save_LIBS=$LIBS |
| 15148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15149 | /* end confdefs.h. */ |
| 15150 | |
| 15151 | /* Override any GCC internal prototype to avoid an error. |
| 15152 | Use char because int might match the return type of a GCC |
| 15153 | builtin and then its argument prototype would still apply. */ |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15154 | char crypt (); |
| 15155 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15156 | main (void) |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15157 | { |
| 15158 | return crypt (); |
| 15159 | ; |
| 15160 | return 0; |
| 15161 | } |
| 15162 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15163 | for ac_lib in '' crypt |
| 15164 | do |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15165 | if test -z "$ac_lib"; then |
| 15166 | ac_res="none required" |
| 15167 | else |
| 15168 | ac_res=-l$ac_lib |
| 15169 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 15170 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15171 | if ac_fn_c_try_link "$LINENO" |
| 15172 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15173 | ac_cv_search_crypt=$ac_res |
| 15174 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15175 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15176 | conftest$ac_exeext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15177 | if test ${ac_cv_search_crypt+y} |
| 15178 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15179 | break |
| 15180 | fi |
| 15181 | done |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15182 | if test ${ac_cv_search_crypt+y} |
| 15183 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15184 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15185 | else $as_nop |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15186 | ac_cv_search_crypt=no |
| 15187 | fi |
| 15188 | rm conftest.$ac_ext |
| 15189 | LIBS=$ac_func_search_save_LIBS |
| 15190 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15191 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 |
| 15192 | printf "%s\n" "$ac_cv_search_crypt" >&6; } |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15193 | ac_res=$ac_cv_search_crypt |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15194 | if test "$ac_res" != no |
| 15195 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15196 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 15197 | |
| 15198 | fi |
| 15199 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15200 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5 |
| 15201 | printf %s "checking for library containing crypt_r... " >&6; } |
| 15202 | if test ${ac_cv_search_crypt_r+y} |
| 15203 | then : |
| 15204 | printf %s "(cached) " >&6 |
| 15205 | else $as_nop |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15206 | ac_func_search_save_LIBS=$LIBS |
| 15207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15208 | /* end confdefs.h. */ |
| 15209 | |
| 15210 | /* Override any GCC internal prototype to avoid an error. |
| 15211 | Use char because int might match the return type of a GCC |
| 15212 | builtin and then its argument prototype would still apply. */ |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15213 | char crypt_r (); |
| 15214 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15215 | main (void) |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15216 | { |
| 15217 | return crypt_r (); |
| 15218 | ; |
| 15219 | return 0; |
| 15220 | } |
| 15221 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15222 | for ac_lib in '' crypt |
| 15223 | do |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15224 | if test -z "$ac_lib"; then |
| 15225 | ac_res="none required" |
| 15226 | else |
| 15227 | ac_res=-l$ac_lib |
| 15228 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 15229 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15230 | if ac_fn_c_try_link "$LINENO" |
| 15231 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15232 | ac_cv_search_crypt_r=$ac_res |
| 15233 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15234 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15235 | conftest$ac_exeext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15236 | if test ${ac_cv_search_crypt_r+y} |
| 15237 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15238 | break |
| 15239 | fi |
| 15240 | done |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15241 | if test ${ac_cv_search_crypt_r+y} |
| 15242 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15243 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15244 | else $as_nop |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15245 | ac_cv_search_crypt_r=no |
| 15246 | fi |
| 15247 | rm conftest.$ac_ext |
| 15248 | LIBS=$ac_func_search_save_LIBS |
| 15249 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5 |
| 15251 | printf "%s\n" "$ac_cv_search_crypt_r" >&6; } |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15252 | ac_res=$ac_cv_search_crypt_r |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15253 | if test "$ac_res" != no |
| 15254 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15255 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 15256 | |
| 15257 | fi |
| 15258 | |
| 15259 | |
| 15260 | ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15261 | if test "x$ac_cv_func_crypt_r" = xyes |
| 15262 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15264 | /* end confdefs.h. */ |
| 15265 | |
| 15266 | #define _GNU_SOURCE /* Required for crypt_r()'s prototype in glibc. */ |
| 15267 | #include <crypt.h> |
| 15268 | |
| 15269 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15270 | main (void) |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15271 | { |
| 15272 | |
| 15273 | struct crypt_data d; |
| 15274 | char *r = crypt_r("", "", &d); |
| 15275 | |
| 15276 | ; |
| 15277 | return 0; |
| 15278 | } |
| 15279 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15280 | if ac_fn_c_try_compile "$LINENO" |
| 15281 | then : |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15282 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15283 | printf "%s\n" "#define HAVE_CRYPT_R 1" >>confdefs.h |
Gregory P. Smith | 387512c | 2018-12-30 15:42:32 -0800 | [diff] [blame] | 15284 | |
| 15285 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15286 | 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] | 15287 | |
| 15288 | fi |
| 15289 | |
| 15290 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15291 | |
| 15292 | for ac_func in clock_gettime |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15293 | do : |
| 15294 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15295 | if test "x$ac_cv_func_clock_gettime" = xyes |
| 15296 | then : |
| 15297 | printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15298 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15299 | else $as_nop |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15300 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
| 15302 | printf %s "checking for clock_gettime in -lrt... " >&6; } |
| 15303 | if test ${ac_cv_lib_rt_clock_gettime+y} |
| 15304 | then : |
| 15305 | printf %s "(cached) " >&6 |
| 15306 | else $as_nop |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15307 | ac_check_lib_save_LIBS=$LIBS |
| 15308 | LIBS="-lrt $LIBS" |
| 15309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15310 | /* end confdefs.h. */ |
| 15311 | |
| 15312 | /* Override any GCC internal prototype to avoid an error. |
| 15313 | Use char because int might match the return type of a GCC |
| 15314 | builtin and then its argument prototype would still apply. */ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15315 | char clock_gettime (); |
| 15316 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15317 | main (void) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15318 | { |
| 15319 | return clock_gettime (); |
| 15320 | ; |
| 15321 | return 0; |
| 15322 | } |
| 15323 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15324 | if ac_fn_c_try_link "$LINENO" |
| 15325 | then : |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15326 | ac_cv_lib_rt_clock_gettime=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15327 | else $as_nop |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15328 | ac_cv_lib_rt_clock_gettime=no |
| 15329 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15330 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15331 | conftest$ac_exeext conftest.$ac_ext |
| 15332 | LIBS=$ac_check_lib_save_LIBS |
| 15333 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15334 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
| 15335 | printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } |
| 15336 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes |
| 15337 | then : |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15338 | |
Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 15339 | LIBS="$LIBS -lrt" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15340 | printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15341 | |
| 15342 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15343 | printf "%s\n" "#define TIMEMODULE_LIB rt" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15344 | |
| 15345 | |
| 15346 | fi |
| 15347 | |
| 15348 | |
| 15349 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15350 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15351 | done |
| 15352 | |
| 15353 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15354 | for ac_func in clock_getres |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15355 | do : |
| 15356 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15357 | if test "x$ac_cv_func_clock_getres" = xyes |
| 15358 | then : |
| 15359 | printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15360 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15361 | else $as_nop |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15362 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15363 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 |
| 15364 | printf %s "checking for clock_getres in -lrt... " >&6; } |
| 15365 | if test ${ac_cv_lib_rt_clock_getres+y} |
| 15366 | then : |
| 15367 | printf %s "(cached) " >&6 |
| 15368 | else $as_nop |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15369 | ac_check_lib_save_LIBS=$LIBS |
| 15370 | LIBS="-lrt $LIBS" |
| 15371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15372 | /* end confdefs.h. */ |
| 15373 | |
| 15374 | /* Override any GCC internal prototype to avoid an error. |
| 15375 | Use char because int might match the return type of a GCC |
| 15376 | builtin and then its argument prototype would still apply. */ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15377 | char clock_getres (); |
| 15378 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15379 | main (void) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15380 | { |
| 15381 | return clock_getres (); |
| 15382 | ; |
| 15383 | return 0; |
| 15384 | } |
| 15385 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15386 | if ac_fn_c_try_link "$LINENO" |
| 15387 | then : |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15388 | ac_cv_lib_rt_clock_getres=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15389 | else $as_nop |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15390 | ac_cv_lib_rt_clock_getres=no |
| 15391 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15392 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15393 | conftest$ac_exeext conftest.$ac_ext |
| 15394 | LIBS=$ac_check_lib_save_LIBS |
| 15395 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 |
| 15397 | printf "%s\n" "$ac_cv_lib_rt_clock_getres" >&6; } |
| 15398 | if test "x$ac_cv_lib_rt_clock_getres" = xyes |
| 15399 | then : |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15400 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15401 | printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15402 | |
| 15403 | |
| 15404 | fi |
| 15405 | |
| 15406 | |
| 15407 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15408 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15409 | done |
| 15410 | |
| 15411 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15412 | for ac_func in clock_settime |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15413 | do : |
| 15414 | ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15415 | if test "x$ac_cv_func_clock_settime" = xyes |
| 15416 | then : |
| 15417 | printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15418 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15419 | else $as_nop |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15420 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15421 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 |
| 15422 | printf %s "checking for clock_settime in -lrt... " >&6; } |
| 15423 | if test ${ac_cv_lib_rt_clock_settime+y} |
| 15424 | then : |
| 15425 | printf %s "(cached) " >&6 |
| 15426 | else $as_nop |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15427 | ac_check_lib_save_LIBS=$LIBS |
| 15428 | LIBS="-lrt $LIBS" |
| 15429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15430 | /* end confdefs.h. */ |
| 15431 | |
| 15432 | /* Override any GCC internal prototype to avoid an error. |
| 15433 | Use char because int might match the return type of a GCC |
| 15434 | builtin and then its argument prototype would still apply. */ |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15435 | char clock_settime (); |
| 15436 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15437 | main (void) |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15438 | { |
| 15439 | return clock_settime (); |
| 15440 | ; |
| 15441 | return 0; |
| 15442 | } |
| 15443 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15444 | if ac_fn_c_try_link "$LINENO" |
| 15445 | then : |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15446 | ac_cv_lib_rt_clock_settime=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15447 | else $as_nop |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15448 | ac_cv_lib_rt_clock_settime=no |
| 15449 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15450 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15451 | conftest$ac_exeext conftest.$ac_ext |
| 15452 | LIBS=$ac_check_lib_save_LIBS |
| 15453 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 |
| 15455 | printf "%s\n" "$ac_cv_lib_rt_clock_settime" >&6; } |
| 15456 | if test "x$ac_cv_lib_rt_clock_settime" = xyes |
| 15457 | then : |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15458 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15459 | printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15460 | |
| 15461 | |
| 15462 | fi |
| 15463 | |
| 15464 | |
| 15465 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15466 | |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 15467 | done |
| 15468 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15469 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
| 15470 | printf %s "checking for major... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15472 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15473 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15474 | #if defined(MAJOR_IN_MKDEV) |
| 15475 | #include <sys/mkdev.h> |
| 15476 | #elif defined(MAJOR_IN_SYSMACROS) |
| 15477 | #include <sys/sysmacros.h> |
| 15478 | #else |
| 15479 | #include <sys/types.h> |
| 15480 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15481 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15482 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15483 | main (void) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15484 | { |
| 15485 | |
| 15486 | makedev(major(0),minor(0)); |
| 15487 | |
| 15488 | ; |
| 15489 | return 0; |
| 15490 | } |
| 15491 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15492 | if ac_fn_c_try_link "$LINENO" |
| 15493 | then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15494 | |
| 15495 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15496 | printf "%s\n" "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15497 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15498 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15499 | printf "%s\n" "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15500 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15501 | else $as_nop |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15502 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15503 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15504 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15505 | |
| 15506 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15507 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15508 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15509 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15510 | # 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] | 15511 | # for [no]getaddrinfo in netdb.h. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15512 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
| 15513 | printf %s "checking for getaddrinfo... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15515 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15516 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15517 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15518 | #include <sys/socket.h> |
| 15519 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15520 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15521 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15522 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15523 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15524 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15525 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15526 | ; |
| 15527 | return 0; |
| 15528 | } |
| 15529 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15530 | if ac_fn_c_try_link "$LINENO" |
| 15531 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15532 | have_getaddrinfo=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15533 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15534 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15535 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15536 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15537 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15538 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 |
| 15539 | printf "%s\n" "$have_getaddrinfo" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15540 | if test $have_getaddrinfo = yes |
| 15541 | then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15542 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
| 15543 | printf %s "checking getaddrinfo bug... " >&6; } |
| 15544 | if test ${ac_cv_buggy_getaddrinfo+y} |
| 15545 | then : |
| 15546 | printf %s "(cached) " >&6 |
| 15547 | else $as_nop |
| 15548 | if test "$cross_compiling" = yes |
| 15549 | then : |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 15550 | |
| 15551 | if test "${enable_ipv6+set}" = set; then |
| 15552 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" |
| 15553 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15554 | ac_cv_buggy_getaddrinfo=yes |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 15555 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15556 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15558 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15559 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 15560 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15561 | #include <sys/types.h> |
| 15562 | #include <netdb.h> |
| 15563 | #include <string.h> |
| 15564 | #include <sys/socket.h> |
| 15565 | #include <netinet/in.h> |
| 15566 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15567 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15568 | { |
| 15569 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 15570 | struct addrinfo hints, *ai, *aitop; |
| 15571 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 15572 | |
| 15573 | for (passive = 0; passive <= 1; passive++) { |
| 15574 | memset(&hints, 0, sizeof(hints)); |
| 15575 | hints.ai_family = AF_UNSPEC; |
| 15576 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 15577 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 15578 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15579 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 15580 | (void)gai_strerror(gaierr); |
| 15581 | goto bad; |
| 15582 | } |
| 15583 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 15584 | if (ai->ai_addr == NULL || |
| 15585 | ai->ai_addrlen == 0 || |
| 15586 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 15587 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 15588 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 15589 | goto bad; |
| 15590 | } |
| 15591 | switch (ai->ai_family) { |
| 15592 | case AF_INET: |
| 15593 | if (strcmp(strport, "54321") != 0) { |
| 15594 | goto bad; |
| 15595 | } |
| 15596 | if (passive) { |
| 15597 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 15598 | goto bad; |
| 15599 | } |
| 15600 | } else { |
| 15601 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 15602 | goto bad; |
| 15603 | } |
| 15604 | } |
| 15605 | inet4++; |
| 15606 | break; |
| 15607 | case AF_INET6: |
| 15608 | if (strcmp(strport, "54321") != 0) { |
| 15609 | goto bad; |
| 15610 | } |
| 15611 | if (passive) { |
| 15612 | if (strcmp(straddr, "::") != 0) { |
| 15613 | goto bad; |
| 15614 | } |
| 15615 | } else { |
| 15616 | if (strcmp(straddr, "::1") != 0) { |
| 15617 | goto bad; |
| 15618 | } |
| 15619 | } |
| 15620 | inet6++; |
| 15621 | break; |
| 15622 | case AF_UNSPEC: |
| 15623 | goto bad; |
| 15624 | break; |
| 15625 | default: |
| 15626 | /* another family support? */ |
| 15627 | break; |
| 15628 | } |
| 15629 | } |
Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 15630 | freeaddrinfo(aitop); |
| 15631 | aitop = NULL; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15632 | } |
| 15633 | |
| 15634 | if (!(inet4 == 0 || inet4 == 2)) |
| 15635 | goto bad; |
| 15636 | if (!(inet6 == 0 || inet6 == 2)) |
| 15637 | goto bad; |
| 15638 | |
| 15639 | if (aitop) |
| 15640 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15641 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15642 | |
| 15643 | bad: |
| 15644 | if (aitop) |
| 15645 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15646 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15647 | } |
| 15648 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15649 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15650 | if ac_fn_c_try_run "$LINENO" |
| 15651 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15652 | ac_cv_buggy_getaddrinfo=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15653 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15654 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15655 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15656 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15657 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15658 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15659 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15660 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15661 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15662 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15663 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15664 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
| 15665 | printf "%s\n" "$ac_cv_buggy_getaddrinfo" >&6; } |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 15666 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 15667 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15668 | then |
| 15669 | if test $ipv6 = yes |
| 15670 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15671 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 15672 | echo ' or you can specify "--disable-ipv6"'. |
| 15673 | exit 1 |
| 15674 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15675 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15676 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15677 | printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15678 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15679 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 15680 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15681 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
| 15682 | if test "x$ac_cv_func_getnameinfo" = xyes |
| 15683 | then : |
| 15684 | printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15685 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15686 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15687 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15688 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15689 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15691 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15692 | # Obsolete code to be removed. |
| 15693 | if test $ac_cv_header_sys_time_h = yes; then |
| 15694 | |
| 15695 | printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15696 | |
| 15697 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15698 | # End of obsolete code. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15699 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 15701 | printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
| 15702 | if test ${ac_cv_struct_tm+y} |
| 15703 | then : |
| 15704 | printf %s "(cached) " >&6 |
| 15705 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15707 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15708 | #include <sys/types.h> |
| 15709 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15710 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15711 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15712 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15713 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15714 | struct tm tm; |
| 15715 | int *p = &tm.tm_sec; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15716 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15717 | ; |
| 15718 | return 0; |
| 15719 | } |
| 15720 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15721 | if ac_fn_c_try_compile "$LINENO" |
| 15722 | then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15723 | ac_cv_struct_tm=time.h |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15724 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15725 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15726 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15727 | 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] | 15728 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15729 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 15730 | printf "%s\n" "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15731 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15732 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15733 | printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15734 | |
| 15735 | fi |
| 15736 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15737 | 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] | 15738 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15739 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15740 | " |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15741 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes |
| 15742 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15743 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15744 | 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] | 15745 | |
| 15746 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15747 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15749 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 15750 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15751 | printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15752 | |
| 15753 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15754 | ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 15755 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 15756 | if test "x$ac_cv_have_decl_tzname" = xyes |
| 15757 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15758 | ac_have_decl=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15759 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15760 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15761 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15762 | printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15763 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 15765 | printf %s "checking for tzname... " >&6; } |
| 15766 | if test ${ac_cv_var_tzname+y} |
| 15767 | then : |
| 15768 | printf %s "(cached) " >&6 |
| 15769 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15771 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15772 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15773 | #if !HAVE_DECL_TZNAME |
| 15774 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15775 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15777 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15778 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15779 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15780 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15781 | ; |
| 15782 | return 0; |
| 15783 | } |
| 15784 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15785 | if ac_fn_c_try_link "$LINENO" |
| 15786 | then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15787 | ac_cv_var_tzname=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15788 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15789 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15790 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15791 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15792 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15793 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 15795 | printf "%s\n" "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15796 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15797 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15798 | printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15799 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15800 | fi |
| 15801 | fi |
| 15802 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15803 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15804 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes |
| 15805 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15806 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15807 | 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] | 15808 | |
| 15809 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15810 | fi |
| 15811 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15812 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15813 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes |
| 15814 | then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15815 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15816 | 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] | 15817 | |
| 15818 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15819 | fi |
| 15820 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15821 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15822 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes |
| 15823 | then : |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 15824 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15825 | 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] | 15826 | |
| 15827 | |
| 15828 | fi |
| 15829 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15830 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15831 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes |
| 15832 | then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15833 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15834 | 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] | 15835 | |
| 15836 | |
| 15837 | fi |
| 15838 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15839 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15840 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes |
| 15841 | then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15842 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15843 | 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] | 15844 | |
| 15845 | |
| 15846 | fi |
| 15847 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15848 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15849 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes |
| 15850 | then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15851 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15852 | 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] | 15853 | |
| 15854 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15855 | fi |
| 15856 | |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 15857 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " |
| 15858 | #include <sys/types.h> |
| 15859 | #include <pwd.h> |
| 15860 | |
| 15861 | " |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15862 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes |
| 15863 | then : |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 15864 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15865 | printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_GECOS 1" >>confdefs.h |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 15866 | |
| 15867 | |
| 15868 | fi |
| 15869 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " |
| 15870 | #include <sys/types.h> |
| 15871 | #include <pwd.h> |
| 15872 | |
| 15873 | " |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15874 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes |
| 15875 | then : |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 15876 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15877 | printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_PASSWD 1" >>confdefs.h |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 15878 | |
| 15879 | |
| 15880 | fi |
| 15881 | |
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 15882 | # Issue #21085: In Cygwin, siginfo_t does not have si_band field. |
| 15883 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> |
| 15884 | " |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15885 | if test "x$ac_cv_member_siginfo_t_si_band" = xyes |
| 15886 | then : |
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 15887 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15888 | printf "%s\n" "#define HAVE_SIGINFO_T_SI_BAND 1" >>confdefs.h |
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 15889 | |
| 15890 | |
| 15891 | fi |
| 15892 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15893 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15894 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
| 15895 | printf %s "checking for time.h that defines altzone... " >&6; } |
| 15896 | if test ${ac_cv_header_time_altzone+y} |
| 15897 | then : |
| 15898 | printf %s "(cached) " >&6 |
| 15899 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15900 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15902 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15903 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15904 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15905 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15906 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15907 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15908 | ; |
| 15909 | return 0; |
| 15910 | } |
| 15911 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15912 | if ac_fn_c_try_compile "$LINENO" |
| 15913 | then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15914 | ac_cv_header_time_altzone=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15915 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15916 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15917 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15918 | 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] | 15919 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15920 | fi |
| 15921 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
| 15923 | printf "%s\n" "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15924 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15925 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15926 | printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15927 | |
| 15928 | fi |
| 15929 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15930 | was_it_defined=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 15932 | 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] | 15933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15934 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15935 | |
| 15936 | #include <sys/types.h> |
| 15937 | #include <sys/select.h> |
| 15938 | #include <sys/time.h> |
| 15939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15940 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15941 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15942 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15943 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15944 | ; |
| 15945 | return 0; |
| 15946 | } |
| 15947 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15948 | if ac_fn_c_try_compile "$LINENO" |
| 15949 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15950 | |
| 15951 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15952 | 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] | 15953 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15954 | was_it_defined=yes |
| 15955 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15956 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15957 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15958 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 15959 | printf "%s\n" "$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15960 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15961 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
| 15962 | printf %s "checking for addrinfo... " >&6; } |
| 15963 | if test ${ac_cv_struct_addrinfo+y} |
| 15964 | then : |
| 15965 | printf %s "(cached) " >&6 |
| 15966 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15968 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15969 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15970 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15971 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15972 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15973 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15974 | ; |
| 15975 | return 0; |
| 15976 | } |
| 15977 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15978 | if ac_fn_c_try_compile "$LINENO" |
| 15979 | then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15980 | ac_cv_struct_addrinfo=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15981 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15982 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15983 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15984 | 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] | 15985 | fi |
| 15986 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
| 15988 | printf "%s\n" "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15989 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15990 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15991 | printf "%s\n" "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15992 | |
| 15993 | fi |
| 15994 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 15995 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
| 15996 | printf %s "checking for sockaddr_storage... " >&6; } |
| 15997 | if test ${ac_cv_struct_sockaddr_storage+y} |
| 15998 | then : |
| 15999 | printf %s "(cached) " >&6 |
| 16000 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16002 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16003 | |
| 16004 | # include <sys/types.h> |
| 16005 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16006 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16007 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16008 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16009 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16010 | ; |
| 16011 | return 0; |
| 16012 | } |
| 16013 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16014 | if ac_fn_c_try_compile "$LINENO" |
| 16015 | then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16016 | ac_cv_struct_sockaddr_storage=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16017 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16018 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16019 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16020 | 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] | 16021 | fi |
| 16022 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 16024 | printf "%s\n" "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16025 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16026 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16027 | printf "%s\n" "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16028 | |
| 16029 | fi |
| 16030 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16031 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 |
| 16032 | printf %s "checking for sockaddr_alg... " >&6; } |
| 16033 | if test ${ac_cv_struct_sockaddr_alg+y} |
| 16034 | then : |
| 16035 | printf %s "(cached) " >&6 |
| 16036 | else $as_nop |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 16037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16038 | /* end confdefs.h. */ |
| 16039 | |
| 16040 | # include <sys/types.h> |
| 16041 | # include <sys/socket.h> |
| 16042 | # include <linux/if_alg.h> |
| 16043 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16044 | main (void) |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 16045 | { |
| 16046 | struct sockaddr_alg s |
| 16047 | ; |
| 16048 | return 0; |
| 16049 | } |
| 16050 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16051 | if ac_fn_c_try_compile "$LINENO" |
| 16052 | then : |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 16053 | ac_cv_struct_sockaddr_alg=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16054 | else $as_nop |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 16055 | ac_cv_struct_sockaddr_alg=no |
| 16056 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16057 | 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] | 16058 | fi |
| 16059 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 |
| 16061 | printf "%s\n" "$ac_cv_struct_sockaddr_alg" >&6; } |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 16062 | if test $ac_cv_struct_sockaddr_alg = yes; then |
| 16063 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16064 | printf "%s\n" "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 16065 | |
| 16066 | fi |
| 16067 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16068 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16069 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16070 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 16071 | printf %s "checking whether char is unsigned... " >&6; } |
| 16072 | if test ${ac_cv_c_char_unsigned+y} |
| 16073 | then : |
| 16074 | printf %s "(cached) " >&6 |
| 16075 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16077 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16078 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16079 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16080 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16081 | { |
| 16082 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16083 | test_array [0] = 0; |
| 16084 | return test_array [0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16085 | |
| 16086 | ; |
| 16087 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16088 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16089 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16090 | if ac_fn_c_try_compile "$LINENO" |
| 16091 | then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16092 | ac_cv_c_char_unsigned=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16093 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16094 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16095 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16096 | 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] | 16097 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16098 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 16099 | printf "%s\n" "$ac_cv_c_char_unsigned" >&6; } |
| 16100 | if test $ac_cv_c_char_unsigned = yes; then |
| 16101 | printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16102 | |
| 16103 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16104 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16105 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 16106 | printf %s "checking for an ANSI C-conforming const... " >&6; } |
| 16107 | if test ${ac_cv_c_const+y} |
| 16108 | then : |
| 16109 | printf %s "(cached) " >&6 |
| 16110 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16112 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16115 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16116 | { |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16118 | #ifndef __cplusplus |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16119 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16120 | typedef int charset[2]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16121 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16122 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16123 | char const *const *pcpcc; |
| 16124 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16125 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16126 | struct point {int x, y;}; |
| 16127 | static struct point const zero = {0,0}; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16128 | /* IBM XL C 1.02.0.0 rejects this. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16129 | It does not let you subtract one const X* pointer from another in |
| 16130 | an arm of an if-expression whose if-part is not a constant |
| 16131 | expression */ |
| 16132 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16133 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16134 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16135 | ++pcpcc; |
| 16136 | ppc = (char**) pcpcc; |
| 16137 | pcpcc = (char const *const *) ppc; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16138 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 16139 | char tx; |
| 16140 | char *t = &tx; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16141 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16143 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16144 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16145 | } |
| 16146 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 16147 | int x[] = {25, 17}; |
| 16148 | const int *foo = &x[0]; |
| 16149 | ++foo; |
| 16150 | } |
| 16151 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 16152 | typedef const int *iptr; |
| 16153 | iptr p = 0; |
| 16154 | ++p; |
| 16155 | } |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16156 | { /* 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] | 16157 | "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] | 16158 | struct s { int j; const int *ap[3]; } bx; |
| 16159 | struct s *b = &bx; b->j = 5; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16160 | } |
| 16161 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 16162 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16163 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16164 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16165 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16166 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16167 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16168 | ; |
| 16169 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16170 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16171 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16172 | if ac_fn_c_try_compile "$LINENO" |
| 16173 | then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16174 | ac_cv_c_const=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16175 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16176 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16177 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16178 | 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] | 16179 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16180 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 16181 | printf "%s\n" "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16182 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16183 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16184 | printf "%s\n" "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16185 | |
| 16186 | fi |
| 16187 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16188 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16189 | works=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16190 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
| 16191 | printf %s "checking for working signed char... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16193 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 16194 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16195 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16196 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16197 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16198 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16199 | ; |
| 16200 | return 0; |
| 16201 | } |
| 16202 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16203 | if ac_fn_c_try_compile "$LINENO" |
| 16204 | then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16205 | works=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16206 | else $as_nop |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16207 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16208 | printf "%s\n" "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16209 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16210 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16211 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16212 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 16214 | printf "%s\n" "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16215 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16216 | have_prototypes=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
| 16218 | printf %s "checking for prototypes... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16220 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16221 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16222 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16223 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16224 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16225 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16226 | ; |
| 16227 | return 0; |
| 16228 | } |
| 16229 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16230 | if ac_fn_c_try_compile "$LINENO" |
| 16231 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16232 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16233 | printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16234 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16235 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16236 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16237 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
| 16239 | printf "%s\n" "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16240 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16241 | works=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16242 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
| 16243 | printf %s "checking for variable length prototypes and stdarg.h... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16245 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16246 | |
| 16247 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 16248 | int foo(int x, ...) { |
| 16249 | va_list va; |
| 16250 | va_start(va, x); |
| 16251 | va_arg(va, int); |
| 16252 | va_arg(va, char *); |
| 16253 | va_arg(va, double); |
| 16254 | return 0; |
| 16255 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16256 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16257 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16258 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16259 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 16260 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16261 | ; |
| 16262 | return 0; |
| 16263 | } |
| 16264 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16265 | if ac_fn_c_try_compile "$LINENO" |
| 16266 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16267 | |
| 16268 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16269 | printf "%s\n" "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16270 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16271 | works=yes |
| 16272 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16273 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16274 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 16276 | printf "%s\n" "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16277 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16278 | # check for socketpair |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
| 16280 | printf %s "checking for socketpair... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16282 | /* end confdefs.h. */ |
| 16283 | |
| 16284 | #include <sys/types.h> |
| 16285 | #include <sys/socket.h> |
| 16286 | |
| 16287 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16288 | main (void) |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16289 | { |
| 16290 | void *x=socketpair |
| 16291 | ; |
| 16292 | return 0; |
| 16293 | } |
| 16294 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16295 | if ac_fn_c_try_compile "$LINENO" |
| 16296 | then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16297 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16298 | printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16299 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16300 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16301 | printf "%s\n" "yes" >&6; } |
| 16302 | else $as_nop |
| 16303 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16304 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16305 | |
| 16306 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16307 | 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] | 16308 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16309 | # check if sockaddr has sa_len member |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16310 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
| 16311 | printf %s "checking if sockaddr has sa_len member... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16313 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16314 | #include <sys/types.h> |
| 16315 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16316 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16317 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16318 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16319 | struct sockaddr x; |
| 16320 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16321 | ; |
| 16322 | return 0; |
| 16323 | } |
| 16324 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16325 | if ac_fn_c_try_compile "$LINENO" |
| 16326 | then : |
| 16327 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16328 | printf "%s\n" "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16329 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16330 | 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] | 16331 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16332 | else $as_nop |
| 16333 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16334 | printf "%s\n" "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16335 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16336 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16337 | 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] | 16338 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16339 | # 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] | 16340 | |
| 16341 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16342 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16343 | if test "x$ac_cv_func_gethostbyname_r" = xyes |
| 16344 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16345 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16346 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16347 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16348 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
| 16349 | printf %s "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16350 | OLD_CFLAGS=$CFLAGS |
| 16351 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16353 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16354 | |
| 16355 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16357 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16358 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16359 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16360 | |
| 16361 | char *name; |
| 16362 | struct hostent *he, *res; |
| 16363 | char buffer[2048]; |
| 16364 | int buflen = 2048; |
| 16365 | int h_errnop; |
| 16366 | |
| 16367 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16368 | |
| 16369 | ; |
| 16370 | return 0; |
| 16371 | } |
| 16372 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16373 | if ac_fn_c_try_compile "$LINENO" |
| 16374 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16375 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16376 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16378 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16379 | 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] | 16380 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16381 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16382 | printf "%s\n" "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16383 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16384 | else $as_nop |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16385 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16387 | printf "%s\n" "no" >&6; } |
| 16388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 |
| 16389 | printf %s "checking gethostbyname_r with 5 args... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16391 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16392 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16393 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16394 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16395 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16396 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16397 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16398 | |
| 16399 | char *name; |
| 16400 | struct hostent *he; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16401 | char buffer[2048]; |
| 16402 | int buflen = 2048; |
| 16403 | int h_errnop; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16404 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16405 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16406 | |
| 16407 | ; |
| 16408 | return 0; |
| 16409 | } |
| 16410 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16411 | if ac_fn_c_try_compile "$LINENO" |
| 16412 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16413 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16414 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16416 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16417 | 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] | 16418 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16419 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16420 | printf "%s\n" "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16421 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16422 | else $as_nop |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16423 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16425 | printf "%s\n" "no" >&6; } |
| 16426 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
| 16427 | printf %s "checking gethostbyname_r with 3 args... " >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16429 | /* end confdefs.h. */ |
| 16430 | |
| 16431 | # include <netdb.h> |
| 16432 | |
| 16433 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16434 | main (void) |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16435 | { |
| 16436 | |
| 16437 | char *name; |
| 16438 | struct hostent *he; |
| 16439 | struct hostent_data data; |
| 16440 | |
| 16441 | (void) gethostbyname_r(name, he, &data); |
| 16442 | |
| 16443 | ; |
| 16444 | return 0; |
| 16445 | } |
| 16446 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16447 | if ac_fn_c_try_compile "$LINENO" |
| 16448 | then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16449 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16450 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16451 | |
| 16452 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16453 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16454 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16456 | printf "%s\n" "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16457 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16458 | else $as_nop |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16459 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16460 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16461 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16462 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16463 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16464 | 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] | 16465 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16466 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16467 | 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] | 16468 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16469 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16470 | 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] | 16471 | CFLAGS=$OLD_CFLAGS |
| 16472 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16473 | else $as_nop |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16474 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16475 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16476 | if test "x$ac_cv_func_gethostbyname" = xyes |
| 16477 | then : |
| 16478 | printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16479 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16480 | fi |
| 16481 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16482 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16483 | fi |
| 16484 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16485 | |
| 16486 | |
| 16487 | |
| 16488 | |
| 16489 | |
| 16490 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16491 | # checks for system services |
| 16492 | # (none yet) |
| 16493 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16494 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16495 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16496 | if test "x$ac_cv_func___fpu_control" = xyes |
| 16497 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16498 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16499 | else $as_nop |
| 16500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
| 16501 | printf %s "checking for __fpu_control in -lieee... " >&6; } |
| 16502 | if test ${ac_cv_lib_ieee___fpu_control+y} |
| 16503 | then : |
| 16504 | printf %s "(cached) " >&6 |
| 16505 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16506 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16507 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16509 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16510 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16511 | /* Override any GCC internal prototype to avoid an error. |
| 16512 | Use char because int might match the return type of a GCC |
| 16513 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16514 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16515 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16516 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16517 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16518 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16519 | ; |
| 16520 | return 0; |
| 16521 | } |
| 16522 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16523 | if ac_fn_c_try_link "$LINENO" |
| 16524 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16525 | ac_cv_lib_ieee___fpu_control=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16526 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16527 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16528 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16529 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16530 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16531 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16532 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16533 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 16534 | printf "%s\n" "$ac_cv_lib_ieee___fpu_control" >&6; } |
| 16535 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes |
| 16536 | then : |
| 16537 | printf "%s\n" "#define HAVE_LIBIEEE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16538 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16539 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16540 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16541 | fi |
| 16542 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16543 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16544 | fi |
| 16545 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16546 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16547 | # check for --with-libm=... |
| 16548 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 16549 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 16550 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 16551 | *) LIBM=-lm |
| 16552 | esac |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
| 16554 | printf %s "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16555 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16556 | # Check whether --with-libm was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16557 | if test ${with_libm+y} |
| 16558 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16559 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16560 | if test "$withval" = no |
| 16561 | then LIBM= |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
| 16563 | printf "%s\n" "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16564 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16565 | then LIBM=$withval |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16566 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
| 16567 | printf "%s\n" "set LIBM=\"$withval\"" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16568 | 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] | 16569 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16570 | else $as_nop |
| 16571 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
| 16572 | printf "%s\n" "default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16573 | fi |
| 16574 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16575 | |
| 16576 | # check for --with-libc=... |
| 16577 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
| 16579 | printf %s "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16580 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16581 | # Check whether --with-libc was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16582 | if test ${with_libc+y} |
| 16583 | then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16584 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16585 | if test "$withval" = no |
| 16586 | then LIBC= |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16587 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
| 16588 | printf "%s\n" "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16589 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16590 | then LIBC=$withval |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
| 16592 | printf "%s\n" "set LIBC=\"$withval\"" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16593 | 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] | 16594 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16595 | else $as_nop |
| 16596 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
| 16597 | printf "%s\n" "default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16598 | fi |
| 16599 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16600 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16601 | # ************************************** |
| 16602 | # * Check for gcc x64 inline assembler * |
| 16603 | # ************************************** |
| 16604 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 |
| 16606 | printf %s "checking for x64 gcc inline assembler... " >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16608 | /* end confdefs.h. */ |
| 16609 | |
| 16610 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16611 | main (void) |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16612 | { |
| 16613 | |
| 16614 | __asm__ __volatile__ ("movq %rcx, %rax"); |
| 16615 | |
| 16616 | ; |
| 16617 | return 0; |
| 16618 | } |
| 16619 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16620 | if ac_fn_c_try_link "$LINENO" |
| 16621 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16622 | have_gcc_asm_for_x64=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16623 | else $as_nop |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16624 | have_gcc_asm_for_x64=no |
| 16625 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16626 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 16627 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16628 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 |
| 16629 | printf "%s\n" "$have_gcc_asm_for_x64" >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16630 | if test "$have_gcc_asm_for_x64" = yes |
| 16631 | then |
| 16632 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16633 | printf "%s\n" "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16634 | |
| 16635 | fi |
| 16636 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16637 | # ************************************************** |
| 16638 | # * Check for various properties of floating point * |
| 16639 | # ************************************************** |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 16640 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16641 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5 |
| 16642 | printf %s "checking whether float word ordering is bigendian... " >&6; } |
| 16643 | if test ${ax_cv_c_float_words_bigendian+y} |
| 16644 | then : |
| 16645 | printf %s "(cached) " >&6 |
| 16646 | else $as_nop |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16647 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16648 | |
| 16649 | ax_cv_c_float_words_bigendian=unknown |
| 16650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16651 | /* end confdefs.h. */ |
| 16652 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16653 | |
| 16654 | double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0; |
| 16655 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16656 | |
| 16657 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16658 | if ac_fn_c_try_compile "$LINENO" |
| 16659 | then : |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16660 | |
| 16661 | |
Christian Heimes | 5d6e8c1 | 2021-03-27 14:44:04 +0100 | [diff] [blame] | 16662 | if grep noonsees conftest.$ac_objext >/dev/null ; then |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16663 | ax_cv_c_float_words_bigendian=yes |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16664 | fi |
Christian Heimes | 5d6e8c1 | 2021-03-27 14:44:04 +0100 | [diff] [blame] | 16665 | if grep seesnoon conftest.$ac_objext >/dev/null ; then |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16666 | if test "$ax_cv_c_float_words_bigendian" = unknown; then |
| 16667 | ax_cv_c_float_words_bigendian=no |
| 16668 | else |
| 16669 | ax_cv_c_float_words_bigendian=unknown |
| 16670 | fi |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16671 | fi |
| 16672 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16673 | |
| 16674 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16675 | 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] | 16676 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5 |
| 16678 | printf "%s\n" "$ax_cv_c_float_words_bigendian" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16679 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16680 | case $ax_cv_c_float_words_bigendian in |
| 16681 | yes) |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16682 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16683 | printf "%s\n" "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16684 | ;; |
| 16685 | no) |
| 16686 | ;; |
| 16687 | *) |
| 16688 | as_fn_error $? " |
| 16689 | |
| 16690 | Unknown float word ordering. You need to manually preset |
| 16691 | ax_cv_c_float_words_bigendian=no (or yes) according to your system. |
| 16692 | |
| 16693 | " "$LINENO" 5 ;; |
| 16694 | esac |
| 16695 | |
| 16696 | |
| 16697 | if test "$ax_cv_c_float_words_bigendian" = "yes" |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16698 | then |
| 16699 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16700 | printf "%s\n" "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16701 | |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16702 | elif test "$ax_cv_c_float_words_bigendian" = "no" |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16703 | then |
| 16704 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16705 | printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Benjamin Peterson | b3b8cb4 | 2018-09-18 23:49:05 -0700 | [diff] [blame] | 16706 | |
| 16707 | else |
| 16708 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 16709 | # While Python doesn't currently have full support for these platforms |
| 16710 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 16711 | # conversions work. |
| 16712 | # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big |
| 16713 | # or little, then it must be this? |
| 16714 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16715 | 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] | 16716 | |
| 16717 | fi |
| 16718 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 16719 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 16720 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 16721 | # 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] | 16722 | # 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] | 16723 | # 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] | 16724 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 16725 | |
| 16726 | # This inline assembler syntax may also work for suncc and icc, |
| 16727 | # so we try it on all platforms. |
| 16728 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16729 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 16730 | 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] | 16731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16732 | /* end confdefs.h. */ |
| 16733 | |
| 16734 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16735 | main (void) |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16736 | { |
| 16737 | |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 16738 | unsigned short cw; |
| 16739 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 16740 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16741 | |
| 16742 | ; |
| 16743 | return 0; |
| 16744 | } |
| 16745 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16746 | if ac_fn_c_try_link "$LINENO" |
| 16747 | then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16748 | have_gcc_asm_for_x87=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16749 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16750 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16751 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16752 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 16753 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
| 16755 | printf "%s\n" "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 16756 | if test "$have_gcc_asm_for_x87" = yes |
| 16757 | then |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16758 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16759 | printf "%s\n" "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16760 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16761 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16762 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16763 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 |
| 16764 | 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] | 16765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16766 | /* end confdefs.h. */ |
| 16767 | |
| 16768 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16769 | main (void) |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 16770 | { |
| 16771 | |
| 16772 | unsigned int fpcr; |
| 16773 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); |
| 16774 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); |
| 16775 | |
| 16776 | ; |
| 16777 | return 0; |
| 16778 | } |
| 16779 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16780 | if ac_fn_c_try_link "$LINENO" |
| 16781 | then : |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 16782 | have_gcc_asm_for_mc68881=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16783 | else $as_nop |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 16784 | have_gcc_asm_for_mc68881=no |
| 16785 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16786 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 16787 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 |
| 16789 | printf "%s\n" "$have_gcc_asm_for_mc68881" >&6; } |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 16790 | if test "$have_gcc_asm_for_mc68881" = yes |
| 16791 | then |
| 16792 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16793 | printf "%s\n" "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 16794 | |
| 16795 | fi |
| 16796 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16797 | # Detect whether system arithmetic is subject to x87-style double |
| 16798 | # rounding issues. The result of this test has little meaning on non |
| 16799 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 16800 | # mode is round-to-nearest and double rounding issues are present, and |
| 16801 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
| 16803 | printf %s "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16804 | # $BASECFLAGS may affect the result |
| 16805 | ac_save_cc="$CC" |
| 16806 | CC="$CC $BASECFLAGS" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16807 | if test "$cross_compiling" = yes |
| 16808 | then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16809 | ac_cv_x87_double_rounding=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16810 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16812 | /* end confdefs.h. */ |
| 16813 | |
| 16814 | #include <stdlib.h> |
| 16815 | #include <math.h> |
| 16816 | int main() { |
| 16817 | volatile double x, y, z; |
| 16818 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 16819 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 16820 | y = 1./x; |
| 16821 | if (y != 1.) |
| 16822 | exit(0); |
| 16823 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 16824 | x = 1e16; |
| 16825 | y = 2.99999; |
| 16826 | z = x + y; |
| 16827 | if (z != 1e16+4.) |
| 16828 | exit(0); |
| 16829 | /* both tests show evidence of double rounding */ |
| 16830 | exit(1); |
| 16831 | } |
| 16832 | |
| 16833 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16834 | if ac_fn_c_try_run "$LINENO" |
| 16835 | then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16836 | ac_cv_x87_double_rounding=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16837 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16838 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16839 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16840 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16841 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16842 | fi |
| 16843 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16844 | CC="$ac_save_cc" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
| 16846 | printf "%s\n" "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16847 | if test "$ac_cv_x87_double_rounding" = yes |
| 16848 | then |
| 16849 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16850 | printf "%s\n" "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 16851 | |
| 16852 | fi |
| 16853 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 16854 | # ************************************ |
| 16855 | # * Check for mathematical functions * |
| 16856 | # ************************************ |
| 16857 | |
| 16858 | LIBS_SAVE=$LIBS |
| 16859 | LIBS="$LIBS $LIBM" |
| 16860 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16861 | ac_fn_c_check_func "$LINENO" "acosh" "ac_cv_func_acosh" |
| 16862 | if test "x$ac_cv_func_acosh" = xyes |
| 16863 | then : |
| 16864 | printf "%s\n" "#define HAVE_ACOSH 1" >>confdefs.h |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 16865 | |
| 16866 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16867 | ac_fn_c_check_func "$LINENO" "asinh" "ac_cv_func_asinh" |
| 16868 | if test "x$ac_cv_func_asinh" = xyes |
| 16869 | then : |
| 16870 | printf "%s\n" "#define HAVE_ASINH 1" >>confdefs.h |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 16871 | |
| 16872 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16873 | ac_fn_c_check_func "$LINENO" "atanh" "ac_cv_func_atanh" |
| 16874 | if test "x$ac_cv_func_atanh" = xyes |
| 16875 | then : |
| 16876 | printf "%s\n" "#define HAVE_ATANH 1" >>confdefs.h |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 16877 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16878 | fi |
| 16879 | ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign" |
| 16880 | if test "x$ac_cv_func_copysign" = xyes |
| 16881 | then : |
| 16882 | printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h |
| 16883 | |
| 16884 | fi |
| 16885 | ac_fn_c_check_func "$LINENO" "erf" "ac_cv_func_erf" |
| 16886 | if test "x$ac_cv_func_erf" = xyes |
| 16887 | then : |
| 16888 | printf "%s\n" "#define HAVE_ERF 1" >>confdefs.h |
| 16889 | |
| 16890 | fi |
| 16891 | ac_fn_c_check_func "$LINENO" "erfc" "ac_cv_func_erfc" |
| 16892 | if test "x$ac_cv_func_erfc" = xyes |
| 16893 | then : |
| 16894 | printf "%s\n" "#define HAVE_ERFC 1" >>confdefs.h |
| 16895 | |
| 16896 | fi |
| 16897 | ac_fn_c_check_func "$LINENO" "expm1" "ac_cv_func_expm1" |
| 16898 | if test "x$ac_cv_func_expm1" = xyes |
| 16899 | then : |
| 16900 | printf "%s\n" "#define HAVE_EXPM1 1" >>confdefs.h |
| 16901 | |
| 16902 | fi |
| 16903 | ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite" |
| 16904 | if test "x$ac_cv_func_finite" = xyes |
| 16905 | then : |
| 16906 | printf "%s\n" "#define HAVE_FINITE 1" >>confdefs.h |
| 16907 | |
| 16908 | fi |
| 16909 | ac_fn_c_check_func "$LINENO" "gamma" "ac_cv_func_gamma" |
| 16910 | if test "x$ac_cv_func_gamma" = xyes |
| 16911 | then : |
| 16912 | printf "%s\n" "#define HAVE_GAMMA 1" >>confdefs.h |
| 16913 | |
| 16914 | fi |
| 16915 | |
| 16916 | ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot" |
| 16917 | if test "x$ac_cv_func_hypot" = xyes |
| 16918 | then : |
| 16919 | printf "%s\n" "#define HAVE_HYPOT 1" >>confdefs.h |
| 16920 | |
| 16921 | fi |
| 16922 | ac_fn_c_check_func "$LINENO" "lgamma" "ac_cv_func_lgamma" |
| 16923 | if test "x$ac_cv_func_lgamma" = xyes |
| 16924 | then : |
| 16925 | printf "%s\n" "#define HAVE_LGAMMA 1" >>confdefs.h |
| 16926 | |
| 16927 | fi |
| 16928 | ac_fn_c_check_func "$LINENO" "log1p" "ac_cv_func_log1p" |
| 16929 | if test "x$ac_cv_func_log1p" = xyes |
| 16930 | then : |
| 16931 | printf "%s\n" "#define HAVE_LOG1P 1" >>confdefs.h |
| 16932 | |
| 16933 | fi |
| 16934 | ac_fn_c_check_func "$LINENO" "log2" "ac_cv_func_log2" |
| 16935 | if test "x$ac_cv_func_log2" = xyes |
| 16936 | then : |
| 16937 | printf "%s\n" "#define HAVE_LOG2 1" >>confdefs.h |
| 16938 | |
| 16939 | fi |
| 16940 | ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round" |
| 16941 | if test "x$ac_cv_func_round" = xyes |
| 16942 | then : |
| 16943 | printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h |
| 16944 | |
| 16945 | fi |
| 16946 | ac_fn_c_check_func "$LINENO" "tgamma" "ac_cv_func_tgamma" |
| 16947 | if test "x$ac_cv_func_tgamma" = xyes |
| 16948 | then : |
| 16949 | printf "%s\n" "#define HAVE_TGAMMA 1" >>confdefs.h |
| 16950 | |
| 16951 | fi |
| 16952 | |
| 16953 | ac_fn_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
| 16954 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 16955 | if test "x$ac_cv_have_decl_isinf" = xyes |
| 16956 | then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 16957 | ac_have_decl=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16958 | else $as_nop |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 16959 | ac_have_decl=0 |
| 16960 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16961 | printf "%s\n" "#define HAVE_DECL_ISINF $ac_have_decl" >>confdefs.h |
| 16962 | ac_fn_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> |
| 16963 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 16964 | if test "x$ac_cv_have_decl_isnan" = xyes |
| 16965 | then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 16966 | ac_have_decl=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16967 | else $as_nop |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 16968 | ac_have_decl=0 |
| 16969 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16970 | printf "%s\n" "#define HAVE_DECL_ISNAN $ac_have_decl" >>confdefs.h |
| 16971 | ac_fn_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> |
| 16972 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 16973 | if test "x$ac_cv_have_decl_isfinite" = xyes |
| 16974 | then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 16975 | ac_have_decl=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16976 | else $as_nop |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 16977 | ac_have_decl=0 |
| 16978 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16979 | printf "%s\n" "#define HAVE_DECL_ISFINITE $ac_have_decl" >>confdefs.h |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 16980 | |
| 16981 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 16982 | # For multiprocessing module, check that sem_open |
| 16983 | # actually works. For FreeBSD versions <= 7.2, |
| 16984 | # the kernel module that provides POSIX semaphores |
| 16985 | # isn't loaded by default, so an attempt to call |
| 16986 | # sem_open results in a 'Signal 12' error. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
| 16988 | printf %s "checking whether POSIX semaphores are enabled... " >&6; } |
| 16989 | if test ${ac_cv_posix_semaphores_enabled+y} |
| 16990 | then : |
| 16991 | printf %s "(cached) " >&6 |
| 16992 | else $as_nop |
| 16993 | if test "$cross_compiling" = yes |
| 16994 | then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 16995 | ac_cv_posix_semaphores_enabled=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 16996 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 16998 | /* end confdefs.h. */ |
| 16999 | |
| 17000 | #include <unistd.h> |
| 17001 | #include <fcntl.h> |
| 17002 | #include <stdio.h> |
| 17003 | #include <semaphore.h> |
| 17004 | #include <sys/stat.h> |
| 17005 | |
| 17006 | int main(void) { |
| 17007 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 17008 | if (a == SEM_FAILED) { |
| 17009 | perror("sem_open"); |
| 17010 | return 1; |
| 17011 | } |
| 17012 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 17013 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17014 | return 0; |
| 17015 | } |
| 17016 | |
| 17017 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17018 | if ac_fn_c_try_run "$LINENO" |
| 17019 | then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17020 | ac_cv_posix_semaphores_enabled=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17021 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17022 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17023 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17024 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17025 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17026 | fi |
| 17027 | |
| 17028 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17029 | fi |
| 17030 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17031 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 17032 | printf "%s\n" "$ac_cv_posix_semaphores_enabled" >&6; } |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17033 | if test $ac_cv_posix_semaphores_enabled = no |
| 17034 | then |
| 17035 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17036 | printf "%s\n" "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 17037 | |
| 17038 | fi |
| 17039 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 17040 | # Multiprocessing check for broken sem_getvalue |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17041 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
| 17042 | printf %s "checking for broken sem_getvalue... " >&6; } |
| 17043 | if test ${ac_cv_broken_sem_getvalue+y} |
| 17044 | then : |
| 17045 | printf %s "(cached) " >&6 |
| 17046 | else $as_nop |
| 17047 | if test "$cross_compiling" = yes |
| 17048 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 17049 | ac_cv_broken_sem_getvalue=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17050 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 17052 | /* end confdefs.h. */ |
| 17053 | |
| 17054 | #include <unistd.h> |
| 17055 | #include <fcntl.h> |
| 17056 | #include <stdio.h> |
| 17057 | #include <semaphore.h> |
| 17058 | #include <sys/stat.h> |
| 17059 | |
| 17060 | int main(void){ |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 17061 | 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] | 17062 | int count; |
| 17063 | int res; |
| 17064 | if(a==SEM_FAILED){ |
| 17065 | perror("sem_open"); |
| 17066 | return 1; |
| 17067 | |
| 17068 | } |
| 17069 | res = sem_getvalue(a, &count); |
| 17070 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 17071 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 17072 | return res==-1 ? 1 : 0; |
| 17073 | } |
| 17074 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 17075 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17076 | if ac_fn_c_try_run "$LINENO" |
| 17077 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 17078 | ac_cv_broken_sem_getvalue=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17079 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17080 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17081 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17082 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17083 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 17084 | fi |
| 17085 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17086 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 17087 | fi |
| 17088 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
| 17090 | printf "%s\n" "$ac_cv_broken_sem_getvalue" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 17091 | if test $ac_cv_broken_sem_getvalue = yes |
| 17092 | then |
| 17093 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17094 | printf "%s\n" "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 17095 | |
| 17096 | fi |
| 17097 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17098 | ac_fn_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> |
| 17099 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17100 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes |
| 17101 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17102 | ac_have_decl=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17103 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17104 | ac_have_decl=0 |
| 17105 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17106 | printf "%s\n" "#define HAVE_DECL_RTLD_LAZY $ac_have_decl" >>confdefs.h |
| 17107 | ac_fn_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> |
| 17108 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17109 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes |
| 17110 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17111 | ac_have_decl=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17112 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17113 | ac_have_decl=0 |
| 17114 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17115 | printf "%s\n" "#define HAVE_DECL_RTLD_NOW $ac_have_decl" >>confdefs.h |
| 17116 | ac_fn_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> |
| 17117 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17118 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes |
| 17119 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17120 | ac_have_decl=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17121 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17122 | ac_have_decl=0 |
| 17123 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17124 | printf "%s\n" "#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl" >>confdefs.h |
| 17125 | ac_fn_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> |
| 17126 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17127 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes |
| 17128 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17129 | ac_have_decl=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17130 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17131 | ac_have_decl=0 |
| 17132 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17133 | printf "%s\n" "#define HAVE_DECL_RTLD_LOCAL $ac_have_decl" >>confdefs.h |
| 17134 | ac_fn_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> |
| 17135 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17136 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes |
| 17137 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17138 | ac_have_decl=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17139 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17140 | ac_have_decl=0 |
| 17141 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17142 | printf "%s\n" "#define HAVE_DECL_RTLD_NODELETE $ac_have_decl" >>confdefs.h |
| 17143 | ac_fn_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> |
| 17144 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17145 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes |
| 17146 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17147 | ac_have_decl=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17148 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17149 | ac_have_decl=0 |
| 17150 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17151 | printf "%s\n" "#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl" >>confdefs.h |
| 17152 | ac_fn_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> |
| 17153 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17154 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes |
| 17155 | then : |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17156 | ac_have_decl=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17157 | else $as_nop |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 17158 | ac_have_decl=0 |
| 17159 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17160 | printf "%s\n" "#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl" >>confdefs.h |
| 17161 | ac_fn_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h> |
| 17162 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17163 | if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes |
| 17164 | then : |
Michael Felt | c5ae169 | 2017-12-19 13:58:49 +0100 | [diff] [blame] | 17165 | ac_have_decl=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17166 | else $as_nop |
Michael Felt | c5ae169 | 2017-12-19 13:58:49 +0100 | [diff] [blame] | 17167 | ac_have_decl=0 |
| 17168 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17169 | 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] | 17170 | |
| 17171 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 17172 | # determine what size digit to use for Python's longs |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17173 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
| 17174 | printf %s "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 17175 | # Check whether --enable-big-digits was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17176 | if test ${enable_big_digits+y} |
| 17177 | then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 17178 | enableval=$enable_big_digits; case $enable_big_digits in |
| 17179 | yes) |
| 17180 | enable_big_digits=30 ;; |
| 17181 | no) |
| 17182 | enable_big_digits=15 ;; |
| 17183 | 15|30) |
| 17184 | ;; |
| 17185 | *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17186 | 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] | 17187 | esac |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
| 17189 | printf "%s\n" "$enable_big_digits" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 17190 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17191 | 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] | 17192 | |
| 17193 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17194 | else $as_nop |
| 17195 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 17196 | printf "%s\n" "no value specified" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 17197 | fi |
| 17198 | |
| 17199 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17200 | # check for wchar.h |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17201 | ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
| 17202 | if test "x$ac_cv_header_wchar_h" = xyes |
| 17203 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17204 | |
| 17205 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17206 | printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17207 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17208 | wchar_h="yes" |
| 17209 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17210 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17211 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17212 | |
| 17213 | fi |
| 17214 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17215 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17216 | # determine wchar_t size |
| 17217 | if test "$wchar_h" = yes |
| 17218 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17219 | # 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] | 17220 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 17221 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 17222 | # This bug is HP SR number 8606223364. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
| 17224 | printf %s "checking size of wchar_t... " >&6; } |
| 17225 | if test ${ac_cv_sizeof_wchar_t+y} |
| 17226 | then : |
| 17227 | printf %s "(cached) " >&6 |
| 17228 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17229 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17230 | " |
| 17231 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17232 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17233 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17234 | if test "$ac_cv_type_wchar_t" = yes; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17235 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17236 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17237 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17238 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17239 | else |
| 17240 | ac_cv_sizeof_wchar_t=0 |
| 17241 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17242 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17244 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17245 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
| 17246 | printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17247 | |
| 17248 | |
| 17249 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17250 | 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] | 17251 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17252 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17253 | fi |
| 17254 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17255 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
| 17256 | printf %s "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17257 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17259 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17260 | |
| 17261 | #include <tcl.h> |
| 17262 | #if TCL_UTF_MAX != 6 |
| 17263 | # error "NOT UCS4_TCL" |
| 17264 | #endif |
| 17265 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17266 | main (void) |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17267 | { |
| 17268 | |
| 17269 | ; |
| 17270 | return 0; |
| 17271 | } |
| 17272 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17273 | if ac_fn_c_try_compile "$LINENO" |
| 17274 | then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17275 | |
| 17276 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17277 | printf "%s\n" "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17278 | |
| 17279 | have_ucs4_tcl=yes |
| 17280 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17281 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17282 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17283 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
| 17284 | printf "%s\n" "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17285 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17286 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17287 | if test "$wchar_h" = yes |
| 17288 | then |
| 17289 | # check whether wchar_t is signed or not |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
| 17291 | printf %s "checking whether wchar_t is signed... " >&6; } |
| 17292 | if test ${ac_cv_wchar_t_signed+y} |
| 17293 | then : |
| 17294 | printf %s "(cached) " >&6 |
| 17295 | else $as_nop |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17296 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17297 | if test "$cross_compiling" = yes |
| 17298 | then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17299 | ac_cv_wchar_t_signed=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17300 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17302 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17303 | |
| 17304 | #include <wchar.h> |
| 17305 | int main() |
| 17306 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 17307 | /* Success: exit code 0 */ |
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 17308 | return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17309 | } |
| 17310 | |
| 17311 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17312 | if ac_fn_c_try_run "$LINENO" |
| 17313 | then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17314 | ac_cv_wchar_t_signed=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17315 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17316 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17317 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17318 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17319 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17320 | fi |
| 17321 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17322 | fi |
| 17323 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17324 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
| 17325 | printf "%s\n" "$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17326 | fi |
| 17327 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17328 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5 |
| 17329 | printf %s "checking whether wchar_t is usable... " >&6; } |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 17330 | # 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] | 17331 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 17332 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 17333 | then |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17334 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17335 | 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] | 17336 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17337 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17338 | printf "%s\n" "yes" >&6; } |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 17339 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17341 | printf "%s\n" "no" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17342 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17343 | |
Jakub Kulík | 9032cf5 | 2021-04-30 15:21:42 +0200 | [diff] [blame] | 17344 | case $ac_sys_system/$ac_sys_release in |
| 17345 | SunOS/*) |
| 17346 | if test -f /etc/os-release; then |
| 17347 | OS_NAME=$(awk -F= '/^NAME=/ {print substr($2,2,length($2)-2)}' /etc/os-release) |
| 17348 | if test "x$OS_NAME" = "xOracle Solaris"; then |
| 17349 | # bpo-43667: In Oracle Solaris, the internal form of wchar_t in |
| 17350 | # non-Unicode locales is not Unicode and hence cannot be used directly. |
| 17351 | # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html |
| 17352 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17353 | printf "%s\n" "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h |
Jakub Kulík | 9032cf5 | 2021-04-30 15:21:42 +0200 | [diff] [blame] | 17354 | |
| 17355 | fi |
| 17356 | fi |
| 17357 | ;; |
| 17358 | esac |
| 17359 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17360 | # check for endianness |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 17362 | printf %s "checking whether byte ordering is bigendian... " >&6; } |
| 17363 | if test ${ac_cv_c_bigendian+y} |
| 17364 | then : |
| 17365 | printf %s "(cached) " >&6 |
| 17366 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17367 | ac_cv_c_bigendian=unknown |
| 17368 | # See if we're dealing with a universal compiler. |
| 17369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17370 | /* end confdefs.h. */ |
| 17371 | #ifndef __APPLE_CC__ |
| 17372 | not a universal capable compiler |
| 17373 | #endif |
| 17374 | typedef int dummy; |
| 17375 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17376 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17377 | if ac_fn_c_try_compile "$LINENO" |
| 17378 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17379 | |
| 17380 | # Check for potential -arch flags. It is not universal unless |
| 17381 | # there are at least two -arch flags with different values. |
| 17382 | ac_arch= |
| 17383 | ac_prev= |
| 17384 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 17385 | if test -n "$ac_prev"; then |
| 17386 | case $ac_word in |
| 17387 | i?86 | x86_64 | ppc | ppc64) |
| 17388 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 17389 | ac_arch=$ac_word |
| 17390 | else |
| 17391 | ac_cv_c_bigendian=universal |
| 17392 | break |
| 17393 | fi |
| 17394 | ;; |
| 17395 | esac |
| 17396 | ac_prev= |
| 17397 | elif test "x$ac_word" = "x-arch"; then |
| 17398 | ac_prev=arch |
| 17399 | fi |
| 17400 | done |
| 17401 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17402 | 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] | 17403 | if test $ac_cv_c_bigendian = unknown; then |
| 17404 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 17405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17406 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17407 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17408 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17410 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17411 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17412 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17413 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 17414 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 17415 | && LITTLE_ENDIAN) |
| 17416 | bogus endian macros |
| 17417 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17418 | |
| 17419 | ; |
| 17420 | return 0; |
| 17421 | } |
| 17422 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17423 | if ac_fn_c_try_compile "$LINENO" |
| 17424 | then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17425 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17427 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17428 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17429 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17431 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17432 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17433 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17434 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17435 | not big endian |
| 17436 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17437 | |
| 17438 | ; |
| 17439 | return 0; |
| 17440 | } |
| 17441 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17442 | if ac_fn_c_try_compile "$LINENO" |
| 17443 | then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17444 | ac_cv_c_bigendian=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17445 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17446 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17447 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17448 | 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] | 17449 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17450 | 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] | 17451 | fi |
| 17452 | if test $ac_cv_c_bigendian = unknown; then |
| 17453 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 17454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17455 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17456 | #include <limits.h> |
| 17457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17458 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17459 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17460 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17461 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 17462 | bogus endian macros |
| 17463 | #endif |
| 17464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17465 | ; |
| 17466 | return 0; |
| 17467 | } |
| 17468 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17469 | if ac_fn_c_try_compile "$LINENO" |
| 17470 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17471 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 17472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17473 | /* end confdefs.h. */ |
| 17474 | #include <limits.h> |
| 17475 | |
| 17476 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17477 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17478 | { |
| 17479 | #ifndef _BIG_ENDIAN |
| 17480 | not big endian |
| 17481 | #endif |
| 17482 | |
| 17483 | ; |
| 17484 | return 0; |
| 17485 | } |
| 17486 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17487 | if ac_fn_c_try_compile "$LINENO" |
| 17488 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17489 | ac_cv_c_bigendian=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17490 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17491 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17492 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17493 | 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] | 17494 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17495 | 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] | 17496 | fi |
| 17497 | if test $ac_cv_c_bigendian = unknown; then |
| 17498 | # Compile a test program. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17499 | if test "$cross_compiling" = yes |
| 17500 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17501 | # Try to guess by grepping values from an object file. |
| 17502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17503 | /* end confdefs.h. */ |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17504 | unsigned short int ascii_mm[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17505 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17506 | unsigned short int ascii_ii[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17507 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 17508 | int use_ascii (int i) { |
| 17509 | return ascii_mm[i] + ascii_ii[i]; |
| 17510 | } |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17511 | unsigned short int ebcdic_ii[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17512 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17513 | unsigned short int ebcdic_mm[] = |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17514 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 17515 | int use_ebcdic (int i) { |
| 17516 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 17517 | } |
| 17518 | extern int foo; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17519 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17520 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17521 | main (void) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17522 | { |
| 17523 | return use_ascii (foo) == use_ebcdic (foo); |
| 17524 | ; |
| 17525 | return 0; |
| 17526 | } |
| 17527 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17528 | if ac_fn_c_try_compile "$LINENO" |
| 17529 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17530 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 17531 | ac_cv_c_bigendian=yes |
| 17532 | fi |
| 17533 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 17534 | if test "$ac_cv_c_bigendian" = unknown; then |
| 17535 | ac_cv_c_bigendian=no |
| 17536 | else |
| 17537 | # finding both strings is unlikely to happen, but who knows? |
| 17538 | ac_cv_c_bigendian=unknown |
| 17539 | fi |
| 17540 | fi |
| 17541 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17542 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17543 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17545 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17546 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17547 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17548 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17549 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17550 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17551 | /* Are we little or big endian? From Harbison&Steele. */ |
| 17552 | union |
| 17553 | { |
| 17554 | long int l; |
| 17555 | char c[sizeof (long int)]; |
| 17556 | } u; |
| 17557 | u.l = 1; |
| 17558 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17559 | |
| 17560 | ; |
| 17561 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17562 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17563 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17564 | if ac_fn_c_try_run "$LINENO" |
| 17565 | then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17566 | ac_cv_c_bigendian=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17567 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17568 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17569 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17570 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17571 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17572 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17573 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17574 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17575 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17576 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 17577 | printf "%s\n" "$ac_cv_c_bigendian" >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17578 | case $ac_cv_c_bigendian in #( |
| 17579 | yes) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17580 | printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17581 | ;; #( |
| 17582 | no) |
| 17583 | ;; #( |
| 17584 | universal) |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17585 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17586 | printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 17587 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17588 | ;; #( |
| 17589 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17590 | as_fn_error $? "unknown endianness |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17591 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17592 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17593 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17594 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 17595 | # ABI version string for Python extension modules. This appears between the |
| 17596 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated |
| 17597 | # from the following attributes which affect the ABI of this Python build (in |
| 17598 | # this order): |
| 17599 | # |
| 17600 | # * The Python implementation (always 'cpython-' for us) |
| 17601 | # * The major and minor version numbers |
| 17602 | # * --with-pydebug (adds a 'd') |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 17603 | # |
| 17604 | # 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] | 17605 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
| 17606 | # libraries would be named 'foo.cpython-32dmu.so'. |
Victor Stinner | 6c44fde | 2019-04-24 16:10:09 +0200 | [diff] [blame] | 17607 | # |
| 17608 | # In Python 3.2 and older, --with-wide-unicode added a 'u' flag. |
| 17609 | # In Python 3.7 and older, --with-pymalloc added a 'm' flag. |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 17610 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17611 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
| 17612 | printf %s "checking ABIFLAGS... " >&6; } |
| 17613 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 |
| 17614 | printf "%s\n" "$ABIFLAGS" >&6; } |
| 17615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 |
| 17616 | printf %s "checking SOABI... " >&6; } |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 17617 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
| 17619 | printf "%s\n" "$SOABI" >&6; } |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 17620 | |
Victor Stinner | 6d13e5b | 2019-04-26 18:56:19 +0200 | [diff] [blame] | 17621 | # Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI |
| 17622 | if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then |
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 17623 | # Similar to SOABI but remove "d" flag from ABIFLAGS |
| 17624 | |
| 17625 | ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
| 17626 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17627 | printf "%s\n" "#define ALT_SOABI \"${ALT_SOABI}\"" >>confdefs.h |
Victor Stinner | 5422e3c | 2019-04-26 01:40:00 +0200 | [diff] [blame] | 17628 | |
| 17629 | fi |
| 17630 | |
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 17631 | |
Matti Picus | a44ce6c | 2020-12-20 04:56:57 +0200 | [diff] [blame] | 17632 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX} |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 17633 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
| 17635 | printf %s "checking LDVERSION... " >&6; } |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 17636 | LDVERSION='$(VERSION)$(ABIFLAGS)' |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 |
| 17638 | printf "%s\n" "$LDVERSION" >&6; } |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 17639 | |
E. M. Bray | c994c8f | 2019-05-24 17:33:47 +0200 | [diff] [blame] | 17640 | # On Android and Cygwin the shared libraries must be linked with libpython. |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 17641 | |
E. M. Bray | b1fc417 | 2019-05-24 18:39:39 +0200 | [diff] [blame] | 17642 | if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 17643 | LIBPYTHON="-lpython${VERSION}${ABIFLAGS}" |
E. M. Bray | b1fc417 | 2019-05-24 18:39:39 +0200 | [diff] [blame] | 17644 | else |
| 17645 | LIBPYTHON='' |
xdegaye | 254b309 | 2019-04-29 09:27:40 +0200 | [diff] [blame] | 17646 | fi |
| 17647 | |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17648 | |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 17649 | |
| 17650 | BINLIBDEST='$(LIBDIR)/python$(VERSION)' |
| 17651 | |
| 17652 | |
| 17653 | # Check for --with-platlibdir |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 17654 | # /usr/$LIDIRNAME/python$VERSION |
| 17655 | |
| 17656 | PLATLIBDIR="lib" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5 |
| 17658 | printf %s "checking for --with-platlibdir... " >&6; } |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 17659 | |
| 17660 | # Check whether --with-platlibdir was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17661 | if test ${with_platlibdir+y} |
| 17662 | then : |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 17663 | withval=$with_platlibdir; |
| 17664 | # ignore 3 options: |
| 17665 | # --with-platlibdir |
| 17666 | # --with-platlibdir= |
| 17667 | # --without-platlibdir |
| 17668 | if test -n "$withval" -a "$withval" != yes -a "$withval" != no |
| 17669 | then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17671 | printf "%s\n" "yes" >&6; } |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 17672 | PLATLIBDIR="$withval" |
Victor Stinner | 51ae31e | 2020-06-09 15:32:43 +0200 | [diff] [blame] | 17673 | BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)' |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 17674 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17675 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17676 | printf "%s\n" "no" >&6; } |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 17677 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17678 | else $as_nop |
| 17679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17680 | printf "%s\n" "no" >&6; } |
Victor Stinner | 8510f43 | 2020-03-10 09:53:09 +0100 | [diff] [blame] | 17681 | fi |
| 17682 | |
| 17683 | |
| 17684 | |
| 17685 | |
| 17686 | if test x$PLATFORM_TRIPLET = x; then |
| 17687 | LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}" |
| 17688 | else |
| 17689 | LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 17690 | fi |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17691 | |
| 17692 | |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 17693 | # Check for --with-wheel-pkg-dir=PATH |
| 17694 | |
| 17695 | WHEEL_PKG_DIR="" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17696 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-wheel-pkg-dir" >&5 |
| 17697 | printf %s "checking for --with-wheel-pkg-dir... " >&6; } |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 17698 | |
| 17699 | # Check whether --with-wheel-pkg-dir was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17700 | if test ${with_wheel_pkg_dir+y} |
| 17701 | then : |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 17702 | withval=$with_wheel_pkg_dir; |
| 17703 | if test -n "$withval"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17705 | printf "%s\n" "yes" >&6; } |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 17706 | WHEEL_PKG_DIR="$withval" |
| 17707 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17709 | printf "%s\n" "no" >&6; } |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 17710 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17711 | else $as_nop |
| 17712 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17713 | printf "%s\n" "no" >&6; } |
Victor Stinner | 75e59a9 | 2021-01-20 17:07:21 +0100 | [diff] [blame] | 17714 | fi |
| 17715 | |
| 17716 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17717 | # Check whether right shifting a negative integer extends the sign bit |
| 17718 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17719 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
| 17720 | printf %s "checking whether right shift extends the sign bit... " >&6; } |
| 17721 | if test ${ac_cv_rshift_extends_sign+y} |
| 17722 | then : |
| 17723 | printf %s "(cached) " >&6 |
| 17724 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17725 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17726 | if test "$cross_compiling" = yes |
| 17727 | then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 17728 | ac_cv_rshift_extends_sign=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17729 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17731 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17732 | |
| 17733 | int main() |
| 17734 | { |
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 17735 | return (((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17736 | } |
| 17737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17738 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17739 | if ac_fn_c_try_run "$LINENO" |
| 17740 | then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17741 | ac_cv_rshift_extends_sign=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17742 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17743 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17744 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17745 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17746 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17747 | fi |
| 17748 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17749 | fi |
| 17750 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
| 17752 | printf "%s\n" "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17753 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17754 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17755 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17756 | printf "%s\n" "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17757 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17758 | fi |
| 17759 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17760 | # check for getc_unlocked and related locking functions |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17761 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
| 17762 | printf %s "checking for getc_unlocked() and friends... " >&6; } |
| 17763 | if test ${ac_cv_have_getc_unlocked+y} |
| 17764 | then : |
| 17765 | printf %s "(cached) " >&6 |
| 17766 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17767 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17769 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17770 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17771 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17772 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17773 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17774 | |
| 17775 | FILE *f = fopen("/dev/null", "r"); |
| 17776 | flockfile(f); |
| 17777 | getc_unlocked(f); |
| 17778 | funlockfile(f); |
| 17779 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17780 | ; |
| 17781 | return 0; |
| 17782 | } |
| 17783 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17784 | if ac_fn_c_try_link "$LINENO" |
| 17785 | then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17786 | ac_cv_have_getc_unlocked=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17787 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17788 | ac_cv_have_getc_unlocked=no |
| 17789 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17790 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17791 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17792 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17793 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
| 17795 | printf "%s\n" "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17796 | if test "$ac_cv_have_getc_unlocked" = yes |
| 17797 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17798 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17799 | printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17800 | |
| 17801 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17802 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17803 | |
| 17804 | # Check whether --with-readline was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17805 | if test ${with_readline+y} |
| 17806 | then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17807 | withval=$with_readline; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17808 | else $as_nop |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17809 | with_readline=yes |
| 17810 | fi |
| 17811 | |
| 17812 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17813 | # check where readline lives |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17814 | py_cv_lib_readline=no |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 17815 | # save the value of LIBS so we don't actually link Python with readline |
| 17816 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17817 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17818 | if test "$with_readline" != no; then |
| 17819 | case "$with_readline" in |
| 17820 | editline|edit) |
| 17821 | LIBREADLINE=edit |
| 17822 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17823 | printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17824 | |
| 17825 | ;; |
| 17826 | yes|readline) |
| 17827 | LIBREADLINE=readline |
| 17828 | ;; |
| 17829 | *) |
| 17830 | as_fn_error $? "proper usage is --with(out)-readline[=editline]" "$LINENO" 5 |
| 17831 | ;; |
| 17832 | esac |
| 17833 | |
| 17834 | # On some systems we need to link readline to a termcap compatible |
| 17835 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 17836 | # with setup.py. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
| 17838 | printf %s "checking how to link readline libs... " >&6; } |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17839 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do |
| 17840 | if test -z "$py_libtermcap"; then |
| 17841 | READLINE_LIBS="-l$LIBREADLINE" |
| 17842 | else |
| 17843 | READLINE_LIBS="-l$LIBREADLINE -l$py_libtermcap" |
| 17844 | fi |
| 17845 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 17846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17847 | /* end confdefs.h. */ |
| 17848 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17849 | /* Override any GCC internal prototype to avoid an error. |
| 17850 | Use char because int might match the return type of a GCC |
| 17851 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17852 | char readline (); |
| 17853 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17854 | main (void) |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17855 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17856 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17857 | ; |
| 17858 | return 0; |
| 17859 | } |
| 17860 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17861 | if ac_fn_c_try_link "$LINENO" |
| 17862 | then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 17863 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17864 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17865 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17866 | conftest$ac_exeext conftest.$ac_ext |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17867 | if test $py_cv_lib_readline = yes; then |
| 17868 | break |
| 17869 | fi |
| 17870 | done |
| 17871 | |
| 17872 | # Uncomment this line if you want to use READLINE_LIBS in Makefile or scripts |
| 17873 | #AC_SUBST([READLINE_LIBS]) |
| 17874 | if test $py_cv_lib_readline = no; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 17876 | printf "%s\n" "none" >&6; } |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17877 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17878 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
| 17879 | printf "%s\n" "$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 17880 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17881 | printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17882 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17883 | fi |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 17884 | fi |
| 17885 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17886 | if test "$py_cv_lib_readline" = yes; then |
| 17887 | # check for readline 2.2 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17888 | 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] | 17889 | #include <stdio.h> /* Must be first for Gnu Readline */ |
| 17890 | #ifdef WITH_EDITLINE |
| 17891 | # include <editline/readline.h> |
| 17892 | #else |
| 17893 | # include <readline/readline.h> |
| 17894 | #endif |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 17895 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17896 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17897 | if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes |
| 17898 | then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17899 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17900 | 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] | 17901 | |
| 17902 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17903 | 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] | 17904 | #include <stdio.h> /* Must be first for Gnu Readline */ |
| 17905 | #ifdef WITH_EDITLINE |
| 17906 | # include <editline/readline.h> |
| 17907 | #else |
| 17908 | # include <readline/readline.h> |
| 17909 | #endif |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 17910 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17911 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17912 | if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes |
| 17913 | then : |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 17914 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17915 | printf "%s\n" "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 17916 | |
| 17917 | fi |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 17918 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17919 | # check for readline 4.0 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17920 | as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_rl_pre_input_hook" | $as_tr_sh` |
| 17921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -l$LIBREADLINE" >&5 |
| 17922 | printf %s "checking for rl_pre_input_hook in -l$LIBREADLINE... " >&6; } |
| 17923 | if eval test \${$as_ac_Lib+y} |
| 17924 | then : |
| 17925 | printf %s "(cached) " >&6 |
| 17926 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17927 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17928 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17930 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17931 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17932 | /* Override any GCC internal prototype to avoid an error. |
| 17933 | Use char because int might match the return type of a GCC |
| 17934 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17935 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17936 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17937 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17938 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17939 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17940 | ; |
| 17941 | return 0; |
| 17942 | } |
| 17943 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17944 | if ac_fn_c_try_link "$LINENO" |
| 17945 | then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17946 | eval "$as_ac_Lib=yes" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17947 | else $as_nop |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17948 | eval "$as_ac_Lib=no" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17949 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17950 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17951 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17952 | LIBS=$ac_check_lib_save_LIBS |
| 17953 | fi |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17954 | eval ac_res=\$$as_ac_Lib |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17955 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 17956 | printf "%s\n" "$ac_res" >&6; } |
| 17957 | if eval test \"x\$"$as_ac_Lib"\" = x"yes" |
| 17958 | then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17959 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17960 | 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] | 17961 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17962 | fi |
| 17963 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17964 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17965 | # also in 4.0 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17966 | as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_rl_completion_display_matches_hook" | $as_tr_sh` |
| 17967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -l$LIBREADLINE" >&5 |
| 17968 | printf %s "checking for rl_completion_display_matches_hook in -l$LIBREADLINE... " >&6; } |
| 17969 | if eval test \${$as_ac_Lib+y} |
| 17970 | then : |
| 17971 | printf %s "(cached) " >&6 |
| 17972 | else $as_nop |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 17973 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17974 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 17976 | /* end confdefs.h. */ |
| 17977 | |
| 17978 | /* Override any GCC internal prototype to avoid an error. |
| 17979 | Use char because int might match the return type of a GCC |
| 17980 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 17981 | char rl_completion_display_matches_hook (); |
| 17982 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17983 | main (void) |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 17984 | { |
| 17985 | return rl_completion_display_matches_hook (); |
| 17986 | ; |
| 17987 | return 0; |
| 17988 | } |
| 17989 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17990 | if ac_fn_c_try_link "$LINENO" |
| 17991 | then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17992 | eval "$as_ac_Lib=yes" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17993 | else $as_nop |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 17994 | eval "$as_ac_Lib=no" |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 17995 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 17996 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17997 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 17998 | LIBS=$ac_check_lib_save_LIBS |
| 17999 | fi |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18000 | eval ac_res=\$$as_ac_Lib |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18001 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18002 | printf "%s\n" "$ac_res" >&6; } |
| 18003 | if eval test \"x\$"$as_ac_Lib"\" = x"yes" |
| 18004 | then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 18005 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18006 | 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] | 18007 | |
| 18008 | fi |
| 18009 | |
| 18010 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18011 | # also in 4.0, but not in editline |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18012 | as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_rl_resize_terminal" | $as_tr_sh` |
| 18013 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -l$LIBREADLINE" >&5 |
| 18014 | printf %s "checking for rl_resize_terminal in -l$LIBREADLINE... " >&6; } |
| 18015 | if eval test \${$as_ac_Lib+y} |
| 18016 | then : |
| 18017 | printf %s "(cached) " >&6 |
| 18018 | else $as_nop |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18019 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18020 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18022 | /* end confdefs.h. */ |
| 18023 | |
| 18024 | /* Override any GCC internal prototype to avoid an error. |
| 18025 | Use char because int might match the return type of a GCC |
| 18026 | builtin and then its argument prototype would still apply. */ |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18027 | char rl_resize_terminal (); |
| 18028 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18029 | main (void) |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18030 | { |
| 18031 | return rl_resize_terminal (); |
| 18032 | ; |
| 18033 | return 0; |
| 18034 | } |
| 18035 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18036 | if ac_fn_c_try_link "$LINENO" |
| 18037 | then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18038 | eval "$as_ac_Lib=yes" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18039 | else $as_nop |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18040 | eval "$as_ac_Lib=no" |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18041 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18042 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18043 | conftest$ac_exeext conftest.$ac_ext |
| 18044 | LIBS=$ac_check_lib_save_LIBS |
| 18045 | fi |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18046 | eval ac_res=\$$as_ac_Lib |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18048 | printf "%s\n" "$ac_res" >&6; } |
| 18049 | if eval test \"x\$"$as_ac_Lib"\" = x"yes" |
| 18050 | then : |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18051 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18052 | printf "%s\n" "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 18053 | |
| 18054 | fi |
| 18055 | |
| 18056 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18057 | # check for readline 4.2 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18058 | as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_rl_completion_matches" | $as_tr_sh` |
| 18059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -l$LIBREADLINE" >&5 |
| 18060 | printf %s "checking for rl_completion_matches in -l$LIBREADLINE... " >&6; } |
| 18061 | if eval test \${$as_ac_Lib+y} |
| 18062 | then : |
| 18063 | printf %s "(cached) " >&6 |
| 18064 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18065 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18066 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18068 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18069 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18070 | /* Override any GCC internal prototype to avoid an error. |
| 18071 | Use char because int might match the return type of a GCC |
| 18072 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18073 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18074 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18075 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18076 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18077 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18078 | ; |
| 18079 | return 0; |
| 18080 | } |
| 18081 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18082 | if ac_fn_c_try_link "$LINENO" |
| 18083 | then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18084 | eval "$as_ac_Lib=yes" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18085 | else $as_nop |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18086 | eval "$as_ac_Lib=no" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18087 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18088 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18089 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18090 | LIBS=$ac_check_lib_save_LIBS |
| 18091 | fi |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18092 | eval ac_res=\$$as_ac_Lib |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18093 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18094 | printf "%s\n" "$ac_res" >&6; } |
| 18095 | if eval test \"x\$"$as_ac_Lib"\" = x"yes" |
| 18096 | then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18097 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18098 | printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18099 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18100 | fi |
| 18101 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18102 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18103 | # also in readline 4.2 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18104 | 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] | 18105 | #include <stdio.h> /* Must be first for Gnu Readline */ |
| 18106 | #ifdef WITH_EDITLINE |
| 18107 | # include <editline/readline.h> |
| 18108 | #else |
| 18109 | # include <readline/readline.h> |
| 18110 | #endif |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 18111 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18112 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 18113 | if test "x$ac_cv_have_decl_rl_catch_signals" = xyes |
| 18114 | then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18115 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18116 | printf "%s\n" "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18117 | |
| 18118 | fi |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18119 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18120 | as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_append_history" | $as_tr_sh` |
| 18121 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for append_history in -l$LIBREADLINE" >&5 |
| 18122 | printf %s "checking for append_history in -l$LIBREADLINE... " >&6; } |
| 18123 | if eval test \${$as_ac_Lib+y} |
| 18124 | then : |
| 18125 | printf %s "(cached) " >&6 |
| 18126 | else $as_nop |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18127 | ac_check_lib_save_LIBS=$LIBS |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18128 | LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18130 | /* end confdefs.h. */ |
| 18131 | |
| 18132 | /* Override any GCC internal prototype to avoid an error. |
| 18133 | Use char because int might match the return type of a GCC |
| 18134 | builtin and then its argument prototype would still apply. */ |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18135 | char append_history (); |
| 18136 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18137 | main (void) |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18138 | { |
| 18139 | return append_history (); |
| 18140 | ; |
| 18141 | return 0; |
| 18142 | } |
| 18143 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18144 | if ac_fn_c_try_link "$LINENO" |
| 18145 | then : |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18146 | eval "$as_ac_Lib=yes" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18147 | else $as_nop |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18148 | eval "$as_ac_Lib=no" |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18149 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18150 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18151 | conftest$ac_exeext conftest.$ac_ext |
| 18152 | LIBS=$ac_check_lib_save_LIBS |
| 18153 | fi |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18154 | eval ac_res=\$$as_ac_Lib |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18155 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18156 | printf "%s\n" "$ac_res" >&6; } |
| 18157 | if eval test \"x\$"$as_ac_Lib"\" = x"yes" |
| 18158 | then : |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18159 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18160 | printf "%s\n" "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18161 | |
| 18162 | fi |
| 18163 | |
Roland Hieber | e1f7769 | 2021-02-09 02:05:25 +0100 | [diff] [blame] | 18164 | fi |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 18165 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 18166 | # End of readline checks: restore LIBS |
| 18167 | LIBS=$LIBS_no_readline |
| 18168 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18169 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
| 18170 | printf %s "checking for broken nice()... " >&6; } |
| 18171 | if test ${ac_cv_broken_nice+y} |
| 18172 | then : |
| 18173 | printf %s "(cached) " >&6 |
| 18174 | else $as_nop |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18175 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18176 | if test "$cross_compiling" = yes |
| 18177 | then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 18178 | ac_cv_broken_nice=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18179 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18181 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18182 | |
Benjamin Peterson | b84df2d | 2019-02-25 21:37:59 -0800 | [diff] [blame] | 18183 | #include <stdlib.h> |
| 18184 | #include <unistd.h> |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18185 | int main() |
| 18186 | { |
| 18187 | int val1 = nice(1); |
| 18188 | if (val1 != -1 && val1 == nice(2)) |
| 18189 | exit(0); |
| 18190 | exit(1); |
| 18191 | } |
| 18192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18193 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18194 | if ac_fn_c_try_run "$LINENO" |
| 18195 | then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18196 | ac_cv_broken_nice=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18197 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18198 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18199 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18200 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18201 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18202 | fi |
| 18203 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18204 | fi |
| 18205 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
| 18207 | printf "%s\n" "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18208 | if test "$ac_cv_broken_nice" = yes |
| 18209 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18210 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18211 | printf "%s\n" "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18212 | |
| 18213 | fi |
| 18214 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18215 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
| 18216 | printf %s "checking for broken poll()... " >&6; } |
| 18217 | if test ${ac_cv_broken_poll+y} |
| 18218 | then : |
| 18219 | printf %s "(cached) " >&6 |
| 18220 | else $as_nop |
| 18221 | if test "$cross_compiling" = yes |
| 18222 | then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18223 | ac_cv_broken_poll=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18224 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18226 | /* end confdefs.h. */ |
| 18227 | |
| 18228 | #include <poll.h> |
Joshua Root | 674fa0a | 2020-12-14 07:56:34 +1100 | [diff] [blame] | 18229 | #include <unistd.h> |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18230 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18231 | int main() |
| 18232 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18233 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18234 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18235 | |
| 18236 | close (42); |
| 18237 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18238 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18239 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18240 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18241 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18242 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18243 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18244 | return 1; |
| 18245 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18246 | |
| 18247 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18248 | if ac_fn_c_try_run "$LINENO" |
| 18249 | then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18250 | ac_cv_broken_poll=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18251 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18252 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18253 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18254 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18255 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18256 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18257 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18258 | fi |
| 18259 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18260 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
| 18261 | printf "%s\n" "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18262 | if test "$ac_cv_broken_poll" = yes |
| 18263 | then |
| 18264 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18265 | printf "%s\n" "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 18266 | |
| 18267 | fi |
| 18268 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 18269 | # check tzset(3) exists and works like we expect it to |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18270 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
| 18271 | printf %s "checking for working tzset()... " >&6; } |
| 18272 | if test ${ac_cv_working_tzset+y} |
| 18273 | then : |
| 18274 | printf %s "(cached) " >&6 |
| 18275 | else $as_nop |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18276 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18277 | if test "$cross_compiling" = yes |
| 18278 | then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18279 | ac_cv_working_tzset=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [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 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18282 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18283 | |
| 18284 | #include <stdlib.h> |
| 18285 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18286 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18287 | |
| 18288 | #if HAVE_TZNAME |
| 18289 | extern char *tzname[]; |
| 18290 | #endif |
| 18291 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18292 | int main() |
| 18293 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18294 | /* Note that we need to ensure that not only does tzset(3) |
| 18295 | do 'something' with localtime, but it works as documented |
| 18296 | 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] | 18297 | This includes making sure that tzname is set properly if |
| 18298 | tm->tm_zone does not exist since it is the alternative way |
| 18299 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18300 | |
| 18301 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 18302 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18303 | */ |
| 18304 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 18305 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18306 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 18307 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 18308 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18309 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18310 | if (localtime(&groundhogday)->tm_hour != 0) |
| 18311 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18312 | #if HAVE_TZNAME |
| 18313 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 18314 | if (strcmp(tzname[0], "UTC") || |
| 18315 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 18316 | exit(1); |
| 18317 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18318 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 18319 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18320 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18321 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18322 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18323 | #if HAVE_TZNAME |
| 18324 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 18325 | exit(1); |
| 18326 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18327 | |
| 18328 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 18329 | tzset(); |
| 18330 | if (localtime(&groundhogday)->tm_hour != 11) |
| 18331 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18332 | #if HAVE_TZNAME |
| 18333 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 18334 | exit(1); |
| 18335 | #endif |
| 18336 | |
| 18337 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18338 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 18339 | exit(1); |
| 18340 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 18341 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18342 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18343 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18344 | exit(0); |
| 18345 | } |
| 18346 | |
| 18347 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18348 | if ac_fn_c_try_run "$LINENO" |
| 18349 | then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18350 | ac_cv_working_tzset=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18351 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18352 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18353 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18354 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18355 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18356 | fi |
| 18357 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18358 | fi |
| 18359 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18360 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
| 18361 | printf "%s\n" "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18362 | if test "$ac_cv_working_tzset" = yes |
| 18363 | then |
| 18364 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18365 | printf "%s\n" "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18366 | |
| 18367 | fi |
| 18368 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18369 | # Look for subsecond timestamps in struct stat |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18370 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
| 18371 | printf %s "checking for tv_nsec in struct stat... " >&6; } |
| 18372 | if test ${ac_cv_stat_tv_nsec+y} |
| 18373 | then : |
| 18374 | printf %s "(cached) " >&6 |
| 18375 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18377 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18378 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18379 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18380 | main (void) |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18381 | { |
| 18382 | |
| 18383 | struct stat st; |
| 18384 | st.st_mtim.tv_nsec = 1; |
| 18385 | |
| 18386 | ; |
| 18387 | return 0; |
| 18388 | } |
| 18389 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18390 | if ac_fn_c_try_compile "$LINENO" |
| 18391 | then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 18392 | ac_cv_stat_tv_nsec=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18393 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18394 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18395 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18396 | 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] | 18397 | fi |
| 18398 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
| 18400 | printf "%s\n" "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18401 | if test "$ac_cv_stat_tv_nsec" = yes |
| 18402 | then |
| 18403 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18404 | 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] | 18405 | |
| 18406 | fi |
| 18407 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18408 | # Look for BSD style subsecond timestamps in struct stat |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18409 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
| 18410 | printf %s "checking for tv_nsec2 in struct stat... " >&6; } |
| 18411 | if test ${ac_cv_stat_tv_nsec2+y} |
| 18412 | then : |
| 18413 | printf %s "(cached) " >&6 |
| 18414 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18416 | /* end confdefs.h. */ |
| 18417 | #include <sys/stat.h> |
| 18418 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18419 | main (void) |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18420 | { |
| 18421 | |
| 18422 | struct stat st; |
| 18423 | st.st_mtimespec.tv_nsec = 1; |
| 18424 | |
| 18425 | ; |
| 18426 | return 0; |
| 18427 | } |
| 18428 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18429 | if ac_fn_c_try_compile "$LINENO" |
| 18430 | then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18431 | ac_cv_stat_tv_nsec2=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18432 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18433 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18434 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18435 | 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] | 18436 | fi |
| 18437 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18438 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
| 18439 | printf "%s\n" "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18440 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 18441 | then |
| 18442 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18443 | 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] | 18444 | |
| 18445 | fi |
| 18446 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 18447 | # first curses header check |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 18448 | ac_save_cppflags="$CPPFLAGS" |
Xavier de Gaye | e13c320 | 2016-12-13 16:04:14 +0100 | [diff] [blame] | 18449 | if test "$cross_compiling" = no; then |
| 18450 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" |
| 18451 | fi |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 18452 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18453 | ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" |
| 18454 | if test "x$ac_cv_header_curses_h" = xyes |
| 18455 | then : |
| 18456 | printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h |
| 18457 | |
| 18458 | fi |
| 18459 | ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" |
| 18460 | if test "x$ac_cv_header_ncurses_h" = xyes |
| 18461 | then : |
| 18462 | printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h |
Pablo Galindo | ba42175 | 2021-05-03 20:33:17 +0100 | [diff] [blame] | 18463 | |
| 18464 | fi |
Pablo Galindo | 53e5529 | 2021-04-05 17:38:40 +0100 | [diff] [blame] | 18465 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 18466 | |
| 18467 | # On Solaris, term.h requires curses.h |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18468 | 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] | 18469 | #ifdef HAVE_CURSES_H |
| 18470 | #include <curses.h> |
| 18471 | #endif |
| 18472 | |
| 18473 | " |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18474 | if test "x$ac_cv_header_term_h" = xyes |
| 18475 | then : |
| 18476 | printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 18477 | |
| 18478 | fi |
| 18479 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 18480 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18481 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18482 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
| 18483 | printf %s "checking whether mvwdelch is an expression... " >&6; } |
| 18484 | if test ${ac_cv_mvwdelch_is_expression+y} |
| 18485 | then : |
| 18486 | printf %s "(cached) " >&6 |
| 18487 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18489 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18490 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18491 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18492 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18493 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18494 | |
| 18495 | int rtn; |
| 18496 | rtn = mvwdelch(0,0,0); |
| 18497 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18498 | ; |
| 18499 | return 0; |
| 18500 | } |
| 18501 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18502 | if ac_fn_c_try_compile "$LINENO" |
| 18503 | then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18504 | ac_cv_mvwdelch_is_expression=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18505 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18506 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18507 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18508 | 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] | 18509 | fi |
| 18510 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 18512 | printf "%s\n" "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18513 | |
| 18514 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 18515 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18516 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18517 | printf "%s\n" "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18518 | |
| 18519 | fi |
| 18520 | |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18521 | # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque |
| 18522 | # structs since version 5.7. If the macro is defined as zero before including |
| 18523 | # [n]curses.h, ncurses will expose fields of the structs regardless of the |
| 18524 | # configuration. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18525 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
| 18526 | printf %s "checking whether WINDOW has _flags... " >&6; } |
| 18527 | if test ${ac_cv_window_has_flags+y} |
| 18528 | then : |
| 18529 | printf %s "(cached) " >&6 |
| 18530 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18532 | /* end confdefs.h. */ |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18533 | |
| 18534 | #define NCURSES_OPAQUE 0 |
| 18535 | #include <curses.h> |
| 18536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18537 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18538 | main (void) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18539 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18540 | |
| 18541 | WINDOW *w; |
| 18542 | w->_flags = 0; |
| 18543 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18544 | ; |
| 18545 | return 0; |
| 18546 | } |
| 18547 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18548 | if ac_fn_c_try_compile "$LINENO" |
| 18549 | then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18550 | ac_cv_window_has_flags=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18551 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18552 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18553 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18554 | 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] | 18555 | fi |
| 18556 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
| 18558 | printf "%s\n" "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18559 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18560 | |
| 18561 | if test "$ac_cv_window_has_flags" = yes |
| 18562 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18563 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18564 | printf "%s\n" "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18565 | |
| 18566 | fi |
| 18567 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18568 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 |
| 18569 | printf %s "checking for is_pad... " >&6; } |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18571 | /* end confdefs.h. */ |
| 18572 | #include <curses.h> |
| 18573 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18574 | main (void) |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18575 | { |
| 18576 | |
| 18577 | #ifndef is_pad |
| 18578 | void *x=is_pad |
| 18579 | #endif |
| 18580 | |
| 18581 | ; |
| 18582 | return 0; |
| 18583 | } |
| 18584 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18585 | if ac_fn_c_try_compile "$LINENO" |
| 18586 | then : |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18587 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18588 | printf "%s\n" "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18589 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18591 | printf "%s\n" "yes" >&6; } |
| 18592 | else $as_nop |
| 18593 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18594 | printf "%s\n" "no" >&6; } |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 18595 | |
| 18596 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18597 | 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] | 18598 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
| 18600 | printf %s "checking for is_term_resized... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18602 | /* end confdefs.h. */ |
| 18603 | #include <curses.h> |
| 18604 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18605 | main (void) |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18606 | { |
| 18607 | void *x=is_term_resized |
| 18608 | ; |
| 18609 | return 0; |
| 18610 | } |
| 18611 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18612 | if ac_fn_c_try_compile "$LINENO" |
| 18613 | then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 18614 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18615 | printf "%s\n" "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18616 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18617 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18618 | printf "%s\n" "yes" >&6; } |
| 18619 | else $as_nop |
| 18620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18621 | printf "%s\n" "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18622 | |
| 18623 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18624 | 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] | 18625 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18626 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
| 18627 | printf %s "checking for resize_term... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18629 | /* end confdefs.h. */ |
| 18630 | #include <curses.h> |
| 18631 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18632 | main (void) |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18633 | { |
| 18634 | void *x=resize_term |
| 18635 | ; |
| 18636 | return 0; |
| 18637 | } |
| 18638 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18639 | if ac_fn_c_try_compile "$LINENO" |
| 18640 | then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18641 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18642 | printf "%s\n" "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18643 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18645 | printf "%s\n" "yes" >&6; } |
| 18646 | else $as_nop |
| 18647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18648 | printf "%s\n" "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18649 | |
| 18650 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18651 | 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] | 18652 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18653 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
| 18654 | printf %s "checking for resizeterm... " >&6; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18656 | /* end confdefs.h. */ |
| 18657 | #include <curses.h> |
| 18658 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18659 | main (void) |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18660 | { |
| 18661 | void *x=resizeterm |
| 18662 | ; |
| 18663 | return 0; |
| 18664 | } |
| 18665 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18666 | if ac_fn_c_try_compile "$LINENO" |
| 18667 | then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18668 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18669 | printf "%s\n" "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18670 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18671 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18672 | printf "%s\n" "yes" >&6; } |
| 18673 | else $as_nop |
| 18674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18675 | printf "%s\n" "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18676 | |
| 18677 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18678 | 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] | 18679 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 |
| 18681 | printf %s "checking for immedok... " >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18683 | /* end confdefs.h. */ |
| 18684 | #include <curses.h> |
| 18685 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18686 | main (void) |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18687 | { |
| 18688 | |
| 18689 | #ifndef immedok |
| 18690 | void *x=immedok |
| 18691 | #endif |
| 18692 | |
| 18693 | ; |
| 18694 | return 0; |
| 18695 | } |
| 18696 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18697 | if ac_fn_c_try_compile "$LINENO" |
| 18698 | then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18699 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18700 | printf "%s\n" "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18701 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18703 | printf "%s\n" "yes" >&6; } |
| 18704 | else $as_nop |
| 18705 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18706 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18707 | |
| 18708 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18709 | 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] | 18710 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18711 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 |
| 18712 | printf %s "checking for syncok... " >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18714 | /* end confdefs.h. */ |
| 18715 | #include <curses.h> |
| 18716 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18717 | main (void) |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18718 | { |
| 18719 | |
| 18720 | #ifndef syncok |
| 18721 | void *x=syncok |
| 18722 | #endif |
| 18723 | |
| 18724 | ; |
| 18725 | return 0; |
| 18726 | } |
| 18727 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18728 | if ac_fn_c_try_compile "$LINENO" |
| 18729 | then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18730 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18731 | printf "%s\n" "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18732 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18733 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18734 | printf "%s\n" "yes" >&6; } |
| 18735 | else $as_nop |
| 18736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18737 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18738 | |
| 18739 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18740 | 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] | 18741 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 |
| 18743 | printf %s "checking for wchgat... " >&6; } |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 18744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18745 | /* end confdefs.h. */ |
| 18746 | #include <curses.h> |
| 18747 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18748 | main (void) |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 18749 | { |
| 18750 | |
| 18751 | #ifndef wchgat |
| 18752 | void *x=wchgat |
| 18753 | #endif |
| 18754 | |
| 18755 | ; |
| 18756 | return 0; |
| 18757 | } |
| 18758 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18759 | if ac_fn_c_try_compile "$LINENO" |
| 18760 | then : |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 18761 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18762 | printf "%s\n" "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 18763 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18765 | printf "%s\n" "yes" >&6; } |
| 18766 | else $as_nop |
| 18767 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18768 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 18769 | |
| 18770 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18771 | 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] | 18772 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 |
| 18774 | printf %s "checking for filter... " >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18776 | /* end confdefs.h. */ |
| 18777 | #include <curses.h> |
| 18778 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18779 | main (void) |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18780 | { |
| 18781 | |
| 18782 | #ifndef filter |
| 18783 | void *x=filter |
| 18784 | #endif |
| 18785 | |
| 18786 | ; |
| 18787 | return 0; |
| 18788 | } |
| 18789 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18790 | if ac_fn_c_try_compile "$LINENO" |
| 18791 | then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18792 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18793 | printf "%s\n" "#define HAVE_CURSES_FILTER 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18794 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18795 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18796 | printf "%s\n" "yes" >&6; } |
| 18797 | else $as_nop |
| 18798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18799 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18800 | |
| 18801 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18802 | 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] | 18803 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18804 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 |
| 18805 | printf %s "checking for has_key... " >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18807 | /* end confdefs.h. */ |
| 18808 | #include <curses.h> |
| 18809 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18810 | main (void) |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18811 | { |
| 18812 | |
| 18813 | #ifndef has_key |
| 18814 | void *x=has_key |
| 18815 | #endif |
| 18816 | |
| 18817 | ; |
| 18818 | return 0; |
| 18819 | } |
| 18820 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18821 | if ac_fn_c_try_compile "$LINENO" |
| 18822 | then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18823 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18824 | printf "%s\n" "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18825 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18826 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18827 | printf "%s\n" "yes" >&6; } |
| 18828 | else $as_nop |
| 18829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18830 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18831 | |
| 18832 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18833 | 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] | 18834 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18835 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 |
| 18836 | printf %s "checking for typeahead... " >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18838 | /* end confdefs.h. */ |
| 18839 | #include <curses.h> |
| 18840 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18841 | main (void) |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18842 | { |
| 18843 | |
| 18844 | #ifndef typeahead |
| 18845 | void *x=typeahead |
| 18846 | #endif |
| 18847 | |
| 18848 | ; |
| 18849 | return 0; |
| 18850 | } |
| 18851 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18852 | if ac_fn_c_try_compile "$LINENO" |
| 18853 | then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18854 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18855 | printf "%s\n" "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18856 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18857 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18858 | printf "%s\n" "yes" >&6; } |
| 18859 | else $as_nop |
| 18860 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18861 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18862 | |
| 18863 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18864 | 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] | 18865 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 |
| 18867 | printf %s "checking for use_env... " >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18869 | /* end confdefs.h. */ |
| 18870 | #include <curses.h> |
| 18871 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18872 | main (void) |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18873 | { |
| 18874 | |
| 18875 | #ifndef use_env |
| 18876 | void *x=use_env |
| 18877 | #endif |
| 18878 | |
| 18879 | ; |
| 18880 | return 0; |
| 18881 | } |
| 18882 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18883 | if ac_fn_c_try_compile "$LINENO" |
| 18884 | then : |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18885 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18886 | printf "%s\n" "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18887 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18888 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18889 | printf "%s\n" "yes" >&6; } |
| 18890 | else $as_nop |
| 18891 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18892 | printf "%s\n" "no" >&6; } |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 18893 | |
| 18894 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18895 | 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] | 18896 | # last curses configure check |
| 18897 | CPPFLAGS=$ac_save_cppflags |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18898 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 |
| 18900 | printf "%s\n" "$as_me: checking for device files" >&6;} |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 18901 | |
| 18902 | if test "x$cross_compiling" = xyes; then |
| 18903 | if test "${ac_cv_file__dev_ptmx+set}" != set; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18904 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 18905 | printf %s "checking for /dev/ptmx... " >&6; } |
| 18906 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 18907 | printf "%s\n" "not set" >&6; } |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 18908 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 18909 | fi |
| 18910 | if test "${ac_cv_file__dev_ptc+set}" != set; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18911 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 18912 | printf %s "checking for /dev/ptc... " >&6; } |
| 18913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 18914 | printf "%s\n" "not set" >&6; } |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 18915 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 18916 | fi |
| 18917 | fi |
| 18918 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 18920 | printf %s "checking for /dev/ptmx... " >&6; } |
| 18921 | if test ${ac_cv_file__dev_ptmx+y} |
| 18922 | then : |
| 18923 | printf %s "(cached) " >&6 |
| 18924 | else $as_nop |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 18925 | test "$cross_compiling" = yes && |
| 18926 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 18927 | if test -r "/dev/ptmx"; then |
| 18928 | ac_cv_file__dev_ptmx=yes |
| 18929 | else |
| 18930 | ac_cv_file__dev_ptmx=no |
| 18931 | fi |
| 18932 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18933 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 |
| 18934 | printf "%s\n" "$ac_cv_file__dev_ptmx" >&6; } |
| 18935 | if test "x$ac_cv_file__dev_ptmx" = xyes |
| 18936 | then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18937 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 18938 | fi |
| 18939 | |
| 18940 | if test "x$ac_cv_file__dev_ptmx" = xyes; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 18941 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18942 | printf "%s\n" "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 18943 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 18944 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 18946 | printf %s "checking for /dev/ptc... " >&6; } |
| 18947 | if test ${ac_cv_file__dev_ptc+y} |
| 18948 | then : |
| 18949 | printf %s "(cached) " >&6 |
| 18950 | else $as_nop |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 18951 | test "$cross_compiling" = yes && |
| 18952 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 18953 | if test -r "/dev/ptc"; then |
| 18954 | ac_cv_file__dev_ptc=yes |
| 18955 | else |
| 18956 | ac_cv_file__dev_ptc=no |
| 18957 | fi |
| 18958 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18959 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 |
| 18960 | printf "%s\n" "$ac_cv_file__dev_ptc" >&6; } |
| 18961 | if test "x$ac_cv_file__dev_ptc" = xyes |
| 18962 | then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18963 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 18964 | fi |
| 18965 | |
| 18966 | if test "x$ac_cv_file__dev_ptc" = xyes; then |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 18967 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18968 | printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 18969 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 18970 | fi |
| 18971 | |
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 18972 | if test $ac_sys_system = Darwin |
| 18973 | then |
| 18974 | LIBS="$LIBS -framework CoreFoundation" |
| 18975 | fi |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 18976 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
| 18978 | printf %s "checking for %zd printf() format support... " >&6; } |
| 18979 | if test ${ac_cv_have_size_t_format+y} |
| 18980 | then : |
| 18981 | printf %s "(cached) " >&6 |
| 18982 | else $as_nop |
| 18983 | if test "$cross_compiling" = yes |
| 18984 | then : |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 18985 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 18986 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 18987 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18989 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18990 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18991 | #include <stdio.h> |
| 18992 | #include <stddef.h> |
| 18993 | #include <string.h> |
| 18994 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 18995 | #ifdef HAVE_SYS_TYPES_H |
| 18996 | #include <sys/types.h> |
| 18997 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18998 | |
| 18999 | #ifdef HAVE_SSIZE_T |
| 19000 | typedef ssize_t Py_ssize_t; |
| 19001 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 19002 | typedef long Py_ssize_t; |
| 19003 | #else |
| 19004 | typedef int Py_ssize_t; |
| 19005 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19006 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 19007 | int main() |
| 19008 | { |
| 19009 | char buffer[256]; |
| 19010 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19011 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 19012 | return 1; |
| 19013 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19014 | if (strcmp(buffer, "123")) |
| 19015 | return 1; |
| 19016 | |
| 19017 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 19018 | return 1; |
| 19019 | |
| 19020 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19021 | return 1; |
| 19022 | |
| 19023 | return 0; |
| 19024 | } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 19025 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19026 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19027 | if ac_fn_c_try_run "$LINENO" |
| 19028 | then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 19029 | ac_cv_have_size_t_format=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19030 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19031 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19032 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19033 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19034 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 19035 | fi |
| 19036 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 19037 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19038 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
| 19039 | printf "%s\n" "$ac_cv_have_size_t_format" >&6; } |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 19040 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 19041 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19042 | printf "%s\n" "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 19043 | |
| 19044 | fi |
| 19045 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19046 | 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] | 19047 | #ifdef HAVE_SYS_TYPES_H |
| 19048 | #include <sys/types.h> |
| 19049 | #endif |
| 19050 | #ifdef HAVE_SYS_SOCKET_H |
| 19051 | #include <sys/socket.h> |
| 19052 | #endif |
| 19053 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19054 | " |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19055 | if test "x$ac_cv_type_socklen_t" = xyes |
| 19056 | then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 19057 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19058 | else $as_nop |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 19059 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19060 | printf "%s\n" "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 19061 | |
| 19062 | fi |
| 19063 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19064 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19065 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
| 19066 | printf %s "checking for broken mbstowcs... " >&6; } |
| 19067 | if test ${ac_cv_broken_mbstowcs+y} |
| 19068 | then : |
| 19069 | printf %s "(cached) " >&6 |
| 19070 | else $as_nop |
| 19071 | if test "$cross_compiling" = yes |
| 19072 | then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19073 | ac_cv_broken_mbstowcs=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19074 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19076 | /* end confdefs.h. */ |
| 19077 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 19078 | #include <stdio.h> |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19079 | #include<stdlib.h> |
| 19080 | int main() { |
| 19081 | size_t len = -1; |
| 19082 | const char *str = "text"; |
| 19083 | len = mbstowcs(NULL, str, 0); |
| 19084 | return (len != 4); |
| 19085 | } |
| 19086 | |
| 19087 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19088 | if ac_fn_c_try_run "$LINENO" |
| 19089 | then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19090 | ac_cv_broken_mbstowcs=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19091 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19092 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19093 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19094 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19095 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19096 | fi |
| 19097 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 19098 | fi |
| 19099 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
| 19101 | printf "%s\n" "$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19102 | if test "$ac_cv_broken_mbstowcs" = yes |
| 19103 | then |
| 19104 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19105 | printf "%s\n" "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 19106 | |
| 19107 | fi |
| 19108 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19109 | # Check for --with-computed-gotos |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19110 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
| 19111 | printf %s "checking for --with-computed-gotos... " >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19112 | |
| 19113 | # Check whether --with-computed-gotos was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19114 | if test ${with_computed_gotos+y} |
| 19115 | then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19116 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 19117 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19118 | then |
| 19119 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19120 | printf "%s\n" "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19121 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19122 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19123 | printf "%s\n" "yes" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19124 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 19125 | if test "$withval" = no |
| 19126 | then |
| 19127 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19128 | printf "%s\n" "#define USE_COMPUTED_GOTOS 0" >>confdefs.h |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 19129 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19130 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19131 | printf "%s\n" "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19132 | fi |
| 19133 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19134 | else $as_nop |
| 19135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 19136 | printf "%s\n" "no value specified" >&6; } |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 19137 | fi |
| 19138 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19139 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19140 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
| 19141 | printf %s "checking whether $CC supports computed gotos... " >&6; } |
| 19142 | if test ${ac_cv_computed_gotos+y} |
| 19143 | then : |
| 19144 | printf %s "(cached) " >&6 |
| 19145 | else $as_nop |
| 19146 | if test "$cross_compiling" = yes |
| 19147 | then : |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 19148 | if test "${with_computed_gotos+set}" = set; then |
| 19149 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" |
| 19150 | else |
| 19151 | ac_cv_computed_gotos=no |
| 19152 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19153 | else $as_nop |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 19154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19155 | /* end confdefs.h. */ |
| 19156 | |
| 19157 | int main(int argc, char **argv) |
| 19158 | { |
| 19159 | static void *targets[1] = { &&LABEL1 }; |
| 19160 | goto LABEL2; |
| 19161 | LABEL1: |
| 19162 | return 0; |
| 19163 | LABEL2: |
| 19164 | goto *targets[0]; |
| 19165 | return 1; |
| 19166 | } |
| 19167 | |
| 19168 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19169 | if ac_fn_c_try_run "$LINENO" |
| 19170 | then : |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 19171 | ac_cv_computed_gotos=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19172 | else $as_nop |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 19173 | ac_cv_computed_gotos=no |
| 19174 | fi |
| 19175 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19176 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19177 | fi |
| 19178 | |
| 19179 | fi |
| 19180 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19181 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 |
| 19182 | printf "%s\n" "$ac_cv_computed_gotos" >&6; } |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 19183 | case "$ac_cv_computed_gotos" in yes*) |
| 19184 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19185 | printf "%s\n" "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 19186 | |
| 19187 | esac |
| 19188 | |
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 19189 | case $ac_sys_system in |
| 19190 | AIX*) |
| 19191 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19192 | printf "%s\n" "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h |
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 19193 | ;; |
| 19194 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19195 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19196 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 19197 | |
| 19198 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 19199 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 19200 | do |
| 19201 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 19202 | done |
| 19203 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19204 | |
Ned Deily | 8d02f91 | 2020-06-25 10:46:44 -0400 | [diff] [blame] | 19205 | SRCDIRS="Parser Objects Python Modules Modules/_io Programs" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
| 19207 | printf %s "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 19208 | for dir in $SRCDIRS; do |
| 19209 | if test ! -d $dir; then |
| 19210 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 19211 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 19212 | done |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 19214 | printf "%s\n" "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 19215 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19216 | # Availability of -O2: |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 |
| 19218 | printf %s "checking for -O2... " >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19219 | saved_cflags="$CFLAGS" |
| 19220 | CFLAGS="-O2" |
| 19221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19222 | /* end confdefs.h. */ |
| 19223 | |
| 19224 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19225 | main (void) |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19226 | { |
| 19227 | |
| 19228 | |
| 19229 | ; |
| 19230 | return 0; |
| 19231 | } |
| 19232 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19233 | if ac_fn_c_try_compile "$LINENO" |
| 19234 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19235 | have_O2=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19236 | else $as_nop |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19237 | have_O2=no |
| 19238 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19239 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19240 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 |
| 19241 | printf "%s\n" "$have_O2" >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19242 | CFLAGS="$saved_cflags" |
| 19243 | |
| 19244 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: |
| 19245 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19246 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 |
| 19247 | printf %s "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19248 | saved_cflags="$CFLAGS" |
| 19249 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" |
| 19250 | if test "$have_O2" = no; then |
| 19251 | CFLAGS="" |
| 19252 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19253 | if test "$cross_compiling" = yes |
| 19254 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19255 | have_glibc_memmove_bug=undefined |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19256 | else $as_nop |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19258 | /* end confdefs.h. */ |
| 19259 | |
| 19260 | #include <stdio.h> |
| 19261 | #include <stdlib.h> |
| 19262 | #include <string.h> |
| 19263 | void foo(void *p, void *q) { memmove(p, q, 19); } |
| 19264 | int main() { |
| 19265 | char a[32] = "123456789000000000"; |
| 19266 | foo(&a[9], a); |
| 19267 | if (strcmp(a, "123456789123456789000000000") != 0) |
| 19268 | return 1; |
| 19269 | foo(a, &a[9]); |
| 19270 | if (strcmp(a, "123456789000000000") != 0) |
| 19271 | return 1; |
| 19272 | return 0; |
| 19273 | } |
| 19274 | |
| 19275 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19276 | if ac_fn_c_try_run "$LINENO" |
| 19277 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19278 | have_glibc_memmove_bug=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19279 | else $as_nop |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19280 | have_glibc_memmove_bug=yes |
| 19281 | fi |
| 19282 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19283 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19284 | fi |
| 19285 | |
| 19286 | CFLAGS="$saved_cflags" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19287 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 |
| 19288 | printf "%s\n" "$have_glibc_memmove_bug" >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19289 | if test "$have_glibc_memmove_bug" = yes; then |
| 19290 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19291 | printf "%s\n" "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19292 | |
| 19293 | fi |
| 19294 | |
| 19295 | if test "$have_gcc_asm_for_x87" = yes; then |
| 19296 | # Some versions of gcc miscompile inline asm: |
| 19297 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 |
| 19298 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html |
| 19299 | case $CC in |
| 19300 | *gcc*) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 |
| 19302 | printf %s "checking for gcc ipa-pure-const bug... " >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19303 | saved_cflags="$CFLAGS" |
| 19304 | CFLAGS="-O2" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19305 | if test "$cross_compiling" = yes |
| 19306 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19307 | have_ipa_pure_const_bug=undefined |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19308 | else $as_nop |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19310 | /* end confdefs.h. */ |
| 19311 | |
| 19312 | __attribute__((noinline)) int |
| 19313 | foo(int *p) { |
| 19314 | int r; |
| 19315 | asm ( "movl \$6, (%1)\n\t" |
| 19316 | "xorl %0, %0\n\t" |
| 19317 | : "=r" (r) : "r" (p) : "memory" |
| 19318 | ); |
| 19319 | return r; |
| 19320 | } |
| 19321 | int main() { |
| 19322 | int p = 8; |
| 19323 | if ((foo(&p) ? : p) != 6) |
| 19324 | return 1; |
| 19325 | return 0; |
| 19326 | } |
| 19327 | |
| 19328 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19329 | if ac_fn_c_try_run "$LINENO" |
| 19330 | then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19331 | have_ipa_pure_const_bug=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19332 | else $as_nop |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19333 | have_ipa_pure_const_bug=yes |
| 19334 | fi |
| 19335 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19336 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19337 | fi |
| 19338 | |
| 19339 | CFLAGS="$saved_cflags" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 |
| 19341 | printf "%s\n" "$have_ipa_pure_const_bug" >&6; } |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19342 | if test "$have_ipa_pure_const_bug" = yes; then |
| 19343 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19344 | printf "%s\n" "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 19345 | |
| 19346 | fi |
| 19347 | ;; |
| 19348 | esac |
| 19349 | fi |
| 19350 | |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19351 | # Check for stdatomic.h |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 |
| 19353 | printf %s "checking for stdatomic.h... " >&6; } |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19355 | /* end confdefs.h. */ |
| 19356 | |
| 19357 | |
| 19358 | #include <stdatomic.h> |
Victor Stinner | 028f734 | 2019-10-22 21:53:50 +0200 | [diff] [blame] | 19359 | atomic_int int_var; |
| 19360 | atomic_uintptr_t uintptr_var; |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19361 | int main() { |
Victor Stinner | 028f734 | 2019-10-22 21:53:50 +0200 | [diff] [blame] | 19362 | atomic_store_explicit(&int_var, 5, memory_order_relaxed); |
| 19363 | atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed); |
| 19364 | int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst); |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19365 | return 0; |
| 19366 | } |
| 19367 | |
| 19368 | |
| 19369 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19370 | if ac_fn_c_try_link "$LINENO" |
| 19371 | then : |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19372 | have_stdatomic_h=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19373 | else $as_nop |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19374 | have_stdatomic_h=no |
| 19375 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19376 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19377 | conftest$ac_exeext conftest.$ac_ext |
| 19378 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 |
| 19380 | printf "%s\n" "$have_stdatomic_h" >&6; } |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19381 | |
| 19382 | if test "$have_stdatomic_h" = yes; then |
| 19383 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19384 | printf "%s\n" "#define HAVE_STD_ATOMIC 1" >>confdefs.h |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19385 | |
| 19386 | fi |
| 19387 | |
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 19388 | # Check for GCC >= 4.7 and clang __atomic builtin functions |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic_load_n and __atomic_store_n functions" >&5 |
| 19390 | 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] | 19391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19392 | /* end confdefs.h. */ |
| 19393 | |
| 19394 | |
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 19395 | int val; |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19396 | int main() { |
Victor Stinner | 52a327c | 2020-12-23 03:41:08 +0100 | [diff] [blame] | 19397 | __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST); |
| 19398 | (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST); |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19399 | return 0; |
| 19400 | } |
| 19401 | |
| 19402 | |
| 19403 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19404 | if ac_fn_c_try_link "$LINENO" |
| 19405 | then : |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19406 | have_builtin_atomic=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19407 | else $as_nop |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19408 | have_builtin_atomic=no |
| 19409 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19410 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19411 | conftest$ac_exeext conftest.$ac_ext |
| 19412 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19413 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 |
| 19414 | printf "%s\n" "$have_builtin_atomic" >&6; } |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19415 | |
| 19416 | if test "$have_builtin_atomic" = yes; then |
| 19417 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19418 | printf "%s\n" "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 19419 | |
| 19420 | fi |
| 19421 | |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 19422 | # ensurepip option |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 |
| 19424 | printf %s "checking for ensurepip... " >&6; } |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 19425 | |
| 19426 | # Check whether --with-ensurepip was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19427 | if test ${with_ensurepip+y} |
| 19428 | then : |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 19429 | withval=$with_ensurepip; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19430 | else $as_nop |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 19431 | with_ensurepip=upgrade |
| 19432 | fi |
| 19433 | |
| 19434 | case $with_ensurepip in #( |
| 19435 | yes|upgrade) : |
| 19436 | ENSUREPIP=upgrade ;; #( |
| 19437 | install) : |
| 19438 | ENSUREPIP=install ;; #( |
| 19439 | no) : |
| 19440 | ENSUREPIP=no ;; #( |
| 19441 | *) : |
| 19442 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; |
| 19443 | esac |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19444 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 |
| 19445 | printf "%s\n" "$ENSUREPIP" >&6; } |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 19446 | |
| 19447 | |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 19448 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19449 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 |
| 19450 | 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] | 19451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19452 | /* end confdefs.h. */ |
| 19453 | |
| 19454 | |
| 19455 | #include <dirent.h> |
| 19456 | |
| 19457 | int main() { |
| 19458 | struct dirent entry; |
| 19459 | return entry.d_type == DT_UNKNOWN; |
| 19460 | } |
| 19461 | |
| 19462 | |
| 19463 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19464 | if ac_fn_c_try_link "$LINENO" |
| 19465 | then : |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 19466 | have_dirent_d_type=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19467 | else $as_nop |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 19468 | have_dirent_d_type=no |
| 19469 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19470 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 19471 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19472 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 |
| 19473 | printf "%s\n" "$have_dirent_d_type" >&6; } |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 19474 | |
| 19475 | if test "$have_dirent_d_type" = yes; then |
| 19476 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19477 | printf "%s\n" "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 19478 | |
| 19479 | fi |
| 19480 | |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19481 | # check if the Linux getrandom() syscall is available |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19482 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 |
| 19483 | printf %s "checking for the Linux getrandom() syscall... " >&6; } |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19485 | /* end confdefs.h. */ |
| 19486 | |
| 19487 | |
Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 19488 | #include <unistd.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19489 | #include <sys/syscall.h> |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 19490 | #include <linux/random.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19491 | |
| 19492 | int main() { |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19493 | char buffer[1]; |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19494 | const size_t buflen = sizeof(buffer); |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 19495 | const int flags = GRND_NONBLOCK; |
| 19496 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19497 | (void)syscall(SYS_getrandom, buffer, buflen, flags); |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19498 | return 0; |
| 19499 | } |
| 19500 | |
| 19501 | |
| 19502 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19503 | if ac_fn_c_try_link "$LINENO" |
| 19504 | then : |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19505 | have_getrandom_syscall=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19506 | else $as_nop |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19507 | have_getrandom_syscall=no |
| 19508 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19509 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19510 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 |
| 19512 | printf "%s\n" "$have_getrandom_syscall" >&6; } |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19513 | |
| 19514 | if test "$have_getrandom_syscall" = yes; then |
| 19515 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19516 | printf "%s\n" "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 19517 | |
| 19518 | fi |
| 19519 | |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19520 | # check if the getrandom() function is available |
| 19521 | # the test was written for the Solaris function of <sys/random.h> |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19522 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 |
| 19523 | printf %s "checking for the getrandom() function... " >&6; } |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19525 | /* end confdefs.h. */ |
| 19526 | |
| 19527 | |
| 19528 | #include <sys/random.h> |
| 19529 | |
| 19530 | int main() { |
| 19531 | char buffer[1]; |
| 19532 | const size_t buflen = sizeof(buffer); |
| 19533 | const int flags = 0; |
| 19534 | /* ignore the result, Python checks for ENOSYS at runtime */ |
| 19535 | (void)getrandom(buffer, buflen, flags); |
| 19536 | return 0; |
| 19537 | } |
| 19538 | |
| 19539 | |
| 19540 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19541 | if ac_fn_c_try_link "$LINENO" |
| 19542 | then : |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19543 | have_getrandom=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19544 | else $as_nop |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19545 | have_getrandom=no |
| 19546 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19547 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19548 | conftest$ac_exeext conftest.$ac_ext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19549 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 |
| 19550 | printf "%s\n" "$have_getrandom" >&6; } |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19551 | |
| 19552 | if test "$have_getrandom" = yes; then |
| 19553 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19554 | printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 19555 | |
| 19556 | fi |
| 19557 | |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19558 | # checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c |
| 19559 | # shm_* may only be available if linking against librt |
| 19560 | save_LIBS="$LIBS" |
| 19561 | save_includes_default="$ac_includes_default" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 |
| 19563 | printf %s "checking for library containing shm_open... " >&6; } |
| 19564 | if test ${ac_cv_search_shm_open+y} |
| 19565 | then : |
| 19566 | printf %s "(cached) " >&6 |
| 19567 | else $as_nop |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19568 | ac_func_search_save_LIBS=$LIBS |
| 19569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19570 | /* end confdefs.h. */ |
| 19571 | |
| 19572 | /* Override any GCC internal prototype to avoid an error. |
| 19573 | Use char because int might match the return type of a GCC |
| 19574 | builtin and then its argument prototype would still apply. */ |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19575 | char shm_open (); |
| 19576 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19577 | main (void) |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19578 | { |
| 19579 | return shm_open (); |
| 19580 | ; |
| 19581 | return 0; |
| 19582 | } |
| 19583 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19584 | for ac_lib in '' rt |
| 19585 | do |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19586 | if test -z "$ac_lib"; then |
| 19587 | ac_res="none required" |
| 19588 | else |
| 19589 | ac_res=-l$ac_lib |
| 19590 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19591 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19592 | if ac_fn_c_try_link "$LINENO" |
| 19593 | then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19594 | ac_cv_search_shm_open=$ac_res |
| 19595 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19596 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19597 | conftest$ac_exeext |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19598 | if test ${ac_cv_search_shm_open+y} |
| 19599 | then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19600 | break |
| 19601 | fi |
| 19602 | done |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19603 | if test ${ac_cv_search_shm_open+y} |
| 19604 | then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19605 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19606 | else $as_nop |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19607 | ac_cv_search_shm_open=no |
| 19608 | fi |
| 19609 | rm conftest.$ac_ext |
| 19610 | LIBS=$ac_func_search_save_LIBS |
| 19611 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19612 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 |
| 19613 | printf "%s\n" "$ac_cv_search_shm_open" >&6; } |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19614 | ac_res=$ac_cv_search_shm_open |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19615 | if test "$ac_res" != no |
| 19616 | then : |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19617 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 19618 | |
| 19619 | fi |
| 19620 | |
| 19621 | if test "$ac_cv_search_shm_open" = "-lrt"; then |
| 19622 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19623 | printf "%s\n" "#define SHM_NEEDS_LIBRT 1" >>confdefs.h |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19624 | |
| 19625 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19626 | ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
| 19627 | if test "x$ac_cv_header_sys_mman_h" = xyes |
| 19628 | then : |
| 19629 | printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19630 | |
| 19631 | fi |
| 19632 | |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19633 | # temporarily override ac_includes_default for AC_CHECK_FUNCS below |
| 19634 | ac_includes_default="\ |
| 19635 | ${ac_includes_default} |
| 19636 | #ifndef __cplusplus |
| 19637 | # ifdef HAVE_SYS_MMAN_H |
| 19638 | # include <sys/mman.h> |
| 19639 | # endif |
| 19640 | #endif |
| 19641 | " |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19642 | ac_fn_c_check_func "$LINENO" "shm_open" "ac_cv_func_shm_open" |
| 19643 | if test "x$ac_cv_func_shm_open" = xyes |
| 19644 | then : |
| 19645 | printf "%s\n" "#define HAVE_SHM_OPEN 1" >>confdefs.h |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19646 | |
| 19647 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19648 | ac_fn_c_check_func "$LINENO" "shm_unlink" "ac_cv_func_shm_unlink" |
| 19649 | if test "x$ac_cv_func_shm_unlink" = xyes |
| 19650 | then : |
| 19651 | printf "%s\n" "#define HAVE_SHM_UNLINK 1" >>confdefs.h |
| 19652 | |
| 19653 | fi |
Neil Schemenauer | 5741c45 | 2019-02-08 10:48:46 -0800 | [diff] [blame] | 19654 | |
| 19655 | # we don't want to link with librt always, restore LIBS |
| 19656 | LIBS="$save_LIBS" |
| 19657 | ac_includes_default="$save_includes_default" |
| 19658 | |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19659 | # Check for usable OpenSSL |
| 19660 | |
| 19661 | found=false |
| 19662 | |
| 19663 | # Check whether --with-openssl was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19664 | if test ${with_openssl+y} |
| 19665 | then : |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19666 | withval=$with_openssl; |
| 19667 | case "$withval" in |
| 19668 | "" | y | ye | yes | n | no) |
| 19669 | as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 |
| 19670 | ;; |
| 19671 | *) ssldirs="$withval" |
| 19672 | ;; |
| 19673 | esac |
| 19674 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19675 | else $as_nop |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19676 | |
| 19677 | # if pkg-config is installed and openssl has installed a .pc file, |
| 19678 | # then use that information and don't search ssldirs |
| 19679 | if test -n "$ac_tool_prefix"; then |
| 19680 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 19681 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 19683 | printf %s "checking for $ac_word... " >&6; } |
| 19684 | if test ${ac_cv_prog_PKG_CONFIG+y} |
| 19685 | then : |
| 19686 | printf %s "(cached) " >&6 |
| 19687 | else $as_nop |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19688 | if test -n "$PKG_CONFIG"; then |
| 19689 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 19690 | else |
| 19691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19692 | for as_dir in $PATH |
| 19693 | do |
| 19694 | IFS=$as_save_IFS |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19695 | case $as_dir in #((( |
| 19696 | '') as_dir=./ ;; |
| 19697 | */) ;; |
| 19698 | *) as_dir=$as_dir/ ;; |
| 19699 | esac |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19700 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19701 | 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] | 19702 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19703 | 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] | 19704 | break 2 |
| 19705 | fi |
| 19706 | done |
| 19707 | done |
| 19708 | IFS=$as_save_IFS |
| 19709 | |
| 19710 | fi |
| 19711 | fi |
| 19712 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 19713 | if test -n "$PKG_CONFIG"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19714 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 19715 | printf "%s\n" "$PKG_CONFIG" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19716 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19717 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19718 | printf "%s\n" "no" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19719 | fi |
| 19720 | |
| 19721 | |
| 19722 | fi |
| 19723 | if test -z "$ac_cv_prog_PKG_CONFIG"; then |
| 19724 | ac_ct_PKG_CONFIG=$PKG_CONFIG |
| 19725 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 19726 | set dummy pkg-config; ac_word=$2 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 19728 | printf %s "checking for $ac_word... " >&6; } |
| 19729 | if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} |
| 19730 | then : |
| 19731 | printf %s "(cached) " >&6 |
| 19732 | else $as_nop |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19733 | if test -n "$ac_ct_PKG_CONFIG"; then |
| 19734 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. |
| 19735 | else |
| 19736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19737 | for as_dir in $PATH |
| 19738 | do |
| 19739 | IFS=$as_save_IFS |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19740 | case $as_dir in #((( |
| 19741 | '') as_dir=./ ;; |
| 19742 | */) ;; |
| 19743 | *) as_dir=$as_dir/ ;; |
| 19744 | esac |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19745 | for ac_exec_ext in '' $ac_executable_extensions; do |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19746 | 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] | 19747 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19748 | 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] | 19749 | break 2 |
| 19750 | fi |
| 19751 | done |
| 19752 | done |
| 19753 | IFS=$as_save_IFS |
| 19754 | |
| 19755 | fi |
| 19756 | fi |
| 19757 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG |
| 19758 | if test -n "$ac_ct_PKG_CONFIG"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 |
| 19760 | printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19761 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19763 | printf "%s\n" "no" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19764 | fi |
| 19765 | |
| 19766 | if test "x$ac_ct_PKG_CONFIG" = x; then |
| 19767 | PKG_CONFIG="" |
| 19768 | else |
| 19769 | case $cross_compiling:$ac_tool_warned in |
| 19770 | yes:) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19771 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 19772 | 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] | 19773 | ac_tool_warned=yes ;; |
| 19774 | esac |
| 19775 | PKG_CONFIG=$ac_ct_PKG_CONFIG |
| 19776 | fi |
| 19777 | else |
| 19778 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" |
| 19779 | fi |
| 19780 | |
| 19781 | if test x"$PKG_CONFIG" != x""; then |
| 19782 | OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` |
| 19783 | if test $? = 0; then |
| 19784 | OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` |
| 19785 | OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` |
| 19786 | found=true |
| 19787 | fi |
| 19788 | fi |
| 19789 | |
| 19790 | # no such luck; use some default ssldirs |
| 19791 | if ! $found; then |
| 19792 | ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" |
| 19793 | fi |
| 19794 | |
| 19795 | |
| 19796 | fi |
| 19797 | |
| 19798 | |
| 19799 | |
| 19800 | # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in |
| 19801 | # an 'openssl' subdirectory |
| 19802 | |
| 19803 | if ! $found; then |
| 19804 | OPENSSL_INCLUDES= |
| 19805 | for ssldir in $ssldirs; do |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19806 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 |
| 19807 | printf %s "checking for openssl/ssl.h in $ssldir... " >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19808 | if test -f "$ssldir/include/openssl/ssl.h"; then |
| 19809 | OPENSSL_INCLUDES="-I$ssldir/include" |
| 19810 | OPENSSL_LDFLAGS="-L$ssldir/lib" |
| 19811 | OPENSSL_LIBS="-lssl -lcrypto" |
| 19812 | found=true |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19813 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19814 | printf "%s\n" "yes" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19815 | break |
| 19816 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19818 | printf "%s\n" "no" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19819 | fi |
| 19820 | done |
| 19821 | |
| 19822 | # if the file wasn't found, well, go ahead and try the link anyway -- maybe |
| 19823 | # it will just work! |
| 19824 | fi |
| 19825 | |
| 19826 | # try the preprocessor and linker with our new flags, |
| 19827 | # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS |
| 19828 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 |
| 19830 | printf %s "checking whether compiling and linking against OpenSSL works... " >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19831 | echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ |
| 19832 | "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 |
| 19833 | |
| 19834 | save_LIBS="$LIBS" |
| 19835 | save_LDFLAGS="$LDFLAGS" |
| 19836 | save_CPPFLAGS="$CPPFLAGS" |
| 19837 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" |
| 19838 | LIBS="$OPENSSL_LIBS $LIBS" |
| 19839 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" |
| 19840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19841 | /* end confdefs.h. */ |
| 19842 | #include <openssl/ssl.h> |
| 19843 | int |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19844 | main (void) |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19845 | { |
| 19846 | SSL_new(NULL) |
| 19847 | ; |
| 19848 | return 0; |
| 19849 | } |
| 19850 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19851 | if ac_fn_c_try_link "$LINENO" |
| 19852 | then : |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19853 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19854 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19855 | printf "%s\n" "yes" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19856 | have_openssl=yes |
| 19857 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19858 | else $as_nop |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19859 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19860 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19861 | printf "%s\n" "no" >&6; } |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19862 | have_openssl=no |
| 19863 | |
| 19864 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19865 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 19866 | conftest$ac_exeext conftest.$ac_ext |
| 19867 | CPPFLAGS="$save_CPPFLAGS" |
| 19868 | LDFLAGS="$save_LDFLAGS" |
| 19869 | LIBS="$save_LIBS" |
| 19870 | |
| 19871 | |
| 19872 | |
| 19873 | |
| 19874 | |
| 19875 | |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19876 | # rpath to libssl and libcrypto |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-openssl-rpath" >&5 |
| 19878 | printf %s "checking for --with-openssl-rpath... " >&6; } |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19879 | |
| 19880 | # Check whether --with-openssl-rpath was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19881 | if test ${with_openssl_rpath+y} |
| 19882 | then : |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19883 | withval=$with_openssl_rpath; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19884 | else $as_nop |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19885 | with_openssl_rpath=no |
| 19886 | |
| 19887 | fi |
| 19888 | |
| 19889 | case $with_openssl_rpath in #( |
| 19890 | auto|yes) : |
| 19891 | OPENSSL_RPATH=auto ;; #( |
| 19892 | no) : |
| 19893 | OPENSSL_RPATH= ;; #( |
| 19894 | *) : |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19895 | if test -d "$with_openssl_rpath" |
| 19896 | then : |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19897 | OPENSSL_RPATH="$with_openssl_rpath" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19898 | else $as_nop |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19899 | as_fn_error $? "--with-openssl-rpath \"$with_openssl_rpath\" is not a directory" "$LINENO" 5 |
| 19900 | fi |
| 19901 | |
| 19902 | ;; |
| 19903 | esac |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19904 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_RPATH" >&5 |
| 19905 | printf "%s\n" "$OPENSSL_RPATH" >&6; } |
Christian Heimes | 32eba61 | 2021-03-19 10:29:25 +0100 | [diff] [blame] | 19906 | |
| 19907 | |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 19908 | # ssl module default cipher suite string |
| 19909 | |
| 19910 | |
| 19911 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19912 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5 |
| 19913 | printf %s "checking for --with-ssl-default-suites... " >&6; } |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 19914 | |
| 19915 | # Check whether --with-ssl-default-suites was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19916 | if test ${with_ssl_default_suites+y} |
| 19917 | then : |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 19918 | withval=$with_ssl_default_suites; |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 19920 | printf "%s\n" "$withval" >&6; } |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 19921 | case "$withval" in |
| 19922 | python) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19923 | printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 19924 | |
| 19925 | ;; |
| 19926 | openssl) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19927 | printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 19928 | |
| 19929 | ;; |
| 19930 | *) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19931 | printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 19932 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19933 | printf "%s\n" "#define PY_SSL_DEFAULT_CIPHER_STRING \"$withval\"" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 19934 | |
| 19935 | ;; |
| 19936 | esac |
| 19937 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19938 | else $as_nop |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 19939 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19940 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: python" >&5 |
| 19941 | printf "%s\n" "python" >&6; } |
| 19942 | printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 19943 | |
| 19944 | |
| 19945 | fi |
| 19946 | |
| 19947 | |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 19948 | # builtin hash modules |
| 19949 | default_hashlib_hashes="md5,sha1,sha256,sha512,sha3,blake2" |
| 19950 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19951 | printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES /**/" >>confdefs.h |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 19952 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19953 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5 |
| 19954 | printf %s "checking for --with-builtin-hashlib-hashes... " >&6; } |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 19955 | |
| 19956 | # Check whether --with-builtin-hashlib-hashes was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19957 | if test ${with_builtin_hashlib_hashes+y} |
| 19958 | then : |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 19959 | withval=$with_builtin_hashlib_hashes; |
| 19960 | case "$withval" in |
| 19961 | yes) |
| 19962 | withval=$default_hashlib_hashes |
| 19963 | ;; |
| 19964 | no) |
| 19965 | withval="" |
| 19966 | ;; |
| 19967 | esac |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19968 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 19969 | printf "%s\n" "$withval" >&6; } |
| 19970 | printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES \"$withval\"" >>confdefs.h |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 19971 | |
| 19972 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19973 | else $as_nop |
Christian Heimes | 9b60e55 | 2020-05-15 23:54:53 +0200 | [diff] [blame] | 19974 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_hashlib_hashes" >&5 |
| 19976 | printf "%s\n" "$default_hashlib_hashes" >&6; }; |
| 19977 | 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] | 19978 | |
| 19979 | |
| 19980 | fi |
| 19981 | |
| 19982 | |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 19983 | # --with-experimental-isolated-subinterpreters |
| 19984 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19985 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-experimental-isolated-subinterpreters" >&5 |
| 19986 | printf %s "checking for --with-experimental-isolated-subinterpreters... " >&6; } |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 19987 | |
| 19988 | # Check whether --with-experimental-isolated-subinterpreters was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19989 | if test ${with_experimental_isolated_subinterpreters+y} |
| 19990 | then : |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 19991 | withval=$with_experimental_isolated_subinterpreters; |
| 19992 | if test "$withval" != no |
| 19993 | then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19995 | printf "%s\n" "yes" >&6; }; |
| 19996 | printf "%s\n" "#define EXPERIMENTAL_ISOLATED_SUBINTERPRETERS 1" >>confdefs.h |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 19997 | |
| 19998 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 19999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20000 | printf "%s\n" "no" >&6; }; |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 20001 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20002 | else $as_nop |
| 20003 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20004 | printf "%s\n" "no" >&6; } |
Victor Stinner | c5fa364 | 2020-05-05 16:41:11 +0200 | [diff] [blame] | 20005 | fi |
| 20006 | |
| 20007 | |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20008 | # --with-static-libpython |
| 20009 | STATIC_LIBPYTHON=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-static-libpython" >&5 |
| 20011 | printf %s "checking for --with-static-libpython... " >&6; } |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20012 | |
| 20013 | # Check whether --with-static-libpython was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20014 | if test ${with_static_libpython+y} |
| 20015 | then : |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20016 | withval=$with_static_libpython; |
| 20017 | if test "$withval" = no |
| 20018 | then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20020 | printf "%s\n" "no" >&6; }; |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20021 | STATIC_LIBPYTHON=0 |
| 20022 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20024 | printf "%s\n" "yes" >&6; }; |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20025 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20026 | else $as_nop |
| 20027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20028 | printf "%s\n" "yes" >&6; } |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20029 | fi |
| 20030 | |
| 20031 | LIBRARY_DEPS='$(PY3LIBRARY) $(EXPORTSYMS)' |
Ned Deily | 0608425 | 2021-03-01 02:04:02 -0500 | [diff] [blame] | 20032 | if test "$PY_ENABLE_SHARED" = 1 || test "$enable_framework" ; then |
Victor Stinner | 801bb0b | 2021-02-17 11:14:42 +0100 | [diff] [blame] | 20033 | LIBRARY_DEPS="\$(LDLIBRARY) $LIBRARY_DEPS" |
| 20034 | if test "$STATIC_LIBPYTHON" = 1; then |
| 20035 | LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS" |
| 20036 | fi |
| 20037 | else |
| 20038 | LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS" |
| 20039 | fi |
| 20040 | |
| 20041 | |
| 20042 | |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 20043 | # Check whether to disable test modules. Once set, setup.py will not build |
| 20044 | # test extension modules and "make install" will not install test suites. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-test-modules" >&5 |
| 20046 | printf %s "checking for --disable-test-modules... " >&6; } |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 20047 | # Check whether --enable-test-modules was given. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20048 | if test ${enable_test_modules+y} |
| 20049 | then : |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 20050 | enableval=$enable_test_modules; |
| 20051 | fi |
| 20052 | |
| 20053 | if test "$enable_test_modules" = no; then |
| 20054 | TEST_MODULES=no |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20056 | printf "%s\n" "yes" >&6; } |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 20057 | else |
| 20058 | TEST_MODULES=yes |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20060 | printf "%s\n" "no" >&6; } |
pxinwr | 277ce30 | 2020-12-30 20:50:39 +0800 | [diff] [blame] | 20061 | fi |
| 20062 | |
| 20063 | |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 20064 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20065 | # generate output files |
Victor Stinner | 0a8e572 | 2019-05-23 03:30:23 +0200 | [diff] [blame] | 20066 | 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] | 20067 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 20068 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
| 20069 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20070 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20071 | # This file is a shell script that caches the results of configure |
| 20072 | # 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] | 20073 | # scripts and configure runs, see configure's option --config-cache. |
| 20074 | # It is not useful on other systems. If it contains results you don't |
| 20075 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20076 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20077 | # config.status only pays attention to the cache file if you give it |
| 20078 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20079 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20080 | # `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] | 20081 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20082 | # following values. |
| 20083 | |
| 20084 | _ACEOF |
| 20085 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20086 | # The following way of writing the cache mishandles newlines in values, |
| 20087 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20088 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20089 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20090 | # 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] | 20091 | ( |
| 20092 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20093 | eval ac_val=\$$ac_var |
| 20094 | case $ac_val in #( |
| 20095 | *${as_nl}*) |
| 20096 | case $ac_var in #( |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20097 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 20098 | 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] | 20099 | esac |
| 20100 | case $ac_var in #( |
| 20101 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20102 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 20103 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20104 | esac ;; |
| 20105 | esac |
| 20106 | done |
| 20107 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20108 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20109 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20110 | *${as_nl}ac_space=\ *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20111 | # `set' does not quote correctly, so add quotes: double-quote |
| 20112 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20113 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20114 | "s/'/'\\\\''/g; |
| 20115 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20116 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20117 | *) |
| 20118 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20119 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20120 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20121 | esac | |
| 20122 | sort |
| 20123 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20124 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20125 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20126 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20127 | :clear |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20128 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20129 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20130 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20131 | :end' >>confcache |
| 20132 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20133 | if test -w "$cache_file"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20134 | if test "x$cache_file" != "x/dev/null"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 20136 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20137 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 20138 | cat confcache >"$cache_file" |
| 20139 | else |
| 20140 | case $cache_file in #( |
| 20141 | */* | ?:*) |
| 20142 | mv -f confcache "$cache_file"$$ && |
| 20143 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 20144 | *) |
| 20145 | mv -f confcache "$cache_file" ;; |
| 20146 | esac |
| 20147 | fi |
| 20148 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20149 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20150 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 20151 | 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] | 20152 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20153 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20154 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 20155 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20156 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20157 | # Let make expand exec_prefix. |
| 20158 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 20159 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20160 | DEFS=-DHAVE_CONFIG_H |
| 20161 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20162 | ac_libobjs= |
| 20163 | ac_ltlibobjs= |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20164 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20165 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20166 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20167 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20168 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20169 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20170 | # will be set to the directory where LIBOBJS objects are built. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20171 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20172 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20173 | done |
| 20174 | LIBOBJS=$ac_libobjs |
| 20175 | |
| 20176 | LTLIBOBJS=$ac_ltlibobjs |
| 20177 | |
| 20178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20179 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20180 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20181 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20182 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20183 | ac_clean_files_save=$ac_clean_files |
| 20184 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 20186 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20187 | as_write_fail=0 |
| 20188 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20189 | #! $SHELL |
| 20190 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20191 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20192 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20193 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20194 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20195 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20196 | ac_cs_recheck=false |
| 20197 | ac_cs_silent=false |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20198 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20199 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 20200 | export SHELL |
| 20201 | _ASEOF |
| 20202 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 20203 | ## -------------------- ## |
| 20204 | ## M4sh Initialization. ## |
| 20205 | ## -------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20206 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20207 | # Be more Bourne compatible |
| 20208 | DUALCASE=1; export DUALCASE # for MKS sh |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20209 | as_nop=: |
| 20210 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 20211 | then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20212 | emulate sh |
| 20213 | NULLCMD=: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20214 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20215 | # is contrary to our usage. Disable this feature. |
| 20216 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20217 | setopt NO_GLOB_SUBST |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20218 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20219 | case `(set -o) 2>/dev/null` in #( |
| 20220 | *posix*) : |
| 20221 | set -o posix ;; #( |
| 20222 | *) : |
| 20223 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20224 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20225 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20226 | |
| 20227 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20228 | |
| 20229 | # Reset variables that may have inherited troublesome values from |
| 20230 | # the environment. |
| 20231 | |
| 20232 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 20233 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 20234 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 20235 | # Quoting is to prevent editors from complaining about space-tab. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20236 | as_nl=' |
| 20237 | ' |
| 20238 | export as_nl |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20239 | IFS=" "" $as_nl" |
| 20240 | |
| 20241 | PS1='$ ' |
| 20242 | PS2='> ' |
| 20243 | PS4='+ ' |
| 20244 | |
| 20245 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 20246 | LC_ALL=C |
| 20247 | export LC_ALL |
| 20248 | LANGUAGE=C |
| 20249 | export LANGUAGE |
| 20250 | |
| 20251 | # We cannot yet rely on "unset" to work, but we need these variables |
| 20252 | # to be unset--not just set to an empty or harmless value--now, to |
| 20253 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 20254 | # also avoids known problems related to "unset" and subshell syntax |
| 20255 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 20256 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 20257 | do eval test \${$as_var+y} \ |
| 20258 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 20259 | done |
| 20260 | |
| 20261 | # Ensure that fds 0, 1, and 2 are open. |
| 20262 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 20263 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 20264 | 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] | 20265 | |
| 20266 | # The user is always right. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20267 | if ${PATH_SEPARATOR+false} :; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20268 | PATH_SEPARATOR=: |
| 20269 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 20270 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 20271 | PATH_SEPARATOR=';' |
| 20272 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20273 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20274 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20275 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20276 | # 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] | 20277 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20278 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20279 | *[\\/]* ) as_myself=$0 ;; |
| 20280 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20281 | for as_dir in $PATH |
| 20282 | do |
| 20283 | IFS=$as_save_IFS |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20284 | case $as_dir in #((( |
| 20285 | '') as_dir=./ ;; |
| 20286 | */) ;; |
| 20287 | *) as_dir=$as_dir/ ;; |
| 20288 | esac |
| 20289 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20290 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20291 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20292 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20293 | ;; |
| 20294 | esac |
| 20295 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20296 | # in which case we are not to be found in the path. |
| 20297 | if test "x$as_myself" = x; then |
| 20298 | as_myself=$0 |
| 20299 | fi |
| 20300 | if test ! -f "$as_myself"; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20301 | 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] | 20302 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20303 | fi |
| 20304 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20305 | |
| 20306 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20307 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 20308 | # ---------------------------------------- |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20309 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 20310 | # 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] | 20311 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20312 | as_fn_error () |
| 20313 | { |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20314 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 20315 | if test "$4"; then |
| 20316 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20317 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20318 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20319 | printf "%s\n" "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20320 | as_fn_exit $as_status |
| 20321 | } # as_fn_error |
| 20322 | |
| 20323 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20324 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20325 | # as_fn_set_status STATUS |
| 20326 | # ----------------------- |
| 20327 | # Set $? to STATUS, without forking. |
| 20328 | as_fn_set_status () |
| 20329 | { |
| 20330 | return $1 |
| 20331 | } # as_fn_set_status |
| 20332 | |
| 20333 | # as_fn_exit STATUS |
| 20334 | # ----------------- |
| 20335 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 20336 | as_fn_exit () |
| 20337 | { |
| 20338 | set +e |
| 20339 | as_fn_set_status $1 |
| 20340 | exit $1 |
| 20341 | } # as_fn_exit |
| 20342 | |
| 20343 | # as_fn_unset VAR |
| 20344 | # --------------- |
| 20345 | # Portably unset VAR. |
| 20346 | as_fn_unset () |
| 20347 | { |
| 20348 | { eval $1=; unset $1;} |
| 20349 | } |
| 20350 | as_unset=as_fn_unset |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20351 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20352 | # as_fn_append VAR VALUE |
| 20353 | # ---------------------- |
| 20354 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 20355 | # advantage of any shell optimizations that allow amortized linear growth over |
| 20356 | # repeated appends, instead of the typical quadratic growth present in naive |
| 20357 | # implementations. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20358 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 20359 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20360 | eval 'as_fn_append () |
| 20361 | { |
| 20362 | eval $1+=\$2 |
| 20363 | }' |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20364 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20365 | as_fn_append () |
| 20366 | { |
| 20367 | eval $1=\$$1\$2 |
| 20368 | } |
| 20369 | fi # as_fn_append |
| 20370 | |
| 20371 | # as_fn_arith ARG... |
| 20372 | # ------------------ |
| 20373 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 20374 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 20375 | # must be portable across $(()) and expr. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20376 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 20377 | then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20378 | eval 'as_fn_arith () |
| 20379 | { |
| 20380 | as_val=$(( $* )) |
| 20381 | }' |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20382 | else $as_nop |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20383 | as_fn_arith () |
| 20384 | { |
| 20385 | as_val=`expr "$@" || test $? -eq 1` |
| 20386 | } |
| 20387 | fi # as_fn_arith |
| 20388 | |
| 20389 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20390 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20391 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20392 | as_expr=expr |
| 20393 | else |
| 20394 | as_expr=false |
| 20395 | fi |
| 20396 | |
| 20397 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20398 | as_basename=basename |
| 20399 | else |
| 20400 | as_basename=false |
| 20401 | fi |
| 20402 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20403 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20404 | as_dirname=dirname |
| 20405 | else |
| 20406 | as_dirname=false |
| 20407 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20408 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20409 | as_me=`$as_basename -- "$0" || |
| 20410 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20411 | X"$0" : 'X\(//\)$' \| \ |
| 20412 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20413 | printf "%s\n" X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20414 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20415 | s//\1/ |
| 20416 | q |
| 20417 | } |
| 20418 | /^X\/\(\/\/\)$/{ |
| 20419 | s//\1/ |
| 20420 | q |
| 20421 | } |
| 20422 | /^X\/\(\/\).*/{ |
| 20423 | s//\1/ |
| 20424 | q |
| 20425 | } |
| 20426 | s/.*/./; q'` |
| 20427 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20428 | # Avoid depending upon Character Ranges. |
| 20429 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20430 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20431 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20432 | as_cr_digits='0123456789' |
| 20433 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20434 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20435 | |
| 20436 | # Determine whether it's possible to make 'echo' print without a newline. |
| 20437 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 20438 | # for compatibility with existing Makefiles. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20439 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20440 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20441 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20442 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20443 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20444 | xy) ECHO_C='\c';; |
| 20445 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 20446 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20447 | esac;; |
| 20448 | *) |
| 20449 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20450 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 20451 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20452 | # For backward compatibility with old third-party macros, we provide |
| 20453 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 20454 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 20455 | as_echo='printf %s\n' |
| 20456 | as_echo_n='printf %s' |
| 20457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20458 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20459 | if test -d conf$$.dir; then |
| 20460 | rm -f conf$$.dir/conf$$.file |
| 20461 | else |
| 20462 | rm -f conf$$.dir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20463 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20464 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20465 | if (echo >conf$$.file) 2>/dev/null; then |
| 20466 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20467 | as_ln_s='ln -s' |
| 20468 | # ... but there are two gotchas: |
| 20469 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20470 | # 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] | 20471 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20472 | 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] | 20473 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20474 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20475 | as_ln_s=ln |
| 20476 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 20477 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20478 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20479 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 20480 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20481 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20482 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20483 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20484 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20485 | |
| 20486 | # as_fn_mkdir_p |
| 20487 | # ------------- |
| 20488 | # Create "$as_dir" as a directory, including parents if necessary. |
| 20489 | as_fn_mkdir_p () |
| 20490 | { |
| 20491 | |
| 20492 | case $as_dir in #( |
| 20493 | -*) as_dir=./$as_dir;; |
| 20494 | esac |
| 20495 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 20496 | as_dirs= |
| 20497 | while :; do |
| 20498 | case $as_dir in #( |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20499 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20500 | *) as_qdir=$as_dir;; |
| 20501 | esac |
| 20502 | as_dirs="'$as_qdir' $as_dirs" |
| 20503 | as_dir=`$as_dirname -- "$as_dir" || |
| 20504 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20505 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20506 | X"$as_dir" : 'X\(//\)$' \| \ |
| 20507 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20508 | printf "%s\n" X"$as_dir" | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20509 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20510 | s//\1/ |
| 20511 | q |
| 20512 | } |
| 20513 | /^X\(\/\/\)[^/].*/{ |
| 20514 | s//\1/ |
| 20515 | q |
| 20516 | } |
| 20517 | /^X\(\/\/\)$/{ |
| 20518 | s//\1/ |
| 20519 | q |
| 20520 | } |
| 20521 | /^X\(\/\).*/{ |
| 20522 | s//\1/ |
| 20523 | q |
| 20524 | } |
| 20525 | s/.*/./; q'` |
| 20526 | test -d "$as_dir" && break |
| 20527 | done |
| 20528 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20529 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20530 | |
| 20531 | |
| 20532 | } # as_fn_mkdir_p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20533 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20534 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20535 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20536 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20537 | as_mkdir_p=false |
| 20538 | fi |
| 20539 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 20540 | |
| 20541 | # as_fn_executable_p FILE |
| 20542 | # ----------------------- |
| 20543 | # Test if FILE is an executable regular file. |
| 20544 | as_fn_executable_p () |
| 20545 | { |
| 20546 | test -f "$1" && test -x "$1" |
| 20547 | } # as_fn_executable_p |
| 20548 | as_test_x='test -x' |
| 20549 | as_executable_p=as_fn_executable_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20550 | |
| 20551 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20552 | 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] | 20553 | |
| 20554 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20555 | 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] | 20556 | |
| 20557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20558 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20559 | ## ----------------------------------- ## |
| 20560 | ## Main body of $CONFIG_STATUS script. ## |
| 20561 | ## ----------------------------------- ## |
| 20562 | _ASEOF |
| 20563 | 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] | 20564 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20565 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20566 | # 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] | 20567 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20568 | # values after options handling. |
| 20569 | ac_log=" |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 20570 | This file was extended by python $as_me 3.10, which was |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20571 | generated by GNU Autoconf 2.71. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20572 | |
| 20573 | CONFIG_FILES = $CONFIG_FILES |
| 20574 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20575 | CONFIG_LINKS = $CONFIG_LINKS |
| 20576 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20577 | $ $0 $@ |
| 20578 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20579 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20580 | " |
| 20581 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20582 | _ACEOF |
| 20583 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20584 | case $ac_config_files in *" |
| 20585 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 20586 | esac |
| 20587 | |
| 20588 | case $ac_config_headers in *" |
| 20589 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 20590 | esac |
| 20591 | |
| 20592 | |
| 20593 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20594 | # Files that config.status was made for. |
Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 20595 | config_files="$ac_config_files" |
| 20596 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20597 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20598 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20599 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20600 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20601 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20602 | \`$as_me' instantiates files and other configuration actions |
| 20603 | from templates according to the current configuration. Unless the files |
| 20604 | 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] | 20605 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20606 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20607 | |
| 20608 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20609 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20610 | --config print configuration, then exit |
| 20611 | -q, --quiet, --silent |
| 20612 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20613 | -d, --debug don't remove temporary files |
| 20614 | --recheck update $as_me by reconfiguring in the same conditions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20615 | --file=FILE[:TEMPLATE] |
| 20616 | instantiate the configuration file FILE |
| 20617 | --header=FILE[:TEMPLATE] |
| 20618 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20619 | |
| 20620 | Configuration files: |
| 20621 | $config_files |
| 20622 | |
| 20623 | Configuration headers: |
| 20624 | $config_headers |
| 20625 | |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 20626 | Report bugs to <https://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 20627 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20628 | _ACEOF |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20629 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 20630 | 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] | 20631 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20632 | ac_cs_config='$ac_cs_config_escaped' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20633 | ac_cs_version="\\ |
Pablo Galindo | d4fe098 | 2020-05-19 03:33:01 +0100 | [diff] [blame] | 20634 | python config.status 3.10 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20635 | configured by $0, generated by GNU Autoconf 2.71, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20636 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20637 | |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20638 | Copyright (C) 2021 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20639 | This config.status script is free software; the Free Software Foundation |
| 20640 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20641 | |
| 20642 | ac_pwd='$ac_pwd' |
| 20643 | srcdir='$srcdir' |
| 20644 | INSTALL='$INSTALL' |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 20645 | MKDIR_P='$MKDIR_P' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20646 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20647 | _ACEOF |
| 20648 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20649 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20650 | # 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] | 20651 | ac_need_defaults=: |
| 20652 | while test $# != 0 |
| 20653 | do |
| 20654 | case $1 in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20655 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20656 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20657 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20658 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20659 | ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20660 | --*=) |
| 20661 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20662 | ac_optarg= |
| 20663 | ac_shift=: |
| 20664 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20665 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20666 | ac_option=$1 |
| 20667 | ac_optarg=$2 |
| 20668 | ac_shift=shift |
| 20669 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20670 | esac |
| 20671 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20672 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20673 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20674 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20675 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20676 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20677 | printf "%s\n" "$ac_cs_version"; exit ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20678 | --config | --confi | --conf | --con | --co | --c ) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20679 | printf "%s\n" "$ac_cs_config"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20680 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20681 | debug=: ;; |
| 20682 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20683 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20684 | case $ac_optarg in |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20685 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20686 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20687 | esac |
| 20688 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20689 | ac_need_defaults=false;; |
| 20690 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20691 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20692 | case $ac_optarg in |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20693 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20694 | esac |
| 20695 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20696 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20697 | --he | --h) |
| 20698 | # Conflict between --help and --header |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20699 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20700 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20701 | --help | --hel | -h ) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20702 | printf "%s\n" "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20703 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20704 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20705 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20706 | |
| 20707 | # This is an error. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20708 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20709 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20710 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20711 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20712 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20713 | |
| 20714 | esac |
| 20715 | shift |
| 20716 | done |
| 20717 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20718 | ac_configure_extra_args= |
| 20719 | |
| 20720 | if $ac_cs_silent; then |
| 20721 | exec 6>/dev/null |
| 20722 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20723 | fi |
| 20724 | |
| 20725 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20726 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20727 | if \$ac_cs_recheck; then |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 20728 | 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] | 20729 | shift |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20730 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20731 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20732 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20733 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20734 | fi |
| 20735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20736 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20737 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20738 | exec 5>>config.log |
| 20739 | { |
| 20740 | echo |
| 20741 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20742 | ## Running $as_me. ## |
| 20743 | _ASBOX |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20744 | printf "%s\n" "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20745 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20746 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20747 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20748 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20749 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20750 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20751 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20752 | |
| 20753 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20754 | for ac_config_target in $ac_config_targets |
| 20755 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20756 | case $ac_config_target in |
| 20757 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 20758 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 20759 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 20760 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 20761 | "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] | 20762 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20763 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Victor Stinner | 0a8e572 | 2019-05-23 03:30:23 +0200 | [diff] [blame] | 20764 | "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] | 20765 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 20766 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20767 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20768 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20769 | esac |
| 20770 | done |
| 20771 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20772 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20773 | # If the user did not use the arguments to specify the items to instantiate, |
| 20774 | # then the envvar interface is used. Set only those that are not. |
| 20775 | # We use the long form for the default assignment because of an extremely |
| 20776 | # bizarre bug on SunOS 4.1.3. |
| 20777 | if $ac_need_defaults; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 20778 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 20779 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20780 | fi |
| 20781 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20782 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20783 | # 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] | 20784 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20785 | # Hook for its removal unless debugging. |
| 20786 | # Note that there is a small window in which the directory will not be cleaned: |
| 20787 | # 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] | 20788 | $debug || |
| 20789 | { |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20790 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20791 | trap 'exit_status=$? |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20792 | : "${ac_tmp:=$tmp}" |
| 20793 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20794 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20795 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20796 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20797 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20798 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20799 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20800 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20801 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20802 | } || |
| 20803 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20804 | tmp=./conf$$-$RANDOM |
| 20805 | (umask 077 && mkdir "$tmp") |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20806 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20807 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20808 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20809 | # Set up the scripts for CONFIG_FILES section. |
| 20810 | # No need to generate them if there are no CONFIG_FILES. |
| 20811 | # This happens for instance with `./config.status config.h'. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20812 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20813 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20814 | |
| 20815 | ac_cr=`echo X | tr X '\015'` |
| 20816 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 20817 | # But we know of no other shell where ac_cr would be empty at this |
| 20818 | # point, so we can use a bashism as a fallback. |
| 20819 | if test "x$ac_cr" = x; then |
| 20820 | eval ac_cr=\$\'\\r\' |
| 20821 | fi |
| 20822 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 20823 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20824 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20825 | else |
| 20826 | ac_cs_awk_cr=$ac_cr |
| 20827 | fi |
| 20828 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20829 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20830 | _ACEOF |
| 20831 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20832 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20833 | { |
| 20834 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 20835 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 20836 | echo "_ACEOF" |
| 20837 | } >conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20838 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 20839 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20840 | ac_delim='%!_!# ' |
| 20841 | for ac_last_try in false false false false false :; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20842 | . ./conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20843 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20844 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20845 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 20846 | if test $ac_delim_n = $ac_delim_num; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20847 | break |
| 20848 | elif $ac_last_try; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20849 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20850 | else |
| 20851 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20852 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20853 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20854 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20855 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20856 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20857 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20858 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20859 | sed -n ' |
| 20860 | h |
| 20861 | s/^/S["/; s/!.*/"]=/ |
| 20862 | p |
| 20863 | g |
| 20864 | s/^[^!]*!// |
| 20865 | :repl |
| 20866 | t repl |
| 20867 | s/'"$ac_delim"'$// |
| 20868 | t delim |
| 20869 | :nl |
| 20870 | h |
| 20871 | s/\(.\{148\}\)..*/\1/ |
| 20872 | t more1 |
| 20873 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 20874 | p |
| 20875 | n |
| 20876 | b repl |
| 20877 | :more1 |
| 20878 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 20879 | p |
| 20880 | g |
| 20881 | s/.\{148\}// |
| 20882 | t nl |
| 20883 | :delim |
| 20884 | h |
| 20885 | s/\(.\{148\}\)..*/\1/ |
| 20886 | t more2 |
| 20887 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 20888 | p |
| 20889 | b |
| 20890 | :more2 |
| 20891 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 20892 | p |
| 20893 | g |
| 20894 | s/.\{148\}// |
| 20895 | t delim |
| 20896 | ' <conf$$subs.awk | sed ' |
| 20897 | /^[^""]/{ |
| 20898 | N |
| 20899 | s/\n// |
| 20900 | } |
| 20901 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 20902 | rm -f conf$$subs.awk |
| 20903 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20904 | _ACAWK |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20905 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20906 | for (key in S) S_is_set[key] = 1 |
| 20907 | FS = "" |
| 20908 | |
| 20909 | } |
| 20910 | { |
| 20911 | line = $ 0 |
| 20912 | nfields = split(line, field, "@") |
| 20913 | substed = 0 |
| 20914 | len = length(field[1]) |
| 20915 | for (i = 2; i < nfields; i++) { |
| 20916 | key = field[i] |
| 20917 | keylen = length(key) |
| 20918 | if (S_is_set[key]) { |
| 20919 | value = S[key] |
| 20920 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 20921 | len += length(value) + length(field[++i]) |
| 20922 | substed = 1 |
| 20923 | } else |
| 20924 | len += 1 + keylen |
| 20925 | } |
| 20926 | |
| 20927 | print line |
| 20928 | } |
| 20929 | |
| 20930 | _ACAWK |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20931 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20932 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20933 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 20934 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 20935 | else |
| 20936 | cat |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20937 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20938 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 20939 | _ACEOF |
| 20940 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20941 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 20942 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20943 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20944 | # (actually we leave an empty line to preserve line numbers). |
| 20945 | if test "x$srcdir" = x.; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20946 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 20947 | h |
| 20948 | s/// |
| 20949 | s/^/:/ |
| 20950 | s/[ ]*$/:/ |
| 20951 | s/:\$(srcdir):/:/g |
| 20952 | s/:\${srcdir}:/:/g |
| 20953 | s/:@srcdir@:/:/g |
| 20954 | s/^:*// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20955 | s/:*$// |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20956 | x |
| 20957 | s/\(=[ ]*\).*/\1/ |
| 20958 | G |
| 20959 | s/\n// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20960 | s/^[^=]*=[ ]*$// |
| 20961 | }' |
| 20962 | fi |
| 20963 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20964 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20965 | fi # test -n "$CONFIG_FILES" |
| 20966 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20967 | # Set up the scripts for CONFIG_HEADERS section. |
| 20968 | # No need to generate them if there are no CONFIG_HEADERS. |
| 20969 | # This happens for instance with `./config.status Makefile'. |
| 20970 | if test -n "$CONFIG_HEADERS"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20971 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20972 | BEGIN { |
| 20973 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20974 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20975 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 20976 | # here-document in config.status, that substitutes the proper values into |
| 20977 | # config.h.in to produce config.h. |
| 20978 | |
| 20979 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 20980 | # handling of long lines. |
| 20981 | ac_delim='%!_!# ' |
| 20982 | for ac_last_try in false false :; do |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 20983 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 20984 | if test -z "$ac_tt"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20985 | break |
| 20986 | elif $ac_last_try; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 20987 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20988 | else |
| 20989 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 20990 | fi |
| 20991 | done |
| 20992 | |
| 20993 | # For the awk script, D is an array of macro values keyed by name, |
| 20994 | # likewise P contains macro parameters if any. Preserve backslash |
| 20995 | # newline sequences. |
| 20996 | |
| 20997 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 20998 | sed -n ' |
| 20999 | s/.\{148\}/&'"$ac_delim"'/g |
| 21000 | t rset |
| 21001 | :rset |
| 21002 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 21003 | t def |
| 21004 | d |
| 21005 | :def |
| 21006 | s/\\$// |
| 21007 | t bsnl |
| 21008 | s/["\\]/\\&/g |
| 21009 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 21010 | D["\1"]=" \3"/p |
| 21011 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 21012 | d |
| 21013 | :bsnl |
| 21014 | s/["\\]/\\&/g |
| 21015 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 21016 | D["\1"]=" \3\\\\\\n"\\/p |
| 21017 | t cont |
| 21018 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 21019 | t cont |
| 21020 | d |
| 21021 | :cont |
| 21022 | n |
| 21023 | s/.\{148\}/&'"$ac_delim"'/g |
| 21024 | t clear |
| 21025 | :clear |
| 21026 | s/\\$// |
| 21027 | t bsnlc |
| 21028 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 21029 | d |
| 21030 | :bsnlc |
| 21031 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 21032 | b cont |
| 21033 | ' <confdefs.h | sed ' |
| 21034 | s/'"$ac_delim"'/"\\\ |
| 21035 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 21036 | |
| 21037 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 21038 | for (key in D) D_is_set[key] = 1 |
| 21039 | FS = "" |
| 21040 | } |
| 21041 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 21042 | line = \$ 0 |
| 21043 | split(line, arg, " ") |
| 21044 | if (arg[1] == "#") { |
| 21045 | defundef = arg[2] |
| 21046 | mac1 = arg[3] |
| 21047 | } else { |
| 21048 | defundef = substr(arg[1], 2) |
| 21049 | mac1 = arg[2] |
| 21050 | } |
| 21051 | split(mac1, mac2, "(") #) |
| 21052 | macro = mac2[1] |
| 21053 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 21054 | if (D_is_set[macro]) { |
| 21055 | # Preserve the white space surrounding the "#". |
| 21056 | print prefix "define", macro P[macro] D[macro] |
| 21057 | next |
| 21058 | } else { |
| 21059 | # Replace #undef with comments. This is necessary, for example, |
| 21060 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 21061 | # on some systems where configure will not decide to define it. |
| 21062 | if (defundef == "undef") { |
| 21063 | print "/*", prefix defundef, macro, "*/" |
| 21064 | next |
| 21065 | } |
| 21066 | } |
| 21067 | } |
| 21068 | { print } |
| 21069 | _ACAWK |
| 21070 | _ACEOF |
| 21071 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21072 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21073 | fi # test -n "$CONFIG_HEADERS" |
| 21074 | |
| 21075 | |
| 21076 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 21077 | shift |
| 21078 | for ac_tag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21079 | do |
| 21080 | case $ac_tag in |
| 21081 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 21082 | esac |
| 21083 | case $ac_mode$ac_tag in |
| 21084 | :[FHL]*:*);; |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21085 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21086 | :[FH]-) ac_tag=-:-;; |
| 21087 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 21088 | esac |
| 21089 | ac_save_IFS=$IFS |
| 21090 | IFS=: |
| 21091 | set x $ac_tag |
| 21092 | IFS=$ac_save_IFS |
| 21093 | shift |
| 21094 | ac_file=$1 |
| 21095 | shift |
| 21096 | |
| 21097 | case $ac_mode in |
| 21098 | :L) ac_source=$1;; |
| 21099 | :[FH]) |
| 21100 | ac_file_inputs= |
| 21101 | for ac_f |
| 21102 | do |
| 21103 | case $ac_f in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21104 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21105 | *) # Look for the file first in the build tree, then in the source tree |
| 21106 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 21107 | # because $ac_f cannot contain `:'. |
| 21108 | test -f "$ac_f" || |
| 21109 | case $ac_f in |
| 21110 | [\\/$]*) false;; |
| 21111 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 21112 | esac || |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21113 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21114 | esac |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21115 | 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] | 21116 | as_fn_append ac_file_inputs " '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21117 | done |
| 21118 | |
| 21119 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21120 | # use $as_me), people would be surprised to read: |
| 21121 | # /* config.h. Generated by config.status. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21122 | configure_input='Generated from '` |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21123 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21124 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21125 | if test x"$ac_file" != x-; then |
| 21126 | configure_input="$ac_file. $configure_input" |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 21128 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21129 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21130 | # Neutralize special characters interpreted by sed in replacement strings. |
| 21131 | case $configure_input in #( |
| 21132 | *\&* | *\|* | *\\* ) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21133 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21134 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 21135 | *) ac_sed_conf_input=$configure_input;; |
| 21136 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21137 | |
| 21138 | case $ac_tag in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21139 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 21140 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21141 | esac |
| 21142 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21143 | esac |
| 21144 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21145 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21146 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21147 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21148 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21149 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21150 | printf "%s\n" X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21151 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21152 | s//\1/ |
| 21153 | q |
| 21154 | } |
| 21155 | /^X\(\/\/\)[^/].*/{ |
| 21156 | s//\1/ |
| 21157 | q |
| 21158 | } |
| 21159 | /^X\(\/\/\)$/{ |
| 21160 | s//\1/ |
| 21161 | q |
| 21162 | } |
| 21163 | /^X\(\/\).*/{ |
| 21164 | s//\1/ |
| 21165 | q |
| 21166 | } |
| 21167 | s/.*/./; q'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21168 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21169 | ac_builddir=. |
| 21170 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21171 | case "$ac_dir" in |
| 21172 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21173 | *) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21174 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21175 | # A ".." for each directory in $ac_dir_suffix. |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21176 | 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] | 21177 | case $ac_top_builddir_sub in |
| 21178 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21179 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21180 | esac ;; |
| 21181 | esac |
| 21182 | ac_abs_top_builddir=$ac_pwd |
| 21183 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21184 | # for backward compatibility: |
| 21185 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21186 | |
| 21187 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21188 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21189 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21190 | ac_top_srcdir=$ac_top_builddir_sub |
| 21191 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21192 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21193 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21194 | ac_top_srcdir=$srcdir |
| 21195 | ac_abs_top_srcdir=$srcdir ;; |
| 21196 | *) # Relative name. |
| 21197 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21198 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21199 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21200 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21201 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21202 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21203 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21204 | case $ac_mode in |
| 21205 | :F) |
| 21206 | # |
| 21207 | # CONFIG_FILE |
| 21208 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21209 | |
| 21210 | case $INSTALL in |
| 21211 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21212 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21213 | esac |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 21214 | ac_MKDIR_P=$MKDIR_P |
| 21215 | case $MKDIR_P in |
| 21216 | [\\/$]* | ?:[\\/]* ) ;; |
| 21217 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 21218 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21219 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21220 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21221 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21222 | # If the template does not know about datarootdir, expand it. |
| 21223 | # FIXME: This hack should be removed a few years after 2.60. |
| 21224 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21225 | ac_sed_dataroot=' |
| 21226 | /datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21227 | p |
| 21228 | q |
| 21229 | } |
| 21230 | /@datadir@/p |
| 21231 | /@docdir@/p |
| 21232 | /@infodir@/p |
| 21233 | /@localedir@/p |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21234 | /@mandir@/p' |
| 21235 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21236 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21237 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21239 | 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] | 21240 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21241 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21242 | ac_datarootdir_hack=' |
| 21243 | s&@datadir@&$datadir&g |
| 21244 | s&@docdir@&$docdir&g |
| 21245 | s&@infodir@&$infodir&g |
| 21246 | s&@localedir@&$localedir&g |
| 21247 | s&@mandir@&$mandir&g |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21248 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21249 | esac |
| 21250 | _ACEOF |
| 21251 | |
| 21252 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21253 | # Shell code in configure.ac might set extrasub. |
| 21254 | # FIXME: do we really want to maintain this feature? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21255 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 21256 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21257 | $extrasub |
| 21258 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21259 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21260 | :t |
| 21261 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21262 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21263 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21264 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21265 | s&@srcdir@&$ac_srcdir&;t t |
| 21266 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21267 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21268 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21269 | s&@builddir@&$ac_builddir&;t t |
| 21270 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21271 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21272 | s&@INSTALL@&$ac_INSTALL&;t t |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 21273 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21274 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21275 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21276 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 21277 | >$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] | 21278 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21279 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21280 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 21281 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 21282 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21283 | { 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] | 21284 | which seems to be undefined. Please make sure it is defined" >&5 |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21285 | 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] | 21286 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21287 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21288 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21289 | case $ac_file in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21290 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 21291 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21292 | esac \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21293 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21294 | ;; |
| 21295 | :H) |
| 21296 | # |
| 21297 | # CONFIG_HEADER |
| 21298 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21299 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21300 | { |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21301 | printf "%s\n" "/* $configure_input */" >&1 \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21302 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 21303 | } >"$ac_tmp/config.h" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21304 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21305 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21306 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 21307 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21308 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21309 | rm -f "$ac_file" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21310 | mv "$ac_tmp/config.h" "$ac_file" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21311 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21312 | fi |
| 21313 | else |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21314 | printf "%s\n" "/* $configure_input */" >&1 \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 21315 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21316 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21317 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21318 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21319 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21320 | |
| 21321 | esac |
| 21322 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 21323 | |
| 21324 | case $ac_file$ac_mode in |
| 21325 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; |
| 21326 | |
| 21327 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21328 | done # for ac_tag |
| 21329 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21330 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21331 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21332 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21333 | ac_clean_files=$ac_clean_files_save |
| 21334 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21335 | test $ac_write_fail = 0 || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21336 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21338 | |
| 21339 | # configure is writing to config.log, and then calls config.status. |
| 21340 | # config.status does its own redirection, appending to config.log. |
| 21341 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21342 | # by configure, so config.status won't be able to write to it; its |
| 21343 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21344 | # effectively closing config.log, so it can be properly (re)opened and |
| 21345 | # appended to by config.status. When coming back to configure, we |
| 21346 | # need to make the FD available again. |
| 21347 | if test "$no_create" != yes; then |
| 21348 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21349 | ac_config_status_args= |
| 21350 | test "$silent" = yes && |
| 21351 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21352 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21353 | $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] | 21354 | exec 5>>config.log |
| 21355 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21356 | # would make configure fail if this is the last instruction. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 21357 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 21358 | fi |
| 21359 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21360 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 21361 | 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] | 21362 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21363 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 21364 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 21365 | echo "creating Modules/Setup.local" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 21366 | if test ! -f Modules/Setup.local |
| 21367 | then |
| 21368 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 21369 | fi |
| 21370 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 21371 | echo "creating Makefile" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 21372 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 21373 | -s Modules \ |
Antoine Pitrou | 961d54c | 2018-07-16 19:03:03 +0200 | [diff] [blame] | 21374 | Modules/Setup.local $srcdir/Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 21375 | mv config.c Modules |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 21376 | |
| 21377 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then |
| 21378 | echo "" >&6 |
| 21379 | echo "" >&6 |
Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame] | 21380 | 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] | 21381 | echo "please run ./configure --enable-optimizations" >&6 |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 21382 | echo "" >&6 |
| 21383 | echo "" >&6 |
| 21384 | fi |
Pablo Galindo | cc115e5 | 2021-08-02 20:06:40 +0100 | [diff] [blame] | 21385 | |