| 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. | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.6. | 
| 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 | # | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9 | # | 
|  | 10 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation | 
|  | 12 | # gives unlimited permission to copy, distribute and modify it. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13 | ## -------------------- ## | 
|  | 14 | ## M4sh Initialization. ## | 
|  | 15 | ## -------------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17 | # Be more Bourne compatible | 
|  | 18 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20 | emulate sh | 
|  | 21 | NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23 | # is contrary to our usage.  Disable this feature. | 
|  | 24 | alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 26 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( | 
|  | 28 | *posix*) : | 
|  | 29 | set -o posix ;; #( | 
|  | 30 | *) : | 
|  | 31 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 32 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 34 |  | 
|  | 35 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 36 | as_nl=' | 
|  | 37 | ' | 
|  | 38 | export as_nl | 
|  | 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 44 | # but without wasting forks for bash or zsh. | 
|  | 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 47 | as_echo='print -r --' | 
|  | 48 | as_echo_n='print -rn --' | 
|  | 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 50 | as_echo='printf %s\n' | 
|  | 51 | as_echo_n='printf %s' | 
|  | 52 | else | 
|  | 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 55 | as_echo_n='/usr/ucb/echo -n' | 
|  | 56 | else | 
|  | 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 58 | as_echo_n_body='eval | 
|  | 59 | arg=$1; | 
|  | 60 | case $arg in #( | 
|  | 61 | *"$as_nl"*) | 
|  | 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 64 | esac; | 
|  | 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 66 | ' | 
|  | 67 | export as_echo_n_body | 
|  | 68 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 69 | fi | 
|  | 70 | export as_echo_body | 
|  | 71 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 72 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 73 |  | 
|  | 74 | # The user is always right. | 
|  | 75 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 76 | PATH_SEPARATOR=: | 
|  | 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 79 | PATH_SEPARATOR=';' | 
|  | 80 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 81 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 82 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 83 |  | 
|  | 84 | # IFS | 
|  | 85 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 86 | # there to prevent editors from complaining about space-tab. | 
|  | 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 88 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 89 | IFS=" ""	$as_nl" | 
|  | 90 |  | 
|  | 91 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 92 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 93 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 94 | *[\\/]* ) as_myself=$0 ;; | 
|  | 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 96 | for as_dir in $PATH | 
|  | 97 | do | 
|  | 98 | IFS=$as_save_IFS | 
|  | 99 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 101 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 113 | exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 114 | fi | 
|  | 115 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 116 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 117 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 118 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 119 | # trigger a bug in pdksh 5.2.14. | 
|  | 120 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 121 | do eval test x\${$as_var+set} = xset \ | 
|  | 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 123 | done | 
|  | 124 | PS1='$ ' | 
|  | 125 | PS2='> ' | 
|  | 126 | PS4='+ ' | 
|  | 127 |  | 
|  | 128 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 129 | LC_ALL=C | 
|  | 130 | export LC_ALL | 
|  | 131 | LANGUAGE=C | 
|  | 132 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 133 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 134 | # CDPATH. | 
|  | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 136 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 137 | # Use a proper internal environment variable to ensure we don't fall | 
|  | 138 | # into an infinite loop, continuously re-executing ourselves. | 
|  | 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | 
|  | 140 | _as_can_reexec=no; export _as_can_reexec; | 
|  | 141 | # We cannot yet assume a decent shell, so we have to provide a | 
|  | 142 | # neutralization value for shells without unset; and this also | 
|  | 143 | # works around shells that cannot unset nonexistent variables. | 
|  | 144 | # Preserve -v and -x to the replacement shell. | 
|  | 145 | BASH_ENV=/dev/null | 
|  | 146 | ENV=/dev/null | 
|  | 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
|  | 148 | case $- in # (((( | 
|  | 149 | *v*x* | *x*v* ) as_opts=-vx ;; | 
|  | 150 | *v* ) as_opts=-v ;; | 
|  | 151 | *x* ) as_opts=-x ;; | 
|  | 152 | * ) as_opts= ;; | 
|  | 153 | esac | 
|  | 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 
|  | 155 | # Admittedly, this is quite paranoid, since all the known shells bail | 
|  | 156 | # out after a failed `exec'. | 
|  | 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
|  | 158 | as_fn_exit 255 | 
|  | 159 | fi | 
|  | 160 | # We don't want this to propagate to other subprocesses. | 
|  | 161 | { _as_can_reexec=; unset _as_can_reexec;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 162 | if test "x$CONFIG_SHELL" = x; then | 
|  | 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
|  | 164 | emulate sh | 
|  | 165 | NULLCMD=: | 
|  | 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
|  | 167 | # is contrary to our usage.  Disable this feature. | 
|  | 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
|  | 169 | setopt NO_GLOB_SUBST | 
|  | 170 | else | 
|  | 171 | case \`(set -o) 2>/dev/null\` in #( | 
|  | 172 | *posix*) : | 
|  | 173 | set -o posix ;; #( | 
|  | 174 | *) : | 
|  | 175 | ;; | 
|  | 176 | esac | 
|  | 177 | fi | 
|  | 178 | " | 
|  | 179 | as_required="as_fn_return () { (exit \$1); } | 
|  | 180 | as_fn_success () { as_fn_return 0; } | 
|  | 181 | as_fn_failure () { as_fn_return 1; } | 
|  | 182 | as_fn_ret_success () { return 0; } | 
|  | 183 | as_fn_ret_failure () { return 1; } | 
|  | 184 |  | 
|  | 185 | exitcode=0 | 
|  | 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
|  | 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
|  | 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
|  | 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
|  | 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
|  | 191 |  | 
|  | 192 | else | 
|  | 193 | exitcode=1; echo positional parameters were not saved. | 
|  | 194 | fi | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 | 
|  | 196 | test -x / || exit 1" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 197 | as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
|  | 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
|  | 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
|  | 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
|  | 201 | test \$(( 1 + 1 )) = 2 || exit 1" | 
|  | 202 | if (eval "$as_required") 2>/dev/null; then : | 
|  | 203 | as_have_required=yes | 
|  | 204 | else | 
|  | 205 | as_have_required=no | 
|  | 206 | fi | 
|  | 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
|  | 208 |  | 
|  | 209 | else | 
|  | 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 211 | as_found=false | 
|  | 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
|  | 213 | do | 
|  | 214 | IFS=$as_save_IFS | 
|  | 215 | test -z "$as_dir" && as_dir=. | 
|  | 216 | as_found=: | 
|  | 217 | case $as_dir in #( | 
|  | 218 | /*) | 
|  | 219 | for as_base in sh bash ksh sh5; do | 
|  | 220 | # Try only shells that exist, to save several forks. | 
|  | 221 | as_shell=$as_dir/$as_base | 
|  | 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
|  | 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
|  | 224 | CONFIG_SHELL=$as_shell as_have_required=yes | 
|  | 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
|  | 226 | break 2 | 
|  | 227 | fi | 
|  | 228 | fi | 
|  | 229 | done;; | 
|  | 230 | esac | 
|  | 231 | as_found=false | 
|  | 232 | done | 
|  | 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
|  | 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
|  | 235 | CONFIG_SHELL=$SHELL as_have_required=yes | 
|  | 236 | fi; } | 
|  | 237 | IFS=$as_save_IFS | 
|  | 238 |  | 
|  | 239 |  | 
|  | 240 | if test "x$CONFIG_SHELL" != x; then : | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +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'. | 
|  | 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
|  | 259 | exit 255 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 260 | fi | 
|  | 261 |  | 
|  | 262 | if test x$as_have_required = xno; then : | 
|  | 263 | $as_echo "$0: This script requires a shell more modern than all" | 
|  | 264 | $as_echo "$0: the shells that I found on your system." | 
|  | 265 | if test x${ZSH_VERSION+set} = xset ; then | 
|  | 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
|  | 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
|  | 268 | else | 
|  | 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 270 | $0: https://bugs.python.org/ about your system, including | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 271 | $0: any error possibly output before this message. Then | 
|  | 272 | $0: install a modern shell, or manually run the script | 
|  | 273 | $0: under such a shell if you do have one." | 
|  | 274 | fi | 
|  | 275 | exit 1 | 
|  | 276 | fi | 
|  | 277 | fi | 
|  | 278 | fi | 
|  | 279 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|  | 280 | export SHELL | 
|  | 281 | # Unset more variables known to interfere with behavior of common tools. | 
|  | 282 | CLICOLOR_FORCE= GREP_OPTIONS= | 
|  | 283 | unset CLICOLOR_FORCE GREP_OPTIONS | 
|  | 284 |  | 
|  | 285 | ## --------------------- ## | 
|  | 286 | ## M4sh Shell Functions. ## | 
|  | 287 | ## --------------------- ## | 
|  | 288 | # as_fn_unset VAR | 
|  | 289 | # --------------- | 
|  | 290 | # Portably unset VAR. | 
|  | 291 | as_fn_unset () | 
|  | 292 | { | 
|  | 293 | { eval $1=; unset $1;} | 
|  | 294 | } | 
|  | 295 | as_unset=as_fn_unset | 
|  | 296 |  | 
|  | 297 | # as_fn_set_status STATUS | 
|  | 298 | # ----------------------- | 
|  | 299 | # Set $? to STATUS, without forking. | 
|  | 300 | as_fn_set_status () | 
|  | 301 | { | 
|  | 302 | return $1 | 
|  | 303 | } # as_fn_set_status | 
|  | 304 |  | 
|  | 305 | # as_fn_exit STATUS | 
|  | 306 | # ----------------- | 
|  | 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 308 | as_fn_exit () | 
|  | 309 | { | 
|  | 310 | set +e | 
|  | 311 | as_fn_set_status $1 | 
|  | 312 | exit $1 | 
|  | 313 | } # as_fn_exit | 
|  | 314 |  | 
|  | 315 | # as_fn_mkdir_p | 
|  | 316 | # ------------- | 
|  | 317 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 318 | as_fn_mkdir_p () | 
|  | 319 | { | 
|  | 320 |  | 
|  | 321 | case $as_dir in #( | 
|  | 322 | -*) as_dir=./$as_dir;; | 
|  | 323 | esac | 
|  | 324 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 325 | as_dirs= | 
|  | 326 | while :; do | 
|  | 327 | case $as_dir in #( | 
|  | 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 329 | *) as_qdir=$as_dir;; | 
|  | 330 | esac | 
|  | 331 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 332 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 334 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 335 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 337 | $as_echo X"$as_dir" | | 
|  | 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 339 | s//\1/ | 
|  | 340 | q | 
|  | 341 | } | 
|  | 342 | /^X\(\/\/\)[^/].*/{ | 
|  | 343 | s//\1/ | 
|  | 344 | q | 
|  | 345 | } | 
|  | 346 | /^X\(\/\/\)$/{ | 
|  | 347 | s//\1/ | 
|  | 348 | q | 
|  | 349 | } | 
|  | 350 | /^X\(\/\).*/{ | 
|  | 351 | s//\1/ | 
|  | 352 | q | 
|  | 353 | } | 
|  | 354 | s/.*/./; q'` | 
|  | 355 | test -d "$as_dir" && break | 
|  | 356 | done | 
|  | 357 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 359 |  | 
|  | 360 |  | 
|  | 361 | } # as_fn_mkdir_p | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 362 |  | 
|  | 363 | # as_fn_executable_p FILE | 
|  | 364 | # ----------------------- | 
|  | 365 | # Test if FILE is an executable regular file. | 
|  | 366 | as_fn_executable_p () | 
|  | 367 | { | 
|  | 368 | test -f "$1" && test -x "$1" | 
|  | 369 | } # as_fn_executable_p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 370 | # as_fn_append VAR VALUE | 
|  | 371 | # ---------------------- | 
|  | 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 373 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 374 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 375 | # implementations. | 
|  | 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 377 | eval 'as_fn_append () | 
|  | 378 | { | 
|  | 379 | eval $1+=\$2 | 
|  | 380 | }' | 
|  | 381 | else | 
|  | 382 | as_fn_append () | 
|  | 383 | { | 
|  | 384 | eval $1=\$$1\$2 | 
|  | 385 | } | 
|  | 386 | fi # as_fn_append | 
|  | 387 |  | 
|  | 388 | # as_fn_arith ARG... | 
|  | 389 | # ------------------ | 
|  | 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 392 | # must be portable across $(()) and expr. | 
|  | 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 394 | eval 'as_fn_arith () | 
|  | 395 | { | 
|  | 396 | as_val=$(( $* )) | 
|  | 397 | }' | 
|  | 398 | else | 
|  | 399 | as_fn_arith () | 
|  | 400 | { | 
|  | 401 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 402 | } | 
|  | 403 | fi # as_fn_arith | 
|  | 404 |  | 
|  | 405 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 407 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 410 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 411 | as_fn_error () | 
|  | 412 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 413 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 414 | if test "$4"; then | 
|  | 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 417 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 418 | $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 419 | as_fn_exit $as_status | 
|  | 420 | } # as_fn_error | 
|  | 421 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 422 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 424 | as_expr=expr | 
|  | 425 | else | 
|  | 426 | as_expr=false | 
|  | 427 | fi | 
|  | 428 |  | 
|  | 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 430 | as_basename=basename | 
|  | 431 | else | 
|  | 432 | as_basename=false | 
|  | 433 | fi | 
|  | 434 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 436 | as_dirname=dirname | 
|  | 437 | else | 
|  | 438 | as_dirname=false | 
|  | 439 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 440 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || | 
|  | 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 443 | X"$0" : 'X\(//\)$' \| \ | 
|  | 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 445 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 447 | s//\1/ | 
|  | 448 | q | 
|  | 449 | } | 
|  | 450 | /^X\/\(\/\/\)$/{ | 
|  | 451 | s//\1/ | 
|  | 452 | q | 
|  | 453 | } | 
|  | 454 | /^X\/\(\/\).*/{ | 
|  | 455 | s//\1/ | 
|  | 456 | q | 
|  | 457 | } | 
|  | 458 | s/.*/./; q'` | 
|  | 459 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 460 | # Avoid depending upon Character Ranges. | 
|  | 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 464 | as_cr_digits='0123456789' | 
|  | 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 466 |  | 
|  | 467 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
|  | 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
|  | 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
|  | 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
|  | 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 473 | sed -n ' | 
|  | 474 | p | 
|  | 475 | /[$]LINENO/= | 
|  | 476 | ' <$as_myself | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 477 | sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 478 | s/[$]LINENO.*/&-/ | 
|  | 479 | t lineno | 
|  | 480 | b | 
|  | 481 | :lineno | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 482 | N | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 483 | :loop | 
|  | 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 485 | t loop | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 486 | s/-\n.*// | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 487 | ' >$as_me.lineno && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 488 | chmod +x "$as_me.lineno" || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 490 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | 
|  | 492 | # already done that, so ensure we don't try to do so again and fall | 
|  | 493 | # in an infinite loop.  This has already happened in practice. | 
|  | 494 | _as_can_reexec=no; export _as_can_reexec | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 495 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 496 | # (the dirname of $[0] is not the place where we might find the | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 497 | # original and so on.  Autoconf is especially sensitive to this). | 
|  | 498 | . "./$as_me.lineno" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 499 | # Exit status is that of the last command. | 
|  | 500 | exit | 
|  | 501 | } | 
|  | 502 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 504 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 505 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 506 | case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 507 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 508 | xy)  ECHO_C='\c';; | 
|  | 509 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 510 | ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 511 | esac;; | 
|  | 512 | *) | 
|  | 513 | ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 514 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 515 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 517 | if test -d conf$$.dir; then | 
|  | 518 | rm -f conf$$.dir/conf$$.file | 
|  | 519 | else | 
|  | 520 | rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 521 | mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 522 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 523 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 525 | as_ln_s='ln -s' | 
|  | 526 | # ... but there are two gotchas: | 
|  | 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 529 | # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 531 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 532 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 533 | as_ln_s=ln | 
|  | 534 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 535 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 536 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 537 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 538 | as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 539 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 541 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 542 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 543 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 544 | as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 545 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 546 | test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 547 | as_mkdir_p=false | 
|  | 548 | fi | 
|  | 549 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 550 | as_test_x='test -x' | 
|  | 551 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 |  | 
|  | 553 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 555 |  | 
|  | 556 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 558 |  | 
|  | 559 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
|  | 561 | exec 6>&1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 |  | 
|  | 563 | # Name of the host. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 565 | # so uname gets run too. | 
|  | 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 567 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 568 | # | 
|  | 569 | # Initializations. | 
|  | 570 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 571 | ac_default_prefix=/usr/local | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 572 | ac_clean_files= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 573 | ac_config_libobj_dir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 574 | LIBOBJS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | cross_compiling=no | 
|  | 576 | subdirs= | 
|  | 577 | MFLAGS= | 
|  | 578 | MAKEFLAGS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | # Identity of this package. | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 581 | PACKAGE_NAME='python' | 
|  | 582 | PACKAGE_TARNAME='python' | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 583 | PACKAGE_VERSION='3.6' | 
|  | 584 | PACKAGE_STRING='python 3.6' | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='https://bugs.python.org/' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 586 | PACKAGE_URL='' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 |  | 
|  | 588 | ac_unique_file="Include/object.h" | 
|  | 589 | # Factoring default headers for most tests. | 
|  | 590 | ac_includes_default="\ | 
|  | 591 | #include <stdio.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 592 | #ifdef HAVE_SYS_TYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <sys/types.h> | 
|  | 594 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 596 | # include <sys/stat.h> | 
|  | 597 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 598 | #ifdef STDC_HEADERS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 599 | # include <stdlib.h> | 
|  | 600 | # include <stddef.h> | 
|  | 601 | #else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 602 | # ifdef HAVE_STDLIB_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | #  include <stdlib.h> | 
|  | 604 | # endif | 
|  | 605 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRING_H | 
|  | 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 608 | #  include <memory.h> | 
|  | 609 | # endif | 
|  | 610 | # include <string.h> | 
|  | 611 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 613 | # include <strings.h> | 
|  | 614 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 615 | #ifdef HAVE_INTTYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <inttypes.h> | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 617 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 618 | #ifdef HAVE_STDINT_H | 
|  | 619 | # include <stdint.h> | 
|  | 620 | #endif | 
|  | 621 | #ifdef HAVE_UNISTD_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 622 | # include <unistd.h> | 
|  | 623 | #endif" | 
|  | 624 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 625 | ac_subst_vars='LTLIBOBJS | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 626 | ENSUREPIP | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 627 | SRCDIRS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 628 | THREADHEADERS | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 629 | LIBPL | 
|  | 630 | PY_ENABLE_SHARED | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 631 | EXT_SUFFIX | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 632 | SOABI | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 633 | LIBC | 
|  | 634 | LIBM | 
|  | 635 | HAVE_GETHOSTBYNAME | 
|  | 636 | HAVE_GETHOSTBYNAME_R | 
|  | 637 | HAVE_GETHOSTBYNAME_R_3_ARG | 
|  | 638 | HAVE_GETHOSTBYNAME_R_5_ARG | 
|  | 639 | HAVE_GETHOSTBYNAME_R_6_ARG | 
|  | 640 | LIBOBJS | 
|  | 641 | TRUE | 
|  | 642 | MACHDEP_OBJS | 
|  | 643 | DYNLOADFILE | 
|  | 644 | DLINCLDIR | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 645 | DTRACE_OBJS | 
|  | 646 | DTRACE_HEADERS | 
|  | 647 | DFLAGS | 
|  | 648 | DTRACE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 649 | THREADOBJ | 
|  | 650 | LDLAST | 
|  | 651 | USE_THREAD_MODULE | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 652 | TCLTK_LIBS | 
|  | 653 | TCLTK_INCLUDES | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 654 | LIBFFI_INCLUDEDIR | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 655 | PKG_CONFIG_LIBDIR | 
|  | 656 | PKG_CONFIG_PATH | 
|  | 657 | PKG_CONFIG | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 658 | SHLIBS | 
|  | 659 | CFLAGSFORSHARED | 
|  | 660 | LINKFORSHARED | 
|  | 661 | CCSHARED | 
|  | 662 | BLDSHARED | 
|  | 663 | LDCXXSHARED | 
|  | 664 | LDSHARED | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 665 | SHLIB_SUFFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 666 | LIBTOOL_CRUFT | 
|  | 667 | OTHER_LIBTOOL_OPT | 
|  | 668 | UNIVERSAL_ARCH_FLAGS | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 669 | CFLAGS_NODIST | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 670 | BASECFLAGS | 
|  | 671 | OPT | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 672 | LLVM_PROF_FOUND | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 673 | target_os | 
|  | 674 | target_vendor | 
|  | 675 | target_cpu | 
|  | 676 | target | 
|  | 677 | LLVM_PROFDATA | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 678 | LLVM_PROF_ERR | 
|  | 679 | LLVM_PROF_FILE | 
|  | 680 | LLVM_PROF_MERGER | 
|  | 681 | PGO_PROF_USE_FLAG | 
|  | 682 | PGO_PROF_GEN_FLAG | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 683 | LTOFLAGS | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 684 | DEF_MAKE_RULE | 
|  | 685 | DEF_MAKE_ALL_RULE | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 686 | ABIFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 687 | LN | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 688 | MKDIR_P | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 689 | INSTALL_DATA | 
|  | 690 | INSTALL_SCRIPT | 
|  | 691 | INSTALL_PROGRAM | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 692 | ac_ct_READELF | 
|  | 693 | READELF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 694 | ARFLAGS | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 695 | ac_ct_AR | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 696 | AR | 
|  | 697 | RANLIB | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 698 | USE_INLINE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 699 | GNULD | 
|  | 700 | LINKCC | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 701 | LDVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 702 | RUNSHARED | 
|  | 703 | INSTSONAME | 
|  | 704 | LDLIBRARYDIR | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 705 | PY3LIBRARY | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 706 | BLDLIBRARY | 
|  | 707 | DLLLIBRARY | 
|  | 708 | LDLIBRARY | 
|  | 709 | LIBRARY | 
|  | 710 | BUILDEXEEXT | 
|  | 711 | EGREP | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 712 | NO_AS_NEEDED | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 713 | MULTIARCH_CPPFLAGS | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 714 | PLATFORM_TRIPLET | 
|  | 715 | MULTIARCH | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 716 | ac_ct_CXX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 717 | MAINCC | 
|  | 718 | CXX | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 719 | SED | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 720 | GREP | 
|  | 721 | CPP | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 722 | OBJEXT | 
|  | 723 | EXEEXT | 
|  | 724 | ac_ct_CC | 
|  | 725 | CPPFLAGS | 
|  | 726 | LDFLAGS | 
|  | 727 | CFLAGS | 
|  | 728 | CC | 
|  | 729 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
|  | 730 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
|  | 731 | SGI_ABI | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 732 | _PYTHON_HOST_PLATFORM | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 733 | MACHDEP | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 734 | FRAMEWORKINSTALLAPPSPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 735 | FRAMEWORKUNIXTOOLSPREFIX | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 736 | FRAMEWORKPYTHONW | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 737 | FRAMEWORKALTINSTALLLAST | 
|  | 738 | FRAMEWORKALTINSTALLFIRST | 
|  | 739 | FRAMEWORKINSTALLLAST | 
|  | 740 | FRAMEWORKINSTALLFIRST | 
|  | 741 | PYTHONFRAMEWORKINSTALLDIR | 
|  | 742 | PYTHONFRAMEWORKPREFIX | 
|  | 743 | PYTHONFRAMEWORKDIR | 
|  | 744 | PYTHONFRAMEWORKIDENTIFIER | 
|  | 745 | PYTHONFRAMEWORK | 
|  | 746 | LIPO_32BIT_FLAGS | 
|  | 747 | ARCH_RUN_32BIT | 
|  | 748 | UNIVERSALSDK | 
|  | 749 | CONFIG_ARGS | 
|  | 750 | SOVERSION | 
|  | 751 | VERSION | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 752 | GENERATED_COMMENT | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 753 | PYTHON_FOR_BUILD | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 754 | PYTHON_FOR_GEN | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 755 | host_os | 
|  | 756 | host_vendor | 
|  | 757 | host_cpu | 
|  | 758 | host | 
|  | 759 | build_os | 
|  | 760 | build_vendor | 
|  | 761 | build_cpu | 
|  | 762 | build | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 763 | HAS_HG | 
|  | 764 | HGBRANCH | 
|  | 765 | HGTAG | 
|  | 766 | HGVERSION | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 767 | BASECPPFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 768 | target_alias | 
|  | 769 | host_alias | 
|  | 770 | build_alias | 
|  | 771 | LIBS | 
|  | 772 | ECHO_T | 
|  | 773 | ECHO_N | 
|  | 774 | ECHO_C | 
|  | 775 | DEFS | 
|  | 776 | mandir | 
|  | 777 | localedir | 
|  | 778 | libdir | 
|  | 779 | psdir | 
|  | 780 | pdfdir | 
|  | 781 | dvidir | 
|  | 782 | htmldir | 
|  | 783 | infodir | 
|  | 784 | docdir | 
|  | 785 | oldincludedir | 
|  | 786 | includedir | 
| Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 787 | runstatedir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 788 | localstatedir | 
|  | 789 | sharedstatedir | 
|  | 790 | sysconfdir | 
|  | 791 | datadir | 
|  | 792 | datarootdir | 
|  | 793 | libexecdir | 
|  | 794 | sbindir | 
|  | 795 | bindir | 
|  | 796 | program_transform_name | 
|  | 797 | prefix | 
|  | 798 | exec_prefix | 
|  | 799 | PACKAGE_URL | 
|  | 800 | PACKAGE_BUGREPORT | 
|  | 801 | PACKAGE_STRING | 
|  | 802 | PACKAGE_VERSION | 
|  | 803 | PACKAGE_TARNAME | 
|  | 804 | PACKAGE_NAME | 
|  | 805 | PATH_SEPARATOR | 
|  | 806 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 807 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 808 | ac_user_opts=' | 
|  | 809 | enable_option_checking | 
|  | 810 | enable_universalsdk | 
|  | 811 | with_universal_archs | 
|  | 812 | with_framework_name | 
|  | 813 | enable_framework | 
|  | 814 | with_gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 815 | with_icc | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 816 | with_cxx_main | 
|  | 817 | with_suffix | 
|  | 818 | enable_shared | 
|  | 819 | enable_profiling | 
|  | 820 | with_pydebug | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 821 | with_optimizations | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 822 | with_lto | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 823 | with_hash_algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 824 | with_address_sanitizer | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 825 | with_libs | 
|  | 826 | with_system_expat | 
|  | 827 | with_system_ffi | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 828 | with_system_libmpdec | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 829 | enable_loadable_sqlite_extensions | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 830 | with_tcltk_includes | 
|  | 831 | with_tcltk_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 832 | with_dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 833 | with_threads | 
|  | 834 | with_thread | 
|  | 835 | enable_ipv6 | 
|  | 836 | with_doc_strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 837 | with_pymalloc | 
|  | 838 | with_valgrind | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 839 | with_dtrace | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 840 | with_fpectl | 
|  | 841 | with_libm | 
|  | 842 | with_libc | 
|  | 843 | enable_big_digits | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 844 | with_computed_gotos | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 845 | with_ensurepip | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 846 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 847 | ac_precious_vars='build_alias | 
|  | 848 | host_alias | 
|  | 849 | target_alias | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 850 | MACHDEP | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 851 | CC | 
|  | 852 | CFLAGS | 
|  | 853 | LDFLAGS | 
|  | 854 | LIBS | 
|  | 855 | CPPFLAGS | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 856 | CPP | 
|  | 857 | PKG_CONFIG | 
|  | 858 | PKG_CONFIG_PATH | 
|  | 859 | PKG_CONFIG_LIBDIR' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 860 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 861 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 862 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 863 | ac_init_help= | 
|  | 864 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 865 | ac_unrecognized_opts= | 
|  | 866 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 867 | # The variables have the same names as the options, with | 
|  | 868 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 869 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 870 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 871 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 872 | no_recursion= | 
|  | 873 | prefix=NONE | 
|  | 874 | program_prefix=NONE | 
|  | 875 | program_suffix=NONE | 
|  | 876 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 877 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 878 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 879 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 880 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 881 | x_includes=NONE | 
|  | 882 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 883 |  | 
|  | 884 | # Installation directory options. | 
|  | 885 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 886 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 887 | # by default will actually change. | 
|  | 888 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 889 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 890 | bindir='${exec_prefix}/bin' | 
|  | 891 | sbindir='${exec_prefix}/sbin' | 
|  | 892 | libexecdir='${exec_prefix}/libexec' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 893 | datarootdir='${prefix}/share' | 
|  | 894 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 895 | sysconfdir='${prefix}/etc' | 
|  | 896 | sharedstatedir='${prefix}/com' | 
|  | 897 | localstatedir='${prefix}/var' | 
| Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 898 | runstatedir='${localstatedir}/run' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 899 | includedir='${prefix}/include' | 
|  | 900 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 901 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
|  | 902 | infodir='${datarootdir}/info' | 
|  | 903 | htmldir='${docdir}' | 
|  | 904 | dvidir='${docdir}' | 
|  | 905 | pdfdir='${docdir}' | 
|  | 906 | psdir='${docdir}' | 
|  | 907 | libdir='${exec_prefix}/lib' | 
|  | 908 | localedir='${datarootdir}/locale' | 
|  | 909 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 910 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 911 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 912 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 913 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 914 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 915 | # If the previous option needs an argument, assign it. | 
|  | 916 | if test -n "$ac_prev"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 917 | eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 918 | ac_prev= | 
|  | 919 | continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 920 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 921 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 922 | case $ac_option in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 923 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
|  | 924 | *=)   ac_optarg= ;; | 
|  | 925 | *)    ac_optarg=yes ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 926 | esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 927 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 928 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 929 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 930 | case $ac_dashdash$ac_option in | 
|  | 931 | --) | 
|  | 932 | ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 933 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 934 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 935 | ac_prev=bindir ;; | 
|  | 936 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 937 | bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 938 |  | 
|  | 939 | -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 940 | ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 941 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 942 | build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 943 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 944 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 945 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 946 | ac_prev=cache_file ;; | 
|  | 947 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 948 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 949 | cache_file=$ac_optarg ;; | 
|  | 950 |  | 
|  | 951 | --config-cache | -C) | 
|  | 952 | cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 953 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 954 | -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 955 | ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 956 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 957 | datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 958 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 959 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
|  | 960 | | --dataroo | --dataro | --datar) | 
|  | 961 | ac_prev=datarootdir ;; | 
|  | 962 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
|  | 963 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
|  | 964 | datarootdir=$ac_optarg ;; | 
|  | 965 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 966 | -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 967 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 968 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 969 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 970 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 971 | ac_useropt_orig=$ac_useropt | 
|  | 972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 973 | case $ac_user_opts in | 
|  | 974 | *" | 
|  | 975 | "enable_$ac_useropt" | 
|  | 976 | "*) ;; | 
|  | 977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
|  | 978 | ac_unrecognized_sep=', ';; | 
|  | 979 | esac | 
|  | 980 | eval enable_$ac_useropt=no ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 981 |  | 
|  | 982 | -docdir | --docdir | --docdi | --doc | --do) | 
|  | 983 | ac_prev=docdir ;; | 
|  | 984 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
|  | 985 | docdir=$ac_optarg ;; | 
|  | 986 |  | 
|  | 987 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
|  | 988 | ac_prev=dvidir ;; | 
|  | 989 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
|  | 990 | dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 991 |  | 
|  | 992 | -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 993 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 994 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 995 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 996 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 997 | ac_useropt_orig=$ac_useropt | 
|  | 998 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 999 | case $ac_user_opts in | 
|  | 1000 | *" | 
|  | 1001 | "enable_$ac_useropt" | 
|  | 1002 | "*) ;; | 
|  | 1003 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
|  | 1004 | ac_unrecognized_sep=', ';; | 
|  | 1005 | esac | 
|  | 1006 | eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1007 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1008 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 1009 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 1010 | | --exec | --exe | --ex) | 
|  | 1011 | ac_prev=exec_prefix ;; | 
|  | 1012 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 1013 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 1014 | | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1015 | exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1016 |  | 
|  | 1017 | -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1018 | # Obsolete; use --with-gas. | 
|  | 1019 | with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1020 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1021 | -help | --help | --hel | --he | -h) | 
|  | 1022 | ac_init_help=long ;; | 
|  | 1023 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 1024 | ac_init_help=recursive ;; | 
|  | 1025 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 1026 | ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1027 |  | 
|  | 1028 | -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1029 | ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1030 | -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1031 | host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1032 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1033 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
|  | 1034 | ac_prev=htmldir ;; | 
|  | 1035 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
|  | 1036 | | --ht=*) | 
|  | 1037 | htmldir=$ac_optarg ;; | 
|  | 1038 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1039 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 1040 | | --includ | --inclu | --incl | --inc) | 
|  | 1041 | ac_prev=includedir ;; | 
|  | 1042 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 1043 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1044 | includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1045 |  | 
|  | 1046 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 1047 | ac_prev=infodir ;; | 
|  | 1048 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1049 | infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1050 |  | 
|  | 1051 | -libdir | --libdir | --libdi | --libd) | 
|  | 1052 | ac_prev=libdir ;; | 
|  | 1053 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1054 | libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1055 |  | 
|  | 1056 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 1057 | | --libexe | --libex | --libe) | 
|  | 1058 | ac_prev=libexecdir ;; | 
|  | 1059 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 1060 | | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1061 | libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1062 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1063 | -localedir | --localedir | --localedi | --localed | --locale) | 
|  | 1064 | ac_prev=localedir ;; | 
|  | 1065 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
|  | 1066 | localedir=$ac_optarg ;; | 
|  | 1067 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1068 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1069 | | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1070 | ac_prev=localstatedir ;; | 
|  | 1071 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1072 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 | localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1074 |  | 
|  | 1075 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 1076 | ac_prev=mandir ;; | 
|  | 1077 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1078 | mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1079 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1080 | -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1081 | # Obsolete; use --without-fp. | 
|  | 1082 | with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1083 |  | 
|  | 1084 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1085 | | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1086 | no_create=yes ;; | 
|  | 1087 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1088 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 1089 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 1090 | no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1091 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1092 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 1093 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 1094 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 1095 | ac_prev=oldincludedir ;; | 
|  | 1096 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 1097 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 1098 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1099 | oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1100 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1101 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 1102 | ac_prev=prefix ;; | 
|  | 1103 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1104 | prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1105 |  | 
|  | 1106 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 1107 | | --program-pre | --program-pr | --program-p) | 
|  | 1108 | ac_prev=program_prefix ;; | 
|  | 1109 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 1110 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1111 | program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1112 |  | 
|  | 1113 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 1114 | | --program-suf | --program-su | --program-s) | 
|  | 1115 | ac_prev=program_suffix ;; | 
|  | 1116 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 1117 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1118 | program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1119 |  | 
|  | 1120 | -program-transform-name | --program-transform-name \ | 
|  | 1121 | | --program-transform-nam | --program-transform-na \ | 
|  | 1122 | | --program-transform-n | --program-transform- \ | 
|  | 1123 | | --program-transform | --program-transfor \ | 
|  | 1124 | | --program-transfo | --program-transf \ | 
|  | 1125 | | --program-trans | --program-tran \ | 
|  | 1126 | | --progr-tra | --program-tr | --program-t) | 
|  | 1127 | ac_prev=program_transform_name ;; | 
|  | 1128 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 1129 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 1130 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 1131 | | --program-transform=* | --program-transfor=* \ | 
|  | 1132 | | --program-transfo=* | --program-transf=* \ | 
|  | 1133 | | --program-trans=* | --program-tran=* \ | 
|  | 1134 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1135 | program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1136 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1137 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
|  | 1138 | ac_prev=pdfdir ;; | 
|  | 1139 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
|  | 1140 | pdfdir=$ac_optarg ;; | 
|  | 1141 |  | 
|  | 1142 | -psdir | --psdir | --psdi | --psd | --ps) | 
|  | 1143 | ac_prev=psdir ;; | 
|  | 1144 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
|  | 1145 | psdir=$ac_optarg ;; | 
|  | 1146 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1147 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1148 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1149 | silent=yes ;; | 
|  | 1150 |  | 
| Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 1151 | -runstatedir | --runstatedir | --runstatedi | --runstated \ | 
|  | 1152 | | --runstate | --runstat | --runsta | --runst | --runs \ | 
|  | 1153 | | --run | --ru | --r) | 
|  | 1154 | ac_prev=runstatedir ;; | 
|  | 1155 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | 
|  | 1156 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | 
|  | 1157 | | --run=* | --ru=* | --r=*) | 
|  | 1158 | runstatedir=$ac_optarg ;; | 
|  | 1159 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1160 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 1161 | ac_prev=sbindir ;; | 
|  | 1162 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 1163 | | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1164 | sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1165 |  | 
|  | 1166 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 1167 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 1168 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 1169 | | --sha | --sh) | 
|  | 1170 | ac_prev=sharedstatedir ;; | 
|  | 1171 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 1172 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 1173 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 1174 | | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1175 | sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1176 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1177 | -site | --site | --sit) | 
|  | 1178 | ac_prev=site ;; | 
|  | 1179 | -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1180 | site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1181 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1182 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 1183 | ac_prev=srcdir ;; | 
|  | 1184 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1185 | srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1186 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1187 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 1188 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 1189 | ac_prev=sysconfdir ;; | 
|  | 1190 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 1191 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1192 | sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1193 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1194 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1195 | ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1196 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1197 | target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1198 |  | 
|  | 1199 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 1200 | verbose=yes ;; | 
|  | 1201 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1202 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 1203 | ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1204 |  | 
|  | 1205 | -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1206 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1207 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1208 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1209 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1210 | ac_useropt_orig=$ac_useropt | 
|  | 1211 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1212 | case $ac_user_opts in | 
|  | 1213 | *" | 
|  | 1214 | "with_$ac_useropt" | 
|  | 1215 | "*) ;; | 
|  | 1216 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
|  | 1217 | ac_unrecognized_sep=', ';; | 
|  | 1218 | esac | 
|  | 1219 | eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1220 |  | 
|  | 1221 | -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1222 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1223 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1224 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1225 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1226 | ac_useropt_orig=$ac_useropt | 
|  | 1227 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1228 | case $ac_user_opts in | 
|  | 1229 | *" | 
|  | 1230 | "with_$ac_useropt" | 
|  | 1231 | "*) ;; | 
|  | 1232 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
|  | 1233 | ac_unrecognized_sep=', ';; | 
|  | 1234 | esac | 
|  | 1235 | eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1236 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1237 | --x) | 
|  | 1238 | # Obsolete; use --with-x. | 
|  | 1239 | with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1240 |  | 
|  | 1241 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 1242 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 1243 | ac_prev=x_includes ;; | 
|  | 1244 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 1245 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1246 | x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1247 |  | 
|  | 1248 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 1249 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 1250 | ac_prev=x_libraries ;; | 
|  | 1251 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 1252 | | --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] | 1253 | x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1254 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1255 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
|  | 1256 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1257 | ;; | 
|  | 1258 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1259 | *=*) | 
|  | 1260 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 1261 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1262 | case $ac_envvar in #( | 
|  | 1263 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1264 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1265 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1266 | eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1267 | export $ac_envvar ;; | 
|  | 1268 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1269 | *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1270 | # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1271 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1272 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1273 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1274 | : "${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] | 1275 | ;; | 
|  | 1276 |  | 
|  | 1277 | esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1278 | done | 
|  | 1279 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1280 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1281 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1282 | as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1283 | fi | 
|  | 1284 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1285 | if test -n "$ac_unrecognized_opts"; then | 
|  | 1286 | case $enable_option_checking in | 
|  | 1287 | no) ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1288 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1289 | *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
|  | 1290 | esac | 
|  | 1291 | fi | 
|  | 1292 |  | 
|  | 1293 | # Check all directory arguments for consistency. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1294 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
|  | 1295 | datadir sysconfdir sharedstatedir localstatedir includedir \ | 
|  | 1296 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
| Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 1297 | libdir localedir mandir runstatedir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1298 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1299 | eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1300 | # Remove trailing slashes. | 
|  | 1301 | case $ac_val in | 
|  | 1302 | */ ) | 
|  | 1303 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
|  | 1304 | eval $ac_var=\$ac_val;; | 
|  | 1305 | esac | 
|  | 1306 | # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1307 | case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1308 | [\\/$]* | ?:[\\/]* )  continue;; | 
|  | 1309 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1310 | esac | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1311 | 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] | 1312 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1313 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1314 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 1315 | # used to hold the argument of --host etc. | 
|  | 1316 | # FIXME: To remove some day. | 
|  | 1317 | build=$build_alias | 
|  | 1318 | host=$host_alias | 
|  | 1319 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1320 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1321 | # FIXME: To remove some day. | 
|  | 1322 | if test "x$host_alias" != x; then | 
|  | 1323 | if test "x$build_alias" = x; then | 
|  | 1324 | cross_compiling=maybe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1325 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 1326 | cross_compiling=yes | 
|  | 1327 | fi | 
|  | 1328 | fi | 
|  | 1329 |  | 
|  | 1330 | ac_tool_prefix= | 
|  | 1331 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 1332 |  | 
|  | 1333 | test "$silent" = yes && exec 6>/dev/null | 
|  | 1334 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1335 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1336 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
|  | 1337 | ac_ls_di=`ls -di .` && | 
|  | 1338 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1339 | as_fn_error $? "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1340 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1341 | as_fn_error $? "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1342 |  | 
|  | 1343 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1344 | # Find the source files, if location was not specified. | 
|  | 1345 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1346 | ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1347 | # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1348 | ac_confdir=`$as_dirname -- "$as_myself" || | 
|  | 1349 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 1350 | X"$as_myself" : 'X\(//\)[^/]' \| \ | 
|  | 1351 | X"$as_myself" : 'X\(//\)$' \| \ | 
|  | 1352 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 1353 | $as_echo X"$as_myself" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1354 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 1355 | s//\1/ | 
|  | 1356 | q | 
|  | 1357 | } | 
|  | 1358 | /^X\(\/\/\)[^/].*/{ | 
|  | 1359 | s//\1/ | 
|  | 1360 | q | 
|  | 1361 | } | 
|  | 1362 | /^X\(\/\/\)$/{ | 
|  | 1363 | s//\1/ | 
|  | 1364 | q | 
|  | 1365 | } | 
|  | 1366 | /^X\(\/\).*/{ | 
|  | 1367 | s//\1/ | 
|  | 1368 | q | 
|  | 1369 | } | 
|  | 1370 | s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1371 | srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1372 | if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1373 | srcdir=.. | 
|  | 1374 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1375 | else | 
|  | 1376 | ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1377 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1378 | if test ! -r "$srcdir/$ac_unique_file"; then | 
|  | 1379 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1380 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1381 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1382 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
|  | 1383 | ac_abs_confdir=`( | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1384 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1385 | pwd)` | 
|  | 1386 | # When building in place, set srcdir=. | 
|  | 1387 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
|  | 1388 | srcdir=. | 
|  | 1389 | fi | 
|  | 1390 | # Remove unnecessary trailing slashes from srcdir. | 
|  | 1391 | # Double slashes in file names in object file debugging info | 
|  | 1392 | # mess up M-x gdb in Emacs. | 
|  | 1393 | case $srcdir in | 
|  | 1394 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
|  | 1395 | esac | 
|  | 1396 | for ac_var in $ac_precious_vars; do | 
|  | 1397 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1398 | eval ac_env_${ac_var}_value=\$${ac_var} | 
|  | 1399 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1400 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
|  | 1401 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1402 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1403 | # | 
|  | 1404 | # Report the --help message. | 
|  | 1405 | # | 
|  | 1406 | if test "$ac_init_help" = "long"; then | 
|  | 1407 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 1408 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 1409 | cat <<_ACEOF | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1410 | \`configure' configures python 3.6 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1411 |  | 
|  | 1412 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 1413 |  | 
|  | 1414 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 1415 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 1416 |  | 
|  | 1417 | Defaults for the options are specified in brackets. | 
|  | 1418 |  | 
|  | 1419 | Configuration: | 
|  | 1420 | -h, --help              display this help and exit | 
|  | 1421 | --help=short        display options specific to this package | 
|  | 1422 | --help=recursive    display the short help of all the included packages | 
|  | 1423 | -V, --version           display version information and exit | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1424 | -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1425 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 1426 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 1427 | -n, --no-create         do not create output files | 
|  | 1428 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 1429 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1430 | Installation directories: | 
|  | 1431 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1432 | [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1433 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1434 | [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1435 |  | 
|  | 1436 | By default, \`make install' will install all the files in | 
|  | 1437 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 1438 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 1439 | for instance \`--prefix=\$HOME'. | 
|  | 1440 |  | 
|  | 1441 | For better control, use the options below. | 
|  | 1442 |  | 
|  | 1443 | Fine tuning of the installation directories: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1444 | --bindir=DIR            user executables [EPREFIX/bin] | 
|  | 1445 | --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
|  | 1446 | --libexecdir=DIR        program executables [EPREFIX/libexec] | 
|  | 1447 | --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
|  | 1448 | --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
|  | 1449 | --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
| Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 1450 | --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1451 | --libdir=DIR            object code libraries [EPREFIX/lib] | 
|  | 1452 | --includedir=DIR        C header files [PREFIX/include] | 
|  | 1453 | --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
|  | 1454 | --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
|  | 1455 | --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
|  | 1456 | --infodir=DIR           info documentation [DATAROOTDIR/info] | 
|  | 1457 | --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
|  | 1458 | --mandir=DIR            man documentation [DATAROOTDIR/man] | 
|  | 1459 | --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
|  | 1460 | --htmldir=DIR           html documentation [DOCDIR] | 
|  | 1461 | --dvidir=DIR            dvi documentation [DOCDIR] | 
|  | 1462 | --pdfdir=DIR            pdf documentation [DOCDIR] | 
|  | 1463 | --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1464 | _ACEOF | 
|  | 1465 |  | 
|  | 1466 | cat <<\_ACEOF | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1467 |  | 
|  | 1468 | System types: | 
|  | 1469 | --build=BUILD     configure for building on BUILD [guessed] | 
|  | 1470 | --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 1471 | --target=TARGET   configure for building compilers for TARGET [HOST] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1472 | _ACEOF | 
|  | 1473 | fi | 
|  | 1474 |  | 
|  | 1475 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1476 | case $ac_init_help in | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1477 | short | recursive ) echo "Configuration of python 3.6:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1478 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1479 | cat <<\_ACEOF | 
|  | 1480 |  | 
|  | 1481 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1482 | --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1483 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1484 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1485 | --enable-universalsdk[=SDKDIR] | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1486 | Build fat binary against Mac OS X SDK | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1487 | --enable-framework[=INSTALLDIR] | 
|  | 1488 | Build (MacOSX|Darwin) framework | 
|  | 1489 | --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1490 | --enable-profiling      enable C-level code profiling | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1491 | --enable-loadable-sqlite-extensions | 
|  | 1492 | support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1493 | --enable-ipv6           Enable ipv6 (with ipv4) support | 
|  | 1494 | --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1495 | --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1496 | use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1497 |  | 
|  | 1498 | Optional Packages: | 
|  | 1499 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1500 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1501 | --with-universal-archs=ARCH | 
|  | 1502 | select architectures for universal build ("32-bit", | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 1503 | "64-bit", "3-way", "intel", "intel-32", or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1504 | --with-framework-name=FRAMEWORK | 
|  | 1505 | specify an alternate name of the framework built | 
|  | 1506 | with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1507 | --without-gcc           never use gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 1508 | --with-icc              build with icc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1509 | --with-cxx-main=<compiler> | 
|  | 1510 | compile main() and link python executable with C++ | 
|  | 1511 | compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1512 | --with-suffix=.exe      set executable suffix | 
|  | 1513 | --with-pydebug          build with Py_DEBUG defined | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 1514 | --with-optimizations    Enable expensive optimizations (PGO, maybe LTO, | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 1515 | etc). Disabled by default. | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 1516 | --with-lto              Enable Link Time Optimization in PGO builds. | 
|  | 1517 | Disabled by default. | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1518 | --with-hash-algorithm=[fnv|siphash24] | 
|  | 1519 | select hash algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1520 | --with-address-sanitizer | 
|  | 1521 | enable AddressSanitizer | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1522 | --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1523 | --with-system-expat     build pyexpat module using an installed expat | 
|  | 1524 | library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1525 | --with-system-ffi       build _ctypes module using an installed ffi library | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1526 | --with-system-libmpdec  build _decimal module using an installed libmpdec | 
|  | 1527 | library | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1528 | --with-tcltk-includes='-I...' | 
|  | 1529 | override search for Tcl and Tk include files | 
|  | 1530 | --with-tcltk-libs='-L...' | 
|  | 1531 | override search for Tcl and Tk libs | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1532 | --with-dbmliborder=db1:db2:... | 
|  | 1533 | order to check db backends for dbm. Valid value is a | 
|  | 1534 | colon separated string with the backend names | 
|  | 1535 | `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1536 | --with(out)-threads[=DIRECTORY] | 
|  | 1537 | disable/enable thread support | 
|  | 1538 | --with(out)-thread[=DIRECTORY] | 
|  | 1539 | deprecated; use --with(out)-threads | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1540 | --with(out)-doc-strings disable/enable documentation strings | 
|  | 1541 | --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1542 | --with-valgrind         Enable Valgrind support | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 1543 | --with(out)-dtrace      disable/enable DTrace support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1544 | --with-fpectl           enable SIGFPE catching | 
|  | 1545 | --with-libm=STRING      math library | 
|  | 1546 | --with-libc=STRING      C library | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1547 | --with(out)-computed-gotos | 
|  | 1548 | Use computed gotos in evaluation loop (enabled by | 
|  | 1549 | default on supported compilers) | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 1550 | --with(out)-ensurepip=[=upgrade] | 
|  | 1551 | "install" or "upgrade" using bundled pip | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1552 |  | 
|  | 1553 | Some influential environment variables: | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1554 | MACHDEP     name for machine-dependent library files | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1555 | CC          C compiler command | 
|  | 1556 | CFLAGS      C compiler flags | 
|  | 1557 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1558 | nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1559 | LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1560 | CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1561 | you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1562 | CPP         C preprocessor | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 1563 | PKG_CONFIG  path to pkg-config utility | 
|  | 1564 | PKG_CONFIG_PATH | 
|  | 1565 | directories to add to pkg-config's search path | 
|  | 1566 | PKG_CONFIG_LIBDIR | 
|  | 1567 | path overriding pkg-config's built-in search path | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1568 |  | 
|  | 1569 | Use these variables to override the choices made by `configure' or to help | 
|  | 1570 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1571 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1572 | Report bugs to <https://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1573 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1574 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1575 | fi | 
|  | 1576 |  | 
|  | 1577 | if test "$ac_init_help" = "recursive"; then | 
|  | 1578 | # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1579 | 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] | 1580 | test -d "$ac_dir" || | 
|  | 1581 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
|  | 1582 | continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1583 | ac_builddir=. | 
|  | 1584 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1585 | case "$ac_dir" in | 
|  | 1586 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1587 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1588 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1589 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1590 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1591 | case $ac_top_builddir_sub in | 
|  | 1592 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1593 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 1594 | esac ;; | 
|  | 1595 | esac | 
|  | 1596 | ac_abs_top_builddir=$ac_pwd | 
|  | 1597 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 1598 | # for backward compatibility: | 
|  | 1599 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1600 |  | 
|  | 1601 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1602 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1603 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1604 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 1605 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 1606 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1607 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1608 | ac_top_srcdir=$srcdir | 
|  | 1609 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 1610 | *) # Relative name. | 
|  | 1611 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 1612 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 1613 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1614 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1615 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1616 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1617 | cd "$ac_dir" || { ac_status=$?; continue; } | 
|  | 1618 | # Check for guested configure. | 
|  | 1619 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 1620 | echo && | 
|  | 1621 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
|  | 1622 | elif test -f "$ac_srcdir/configure"; then | 
|  | 1623 | echo && | 
|  | 1624 | $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1625 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1626 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1627 | fi || ac_status=$? | 
|  | 1628 | cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1629 | done | 
|  | 1630 | fi | 
|  | 1631 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1632 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1633 | if $ac_init_version; then | 
|  | 1634 | cat <<\_ACEOF | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1635 | python configure 3.6 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1636 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1637 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1638 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1639 | This configure script is free software; the Free Software Foundation | 
|  | 1640 | gives unlimited permission to copy, distribute and modify it. | 
|  | 1641 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1642 | exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1643 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1644 |  | 
|  | 1645 | ## ------------------------ ## | 
|  | 1646 | ## Autoconf initialization. ## | 
|  | 1647 | ## ------------------------ ## | 
|  | 1648 |  | 
|  | 1649 | # ac_fn_c_try_compile LINENO | 
|  | 1650 | # -------------------------- | 
|  | 1651 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
|  | 1652 | ac_fn_c_try_compile () | 
|  | 1653 | { | 
|  | 1654 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1655 | rm -f conftest.$ac_objext | 
|  | 1656 | if { { ac_try="$ac_compile" | 
|  | 1657 | case "(($ac_try" in | 
|  | 1658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1659 | *) ac_try_echo=$ac_try;; | 
|  | 1660 | esac | 
|  | 1661 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1662 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1663 | (eval "$ac_compile") 2>conftest.err | 
|  | 1664 | ac_status=$? | 
|  | 1665 | if test -s conftest.err; then | 
|  | 1666 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1667 | cat conftest.er1 >&5 | 
|  | 1668 | mv -f conftest.er1 conftest.err | 
|  | 1669 | fi | 
|  | 1670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1671 | test $ac_status = 0; } && { | 
|  | 1672 | test -z "$ac_c_werror_flag" || | 
|  | 1673 | test ! -s conftest.err | 
|  | 1674 | } && test -s conftest.$ac_objext; then : | 
|  | 1675 | ac_retval=0 | 
|  | 1676 | else | 
|  | 1677 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1678 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1679 |  | 
|  | 1680 | ac_retval=1 | 
|  | 1681 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1682 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1683 | as_fn_set_status $ac_retval | 
|  | 1684 |  | 
|  | 1685 | } # ac_fn_c_try_compile | 
|  | 1686 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1687 | # ac_fn_c_try_cpp LINENO | 
|  | 1688 | # ---------------------- | 
|  | 1689 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
|  | 1690 | ac_fn_c_try_cpp () | 
|  | 1691 | { | 
|  | 1692 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1693 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 1694 | case "(($ac_try" in | 
|  | 1695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1696 | *) ac_try_echo=$ac_try;; | 
|  | 1697 | esac | 
|  | 1698 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1699 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1700 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
|  | 1701 | ac_status=$? | 
|  | 1702 | if test -s conftest.err; then | 
|  | 1703 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1704 | cat conftest.er1 >&5 | 
|  | 1705 | mv -f conftest.er1 conftest.err | 
|  | 1706 | fi | 
|  | 1707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1708 | test $ac_status = 0; } > conftest.i && { | 
|  | 1709 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
|  | 1710 | test ! -s conftest.err | 
|  | 1711 | }; then : | 
|  | 1712 | ac_retval=0 | 
|  | 1713 | else | 
|  | 1714 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1715 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1716 |  | 
|  | 1717 | ac_retval=1 | 
|  | 1718 | fi | 
|  | 1719 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
|  | 1720 | as_fn_set_status $ac_retval | 
|  | 1721 |  | 
|  | 1722 | } # ac_fn_c_try_cpp | 
|  | 1723 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1724 | # ac_fn_c_try_link LINENO | 
|  | 1725 | # ----------------------- | 
|  | 1726 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
|  | 1727 | ac_fn_c_try_link () | 
|  | 1728 | { | 
|  | 1729 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1730 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 1731 | if { { ac_try="$ac_link" | 
|  | 1732 | case "(($ac_try" in | 
|  | 1733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1734 | *) ac_try_echo=$ac_try;; | 
|  | 1735 | esac | 
|  | 1736 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1737 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1738 | (eval "$ac_link") 2>conftest.err | 
|  | 1739 | ac_status=$? | 
|  | 1740 | if test -s conftest.err; then | 
|  | 1741 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1742 | cat conftest.er1 >&5 | 
|  | 1743 | mv -f conftest.er1 conftest.err | 
|  | 1744 | fi | 
|  | 1745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1746 | test $ac_status = 0; } && { | 
|  | 1747 | test -z "$ac_c_werror_flag" || | 
|  | 1748 | test ! -s conftest.err | 
|  | 1749 | } && test -s conftest$ac_exeext && { | 
|  | 1750 | test "$cross_compiling" = yes || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1751 | test -x conftest$ac_exeext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1752 | }; then : | 
|  | 1753 | ac_retval=0 | 
|  | 1754 | else | 
|  | 1755 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1756 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1757 |  | 
|  | 1758 | ac_retval=1 | 
|  | 1759 | fi | 
|  | 1760 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
|  | 1761 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
|  | 1762 | # interfere with the next link command; also delete a directory that is | 
|  | 1763 | # left behind by Apple's compiler.  We do this before executing the actions. | 
|  | 1764 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1765 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1766 | as_fn_set_status $ac_retval | 
|  | 1767 |  | 
|  | 1768 | } # ac_fn_c_try_link | 
|  | 1769 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1770 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
|  | 1771 | # ------------------------------------------------------- | 
|  | 1772 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
|  | 1773 | # the include files in INCLUDES and setting the cache variable VAR | 
|  | 1774 | # accordingly. | 
|  | 1775 | ac_fn_c_check_header_mongrel () | 
|  | 1776 | { | 
|  | 1777 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1778 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1780 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1781 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1782 | $as_echo_n "(cached) " >&6 | 
|  | 1783 | fi | 
|  | 1784 | eval ac_res=\$$3 | 
|  | 1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1786 | $as_echo "$ac_res" >&6; } | 
|  | 1787 | else | 
|  | 1788 | # Is the header compilable? | 
|  | 1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
|  | 1790 | $as_echo_n "checking $2 usability... " >&6; } | 
|  | 1791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1792 | /* end confdefs.h.  */ | 
|  | 1793 | $4 | 
|  | 1794 | #include <$2> | 
|  | 1795 | _ACEOF | 
|  | 1796 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1797 | ac_header_compiler=yes | 
|  | 1798 | else | 
|  | 1799 | ac_header_compiler=no | 
|  | 1800 | fi | 
|  | 1801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
|  | 1803 | $as_echo "$ac_header_compiler" >&6; } | 
|  | 1804 |  | 
|  | 1805 | # Is the header present? | 
|  | 1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
|  | 1807 | $as_echo_n "checking $2 presence... " >&6; } | 
|  | 1808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1809 | /* end confdefs.h.  */ | 
|  | 1810 | #include <$2> | 
|  | 1811 | _ACEOF | 
|  | 1812 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 1813 | ac_header_preproc=yes | 
|  | 1814 | else | 
|  | 1815 | ac_header_preproc=no | 
|  | 1816 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1817 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
|  | 1819 | $as_echo "$ac_header_preproc" >&6; } | 
|  | 1820 |  | 
|  | 1821 | # So?  What about this header? | 
|  | 1822 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
|  | 1823 | yes:no: ) | 
|  | 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 1825 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1827 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 1828 | ;; | 
|  | 1829 | no:yes:* ) | 
|  | 1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
|  | 1831 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
|  | 1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
|  | 1833 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
|  | 1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
|  | 1835 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
|  | 1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 1837 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1839 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1840 | ( $as_echo "## --------------------------------------- ## | 
|  | 1841 | ## Report this to https://bugs.python.org/ ## | 
|  | 1842 | ## --------------------------------------- ##" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1843 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 1844 | ;; | 
|  | 1845 | esac | 
|  | 1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1847 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1848 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1849 | $as_echo_n "(cached) " >&6 | 
|  | 1850 | else | 
|  | 1851 | eval "$3=\$ac_header_compiler" | 
|  | 1852 | fi | 
|  | 1853 | eval ac_res=\$$3 | 
|  | 1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1855 | $as_echo "$ac_res" >&6; } | 
|  | 1856 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1857 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1858 |  | 
|  | 1859 | } # ac_fn_c_check_header_mongrel | 
|  | 1860 |  | 
|  | 1861 | # ac_fn_c_try_run LINENO | 
|  | 1862 | # ---------------------- | 
|  | 1863 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
|  | 1864 | # that executables *can* be run. | 
|  | 1865 | ac_fn_c_try_run () | 
|  | 1866 | { | 
|  | 1867 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1868 | if { { ac_try="$ac_link" | 
|  | 1869 | case "(($ac_try" in | 
|  | 1870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1871 | *) ac_try_echo=$ac_try;; | 
|  | 1872 | esac | 
|  | 1873 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1874 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1875 | (eval "$ac_link") 2>&5 | 
|  | 1876 | ac_status=$? | 
|  | 1877 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1878 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
|  | 1879 | { { case "(($ac_try" in | 
|  | 1880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1881 | *) ac_try_echo=$ac_try;; | 
|  | 1882 | esac | 
|  | 1883 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1884 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1885 | (eval "$ac_try") 2>&5 | 
|  | 1886 | ac_status=$? | 
|  | 1887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1888 | test $ac_status = 0; }; }; then : | 
|  | 1889 | ac_retval=0 | 
|  | 1890 | else | 
|  | 1891 | $as_echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 1892 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1893 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1894 |  | 
|  | 1895 | ac_retval=$ac_status | 
|  | 1896 | fi | 
|  | 1897 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1898 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1899 | as_fn_set_status $ac_retval | 
|  | 1900 |  | 
|  | 1901 | } # ac_fn_c_try_run | 
|  | 1902 |  | 
|  | 1903 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
|  | 1904 | # ------------------------------------------------------- | 
|  | 1905 | # Tests whether HEADER exists and can be compiled using the include files in | 
|  | 1906 | # INCLUDES, setting the cache variable VAR accordingly. | 
|  | 1907 | ac_fn_c_check_header_compile () | 
|  | 1908 | { | 
|  | 1909 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1911 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1912 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1913 | $as_echo_n "(cached) " >&6 | 
|  | 1914 | else | 
|  | 1915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1916 | /* end confdefs.h.  */ | 
|  | 1917 | $4 | 
|  | 1918 | #include <$2> | 
|  | 1919 | _ACEOF | 
|  | 1920 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1921 | eval "$3=yes" | 
|  | 1922 | else | 
|  | 1923 | eval "$3=no" | 
|  | 1924 | fi | 
|  | 1925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1926 | fi | 
|  | 1927 | eval ac_res=\$$3 | 
|  | 1928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1929 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1930 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1931 |  | 
|  | 1932 | } # ac_fn_c_check_header_compile | 
|  | 1933 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1934 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
|  | 1935 | # ------------------------------------------- | 
|  | 1936 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
|  | 1937 | # variable VAR accordingly. | 
|  | 1938 | ac_fn_c_check_type () | 
|  | 1939 | { | 
|  | 1940 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1942 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1943 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1944 | $as_echo_n "(cached) " >&6 | 
|  | 1945 | else | 
|  | 1946 | eval "$3=no" | 
|  | 1947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1948 | /* end confdefs.h.  */ | 
|  | 1949 | $4 | 
|  | 1950 | int | 
|  | 1951 | main () | 
|  | 1952 | { | 
|  | 1953 | if (sizeof ($2)) | 
|  | 1954 | return 0; | 
|  | 1955 | ; | 
|  | 1956 | return 0; | 
|  | 1957 | } | 
|  | 1958 | _ACEOF | 
|  | 1959 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1961 | /* end confdefs.h.  */ | 
|  | 1962 | $4 | 
|  | 1963 | int | 
|  | 1964 | main () | 
|  | 1965 | { | 
|  | 1966 | if (sizeof (($2))) | 
|  | 1967 | return 0; | 
|  | 1968 | ; | 
|  | 1969 | return 0; | 
|  | 1970 | } | 
|  | 1971 | _ACEOF | 
|  | 1972 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1973 |  | 
|  | 1974 | else | 
|  | 1975 | eval "$3=yes" | 
|  | 1976 | fi | 
|  | 1977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1978 | fi | 
|  | 1979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1980 | fi | 
|  | 1981 | eval ac_res=\$$3 | 
|  | 1982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1983 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1984 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1985 |  | 
|  | 1986 | } # ac_fn_c_check_type | 
|  | 1987 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1988 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
|  | 1989 | # -------------------------------------------- | 
|  | 1990 | # Tries to find the compile-time value of EXPR in a program that includes | 
|  | 1991 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
|  | 1992 | # computed | 
|  | 1993 | ac_fn_c_compute_int () | 
|  | 1994 | { | 
|  | 1995 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1996 | if test "$cross_compiling" = yes; then | 
|  | 1997 | # Depending upon the size, compute the lo and hi bounds. | 
|  | 1998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1999 | /* end confdefs.h.  */ | 
|  | 2000 | $4 | 
|  | 2001 | int | 
|  | 2002 | main () | 
|  | 2003 | { | 
|  | 2004 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2005 | test_array [0] = 0; | 
|  | 2006 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2007 |  | 
|  | 2008 | ; | 
|  | 2009 | return 0; | 
|  | 2010 | } | 
|  | 2011 | _ACEOF | 
|  | 2012 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2013 | ac_lo=0 ac_mid=0 | 
|  | 2014 | while :; do | 
|  | 2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2016 | /* end confdefs.h.  */ | 
|  | 2017 | $4 | 
|  | 2018 | int | 
|  | 2019 | main () | 
|  | 2020 | { | 
|  | 2021 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2022 | test_array [0] = 0; | 
|  | 2023 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2024 |  | 
|  | 2025 | ; | 
|  | 2026 | return 0; | 
|  | 2027 | } | 
|  | 2028 | _ACEOF | 
|  | 2029 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2030 | ac_hi=$ac_mid; break | 
|  | 2031 | else | 
|  | 2032 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
|  | 2033 | if test $ac_lo -le $ac_mid; then | 
|  | 2034 | ac_lo= ac_hi= | 
|  | 2035 | break | 
|  | 2036 | fi | 
|  | 2037 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
|  | 2038 | fi | 
|  | 2039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2040 | done | 
|  | 2041 | else | 
|  | 2042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2043 | /* end confdefs.h.  */ | 
|  | 2044 | $4 | 
|  | 2045 | int | 
|  | 2046 | main () | 
|  | 2047 | { | 
|  | 2048 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2049 | test_array [0] = 0; | 
|  | 2050 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2051 |  | 
|  | 2052 | ; | 
|  | 2053 | return 0; | 
|  | 2054 | } | 
|  | 2055 | _ACEOF | 
|  | 2056 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2057 | ac_hi=-1 ac_mid=-1 | 
|  | 2058 | while :; do | 
|  | 2059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2060 | /* end confdefs.h.  */ | 
|  | 2061 | $4 | 
|  | 2062 | int | 
|  | 2063 | main () | 
|  | 2064 | { | 
|  | 2065 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2066 | test_array [0] = 0; | 
|  | 2067 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2068 |  | 
|  | 2069 | ; | 
|  | 2070 | return 0; | 
|  | 2071 | } | 
|  | 2072 | _ACEOF | 
|  | 2073 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2074 | ac_lo=$ac_mid; break | 
|  | 2075 | else | 
|  | 2076 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
|  | 2077 | if test $ac_mid -le $ac_hi; then | 
|  | 2078 | ac_lo= ac_hi= | 
|  | 2079 | break | 
|  | 2080 | fi | 
|  | 2081 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
|  | 2082 | fi | 
|  | 2083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2084 | done | 
|  | 2085 | else | 
|  | 2086 | ac_lo= ac_hi= | 
|  | 2087 | fi | 
|  | 2088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2089 | fi | 
|  | 2090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2091 | # Binary search between lo and hi bounds. | 
|  | 2092 | while test "x$ac_lo" != "x$ac_hi"; do | 
|  | 2093 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
|  | 2094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2095 | /* end confdefs.h.  */ | 
|  | 2096 | $4 | 
|  | 2097 | int | 
|  | 2098 | main () | 
|  | 2099 | { | 
|  | 2100 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2101 | test_array [0] = 0; | 
|  | 2102 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2103 |  | 
|  | 2104 | ; | 
|  | 2105 | return 0; | 
|  | 2106 | } | 
|  | 2107 | _ACEOF | 
|  | 2108 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2109 | ac_hi=$ac_mid | 
|  | 2110 | else | 
|  | 2111 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
|  | 2112 | fi | 
|  | 2113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2114 | done | 
|  | 2115 | case $ac_lo in #(( | 
|  | 2116 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
|  | 2117 | '') ac_retval=1 ;; | 
|  | 2118 | esac | 
|  | 2119 | else | 
|  | 2120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2121 | /* end confdefs.h.  */ | 
|  | 2122 | $4 | 
|  | 2123 | static long int longval () { return $2; } | 
|  | 2124 | static unsigned long int ulongval () { return $2; } | 
|  | 2125 | #include <stdio.h> | 
|  | 2126 | #include <stdlib.h> | 
|  | 2127 | int | 
|  | 2128 | main () | 
|  | 2129 | { | 
|  | 2130 |  | 
|  | 2131 | FILE *f = fopen ("conftest.val", "w"); | 
|  | 2132 | if (! f) | 
|  | 2133 | return 1; | 
|  | 2134 | if (($2) < 0) | 
|  | 2135 | { | 
|  | 2136 | long int i = longval (); | 
|  | 2137 | if (i != ($2)) | 
|  | 2138 | return 1; | 
|  | 2139 | fprintf (f, "%ld", i); | 
|  | 2140 | } | 
|  | 2141 | else | 
|  | 2142 | { | 
|  | 2143 | unsigned long int i = ulongval (); | 
|  | 2144 | if (i != ($2)) | 
|  | 2145 | return 1; | 
|  | 2146 | fprintf (f, "%lu", i); | 
|  | 2147 | } | 
|  | 2148 | /* Do not output a trailing newline, as this causes \r\n confusion | 
|  | 2149 | on some platforms.  */ | 
|  | 2150 | return ferror (f) || fclose (f) != 0; | 
|  | 2151 |  | 
|  | 2152 | ; | 
|  | 2153 | return 0; | 
|  | 2154 | } | 
|  | 2155 | _ACEOF | 
|  | 2156 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 2157 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
|  | 2158 | else | 
|  | 2159 | ac_retval=1 | 
|  | 2160 | fi | 
|  | 2161 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 2162 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 2163 | rm -f conftest.val | 
|  | 2164 |  | 
|  | 2165 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2166 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2167 | as_fn_set_status $ac_retval | 
|  | 2168 |  | 
|  | 2169 | } # ac_fn_c_compute_int | 
|  | 2170 |  | 
|  | 2171 | # ac_fn_c_check_func LINENO FUNC VAR | 
|  | 2172 | # ---------------------------------- | 
|  | 2173 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
|  | 2174 | ac_fn_c_check_func () | 
|  | 2175 | { | 
|  | 2176 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2178 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2179 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2180 | $as_echo_n "(cached) " >&6 | 
|  | 2181 | else | 
|  | 2182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2183 | /* end confdefs.h.  */ | 
|  | 2184 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
|  | 2185 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 2186 | #define $2 innocuous_$2 | 
|  | 2187 |  | 
|  | 2188 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 2189 | which can conflict with char $2 (); below. | 
|  | 2190 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 2191 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 2192 |  | 
|  | 2193 | #ifdef __STDC__ | 
|  | 2194 | # include <limits.h> | 
|  | 2195 | #else | 
|  | 2196 | # include <assert.h> | 
|  | 2197 | #endif | 
|  | 2198 |  | 
|  | 2199 | #undef $2 | 
|  | 2200 |  | 
|  | 2201 | /* Override any GCC internal prototype to avoid an error. | 
|  | 2202 | Use char because int might match the return type of a GCC | 
|  | 2203 | builtin and then its argument prototype would still apply.  */ | 
|  | 2204 | #ifdef __cplusplus | 
|  | 2205 | extern "C" | 
|  | 2206 | #endif | 
|  | 2207 | char $2 (); | 
|  | 2208 | /* The GNU C library defines this for functions which it implements | 
|  | 2209 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 2210 | something starting with __ and the normal name is an alias.  */ | 
|  | 2211 | #if defined __stub_$2 || defined __stub___$2 | 
|  | 2212 | choke me | 
|  | 2213 | #endif | 
|  | 2214 |  | 
|  | 2215 | int | 
|  | 2216 | main () | 
|  | 2217 | { | 
|  | 2218 | return $2 (); | 
|  | 2219 | ; | 
|  | 2220 | return 0; | 
|  | 2221 | } | 
|  | 2222 | _ACEOF | 
|  | 2223 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 2224 | eval "$3=yes" | 
|  | 2225 | else | 
|  | 2226 | eval "$3=no" | 
|  | 2227 | fi | 
|  | 2228 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 2229 | conftest$ac_exeext conftest.$ac_ext | 
|  | 2230 | fi | 
|  | 2231 | eval ac_res=\$$3 | 
|  | 2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2233 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2234 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2235 |  | 
|  | 2236 | } # ac_fn_c_check_func | 
|  | 2237 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2238 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
|  | 2239 | # --------------------------------------------- | 
|  | 2240 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
|  | 2241 | # accordingly. | 
|  | 2242 | ac_fn_c_check_decl () | 
|  | 2243 | { | 
|  | 2244 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2245 | as_decl_name=`echo $2|sed 's/ *(.*//'` | 
|  | 2246 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
|  | 2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
|  | 2248 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
|  | 2249 | if eval \${$3+:} false; then : | 
|  | 2250 | $as_echo_n "(cached) " >&6 | 
|  | 2251 | else | 
|  | 2252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2253 | /* end confdefs.h.  */ | 
|  | 2254 | $4 | 
|  | 2255 | int | 
|  | 2256 | main () | 
|  | 2257 | { | 
|  | 2258 | #ifndef $as_decl_name | 
|  | 2259 | #ifdef __cplusplus | 
|  | 2260 | (void) $as_decl_use; | 
|  | 2261 | #else | 
|  | 2262 | (void) $as_decl_name; | 
|  | 2263 | #endif | 
|  | 2264 | #endif | 
|  | 2265 |  | 
|  | 2266 | ; | 
|  | 2267 | return 0; | 
|  | 2268 | } | 
|  | 2269 | _ACEOF | 
|  | 2270 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2271 | eval "$3=yes" | 
|  | 2272 | else | 
|  | 2273 | eval "$3=no" | 
|  | 2274 | fi | 
|  | 2275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2276 | fi | 
|  | 2277 | eval ac_res=\$$3 | 
|  | 2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2279 | $as_echo "$ac_res" >&6; } | 
|  | 2280 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
|  | 2281 |  | 
|  | 2282 | } # ac_fn_c_check_decl | 
|  | 2283 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2284 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
|  | 2285 | # ---------------------------------------------------- | 
|  | 2286 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
|  | 2287 | # INCLUDES, setting cache variable VAR accordingly. | 
|  | 2288 | ac_fn_c_check_member () | 
|  | 2289 | { | 
|  | 2290 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
|  | 2292 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2293 | if eval \${$4+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2294 | $as_echo_n "(cached) " >&6 | 
|  | 2295 | else | 
|  | 2296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2297 | /* end confdefs.h.  */ | 
|  | 2298 | $5 | 
|  | 2299 | int | 
|  | 2300 | main () | 
|  | 2301 | { | 
|  | 2302 | static $2 ac_aggr; | 
|  | 2303 | if (ac_aggr.$3) | 
|  | 2304 | return 0; | 
|  | 2305 | ; | 
|  | 2306 | return 0; | 
|  | 2307 | } | 
|  | 2308 | _ACEOF | 
|  | 2309 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2310 | eval "$4=yes" | 
|  | 2311 | else | 
|  | 2312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2313 | /* end confdefs.h.  */ | 
|  | 2314 | $5 | 
|  | 2315 | int | 
|  | 2316 | main () | 
|  | 2317 | { | 
|  | 2318 | static $2 ac_aggr; | 
|  | 2319 | if (sizeof ac_aggr.$3) | 
|  | 2320 | return 0; | 
|  | 2321 | ; | 
|  | 2322 | return 0; | 
|  | 2323 | } | 
|  | 2324 | _ACEOF | 
|  | 2325 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2326 | eval "$4=yes" | 
|  | 2327 | else | 
|  | 2328 | eval "$4=no" | 
|  | 2329 | fi | 
|  | 2330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2331 | fi | 
|  | 2332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2333 | fi | 
|  | 2334 | eval ac_res=\$$4 | 
|  | 2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2336 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2337 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2338 |  | 
|  | 2339 | } # ac_fn_c_check_member | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2340 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2341 | This file contains any messages produced by compilers while | 
|  | 2342 | running configure, to aid debugging if configure makes a mistake. | 
|  | 2343 |  | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 2344 | It was created by python $as_me 3.6, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2345 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2346 |  | 
|  | 2347 | $ $0 $@ | 
|  | 2348 |  | 
|  | 2349 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2350 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2351 | { | 
|  | 2352 | cat <<_ASUNAME | 
|  | 2353 | ## --------- ## | 
|  | 2354 | ## Platform. ## | 
|  | 2355 | ## --------- ## | 
|  | 2356 |  | 
|  | 2357 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 2358 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 2359 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 2360 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 2361 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 2362 |  | 
|  | 2363 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 2364 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 2365 |  | 
|  | 2366 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 2367 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 2368 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2369 | /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] | 2370 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 2371 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 2372 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 2373 |  | 
|  | 2374 | _ASUNAME | 
|  | 2375 |  | 
|  | 2376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2377 | for as_dir in $PATH | 
|  | 2378 | do | 
|  | 2379 | IFS=$as_save_IFS | 
|  | 2380 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2381 | $as_echo "PATH: $as_dir" | 
|  | 2382 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2383 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2384 |  | 
|  | 2385 | } >&5 | 
|  | 2386 |  | 
|  | 2387 | cat >&5 <<_ACEOF | 
|  | 2388 |  | 
|  | 2389 |  | 
|  | 2390 | ## ----------- ## | 
|  | 2391 | ## Core tests. ## | 
|  | 2392 | ## ----------- ## | 
|  | 2393 |  | 
|  | 2394 | _ACEOF | 
|  | 2395 |  | 
|  | 2396 |  | 
|  | 2397 | # Keep a trace of the command line. | 
|  | 2398 | # 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] | 2399 | # 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] | 2400 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2401 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2402 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2403 | ac_configure_args0= | 
|  | 2404 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2405 | ac_must_keep_next=false | 
|  | 2406 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2407 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2408 | for ac_arg | 
|  | 2409 | do | 
|  | 2410 | case $ac_arg in | 
|  | 2411 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 2412 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 2413 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 2414 | continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2415 | *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2416 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2417 | esac | 
|  | 2418 | case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2419 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2420 | 2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2421 | as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2422 | if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2423 | ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2424 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2425 | case $ac_arg in | 
|  | 2426 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 2427 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 2428 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 2429 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 2430 | case "$ac_configure_args0 " in | 
|  | 2431 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 2432 | esac | 
|  | 2433 | ;; | 
|  | 2434 | -* ) ac_must_keep_next=true ;; | 
|  | 2435 | esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2436 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2437 | as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2438 | ;; | 
|  | 2439 | esac | 
|  | 2440 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2441 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2442 | { ac_configure_args0=; unset ac_configure_args0;} | 
|  | 2443 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2444 |  | 
|  | 2445 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 2446 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 2447 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2448 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
|  | 2449 | # 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] | 2450 | trap 'exit_status=$? | 
|  | 2451 | # Save into config.log some information that might help in debugging. | 
|  | 2452 | { | 
|  | 2453 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2454 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2455 | $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2456 | ## Cache variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2457 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2458 | echo | 
|  | 2459 | # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2460 | ( | 
|  | 2461 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
|  | 2462 | eval ac_val=\$$ac_var | 
|  | 2463 | case $ac_val in #( | 
|  | 2464 | *${as_nl}*) | 
|  | 2465 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2466 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 2467 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2468 | esac | 
|  | 2469 | case $ac_var in #( | 
|  | 2470 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2471 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 2472 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2473 | esac ;; | 
|  | 2474 | esac | 
|  | 2475 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2476 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2477 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
|  | 2478 | *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2479 | sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2480 | "s/'\''/'\''\\\\'\'''\''/g; | 
|  | 2481 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
|  | 2482 | ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2483 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2484 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2485 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2486 | esac | | 
|  | 2487 | sort | 
|  | 2488 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2489 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2490 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2491 | $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2492 | ## Output variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2493 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2494 | echo | 
|  | 2495 | for ac_var in $ac_subst_vars | 
|  | 2496 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2497 | eval ac_val=\$$ac_var | 
|  | 2498 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2499 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2500 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2501 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2502 | done | sort | 
|  | 2503 | echo | 
|  | 2504 |  | 
|  | 2505 | if test -n "$ac_subst_files"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2506 | $as_echo "## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2507 | ## File substitutions. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2508 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2509 | echo | 
|  | 2510 | for ac_var in $ac_subst_files | 
|  | 2511 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2512 | eval ac_val=\$$ac_var | 
|  | 2513 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2514 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2515 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2516 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2517 | done | sort | 
|  | 2518 | echo | 
|  | 2519 | fi | 
|  | 2520 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | if test -s confdefs.h; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2522 | $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2523 | ## confdefs.h. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2524 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2525 | echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2526 | cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2527 | echo | 
|  | 2528 | fi | 
|  | 2529 | test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2530 | $as_echo "$as_me: caught signal $ac_signal" | 
|  | 2531 | $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2533 | rm -f core *.core core.conftest.* && | 
|  | 2534 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2536 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2537 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2538 | 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] | 2539 | done | 
|  | 2540 | ac_signal=0 | 
|  | 2541 |  | 
|  | 2542 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2543 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2544 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2545 | $as_echo "/* confdefs.h */" > confdefs.h | 
|  | 2546 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | # Predefined preprocessor variables. | 
|  | 2548 |  | 
|  | 2549 | cat >>confdefs.h <<_ACEOF | 
|  | 2550 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 2551 | _ACEOF | 
|  | 2552 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2553 | cat >>confdefs.h <<_ACEOF | 
|  | 2554 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 2555 | _ACEOF | 
|  | 2556 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 | cat >>confdefs.h <<_ACEOF | 
|  | 2558 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 2559 | _ACEOF | 
|  | 2560 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2561 | cat >>confdefs.h <<_ACEOF | 
|  | 2562 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 2563 | _ACEOF | 
|  | 2564 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2565 | cat >>confdefs.h <<_ACEOF | 
|  | 2566 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 2567 | _ACEOF | 
|  | 2568 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2569 | cat >>confdefs.h <<_ACEOF | 
|  | 2570 | #define PACKAGE_URL "$PACKAGE_URL" | 
|  | 2571 | _ACEOF | 
|  | 2572 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2573 |  | 
|  | 2574 | # 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] | 2575 | # Prefer an explicitly selected file to automatically selected ones. | 
|  | 2576 | ac_site_file1=NONE | 
|  | 2577 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2578 | if test -n "$CONFIG_SITE"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2579 | # We do not want a PATH search for config.site. | 
|  | 2580 | case $CONFIG_SITE in #(( | 
|  | 2581 | -*)  ac_site_file1=./$CONFIG_SITE;; | 
|  | 2582 | */*) ac_site_file1=$CONFIG_SITE;; | 
|  | 2583 | *)   ac_site_file1=./$CONFIG_SITE;; | 
|  | 2584 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2585 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2586 | ac_site_file1=$prefix/share/config.site | 
|  | 2587 | ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2588 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2589 | ac_site_file1=$ac_default_prefix/share/config.site | 
|  | 2590 | ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2591 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2592 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2593 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2594 | test "x$ac_site_file" = xNONE && continue | 
|  | 2595 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
|  | 2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
|  | 2597 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2598 | sed 's/^/| /' "$ac_site_file" >&5 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2599 | . "$ac_site_file" \ | 
|  | 2600 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2601 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2602 | as_fn_error $? "failed to load site script $ac_site_file | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2603 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2604 | fi | 
|  | 2605 | done | 
|  | 2606 |  | 
|  | 2607 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2608 | # Some versions of bash will fail to source /dev/null (special files | 
|  | 2609 | # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
|  | 2610 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
|  | 2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
|  | 2612 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2613 | case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2614 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 2615 | *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2616 | esac | 
|  | 2617 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2618 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
|  | 2620 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2621 | >$cache_file | 
|  | 2622 | fi | 
|  | 2623 |  | 
|  | 2624 | # Check that the precious variables saved in the cache have kept the same | 
|  | 2625 | # value. | 
|  | 2626 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2627 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2628 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 2629 | eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2630 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
|  | 2631 | eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2632 | case $ac_old_set,$ac_new_set in | 
|  | 2633 | set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 2635 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2636 | ac_cache_corrupted=: ;; | 
|  | 2637 | ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 2639 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2640 | ac_cache_corrupted=: ;; | 
|  | 2641 | ,);; | 
|  | 2642 | *) | 
|  | 2643 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2644 | # differences in whitespace do not lead to failure. | 
|  | 2645 | ac_old_val_w=`echo x $ac_old_val` | 
|  | 2646 | ac_new_val_w=`echo x $ac_new_val` | 
|  | 2647 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
|  | 2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
|  | 2649 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 2650 | ac_cache_corrupted=: | 
|  | 2651 | else | 
|  | 2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
|  | 2653 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
|  | 2654 | eval $ac_var=\$ac_old_val | 
|  | 2655 | fi | 
|  | 2656 | { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
|  | 2657 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
|  | 2658 | { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
|  | 2659 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2660 | fi;; | 
|  | 2661 | esac | 
|  | 2662 | # Pass precious variables to config.status. | 
|  | 2663 | if test "$ac_new_set" = set; then | 
|  | 2664 | case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2665 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2666 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 2667 | esac | 
|  | 2668 | case " $ac_configure_args " in | 
|  | 2669 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2670 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2671 | esac | 
|  | 2672 | fi | 
|  | 2673 | done | 
|  | 2674 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2676 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
|  | 2678 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2679 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2680 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2681 | ## -------------------- ## | 
|  | 2682 | ## Main body of script. ## | 
|  | 2683 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2684 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2685 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2686 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2690 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2691 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2692 |  | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2693 |  | 
| Martin Panter | c5ee3ca | 2016-09-12 01:32:03 +0000 | [diff] [blame] | 2694 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2695 | # If we're building out-of-tree, we need to make sure the following | 
|  | 2696 | # resources get picked up before their $srcdir counterparts. | 
|  | 2697 | #   Objects/ -> typeslots.inc | 
|  | 2698 | #   Include/ -> Python-ast.h, graminit.h | 
|  | 2699 | #   Python/  -> importlib.h | 
|  | 2700 | # (A side effect of this is that these resources will automatically be | 
|  | 2701 | #  regenerated when building out-of-tree, regardless of whether or not | 
|  | 2702 | #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
|  | 2703 | #  off.) | 
|  | 2704 | BASECPPFLAGS="-IObjects -IInclude -IPython" | 
|  | 2705 | else | 
|  | 2706 | BASECPPFLAGS="" | 
|  | 2707 | fi | 
|  | 2708 |  | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2709 |  | 
|  | 2710 |  | 
|  | 2711 |  | 
|  | 2712 |  | 
| Antoine Pitrou | d3b2aef | 2011-07-27 01:22:41 +0200 | [diff] [blame] | 2713 | if test -e $srcdir/.hg/dirstate | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2714 | then | 
|  | 2715 | # Extract the first word of "hg", so it can be a program name with args. | 
|  | 2716 | set dummy hg; ac_word=$2 | 
|  | 2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 2718 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2719 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2720 | $as_echo_n "(cached) " >&6 | 
|  | 2721 | else | 
|  | 2722 | if test -n "$HAS_HG"; then | 
|  | 2723 | ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
|  | 2724 | else | 
|  | 2725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2726 | for as_dir in $PATH | 
|  | 2727 | do | 
|  | 2728 | IFS=$as_save_IFS | 
|  | 2729 | test -z "$as_dir" && as_dir=. | 
|  | 2730 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2731 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2732 | ac_cv_prog_HAS_HG="found" | 
|  | 2733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2734 | break 2 | 
|  | 2735 | fi | 
|  | 2736 | done | 
|  | 2737 | done | 
|  | 2738 | IFS=$as_save_IFS | 
|  | 2739 |  | 
|  | 2740 | test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
|  | 2741 | fi | 
|  | 2742 | fi | 
|  | 2743 | HAS_HG=$ac_cv_prog_HAS_HG | 
|  | 2744 | if test -n "$HAS_HG"; then | 
|  | 2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
|  | 2746 | $as_echo "$HAS_HG" >&6; } | 
|  | 2747 | else | 
|  | 2748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 2749 | $as_echo "no" >&6; } | 
|  | 2750 | fi | 
|  | 2751 |  | 
|  | 2752 |  | 
|  | 2753 | else | 
|  | 2754 | HAS_HG=no-repository | 
|  | 2755 | fi | 
|  | 2756 | if test $HAS_HG = found | 
|  | 2757 | then | 
|  | 2758 | HGVERSION="hg id -i \$(srcdir)" | 
|  | 2759 | HGTAG="hg id -t \$(srcdir)" | 
|  | 2760 | HGBRANCH="hg id -b \$(srcdir)" | 
|  | 2761 | else | 
|  | 2762 | HGVERSION="" | 
|  | 2763 | HGTAG="" | 
|  | 2764 | HGBRANCH="" | 
|  | 2765 | fi | 
|  | 2766 |  | 
|  | 2767 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2768 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2769 |  | 
|  | 2770 |  | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2771 | ac_aux_dir= | 
|  | 2772 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
|  | 2773 | if test -f "$ac_dir/install-sh"; then | 
|  | 2774 | ac_aux_dir=$ac_dir | 
|  | 2775 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 2776 | break | 
|  | 2777 | elif test -f "$ac_dir/install.sh"; then | 
|  | 2778 | ac_aux_dir=$ac_dir | 
|  | 2779 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 2780 | break | 
|  | 2781 | elif test -f "$ac_dir/shtool"; then | 
|  | 2782 | ac_aux_dir=$ac_dir | 
|  | 2783 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 2784 | break | 
|  | 2785 | fi | 
|  | 2786 | done | 
|  | 2787 | if test -z "$ac_aux_dir"; then | 
|  | 2788 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
|  | 2789 | fi | 
|  | 2790 |  | 
|  | 2791 | # These three variables are undocumented and unsupported, | 
|  | 2792 | # and are intended to be withdrawn in a future Autoconf release. | 
|  | 2793 | # They can cause serious problems if a builder's source tree is in a directory | 
|  | 2794 | # whose full name contains unusual characters. | 
|  | 2795 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
|  | 2796 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
|  | 2797 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
|  | 2798 |  | 
|  | 2799 |  | 
|  | 2800 | # Make sure we can run config.sub. | 
|  | 2801 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
|  | 2802 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
|  | 2803 |  | 
|  | 2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
|  | 2805 | $as_echo_n "checking build system type... " >&6; } | 
|  | 2806 | if ${ac_cv_build+:} false; then : | 
|  | 2807 | $as_echo_n "(cached) " >&6 | 
|  | 2808 | else | 
|  | 2809 | ac_build_alias=$build_alias | 
|  | 2810 | test "x$ac_build_alias" = x && | 
|  | 2811 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
|  | 2812 | test "x$ac_build_alias" = x && | 
|  | 2813 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
|  | 2814 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
|  | 2815 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
|  | 2816 |  | 
|  | 2817 | fi | 
|  | 2818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
|  | 2819 | $as_echo "$ac_cv_build" >&6; } | 
|  | 2820 | case $ac_cv_build in | 
|  | 2821 | *-*-*) ;; | 
|  | 2822 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
|  | 2823 | esac | 
|  | 2824 | build=$ac_cv_build | 
|  | 2825 | ac_save_IFS=$IFS; IFS='-' | 
|  | 2826 | set x $ac_cv_build | 
|  | 2827 | shift | 
|  | 2828 | build_cpu=$1 | 
|  | 2829 | build_vendor=$2 | 
|  | 2830 | shift; shift | 
|  | 2831 | # Remember, the first character of IFS is used to create $*, | 
|  | 2832 | # except with old shells: | 
|  | 2833 | build_os=$* | 
|  | 2834 | IFS=$ac_save_IFS | 
|  | 2835 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
|  | 2836 |  | 
|  | 2837 |  | 
|  | 2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
|  | 2839 | $as_echo_n "checking host system type... " >&6; } | 
|  | 2840 | if ${ac_cv_host+:} false; then : | 
|  | 2841 | $as_echo_n "(cached) " >&6 | 
|  | 2842 | else | 
|  | 2843 | if test "x$host_alias" = x; then | 
|  | 2844 | ac_cv_host=$ac_cv_build | 
|  | 2845 | else | 
|  | 2846 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
|  | 2847 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
|  | 2848 | fi | 
|  | 2849 |  | 
|  | 2850 | fi | 
|  | 2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
|  | 2852 | $as_echo "$ac_cv_host" >&6; } | 
|  | 2853 | case $ac_cv_host in | 
|  | 2854 | *-*-*) ;; | 
|  | 2855 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
|  | 2856 | esac | 
|  | 2857 | host=$ac_cv_host | 
|  | 2858 | ac_save_IFS=$IFS; IFS='-' | 
|  | 2859 | set x $ac_cv_host | 
|  | 2860 | shift | 
|  | 2861 | host_cpu=$1 | 
|  | 2862 | host_vendor=$2 | 
|  | 2863 | shift; shift | 
|  | 2864 | # Remember, the first character of IFS is used to create $*, | 
|  | 2865 | # except with old shells: | 
|  | 2866 | host_os=$* | 
|  | 2867 | IFS=$ac_save_IFS | 
|  | 2868 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
|  | 2869 |  | 
|  | 2870 |  | 
|  | 2871 |  | 
| doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2872 |  | 
|  | 2873 |  | 
| Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2874 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile | 
|  | 2875 | rm -f pybuilddir.txt | 
|  | 2876 |  | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2877 | for ac_prog in python$PACKAGE_VERSION python3 python | 
|  | 2878 | do | 
|  | 2879 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 2880 | set dummy $ac_prog; ac_word=$2 | 
|  | 2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 2882 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 2883 | if ${ac_cv_prog_PYTHON_FOR_GEN+:} false; then : | 
|  | 2884 | $as_echo_n "(cached) " >&6 | 
|  | 2885 | else | 
|  | 2886 | if test -n "$PYTHON_FOR_GEN"; then | 
|  | 2887 | ac_cv_prog_PYTHON_FOR_GEN="$PYTHON_FOR_GEN" # Let the user override the test. | 
|  | 2888 | else | 
|  | 2889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2890 | for as_dir in $PATH | 
|  | 2891 | do | 
|  | 2892 | IFS=$as_save_IFS | 
|  | 2893 | test -z "$as_dir" && as_dir=. | 
|  | 2894 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2895 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 2896 | ac_cv_prog_PYTHON_FOR_GEN="$ac_prog" | 
|  | 2897 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2898 | break 2 | 
|  | 2899 | fi | 
|  | 2900 | done | 
|  | 2901 | done | 
|  | 2902 | IFS=$as_save_IFS | 
|  | 2903 |  | 
|  | 2904 | fi | 
|  | 2905 | fi | 
|  | 2906 | PYTHON_FOR_GEN=$ac_cv_prog_PYTHON_FOR_GEN | 
|  | 2907 | if test -n "$PYTHON_FOR_GEN"; then | 
|  | 2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_GEN" >&5 | 
|  | 2909 | $as_echo "$PYTHON_FOR_GEN" >&6; } | 
|  | 2910 | else | 
|  | 2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 2912 | $as_echo "no" >&6; } | 
|  | 2913 | fi | 
|  | 2914 |  | 
|  | 2915 |  | 
|  | 2916 | test -n "$PYTHON_FOR_GEN" && break | 
|  | 2917 | done | 
|  | 2918 | test -n "$PYTHON_FOR_GEN" || PYTHON_FOR_GEN="not-found" | 
|  | 2919 |  | 
|  | 2920 | if test "$PYTHON_FOR_GEN" = not-found; then | 
|  | 2921 | PYTHON_FOR_GEN='@echo "Cannot generate $@, python not found !" && \ | 
|  | 2922 | echo "To skip re-generation of $@ run <make touch> or <make -t $@>." && \ | 
|  | 2923 | echo "Otherwise, set python in PATH and run configure or run <make PYTHON_FOR_GEN=python>." && false &&' | 
|  | 2924 | fi | 
|  | 2925 |  | 
|  | 2926 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2927 | if test "$cross_compiling" = yes; then | 
|  | 2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
|  | 2929 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
|  | 2930 | if test -z "$PYTHON_FOR_BUILD"; then | 
|  | 2931 | for interp in python$PACKAGE_VERSION python3 python; do | 
|  | 2932 | which $interp >/dev/null 2>&1 || continue | 
| Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 2933 | 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] | 2934 | break | 
|  | 2935 | fi | 
|  | 2936 | interp= | 
|  | 2937 | done | 
|  | 2938 | if test x$interp = x; then | 
|  | 2939 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
|  | 2940 | fi | 
|  | 2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
|  | 2942 | $as_echo "$interp" >&6; } | 
| Xavier de Gaye | 92dec54 | 2016-09-11 22:22:24 +0200 | [diff] [blame] | 2943 | 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] | 2944 | fi | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 2945 | # Used to comment out stuff for rebuilding generated files | 
|  | 2946 | GENERATED_COMMENT='#' | 
| Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 2947 | elif test "$cross_compiling" = maybe; then | 
|  | 2948 | 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] | 2949 | else | 
|  | 2950 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 2951 | GENERATED_COMMENT='' | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2952 | fi | 
|  | 2953 |  | 
|  | 2954 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2955 |  | 
| Martin Panter | eac67be | 2016-07-28 01:28:27 +0000 | [diff] [blame] | 2956 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2957 | if test "$prefix" != "/"; then | 
|  | 2958 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
|  | 2959 | fi | 
|  | 2960 |  | 
|  | 2961 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2962 |  | 
|  | 2963 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2964 | # We don't use PACKAGE_ variables, and they cause conflicts | 
|  | 2965 | # with other autoconf-based packages that include Python.h | 
|  | 2966 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
|  | 2967 | rm confdefs.h | 
|  | 2968 | mv confdefs.h.new confdefs.h | 
|  | 2969 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2970 |  | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 2971 | VERSION=3.6 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2972 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2973 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2974 |  | 
|  | 2975 | SOVERSION=1.0 | 
|  | 2976 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2977 | # The later defininition of _XOPEN_SOURCE disables certain features | 
|  | 2978 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
|  | 2979 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2980 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2981 |  | 
|  | 2982 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2983 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2984 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
|  | 2985 | # them. | 
|  | 2986 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2987 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2988 |  | 
|  | 2989 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2990 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2991 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
|  | 2992 | # them. | 
|  | 2993 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2994 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2995 |  | 
|  | 2996 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2997 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2998 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
|  | 2999 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3000 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3001 |  | 
|  | 3002 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3003 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 3004 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
|  | 3005 | # them. | 
|  | 3006 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3007 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3008 |  | 
|  | 3009 |  | 
|  | 3010 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3011 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3012 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3013 | # Arguments passed to configure. | 
|  | 3014 |  | 
|  | 3015 | CONFIG_ARGS="$ac_configure_args" | 
|  | 3016 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
|  | 3018 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3019 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3020 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3021 | enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3022 | case $enableval in | 
|  | 3023 | yes) | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3024 | # Locate the best usable SDK, see Mac/README.txt for more | 
|  | 3025 | # information | 
|  | 3026 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3027 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3028 | then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3029 | enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
|  | 3030 | if test ! -d "${enableval}" | 
|  | 3031 | then | 
|  | 3032 | enableval=/ | 
|  | 3033 | fi | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3034 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3035 | ;; | 
|  | 3036 | esac | 
|  | 3037 | case $enableval in | 
|  | 3038 | no) | 
|  | 3039 | UNIVERSALSDK= | 
|  | 3040 | enable_universalsdk= | 
|  | 3041 | ;; | 
|  | 3042 | *) | 
|  | 3043 | UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3044 | if test ! -d "${UNIVERSALSDK}" | 
|  | 3045 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3046 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3047 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3048 | ;; | 
|  | 3049 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3050 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3051 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3052 | else | 
|  | 3053 |  | 
|  | 3054 | UNIVERSALSDK= | 
|  | 3055 | enable_universalsdk= | 
|  | 3056 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3057 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3058 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3059 | if test -n "${UNIVERSALSDK}" | 
|  | 3060 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
|  | 3062 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3063 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3065 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3066 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3067 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3068 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3069 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3070 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3071 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3072 | # For backward compatibility reasons we prefer to select '32-bit' if available, | 
|  | 3073 | # otherwise use 'intel' | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3074 | UNIVERSAL_ARCHS="32-bit" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3075 | if test "`uname -s`" = "Darwin" | 
|  | 3076 | then | 
|  | 3077 | if test -n "${UNIVERSALSDK}" | 
|  | 3078 | then | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3079 | 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] | 3080 | then | 
|  | 3081 | UNIVERSAL_ARCHS="intel" | 
|  | 3082 | fi | 
|  | 3083 | fi | 
|  | 3084 | fi | 
|  | 3085 |  | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3086 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
|  | 3088 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3089 |  | 
|  | 3090 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3091 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3092 | withval=$with_universal_archs; | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3093 | UNIVERSAL_ARCHS="$withval" | 
|  | 3094 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3095 | fi | 
|  | 3096 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3097 | if test -n "${UNIVERSALSDK}" | 
|  | 3098 | then | 
|  | 3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | 
|  | 3100 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | 
|  | 3101 | else | 
|  | 3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3103 | $as_echo "no" >&6; } | 
|  | 3104 | fi | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3105 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3106 |  | 
|  | 3107 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3108 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3109 | withval=$with_framework_name; | 
|  | 3110 | PYTHONFRAMEWORK=${withval} | 
|  | 3111 | PYTHONFRAMEWORKDIR=${withval}.framework | 
|  | 3112 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
|  | 3113 |  | 
|  | 3114 | else | 
|  | 3115 |  | 
|  | 3116 | PYTHONFRAMEWORK=Python | 
|  | 3117 | PYTHONFRAMEWORKDIR=Python.framework | 
|  | 3118 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
|  | 3119 |  | 
|  | 3120 | fi | 
|  | 3121 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3122 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3123 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3124 | enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3125 | case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3126 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3127 | enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3128 | esac | 
|  | 3129 | case $enableval in | 
|  | 3130 | no) | 
|  | 3131 | PYTHONFRAMEWORK= | 
|  | 3132 | PYTHONFRAMEWORKDIR=no-framework | 
|  | 3133 | PYTHONFRAMEWORKPREFIX= | 
|  | 3134 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3135 | FRAMEWORKINSTALLFIRST= | 
|  | 3136 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3137 | FRAMEWORKALTINSTALLFIRST= | 
|  | 3138 | FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3139 | FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3140 | if test "x${prefix}" = "xNONE"; then | 
|  | 3141 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 3142 | else | 
|  | 3143 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3144 | fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3145 | enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3146 | ;; | 
|  | 3147 | *) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3148 | PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3149 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3150 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3151 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3152 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
|  | 3153 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3154 | FRAMEWORKPYTHONW="frameworkpythonw" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3155 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3156 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3157 | if test "x${prefix}" = "xNONE" ; then | 
|  | 3158 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3159 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3160 | else | 
|  | 3161 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3162 | fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3163 |  | 
|  | 3164 | case "${enableval}" in | 
|  | 3165 | /System*) | 
|  | 3166 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3167 | if test "${prefix}" = "NONE" ; then | 
|  | 3168 | # See below | 
|  | 3169 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
|  | 3170 | fi | 
|  | 3171 | ;; | 
|  | 3172 |  | 
|  | 3173 | /Library*) | 
|  | 3174 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3175 | ;; | 
|  | 3176 |  | 
|  | 3177 | */Library/Frameworks) | 
|  | 3178 | MDIR="`dirname "${enableval}"`" | 
|  | 3179 | MDIR="`dirname "${MDIR}"`" | 
|  | 3180 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
|  | 3181 |  | 
|  | 3182 | if test "${prefix}" = "NONE"; then | 
|  | 3183 | # User hasn't specified the | 
|  | 3184 | # --prefix option, but wants to install | 
|  | 3185 | # the framework in a non-default location, | 
|  | 3186 | # ensure that the compatibility links get | 
|  | 3187 | # installed relative to that prefix as well | 
|  | 3188 | # instead of in /usr/local. | 
|  | 3189 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
|  | 3190 | fi | 
|  | 3191 | ;; | 
|  | 3192 |  | 
|  | 3193 | *) | 
|  | 3194 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3195 | ;; | 
|  | 3196 | esac | 
|  | 3197 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3198 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3199 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3200 | # Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3201 | # files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3202 | ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3203 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3204 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3205 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3206 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
|  | 3207 |  | 
|  | 3208 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
|  | 3209 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3210 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3211 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3212 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3213 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3214 | PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3215 | PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3216 | PYTHONFRAMEWORKPREFIX= | 
|  | 3217 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3218 | FRAMEWORKINSTALLFIRST= | 
|  | 3219 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3220 | FRAMEWORKALTINSTALLFIRST= | 
|  | 3221 | FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3222 | FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3223 | if test "x${prefix}" = "xNONE" ; then | 
|  | 3224 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 3225 | else | 
|  | 3226 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3227 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3228 | enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3229 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3230 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3231 | fi | 
|  | 3232 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3233 |  | 
|  | 3234 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3235 |  | 
|  | 3236 |  | 
|  | 3237 |  | 
|  | 3238 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3239 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3240 |  | 
|  | 3241 |  | 
|  | 3242 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3243 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3244 |  | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3245 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3246 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3247 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3248 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3249 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3250 | # Set name for machine-dependent library files | 
|  | 3251 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
|  | 3253 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3254 | if test -z "$MACHDEP" | 
|  | 3255 | then | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3256 | # avoid using uname for cross builds | 
|  | 3257 | if test "$cross_compiling" = yes; then | 
| doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3258 | # ac_sys_system and ac_sys_release are used for setting | 
|  | 3259 | # a lot of different things including 'define_xopen_source' | 
|  | 3260 | # in the case statement below. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3261 | case "$host" in | 
|  | 3262 | *-*-linux*) | 
|  | 3263 | ac_sys_system=Linux | 
|  | 3264 | ;; | 
|  | 3265 | *-*-cygwin*) | 
|  | 3266 | ac_sys_system=Cygwin | 
|  | 3267 | ;; | 
|  | 3268 | *) | 
|  | 3269 | # for now, limit cross builds to known configurations | 
|  | 3270 | MACHDEP="unknown" | 
|  | 3271 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
|  | 3272 | esac | 
|  | 3273 | ac_sys_release= | 
|  | 3274 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3275 | ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3276 | if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3277 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3278 | ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3279 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3280 | ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3281 | fi | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3282 | fi | 
|  | 3283 | ac_md_system=`echo $ac_sys_system | | 
|  | 3284 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
|  | 3285 | ac_md_release=`echo $ac_sys_release | | 
|  | 3286 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
|  | 3287 | MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3288 |  | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3289 | case $MACHDEP in | 
| Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3290 | linux*) MACHDEP="linux";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3291 | cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3292 | darwin*) MACHDEP="darwin";; | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 3293 | irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3294 | '')	MACHDEP="unknown";; | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3295 | esac | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3296 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3297 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3298 |  | 
|  | 3299 | if test "$cross_compiling" = yes; then | 
|  | 3300 | case "$host" in | 
|  | 3301 | *-*-linux*) | 
|  | 3302 | case "$host_cpu" in | 
|  | 3303 | arm*) | 
|  | 3304 | _host_cpu=arm | 
|  | 3305 | ;; | 
|  | 3306 | *) | 
|  | 3307 | _host_cpu=$host_cpu | 
|  | 3308 | esac | 
|  | 3309 | ;; | 
|  | 3310 | *-*-cygwin*) | 
|  | 3311 | _host_cpu= | 
|  | 3312 | ;; | 
|  | 3313 | *) | 
|  | 3314 | # for now, limit cross builds to known configurations | 
|  | 3315 | MACHDEP="unknown" | 
|  | 3316 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
|  | 3317 | esac | 
|  | 3318 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
|  | 3319 | fi | 
|  | 3320 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3321 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
|  | 3322 | # disable features if it is defined, without any means to access these | 
|  | 3323 | # features as extensions. For these systems, we skip the definition of | 
|  | 3324 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
|  | 3325 | # some feature, make sure there is no alternative way to access this | 
|  | 3326 | # feature. Also, when using wildcards, make sure you have verified the | 
|  | 3327 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
|  | 3328 | # wildcard, and that the wildcard does not include future systems | 
|  | 3329 | # (which may remove their limitations). | 
|  | 3330 | case $ac_sys_system/$ac_sys_release in | 
|  | 3331 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
|  | 3332 | # 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] | 3333 | # 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] | 3334 | # In addition, Stefan Krah confirms that issue #1244610 exists through | 
|  | 3335 | # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3336 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3337 | define_xopen_source=no | 
|  | 3338 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3339 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3340 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3341 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3342 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3343 |  | 
|  | 3344 | ;; | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3345 | OpenBSD/*) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3346 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3347 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3348 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3349 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3350 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3351 |  | 
|  | 3352 | ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3353 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
|  | 3354 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
|  | 3355 | # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3356 | 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] | 3357 | define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3358 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
|  | 3359 | # request to enable features supported by the standard as a request | 
|  | 3360 | # to disable features not supported by the standard.  The best way | 
|  | 3361 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
|  | 3362 | # entirely and define __EXTENSIONS__ instead. | 
|  | 3363 | SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3364 | define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3365 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
|  | 3366 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3367 | # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3368 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3369 | define_xopen_source=no;; | 
|  | 3370 | # 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] | 3371 | # 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] | 3372 | SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3373 | define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3374 | # On FreeBSD 4, the math functions C89 does not cover are never defined | 
|  | 3375 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
|  | 3376 | FreeBSD/4.*) | 
|  | 3377 | define_xopen_source=no;; | 
|  | 3378 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
|  | 3379 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
|  | 3380 | # identifies itself as Darwin/7.* | 
|  | 3381 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3382 | # disables platform specific features beyond repair. | 
|  | 3383 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3384 | # has no effect, don't bother defining them | 
|  | 3385 | Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3386 | define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3387 | Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3388 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3389 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
|  | 3390 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
|  | 3391 | # or has another value. By not (re)defining it, the defaults come in place. | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 3392 | AIX/4) | 
|  | 3393 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3394 | AIX/5) | 
|  | 3395 | if test `uname -r` -eq 1; then | 
|  | 3396 | define_xopen_source=no | 
|  | 3397 | fi | 
|  | 3398 | ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3399 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
|  | 3400 | # defining NI_NUMERICHOST. | 
|  | 3401 | QNX/6.3.2) | 
|  | 3402 | define_xopen_source=no | 
|  | 3403 | ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3404 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3405 | esac | 
|  | 3406 |  | 
|  | 3407 | if test $define_xopen_source = yes | 
|  | 3408 | then | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3409 | # X/Open 7, incorporating POSIX.1-2008 | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3410 |  | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3411 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3412 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3413 |  | 
|  | 3414 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
|  | 3415 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
|  | 3416 | # several APIs are not declared. Since this is also needed in some | 
|  | 3417 | # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3418 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3419 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3420 |  | 
|  | 3421 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3422 |  | 
| Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3423 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3424 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3425 | fi | 
|  | 3426 |  | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3427 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE | 
|  | 3428 | case $ac_sys_system in | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3429 | hp*|HP*) | 
|  | 3430 | define_stdc_a1=yes;; | 
|  | 3431 | *) | 
|  | 3432 | define_stdc_a1=no;; | 
|  | 3433 | esac | 
|  | 3434 |  | 
|  | 3435 | if test $define_stdc_a1 = yes | 
|  | 3436 | then | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3437 |  | 
|  | 3438 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | 
|  | 3439 |  | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3440 | fi | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3441 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3442 | # | 
|  | 3443 | # SGI compilers allow the specification of the both the ABI and the | 
|  | 3444 | # ISA on the command line.  Depending on the values of these switches, | 
| Martin Panter | 46f5072 | 2016-05-26 05:35:26 +0000 | [diff] [blame] | 3445 | # different and often incompatible code will be generated. | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3446 | # | 
|  | 3447 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
|  | 3448 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
|  | 3449 | # variable is also adjusted. | 
|  | 3450 | # | 
|  | 3451 |  | 
|  | 3452 | if test ! -z "$SGI_ABI" | 
|  | 3453 | then | 
|  | 3454 | CC="cc $SGI_ABI" | 
|  | 3455 | LDFLAGS="$SGI_ABI $LDFLAGS" | 
|  | 3456 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
|  | 3457 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
|  | 3459 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3460 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3461 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
|  | 3462 | # it may influence the way we can build extensions, so distutils | 
|  | 3463 | # needs to check it | 
|  | 3464 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3465 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3466 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3467 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3468 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3469 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3470 |  | 
|  | 3471 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
|  | 3472 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
|  | 3473 | # just to get things to compile and link.  Users are free to override OPT | 
|  | 3474 | # when running configure or make.  The build should not break if they do. | 
|  | 3475 | # BASECFLAGS should generally not be messed with, however. | 
|  | 3476 |  | 
|  | 3477 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
|  | 3478 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
|  | 3480 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3481 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3482 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3483 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3484 | withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3485 | case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3486 | no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3487 | without_gcc=yes;; | 
|  | 3488 | yes)	CC=gcc | 
|  | 3489 | without_gcc=no;; | 
|  | 3490 | *)	CC=$withval | 
|  | 3491 | without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3492 | esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3493 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3494 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3495 | case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3496 | AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3497 | without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3498 | *)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3499 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3500 | fi | 
|  | 3501 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
|  | 3503 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3504 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 | 
|  | 3506 | $as_echo_n "checking for --with-icc... " >&6; } | 
|  | 3507 |  | 
|  | 3508 | # Check whether --with-icc was given. | 
|  | 3509 | if test "${with_icc+set}" = set; then : | 
|  | 3510 | withval=$with_icc; | 
|  | 3511 | case $withval in | 
|  | 3512 | no)	CC=${CC:-cc} | 
|  | 3513 | with_icc=no;; | 
|  | 3514 | yes)	CC=icc | 
|  | 3515 | CXX=icpc | 
|  | 3516 | with_icc=yes;; | 
|  | 3517 | *)	CC=$withval | 
|  | 3518 | with_icc=$withval;; | 
|  | 3519 | esac | 
|  | 3520 | else | 
|  | 3521 |  | 
|  | 3522 | with_icc=no | 
|  | 3523 | fi | 
|  | 3524 |  | 
|  | 3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 | 
|  | 3526 | $as_echo "$with_icc" >&6; } | 
|  | 3527 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3528 | # If the user switches compilers, we can't believe the cache | 
|  | 3529 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
|  | 3530 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3531 | as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3532 | (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] | 3533 | fi | 
|  | 3534 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3535 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
|  | 3536 | # when the compiler supports them, but we don't always want -O2, and | 
|  | 3537 | # we set -g later. | 
|  | 3538 | if test -z "$CFLAGS"; then | 
|  | 3539 | CFLAGS= | 
|  | 3540 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3541 |  | 
|  | 3542 | if test "$ac_sys_system" = "Darwin" | 
|  | 3543 | then | 
|  | 3544 | # Compiler selection on MacOSX is more complicated than | 
|  | 3545 | # AC_PROG_CC can handle, see Mac/README.txt for more | 
|  | 3546 | # information | 
|  | 3547 | if test -z "${CC}" | 
|  | 3548 | then | 
|  | 3549 | found_gcc= | 
|  | 3550 | found_clang= | 
|  | 3551 | as_save_IFS=$IFS; IFS=: | 
|  | 3552 | for as_dir in $PATH | 
|  | 3553 | do | 
|  | 3554 | IFS=$as_save_IFS | 
|  | 3555 | if test -x $as_dir/gcc; then | 
|  | 3556 | if test -z "${found_gcc}"; then | 
|  | 3557 | found_gcc=$as_dir/gcc | 
|  | 3558 | fi | 
|  | 3559 | fi | 
|  | 3560 | if test -x $as_dir/clang; then | 
|  | 3561 | if test -z "${found_clang}"; then | 
|  | 3562 | found_clang=$as_dir/clang | 
|  | 3563 | fi | 
|  | 3564 | fi | 
|  | 3565 | done | 
|  | 3566 | IFS=$as_save_IFS | 
|  | 3567 |  | 
|  | 3568 | if test -n "$found_gcc" -a -n "$found_clang" | 
|  | 3569 | then | 
|  | 3570 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" | 
|  | 3571 | then | 
|  | 3572 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | 
|  | 3573 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | 
|  | 3574 | CC="$found_clang" | 
|  | 3575 | CXX="$found_clang++" | 
|  | 3576 | fi | 
|  | 3577 |  | 
|  | 3578 |  | 
|  | 3579 | elif test -z "$found_gcc" -a -n "$found_clang" | 
|  | 3580 | then | 
|  | 3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | 
|  | 3582 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | 
|  | 3583 | CC="$found_clang" | 
|  | 3584 | CXX="$found_clang++" | 
|  | 3585 |  | 
|  | 3586 | elif test -z "$found_gcc" -a -z "$found_clang" | 
|  | 3587 | then | 
|  | 3588 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | 
|  | 3589 | if test -n "${found_clang}" | 
|  | 3590 | then | 
|  | 3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | 
|  | 3592 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | 
|  | 3593 | CC="${found_clang}" | 
|  | 3594 | CXX="`/usr/bin/xcrun -find clang++`" | 
|  | 3595 |  | 
|  | 3596 | # else: use default behaviour | 
|  | 3597 | fi | 
|  | 3598 | fi | 
|  | 3599 | fi | 
|  | 3600 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3601 | ac_ext=c | 
|  | 3602 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3603 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3604 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3605 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3606 | if test -n "$ac_tool_prefix"; then | 
|  | 3607 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 3608 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3610 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3611 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3612 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3613 | else | 
|  | 3614 | if test -n "$CC"; then | 
|  | 3615 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3616 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3618 | for as_dir in $PATH | 
|  | 3619 | do | 
|  | 3620 | IFS=$as_save_IFS | 
|  | 3621 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3622 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3623 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3624 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3625 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3626 | break 2 | 
|  | 3627 | fi | 
|  | 3628 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3629 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3630 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3631 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3632 | fi | 
|  | 3633 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3634 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3635 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3637 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3638 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3640 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3641 | fi | 
|  | 3642 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3643 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3644 | fi | 
|  | 3645 | if test -z "$ac_cv_prog_CC"; then | 
|  | 3646 | ac_ct_CC=$CC | 
|  | 3647 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 3648 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3650 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3651 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3652 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | else | 
|  | 3654 | if test -n "$ac_ct_CC"; then | 
|  | 3655 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3656 | else | 
|  | 3657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3658 | for as_dir in $PATH | 
|  | 3659 | do | 
|  | 3660 | IFS=$as_save_IFS | 
|  | 3661 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3662 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3663 | 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] | 3664 | ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3666 | break 2 | 
|  | 3667 | fi | 
|  | 3668 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3669 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3670 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3671 |  | 
|  | 3672 | fi | 
|  | 3673 | fi | 
|  | 3674 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3675 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3677 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3678 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3680 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3681 | fi | 
|  | 3682 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3683 | if test "x$ac_ct_CC" = x; then | 
|  | 3684 | CC="" | 
|  | 3685 | else | 
|  | 3686 | case $cross_compiling:$ac_tool_warned in | 
|  | 3687 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3689 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3690 | ac_tool_warned=yes ;; | 
|  | 3691 | esac | 
|  | 3692 | CC=$ac_ct_CC | 
|  | 3693 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3694 | else | 
|  | 3695 | CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3696 | fi | 
|  | 3697 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3698 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3699 | if test -n "$ac_tool_prefix"; then | 
|  | 3700 | # 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] | 3701 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3703 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3704 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3705 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3706 | else | 
|  | 3707 | if test -n "$CC"; then | 
|  | 3708 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3709 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3711 | for as_dir in $PATH | 
|  | 3712 | do | 
|  | 3713 | IFS=$as_save_IFS | 
|  | 3714 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3715 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3716 | 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] | 3717 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 | break 2 | 
|  | 3720 | fi | 
|  | 3721 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3722 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3723 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3724 |  | 
|  | 3725 | fi | 
|  | 3726 | fi | 
|  | 3727 | CC=$ac_cv_prog_CC | 
|  | 3728 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3730 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3731 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3733 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3734 | fi | 
|  | 3735 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3736 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3737 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3738 | fi | 
|  | 3739 | if test -z "$CC"; then | 
|  | 3740 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 3741 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3743 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3744 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3745 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3746 | else | 
|  | 3747 | if test -n "$CC"; then | 
|  | 3748 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3749 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3750 | ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3752 | for as_dir in $PATH | 
|  | 3753 | do | 
|  | 3754 | IFS=$as_save_IFS | 
|  | 3755 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3756 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3757 | 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] | 3758 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 3759 | ac_prog_rejected=yes | 
|  | 3760 | continue | 
|  | 3761 | fi | 
|  | 3762 | ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3764 | break 2 | 
|  | 3765 | fi | 
|  | 3766 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3767 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3768 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3769 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3770 | if test $ac_prog_rejected = yes; then | 
|  | 3771 | # We found a bogon in the path, so make sure we never use it. | 
|  | 3772 | set dummy $ac_cv_prog_CC | 
|  | 3773 | shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3774 | if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3775 | # We chose a different compiler from the bogus one. | 
|  | 3776 | # However, it has the same basename, so the bogon will be chosen | 
|  | 3777 | # first if we set CC to just the basename; use the full file name. | 
|  | 3778 | shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3779 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3780 | fi | 
|  | 3781 | fi | 
|  | 3782 | fi | 
|  | 3783 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3784 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3785 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3787 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3788 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3790 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3791 | fi | 
|  | 3792 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3793 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3794 | fi | 
|  | 3795 | if test -z "$CC"; then | 
|  | 3796 | if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3797 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3798 | do | 
|  | 3799 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 3800 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3802 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3803 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3804 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3805 | else | 
|  | 3806 | if test -n "$CC"; then | 
|  | 3807 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3808 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3810 | for as_dir in $PATH | 
|  | 3811 | do | 
|  | 3812 | IFS=$as_save_IFS | 
|  | 3813 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3814 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3815 | 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] | 3816 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3818 | break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3819 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3820 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3821 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3822 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3823 |  | 
|  | 3824 | fi | 
|  | 3825 | fi | 
|  | 3826 | CC=$ac_cv_prog_CC | 
|  | 3827 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3829 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3830 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3832 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3833 | fi | 
|  | 3834 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3835 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3836 | test -n "$CC" && break | 
|  | 3837 | done | 
|  | 3838 | fi | 
|  | 3839 | if test -z "$CC"; then | 
|  | 3840 | ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3841 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3842 | do | 
|  | 3843 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3844 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3846 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3847 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3848 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3849 | else | 
|  | 3850 | if test -n "$ac_ct_CC"; then | 
|  | 3851 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3852 | else | 
|  | 3853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3854 | for as_dir in $PATH | 
|  | 3855 | do | 
|  | 3856 | IFS=$as_save_IFS | 
|  | 3857 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3858 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3859 | 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] | 3860 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3862 | break 2 | 
|  | 3863 | fi | 
|  | 3864 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3865 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3866 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3867 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3868 | fi | 
|  | 3869 | fi | 
|  | 3870 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3871 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3873 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3874 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3876 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3877 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3878 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3879 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3880 | test -n "$ac_ct_CC" && break | 
|  | 3881 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3882 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3883 | if test "x$ac_ct_CC" = x; then | 
|  | 3884 | CC="" | 
|  | 3885 | else | 
|  | 3886 | case $cross_compiling:$ac_tool_warned in | 
|  | 3887 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3888 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3889 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3890 | ac_tool_warned=yes ;; | 
|  | 3891 | esac | 
|  | 3892 | CC=$ac_ct_CC | 
|  | 3893 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3894 | fi | 
|  | 3895 |  | 
|  | 3896 | fi | 
|  | 3897 |  | 
|  | 3898 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3899 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3900 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3901 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3902 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3903 |  | 
|  | 3904 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3905 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
|  | 3906 | set X $ac_compile | 
|  | 3907 | ac_compiler=$2 | 
|  | 3908 | for ac_option in --version -v -V -qversion; do | 
|  | 3909 | { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3910 | case "(($ac_try" in | 
|  | 3911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3912 | *) ac_try_echo=$ac_try;; | 
|  | 3913 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3914 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3915 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3916 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3917 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3918 | if test -s conftest.err; then | 
|  | 3919 | sed '10a\ | 
|  | 3920 | ... rest of stderr output deleted ... | 
|  | 3921 | 10q' conftest.err >conftest.er1 | 
|  | 3922 | cat conftest.er1 >&5 | 
|  | 3923 | fi | 
|  | 3924 | rm -f conftest.er1 conftest.err | 
|  | 3925 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3926 | test $ac_status = 0; } | 
|  | 3927 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3928 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3930 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3931 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3932 | int | 
|  | 3933 | main () | 
|  | 3934 | { | 
|  | 3935 |  | 
|  | 3936 | ; | 
|  | 3937 | return 0; | 
|  | 3938 | } | 
|  | 3939 | _ACEOF | 
|  | 3940 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3941 | 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] | 3942 | # Try to create an executable without -o first, disregard a.out. | 
|  | 3943 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 3944 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
|  | 3946 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
|  | 3947 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 3948 |  | 
|  | 3949 | # The possible output files: | 
|  | 3950 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
|  | 3951 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3952 | ac_rmfiles= | 
|  | 3953 | for ac_file in $ac_files | 
|  | 3954 | do | 
|  | 3955 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3956 | *.$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] | 3957 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
|  | 3958 | esac | 
|  | 3959 | done | 
|  | 3960 | rm -f $ac_rmfiles | 
|  | 3961 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3962 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3963 | case "(($ac_try" in | 
|  | 3964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3965 | *) ac_try_echo=$ac_try;; | 
|  | 3966 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3967 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3968 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3969 | (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3970 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3971 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3972 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3973 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
|  | 3974 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
|  | 3975 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
|  | 3976 | # so that the user can short-circuit this test for compilers unknown to | 
|  | 3977 | # Autoconf. | 
|  | 3978 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3979 | do | 
|  | 3980 | test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3981 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3982 | *.$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] | 3983 | ;; | 
|  | 3984 | [ab].out ) | 
|  | 3985 | # We found the default executable, but exeext='' is most | 
|  | 3986 | # certainly right. | 
|  | 3987 | break;; | 
|  | 3988 | *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3989 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3990 | then :; else | 
|  | 3991 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 3992 | fi | 
|  | 3993 | # We set ac_cv_exeext here because the later test for it is not | 
|  | 3994 | # safe: cross compilers may not add the suffix if given an `-o' | 
|  | 3995 | # argument, so we may need to know it at that point already. | 
|  | 3996 | # Even if this section looks crufty: it has the advantage of | 
|  | 3997 | # actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3998 | break;; | 
|  | 3999 | * ) | 
|  | 4000 | break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4001 | esac | 
|  | 4002 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4003 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 4004 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4005 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4006 | ac_file='' | 
|  | 4007 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4008 | if test -z "$ac_file"; then : | 
|  | 4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4010 | $as_echo "no" >&6; } | 
|  | 4011 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4012 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4013 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4014 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4015 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4016 | as_fn_error 77 "C compiler cannot create executables | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4017 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4018 | else | 
|  | 4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 4020 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4021 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
|  | 4023 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
|  | 4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
|  | 4025 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4026 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4027 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4028 | 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] | 4029 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
|  | 4031 | $as_echo_n "checking for suffix of executables... " >&6; } | 
|  | 4032 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4033 | case "(($ac_try" in | 
|  | 4034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4035 | *) ac_try_echo=$ac_try;; | 
|  | 4036 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4037 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4038 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4039 | (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4040 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4041 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4042 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4043 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 4044 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 4045 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 4046 | # `rm'. | 
|  | 4047 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 4048 | test -f "$ac_file" || continue | 
|  | 4049 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4050 | *.$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] | 4051 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 4052 | break;; | 
|  | 4053 | * ) break;; | 
|  | 4054 | esac | 
|  | 4055 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4056 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4057 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4058 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4059 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4060 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4061 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4062 | rm -f conftest conftest$ac_cv_exeext | 
|  | 4063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
|  | 4064 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4065 |  | 
|  | 4066 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4067 | EXEEXT=$ac_cv_exeext | 
|  | 4068 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4070 | /* end confdefs.h.  */ | 
|  | 4071 | #include <stdio.h> | 
|  | 4072 | int | 
|  | 4073 | main () | 
|  | 4074 | { | 
|  | 4075 | FILE *f = fopen ("conftest.out", "w"); | 
|  | 4076 | return ferror (f) || fclose (f) != 0; | 
|  | 4077 |  | 
|  | 4078 | ; | 
|  | 4079 | return 0; | 
|  | 4080 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4081 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4082 | ac_clean_files="$ac_clean_files conftest.out" | 
|  | 4083 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 4084 | # the compiler is broken, or we cross compile. | 
|  | 4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
|  | 4086 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
|  | 4087 | if test "$cross_compiling" != yes; then | 
|  | 4088 | { { ac_try="$ac_link" | 
|  | 4089 | case "(($ac_try" in | 
|  | 4090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4091 | *) ac_try_echo=$ac_try;; | 
|  | 4092 | esac | 
|  | 4093 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4094 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4095 | (eval "$ac_link") 2>&5 | 
|  | 4096 | ac_status=$? | 
|  | 4097 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4098 | test $ac_status = 0; } | 
|  | 4099 | if { ac_try='./conftest$ac_cv_exeext' | 
|  | 4100 | { { case "(($ac_try" in | 
|  | 4101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4102 | *) ac_try_echo=$ac_try;; | 
|  | 4103 | esac | 
|  | 4104 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4105 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4106 | (eval "$ac_try") 2>&5 | 
|  | 4107 | ac_status=$? | 
|  | 4108 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4109 | test $ac_status = 0; }; }; then | 
|  | 4110 | cross_compiling=no | 
|  | 4111 | else | 
|  | 4112 | if test "$cross_compiling" = maybe; then | 
|  | 4113 | cross_compiling=yes | 
|  | 4114 | else | 
|  | 4115 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4116 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4117 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4118 | If you meant to cross compile, use \`--host'. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4119 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4120 | fi | 
|  | 4121 | fi | 
|  | 4122 | fi | 
|  | 4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
|  | 4124 | $as_echo "$cross_compiling" >&6; } | 
|  | 4125 |  | 
|  | 4126 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
|  | 4127 | ac_clean_files=$ac_clean_files_save | 
|  | 4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
|  | 4129 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4130 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4131 | $as_echo_n "(cached) " >&6 | 
|  | 4132 | else | 
|  | 4133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4134 | /* end confdefs.h.  */ | 
|  | 4135 |  | 
|  | 4136 | int | 
|  | 4137 | main () | 
|  | 4138 | { | 
|  | 4139 |  | 
|  | 4140 | ; | 
|  | 4141 | return 0; | 
|  | 4142 | } | 
|  | 4143 | _ACEOF | 
|  | 4144 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4145 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4146 | case "(($ac_try" in | 
|  | 4147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4148 | *) ac_try_echo=$ac_try;; | 
|  | 4149 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4150 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4151 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4152 | (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4153 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4154 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4155 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4156 | for ac_file in conftest.o conftest.obj conftest.*; do | 
|  | 4157 | test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4158 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4159 | *.$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] | 4160 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 4161 | break;; | 
|  | 4162 | esac | 
|  | 4163 | done | 
|  | 4164 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4165 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4166 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4167 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4168 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4169 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4170 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4171 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4172 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4173 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4174 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
|  | 4176 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4177 | OBJEXT=$ac_cv_objext | 
|  | 4178 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
|  | 4180 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4181 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4182 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4183 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4185 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4186 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4187 | int | 
|  | 4188 | main () | 
|  | 4189 | { | 
|  | 4190 | #ifndef __GNUC__ | 
|  | 4191 | choke me | 
|  | 4192 | #endif | 
|  | 4193 |  | 
|  | 4194 | ; | 
|  | 4195 | return 0; | 
|  | 4196 | } | 
|  | 4197 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4198 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4199 | ac_compiler_gnu=yes | 
|  | 4200 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4201 | ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4202 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4204 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 4205 |  | 
|  | 4206 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 4208 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
|  | 4209 | if test $ac_compiler_gnu = yes; then | 
|  | 4210 | GCC=yes | 
|  | 4211 | else | 
|  | 4212 | GCC= | 
|  | 4213 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4214 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 4215 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
|  | 4217 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4218 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4219 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4220 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4221 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 4222 | ac_c_werror_flag=yes | 
|  | 4223 | ac_cv_prog_cc_g=no | 
|  | 4224 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4226 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4227 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4228 | int | 
|  | 4229 | main () | 
|  | 4230 | { | 
|  | 4231 |  | 
|  | 4232 | ; | 
|  | 4233 | return 0; | 
|  | 4234 | } | 
|  | 4235 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4236 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4237 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4238 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4239 | CFLAGS="" | 
|  | 4240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4241 | /* end confdefs.h.  */ | 
|  | 4242 |  | 
|  | 4243 | int | 
|  | 4244 | main () | 
|  | 4245 | { | 
|  | 4246 |  | 
|  | 4247 | ; | 
|  | 4248 | return 0; | 
|  | 4249 | } | 
|  | 4250 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4251 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4252 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4253 | else | 
|  | 4254 | ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4255 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4257 | /* end confdefs.h.  */ | 
|  | 4258 |  | 
|  | 4259 | int | 
|  | 4260 | main () | 
|  | 4261 | { | 
|  | 4262 |  | 
|  | 4263 | ; | 
|  | 4264 | return 0; | 
|  | 4265 | } | 
|  | 4266 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4267 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4268 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4269 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4271 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4273 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4275 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 4276 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
|  | 4278 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4279 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4280 | CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4281 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 4282 | if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4283 | CFLAGS="-g -O2" | 
|  | 4284 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4285 | CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4286 | fi | 
|  | 4287 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4288 | if test "$GCC" = yes; then | 
|  | 4289 | CFLAGS="-O2" | 
|  | 4290 | else | 
|  | 4291 | CFLAGS= | 
|  | 4292 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4293 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
|  | 4295 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4296 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4297 | $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4298 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4299 | ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4300 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4302 | /* end confdefs.h.  */ | 
|  | 4303 | #include <stdarg.h> | 
|  | 4304 | #include <stdio.h> | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4305 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4306 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 4307 | struct buf { int x; }; | 
|  | 4308 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 4309 | static char *e (p, i) | 
|  | 4310 | char **p; | 
|  | 4311 | int i; | 
|  | 4312 | { | 
|  | 4313 | return p[i]; | 
|  | 4314 | } | 
|  | 4315 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 4316 | { | 
|  | 4317 | char *s; | 
|  | 4318 | va_list v; | 
|  | 4319 | va_start (v,p); | 
|  | 4320 | s = g (p, va_arg (v,int)); | 
|  | 4321 | va_end (v); | 
|  | 4322 | return s; | 
|  | 4323 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4324 |  | 
|  | 4325 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 4326 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 4327 | These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4328 | as 'x'.  The following induces an error, until -std is added to get | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4329 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 4330 | array size at least.  It's necessary to write '\x00'==0 to get something | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4331 | that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4332 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 4333 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4334 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 4335 | inside strings and character constants.  */ | 
|  | 4336 | #define FOO(x) 'x' | 
|  | 4337 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 4338 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4339 | int test (int i, double x); | 
|  | 4340 | struct s1 {int (*f) (int a);}; | 
|  | 4341 | struct s2 {int (*f) (double a);}; | 
|  | 4342 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 4343 | int argc; | 
|  | 4344 | char **argv; | 
|  | 4345 | int | 
|  | 4346 | main () | 
|  | 4347 | { | 
|  | 4348 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 4349 | ; | 
|  | 4350 | return 0; | 
|  | 4351 | } | 
|  | 4352 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4353 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 4354 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4355 | do | 
|  | 4356 | CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4357 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4358 | ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4359 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4360 | rm -f core conftest.err conftest.$ac_objext | 
|  | 4361 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4362 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4363 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4364 | CC=$ac_save_CC | 
|  | 4365 |  | 
|  | 4366 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4367 | # AC_CACHE_VAL | 
|  | 4368 | case "x$ac_cv_prog_cc_c89" in | 
|  | 4369 | x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 4371 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4372 | xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 4374 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4375 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4376 | CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
|  | 4378 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4379 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4380 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4381 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4382 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4383 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4384 | ac_ext=c | 
|  | 4385 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4389 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4390 | ac_ext=c | 
|  | 4391 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4392 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4393 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4394 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
|  | 4396 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
|  | 4397 | # On Suns, sometimes $CPP names a directory. | 
|  | 4398 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 4399 | CPP= | 
|  | 4400 | fi | 
|  | 4401 | if test -z "$CPP"; then | 
|  | 4402 | if ${ac_cv_prog_CPP+:} false; then : | 
|  | 4403 | $as_echo_n "(cached) " >&6 | 
|  | 4404 | else | 
|  | 4405 | # Double quotes because CPP needs to be expanded | 
|  | 4406 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 4407 | do | 
|  | 4408 | ac_preproc_ok=false | 
|  | 4409 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4410 | do | 
|  | 4411 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4412 | # with a fresh cross-compiler works. | 
|  | 4413 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4414 | # <limits.h> exists even on freestanding compilers. | 
|  | 4415 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4416 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 4417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4418 | /* end confdefs.h.  */ | 
|  | 4419 | #ifdef __STDC__ | 
|  | 4420 | # include <limits.h> | 
|  | 4421 | #else | 
|  | 4422 | # include <assert.h> | 
|  | 4423 | #endif | 
|  | 4424 | Syntax error | 
|  | 4425 | _ACEOF | 
|  | 4426 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4427 |  | 
|  | 4428 | else | 
|  | 4429 | # Broken: fails on valid input. | 
|  | 4430 | continue | 
|  | 4431 | fi | 
|  | 4432 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4433 |  | 
|  | 4434 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 4435 | # can be detected and how. | 
|  | 4436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4437 | /* end confdefs.h.  */ | 
|  | 4438 | #include <ac_nonexistent.h> | 
|  | 4439 | _ACEOF | 
|  | 4440 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4441 | # Broken: success on invalid input. | 
|  | 4442 | continue | 
|  | 4443 | else | 
|  | 4444 | # Passes both tests. | 
|  | 4445 | ac_preproc_ok=: | 
|  | 4446 | break | 
|  | 4447 | fi | 
|  | 4448 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4449 |  | 
|  | 4450 | done | 
|  | 4451 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4452 | rm -f conftest.i conftest.err conftest.$ac_ext | 
|  | 4453 | if $ac_preproc_ok; then : | 
|  | 4454 | break | 
|  | 4455 | fi | 
|  | 4456 |  | 
|  | 4457 | done | 
|  | 4458 | ac_cv_prog_CPP=$CPP | 
|  | 4459 |  | 
|  | 4460 | fi | 
|  | 4461 | CPP=$ac_cv_prog_CPP | 
|  | 4462 | else | 
|  | 4463 | ac_cv_prog_CPP=$CPP | 
|  | 4464 | fi | 
|  | 4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
|  | 4466 | $as_echo "$CPP" >&6; } | 
|  | 4467 | ac_preproc_ok=false | 
|  | 4468 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4469 | do | 
|  | 4470 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4471 | # with a fresh cross-compiler works. | 
|  | 4472 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4473 | # <limits.h> exists even on freestanding compilers. | 
|  | 4474 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4475 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 4476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4477 | /* end confdefs.h.  */ | 
|  | 4478 | #ifdef __STDC__ | 
|  | 4479 | # include <limits.h> | 
|  | 4480 | #else | 
|  | 4481 | # include <assert.h> | 
|  | 4482 | #endif | 
|  | 4483 | Syntax error | 
|  | 4484 | _ACEOF | 
|  | 4485 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4486 |  | 
|  | 4487 | else | 
|  | 4488 | # Broken: fails on valid input. | 
|  | 4489 | continue | 
|  | 4490 | fi | 
|  | 4491 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4492 |  | 
|  | 4493 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 4494 | # can be detected and how. | 
|  | 4495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4496 | /* end confdefs.h.  */ | 
|  | 4497 | #include <ac_nonexistent.h> | 
|  | 4498 | _ACEOF | 
|  | 4499 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4500 | # Broken: success on invalid input. | 
|  | 4501 | continue | 
|  | 4502 | else | 
|  | 4503 | # Passes both tests. | 
|  | 4504 | ac_preproc_ok=: | 
|  | 4505 | break | 
|  | 4506 | fi | 
|  | 4507 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4508 |  | 
|  | 4509 | done | 
|  | 4510 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4511 | rm -f conftest.i conftest.err conftest.$ac_ext | 
|  | 4512 | if $ac_preproc_ok; then : | 
|  | 4513 |  | 
|  | 4514 | else | 
|  | 4515 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4516 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 4517 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
|  | 4518 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 4519 | fi | 
|  | 4520 |  | 
|  | 4521 | ac_ext=c | 
|  | 4522 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4523 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4524 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4525 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4526 |  | 
|  | 4527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
|  | 4528 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
|  | 4529 | if ${ac_cv_path_GREP+:} false; then : | 
|  | 4530 | $as_echo_n "(cached) " >&6 | 
|  | 4531 | else | 
|  | 4532 | if test -z "$GREP"; then | 
|  | 4533 | ac_path_GREP_found=false | 
|  | 4534 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4536 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4537 | do | 
|  | 4538 | IFS=$as_save_IFS | 
|  | 4539 | test -z "$as_dir" && as_dir=. | 
|  | 4540 | for ac_prog in grep ggrep; do | 
|  | 4541 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4542 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4543 | as_fn_executable_p "$ac_path_GREP" || continue | 
|  | 4544 | # Check for GNU ac_path_GREP and select it if it is found. | 
|  | 4545 | # Check for GNU $ac_path_GREP | 
|  | 4546 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 4547 | *GNU*) | 
|  | 4548 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 4549 | *) | 
|  | 4550 | ac_count=0 | 
|  | 4551 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 4552 | while : | 
|  | 4553 | do | 
|  | 4554 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4555 | mv "conftest.tmp" "conftest.in" | 
|  | 4556 | cp "conftest.in" "conftest.nl" | 
|  | 4557 | $as_echo 'GREP' >> "conftest.nl" | 
|  | 4558 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4559 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 4560 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 4561 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
|  | 4562 | # Best one so far, save it but keep looking for a better one | 
|  | 4563 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 4564 | ac_path_GREP_max=$ac_count | 
|  | 4565 | fi | 
|  | 4566 | # 10*(2^10) chars as input seems more than enough | 
|  | 4567 | test $ac_count -gt 10 && break | 
|  | 4568 | done | 
|  | 4569 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4570 | esac | 
|  | 4571 |  | 
|  | 4572 | $ac_path_GREP_found && break 3 | 
|  | 4573 | done | 
|  | 4574 | done | 
|  | 4575 | done | 
|  | 4576 | IFS=$as_save_IFS | 
|  | 4577 | if test -z "$ac_cv_path_GREP"; then | 
|  | 4578 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
|  | 4579 | fi | 
|  | 4580 | else | 
|  | 4581 | ac_cv_path_GREP=$GREP | 
|  | 4582 | fi | 
|  | 4583 |  | 
|  | 4584 | fi | 
|  | 4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
|  | 4586 | $as_echo "$ac_cv_path_GREP" >&6; } | 
|  | 4587 | GREP="$ac_cv_path_GREP" | 
|  | 4588 |  | 
|  | 4589 |  | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | 
|  | 4591 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | 
|  | 4592 | if ${ac_cv_path_SED+:} false; then : | 
|  | 4593 | $as_echo_n "(cached) " >&6 | 
|  | 4594 | else | 
|  | 4595 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | 
|  | 4596 | for ac_i in 1 2 3 4 5 6 7; do | 
|  | 4597 | ac_script="$ac_script$as_nl$ac_script" | 
|  | 4598 | done | 
|  | 4599 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | 
|  | 4600 | { ac_script=; unset ac_script;} | 
|  | 4601 | if test -z "$SED"; then | 
|  | 4602 | ac_path_SED_found=false | 
|  | 4603 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4605 | for as_dir in $PATH | 
|  | 4606 | do | 
|  | 4607 | IFS=$as_save_IFS | 
|  | 4608 | test -z "$as_dir" && as_dir=. | 
|  | 4609 | for ac_prog in sed gsed; do | 
|  | 4610 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4611 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4612 | as_fn_executable_p "$ac_path_SED" || continue | 
|  | 4613 | # Check for GNU ac_path_SED and select it if it is found. | 
|  | 4614 | # Check for GNU $ac_path_SED | 
|  | 4615 | case `"$ac_path_SED" --version 2>&1` in | 
|  | 4616 | *GNU*) | 
|  | 4617 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | 
|  | 4618 | *) | 
|  | 4619 | ac_count=0 | 
|  | 4620 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 4621 | while : | 
|  | 4622 | do | 
|  | 4623 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4624 | mv "conftest.tmp" "conftest.in" | 
|  | 4625 | cp "conftest.in" "conftest.nl" | 
|  | 4626 | $as_echo '' >> "conftest.nl" | 
|  | 4627 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4628 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 4629 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 4630 | if test $ac_count -gt ${ac_path_SED_max-0}; then | 
|  | 4631 | # Best one so far, save it but keep looking for a better one | 
|  | 4632 | ac_cv_path_SED="$ac_path_SED" | 
|  | 4633 | ac_path_SED_max=$ac_count | 
|  | 4634 | fi | 
|  | 4635 | # 10*(2^10) chars as input seems more than enough | 
|  | 4636 | test $ac_count -gt 10 && break | 
|  | 4637 | done | 
|  | 4638 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4639 | esac | 
|  | 4640 |  | 
|  | 4641 | $ac_path_SED_found && break 3 | 
|  | 4642 | done | 
|  | 4643 | done | 
|  | 4644 | done | 
|  | 4645 | IFS=$as_save_IFS | 
|  | 4646 | if test -z "$ac_cv_path_SED"; then | 
|  | 4647 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | 
|  | 4648 | fi | 
|  | 4649 | else | 
|  | 4650 | ac_cv_path_SED=$SED | 
|  | 4651 | fi | 
|  | 4652 |  | 
|  | 4653 | fi | 
|  | 4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | 
|  | 4655 | $as_echo "$ac_cv_path_SED" >&6; } | 
|  | 4656 | SED="$ac_cv_path_SED" | 
|  | 4657 | rm -f conftest.sed | 
|  | 4658 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4659 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4660 |  | 
|  | 4661 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
|  | 4663 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4664 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4665 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4666 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4667 | withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4668 |  | 
|  | 4669 | case $withval in | 
|  | 4670 | no)	with_cxx_main=no | 
|  | 4671 | MAINCC='$(CC)';; | 
|  | 4672 | yes)	with_cxx_main=yes | 
|  | 4673 | MAINCC='$(CXX)';; | 
|  | 4674 | *)	with_cxx_main=yes | 
|  | 4675 | MAINCC=$withval | 
|  | 4676 | if test -z "$CXX" | 
|  | 4677 | then | 
|  | 4678 | CXX=$withval | 
|  | 4679 | fi;; | 
|  | 4680 | esac | 
|  | 4681 | else | 
|  | 4682 |  | 
|  | 4683 | with_cxx_main=no | 
|  | 4684 | MAINCC='$(CC)' | 
|  | 4685 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4686 | fi | 
|  | 4687 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
|  | 4689 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4690 |  | 
|  | 4691 | preset_cxx="$CXX" | 
|  | 4692 | if test -z "$CXX" | 
|  | 4693 | then | 
|  | 4694 | case "$CC" in | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4695 | gcc)    if test -n "$ac_tool_prefix"; then | 
|  | 4696 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
|  | 4697 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
|  | 4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4699 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4700 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4701 | $as_echo_n "(cached) " >&6 | 
|  | 4702 | else | 
|  | 4703 | case $CXX in | 
|  | 4704 | [\\/]* | ?:[\\/]*) | 
|  | 4705 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4706 | ;; | 
|  | 4707 | *) | 
|  | 4708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4709 | for as_dir in notfound | 
|  | 4710 | do | 
|  | 4711 | IFS=$as_save_IFS | 
|  | 4712 | test -z "$as_dir" && as_dir=. | 
|  | 4713 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4714 | 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] | 4715 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4717 | break 2 | 
|  | 4718 | fi | 
|  | 4719 | done | 
|  | 4720 | done | 
|  | 4721 | IFS=$as_save_IFS | 
|  | 4722 |  | 
|  | 4723 | ;; | 
|  | 4724 | esac | 
|  | 4725 | fi | 
|  | 4726 | CXX=$ac_cv_path_CXX | 
|  | 4727 | if test -n "$CXX"; then | 
|  | 4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4729 | $as_echo "$CXX" >&6; } | 
|  | 4730 | else | 
|  | 4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4732 | $as_echo "no" >&6; } | 
|  | 4733 | fi | 
|  | 4734 |  | 
|  | 4735 |  | 
|  | 4736 | fi | 
|  | 4737 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4738 | ac_pt_CXX=$CXX | 
|  | 4739 | # 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] | 4740 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4742 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4743 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 4744 | $as_echo_n "(cached) " >&6 | 
|  | 4745 | else | 
|  | 4746 | case $ac_pt_CXX in | 
|  | 4747 | [\\/]* | ?:[\\/]*) | 
|  | 4748 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 4749 | ;; | 
|  | 4750 | *) | 
|  | 4751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4752 | for as_dir in notfound | 
|  | 4753 | do | 
|  | 4754 | IFS=$as_save_IFS | 
|  | 4755 | test -z "$as_dir" && as_dir=. | 
|  | 4756 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4757 | 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] | 4758 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4760 | break 2 | 
|  | 4761 | fi | 
|  | 4762 | done | 
|  | 4763 | done | 
|  | 4764 | IFS=$as_save_IFS | 
|  | 4765 |  | 
|  | 4766 | ;; | 
|  | 4767 | esac | 
|  | 4768 | fi | 
|  | 4769 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4770 | if test -n "$ac_pt_CXX"; then | 
|  | 4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4772 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 4773 | else | 
|  | 4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4775 | $as_echo "no" >&6; } | 
|  | 4776 | fi | 
|  | 4777 |  | 
|  | 4778 | if test "x$ac_pt_CXX" = x; then | 
|  | 4779 | CXX="g++" | 
|  | 4780 | else | 
|  | 4781 | case $cross_compiling:$ac_tool_warned in | 
|  | 4782 | yes:) | 
|  | 4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4784 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4785 | ac_tool_warned=yes ;; | 
|  | 4786 | esac | 
|  | 4787 | CXX=$ac_pt_CXX | 
|  | 4788 | fi | 
|  | 4789 | else | 
|  | 4790 | CXX="$ac_cv_path_CXX" | 
|  | 4791 | fi | 
|  | 4792 | ;; | 
|  | 4793 | cc)     if test -n "$ac_tool_prefix"; then | 
|  | 4794 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
|  | 4795 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
|  | 4796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4797 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4798 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4799 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4800 | else | 
|  | 4801 | case $CXX in | 
|  | 4802 | [\\/]* | ?:[\\/]*) | 
|  | 4803 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4804 | ;; | 
|  | 4805 | *) | 
|  | 4806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4807 | for as_dir in notfound | 
|  | 4808 | do | 
|  | 4809 | IFS=$as_save_IFS | 
|  | 4810 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4811 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4812 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4813 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4815 | break 2 | 
|  | 4816 | fi | 
|  | 4817 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4818 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4819 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4820 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4821 | ;; | 
|  | 4822 | esac | 
|  | 4823 | fi | 
|  | 4824 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4825 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4827 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4828 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4830 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4831 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4832 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4833 |  | 
|  | 4834 | fi | 
|  | 4835 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4836 | ac_pt_CXX=$CXX | 
|  | 4837 | # 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] | 4838 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4840 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4841 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4842 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4843 | else | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4844 | case $ac_pt_CXX in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4845 | [\\/]* | ?:[\\/]*) | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4846 | 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] | 4847 | ;; | 
|  | 4848 | *) | 
|  | 4849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4850 | for as_dir in notfound | 
|  | 4851 | do | 
|  | 4852 | IFS=$as_save_IFS | 
|  | 4853 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4854 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4855 | 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] | 4856 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4858 | break 2 | 
|  | 4859 | fi | 
|  | 4860 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4861 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4862 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4863 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4864 | ;; | 
|  | 4865 | esac | 
|  | 4866 | fi | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4867 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4868 | if test -n "$ac_pt_CXX"; then | 
|  | 4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4870 | $as_echo "$ac_pt_CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4871 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4873 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4874 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4875 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4876 | if test "x$ac_pt_CXX" = x; then | 
|  | 4877 | CXX="c++" | 
|  | 4878 | else | 
|  | 4879 | case $cross_compiling:$ac_tool_warned in | 
|  | 4880 | yes:) | 
|  | 4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4882 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4883 | ac_tool_warned=yes ;; | 
|  | 4884 | esac | 
|  | 4885 | CXX=$ac_pt_CXX | 
|  | 4886 | fi | 
|  | 4887 | else | 
|  | 4888 | CXX="$ac_cv_path_CXX" | 
|  | 4889 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4890 | ;; | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4891 | clang|*/clang)     if test -n "$ac_tool_prefix"; then | 
|  | 4892 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | 
|  | 4893 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4895 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4896 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4897 | $as_echo_n "(cached) " >&6 | 
|  | 4898 | else | 
|  | 4899 | case $CXX in | 
|  | 4900 | [\\/]* | ?:[\\/]*) | 
|  | 4901 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4902 | ;; | 
|  | 4903 | *) | 
|  | 4904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4905 | for as_dir in notfound | 
|  | 4906 | do | 
|  | 4907 | IFS=$as_save_IFS | 
|  | 4908 | test -z "$as_dir" && as_dir=. | 
|  | 4909 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4910 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4911 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4913 | break 2 | 
|  | 4914 | fi | 
|  | 4915 | done | 
|  | 4916 | done | 
|  | 4917 | IFS=$as_save_IFS | 
|  | 4918 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4919 | ;; | 
|  | 4920 | esac | 
|  | 4921 | fi | 
|  | 4922 | CXX=$ac_cv_path_CXX | 
|  | 4923 | if test -n "$CXX"; then | 
|  | 4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4925 | $as_echo "$CXX" >&6; } | 
|  | 4926 | else | 
|  | 4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4928 | $as_echo "no" >&6; } | 
|  | 4929 | fi | 
|  | 4930 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4931 |  | 
|  | 4932 | fi | 
|  | 4933 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4934 | ac_pt_CXX=$CXX | 
|  | 4935 | # Extract the first word of "clang++", so it can be a program name with args. | 
|  | 4936 | set dummy clang++; ac_word=$2 | 
|  | 4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4938 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4939 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 4940 | $as_echo_n "(cached) " >&6 | 
|  | 4941 | else | 
|  | 4942 | case $ac_pt_CXX in | 
|  | 4943 | [\\/]* | ?:[\\/]*) | 
|  | 4944 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 4945 | ;; | 
|  | 4946 | *) | 
|  | 4947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4948 | for as_dir in notfound | 
|  | 4949 | do | 
|  | 4950 | IFS=$as_save_IFS | 
|  | 4951 | test -z "$as_dir" && as_dir=. | 
|  | 4952 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4953 | 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] | 4954 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4956 | break 2 | 
|  | 4957 | fi | 
|  | 4958 | done | 
|  | 4959 | done | 
|  | 4960 | IFS=$as_save_IFS | 
|  | 4961 |  | 
|  | 4962 | ;; | 
|  | 4963 | esac | 
|  | 4964 | fi | 
|  | 4965 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4966 | if test -n "$ac_pt_CXX"; then | 
|  | 4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4968 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 4969 | else | 
|  | 4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4971 | $as_echo "no" >&6; } | 
|  | 4972 | fi | 
|  | 4973 |  | 
|  | 4974 | if test "x$ac_pt_CXX" = x; then | 
|  | 4975 | CXX="clang++" | 
|  | 4976 | else | 
|  | 4977 | case $cross_compiling:$ac_tool_warned in | 
|  | 4978 | yes:) | 
|  | 4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4980 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4981 | ac_tool_warned=yes ;; | 
|  | 4982 | esac | 
|  | 4983 | CXX=$ac_pt_CXX | 
|  | 4984 | fi | 
|  | 4985 | else | 
|  | 4986 | CXX="$ac_cv_path_CXX" | 
|  | 4987 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4988 | ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 4989 | icc|*/icc)         if test -n "$ac_tool_prefix"; then | 
|  | 4990 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | 
|  | 4991 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | 
|  | 4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4993 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4994 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4995 | $as_echo_n "(cached) " >&6 | 
|  | 4996 | else | 
|  | 4997 | case $CXX in | 
|  | 4998 | [\\/]* | ?:[\\/]*) | 
|  | 4999 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 5000 | ;; | 
|  | 5001 | *) | 
|  | 5002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5003 | for as_dir in notfound | 
|  | 5004 | do | 
|  | 5005 | IFS=$as_save_IFS | 
|  | 5006 | test -z "$as_dir" && as_dir=. | 
|  | 5007 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5008 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5009 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5010 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5011 | break 2 | 
|  | 5012 | fi | 
|  | 5013 | done | 
|  | 5014 | done | 
|  | 5015 | IFS=$as_save_IFS | 
|  | 5016 |  | 
|  | 5017 | ;; | 
|  | 5018 | esac | 
|  | 5019 | fi | 
|  | 5020 | CXX=$ac_cv_path_CXX | 
|  | 5021 | if test -n "$CXX"; then | 
|  | 5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 5023 | $as_echo "$CXX" >&6; } | 
|  | 5024 | else | 
|  | 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5026 | $as_echo "no" >&6; } | 
|  | 5027 | fi | 
|  | 5028 |  | 
|  | 5029 |  | 
|  | 5030 | fi | 
|  | 5031 | if test -z "$ac_cv_path_CXX"; then | 
|  | 5032 | ac_pt_CXX=$CXX | 
|  | 5033 | # Extract the first word of "icpc", so it can be a program name with args. | 
|  | 5034 | set dummy icpc; ac_word=$2 | 
|  | 5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5036 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5037 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 5038 | $as_echo_n "(cached) " >&6 | 
|  | 5039 | else | 
|  | 5040 | case $ac_pt_CXX in | 
|  | 5041 | [\\/]* | ?:[\\/]*) | 
|  | 5042 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 5043 | ;; | 
|  | 5044 | *) | 
|  | 5045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5046 | for as_dir in notfound | 
|  | 5047 | do | 
|  | 5048 | IFS=$as_save_IFS | 
|  | 5049 | test -z "$as_dir" && as_dir=. | 
|  | 5050 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5051 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5052 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5054 | break 2 | 
|  | 5055 | fi | 
|  | 5056 | done | 
|  | 5057 | done | 
|  | 5058 | IFS=$as_save_IFS | 
|  | 5059 |  | 
|  | 5060 | ;; | 
|  | 5061 | esac | 
|  | 5062 | fi | 
|  | 5063 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 5064 | if test -n "$ac_pt_CXX"; then | 
|  | 5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 5066 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 5067 | else | 
|  | 5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5069 | $as_echo "no" >&6; } | 
|  | 5070 | fi | 
|  | 5071 |  | 
|  | 5072 | if test "x$ac_pt_CXX" = x; then | 
|  | 5073 | CXX="icpc" | 
|  | 5074 | else | 
|  | 5075 | case $cross_compiling:$ac_tool_warned in | 
|  | 5076 | yes:) | 
|  | 5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5078 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5079 | ac_tool_warned=yes ;; | 
|  | 5080 | esac | 
|  | 5081 | CXX=$ac_pt_CXX | 
|  | 5082 | fi | 
|  | 5083 | else | 
|  | 5084 | CXX="$ac_cv_path_CXX" | 
|  | 5085 | fi | 
|  | 5086 | ;; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5087 | esac | 
|  | 5088 | if test "$CXX" = "notfound" | 
|  | 5089 | then | 
|  | 5090 | CXX="" | 
|  | 5091 | fi | 
|  | 5092 | fi | 
|  | 5093 | if test -z "$CXX" | 
|  | 5094 | then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5095 | if test -n "$ac_tool_prefix"; then | 
|  | 5096 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 5097 | do | 
|  | 5098 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 5099 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5101 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5102 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5103 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5104 | else | 
|  | 5105 | if test -n "$CXX"; then | 
|  | 5106 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 5107 | else | 
|  | 5108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5109 | for as_dir in $PATH | 
|  | 5110 | do | 
|  | 5111 | IFS=$as_save_IFS | 
|  | 5112 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5113 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5114 | 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] | 5115 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5117 | break 2 | 
|  | 5118 | fi | 
|  | 5119 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5120 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5121 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5122 |  | 
|  | 5123 | fi | 
|  | 5124 | fi | 
|  | 5125 | CXX=$ac_cv_prog_CXX | 
|  | 5126 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 5128 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5129 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5131 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5132 | fi | 
|  | 5133 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5134 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5135 | test -n "$CXX" && break | 
|  | 5136 | done | 
|  | 5137 | fi | 
|  | 5138 | if test -z "$CXX"; then | 
|  | 5139 | ac_ct_CXX=$CXX | 
|  | 5140 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 5141 | do | 
|  | 5142 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 5143 | set dummy $ac_prog; ac_word=$2 | 
|  | 5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5145 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5146 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
|  | 5147 | $as_echo_n "(cached) " >&6 | 
|  | 5148 | else | 
|  | 5149 | if test -n "$ac_ct_CXX"; then | 
|  | 5150 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 5151 | else | 
|  | 5152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5153 | for as_dir in $PATH | 
|  | 5154 | do | 
|  | 5155 | IFS=$as_save_IFS | 
|  | 5156 | test -z "$as_dir" && as_dir=. | 
|  | 5157 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5158 | 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] | 5159 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
|  | 5160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5161 | break 2 | 
|  | 5162 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5163 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5164 | done | 
|  | 5165 | IFS=$as_save_IFS | 
|  | 5166 |  | 
|  | 5167 | fi | 
|  | 5168 | fi | 
|  | 5169 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 5170 | if test -n "$ac_ct_CXX"; then | 
|  | 5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
|  | 5172 | $as_echo "$ac_ct_CXX" >&6; } | 
|  | 5173 | else | 
|  | 5174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5175 | $as_echo "no" >&6; } | 
|  | 5176 | fi | 
|  | 5177 |  | 
|  | 5178 |  | 
|  | 5179 | test -n "$ac_ct_CXX" && break | 
|  | 5180 | done | 
|  | 5181 |  | 
|  | 5182 | if test "x$ac_ct_CXX" = x; then | 
|  | 5183 | CXX="notfound" | 
|  | 5184 | else | 
|  | 5185 | case $cross_compiling:$ac_tool_warned in | 
|  | 5186 | yes:) | 
|  | 5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5188 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5189 | ac_tool_warned=yes ;; | 
|  | 5190 | esac | 
|  | 5191 | CXX=$ac_ct_CXX | 
|  | 5192 | fi | 
|  | 5193 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5194 |  | 
|  | 5195 | if test "$CXX" = "notfound" | 
|  | 5196 | then | 
|  | 5197 | CXX="" | 
|  | 5198 | fi | 
|  | 5199 | fi | 
|  | 5200 | if test "$preset_cxx" != "$CXX" | 
|  | 5201 | then | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5203 |  | 
|  | 5204 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 5205 | If this is not intended, then set CXX on the configure command line. | 
|  | 5206 | " >&5 | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5207 | $as_echo "$as_me: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5208 |  | 
|  | 5209 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 5210 | 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] | 5211 | " >&6;} | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5212 | fi | 
|  | 5213 |  | 
|  | 5214 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5215 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
|  | 5216 |  | 
|  | 5217 |  | 
|  | 5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 | 
|  | 5219 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | 
|  | 5220 | cat >> conftest.c <<EOF | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5221 | #undef bfin | 
|  | 5222 | #undef cris | 
|  | 5223 | #undef fr30 | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5224 | #undef linux | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5225 | #undef hppa | 
|  | 5226 | #undef hpux | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5227 | #undef i386 | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5228 | #undef mips | 
| doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5229 | #undef powerpc | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5230 | #undef sparc | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5231 | #undef unix | 
| doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5232 | #if defined(__ANDROID__) | 
|  | 5233 | # if defined(__x86_64__) && defined(__LP64__) | 
|  | 5234 | x86_64-linux-android | 
|  | 5235 | # elif defined(__i386__) | 
|  | 5236 | i686-linux-android | 
|  | 5237 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
|  | 5238 | #  if defined(__ILP32__) | 
|  | 5239 | aarch64_ilp32-linux-android | 
|  | 5240 | #  else | 
|  | 5241 | aarch64-linux-android | 
|  | 5242 | #  endif | 
|  | 5243 | # elif defined(__ARM_EABI__) && defined(__ARMEL__) | 
|  | 5244 | arm-linux-androideabi | 
|  | 5245 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
|  | 5246 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5247 | mipsel-linux-android | 
|  | 5248 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5249 | mips64el-linux-android | 
|  | 5250 | #  else | 
|  | 5251 | #   error unknown platform triplet | 
|  | 5252 | #  endif | 
|  | 5253 | # else | 
|  | 5254 | #   error unknown platform triplet | 
|  | 5255 | # endif | 
|  | 5256 | #elif defined(__linux__) | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5257 | # if defined(__x86_64__) && defined(__LP64__) | 
|  | 5258 | x86_64-linux-gnu | 
|  | 5259 | # elif defined(__x86_64__) && defined(__ILP32__) | 
|  | 5260 | x86_64-linux-gnux32 | 
|  | 5261 | # elif defined(__i386__) | 
|  | 5262 | i386-linux-gnu | 
|  | 5263 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
|  | 5264 | #  if defined(__ILP32__) | 
|  | 5265 | aarch64_ilp32-linux-gnu | 
|  | 5266 | #  else | 
|  | 5267 | aarch64-linux-gnu | 
|  | 5268 | #  endif | 
|  | 5269 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | 
|  | 5270 | #  if defined(__ILP32__) | 
|  | 5271 | aarch64_be_ilp32-linux-gnu | 
|  | 5272 | #  else | 
|  | 5273 | aarch64_be-linux-gnu | 
|  | 5274 | #  endif | 
|  | 5275 | # elif defined(__alpha__) | 
|  | 5276 | alpha-linux-gnu | 
|  | 5277 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | 
|  | 5278 | #  if defined(__ARMEL__) | 
|  | 5279 | arm-linux-gnueabihf | 
|  | 5280 | #  else | 
|  | 5281 | armeb-linux-gnueabihf | 
|  | 5282 | #  endif | 
|  | 5283 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | 
|  | 5284 | #  if defined(__ARMEL__) | 
|  | 5285 | arm-linux-gnueabi | 
|  | 5286 | #  else | 
|  | 5287 | armeb-linux-gnueabi | 
|  | 5288 | #  endif | 
|  | 5289 | # elif defined(__hppa__) | 
|  | 5290 | hppa-linux-gnu | 
|  | 5291 | # elif defined(__ia64__) | 
|  | 5292 | ia64-linux-gnu | 
|  | 5293 | # elif defined(__m68k__) && !defined(__mcoldfire__) | 
|  | 5294 | m68k-linux-gnu | 
|  | 5295 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
|  | 5296 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5297 | mipsel-linux-gnu | 
|  | 5298 | #  elif _MIPS_SIM == _ABIN32 | 
|  | 5299 | mips64el-linux-gnuabin32 | 
|  | 5300 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5301 | mips64el-linux-gnuabi64 | 
|  | 5302 | #  else | 
|  | 5303 | #   error unknown platform triplet | 
|  | 5304 | #  endif | 
|  | 5305 | # elif defined(__mips_hard_float) | 
|  | 5306 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5307 | mips-linux-gnu | 
|  | 5308 | #  elif _MIPS_SIM == _ABIN32 | 
|  | 5309 | mips64-linux-gnuabin32 | 
|  | 5310 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5311 | mips64-linux-gnuabi64 | 
|  | 5312 | #  else | 
|  | 5313 | #   error unknown platform triplet | 
|  | 5314 | #  endif | 
|  | 5315 | # elif defined(__or1k__) | 
|  | 5316 | or1k-linux-gnu | 
|  | 5317 | # elif defined(__powerpc__) && defined(__SPE__) | 
|  | 5318 | powerpc-linux-gnuspe | 
|  | 5319 | # elif defined(__powerpc64__) | 
|  | 5320 | #  if defined(__LITTLE_ENDIAN__) | 
|  | 5321 | powerpc64le-linux-gnu | 
|  | 5322 | #  else | 
|  | 5323 | powerpc64-linux-gnu | 
|  | 5324 | #  endif | 
|  | 5325 | # elif defined(__powerpc__) | 
|  | 5326 | powerpc-linux-gnu | 
|  | 5327 | # elif defined(__s390x__) | 
|  | 5328 | s390x-linux-gnu | 
|  | 5329 | # elif defined(__s390__) | 
|  | 5330 | s390-linux-gnu | 
|  | 5331 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | 
|  | 5332 | sh4-linux-gnu | 
|  | 5333 | # elif defined(__sparc__) && defined(__arch64__) | 
|  | 5334 | sparc64-linux-gnu | 
|  | 5335 | # elif defined(__sparc__) | 
|  | 5336 | sparc-linux-gnu | 
|  | 5337 | # else | 
|  | 5338 | #   error unknown platform triplet | 
|  | 5339 | # endif | 
|  | 5340 | #elif defined(__FreeBSD_kernel__) | 
|  | 5341 | # if defined(__LP64__) | 
|  | 5342 | x86_64-kfreebsd-gnu | 
|  | 5343 | # elif defined(__i386__) | 
|  | 5344 | i386-kfreebsd-gnu | 
|  | 5345 | # else | 
|  | 5346 | #   error unknown platform triplet | 
|  | 5347 | # endif | 
|  | 5348 | #elif defined(__gnu_hurd__) | 
|  | 5349 | i386-gnu | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5350 | #elif defined(__APPLE__) | 
|  | 5351 | darwin | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5352 | #else | 
|  | 5353 | # error unknown platform triplet | 
|  | 5354 | #endif | 
|  | 5355 |  | 
|  | 5356 | EOF | 
|  | 5357 |  | 
| Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5358 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5359 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' 	'` | 
|  | 5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 | 
|  | 5361 | $as_echo "$PLATFORM_TRIPLET" >&6; } | 
|  | 5362 | else | 
|  | 5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 5364 | $as_echo "none" >&6; } | 
|  | 5365 | fi | 
|  | 5366 | rm -f conftest.c conftest.out | 
|  | 5367 |  | 
|  | 5368 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then | 
|  | 5369 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | 
|  | 5370 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | 
|  | 5371 | fi | 
| doko@ubuntu.com | 75b1cb1 | 2016-08-29 20:03:25 +0200 | [diff] [blame] | 5372 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then | 
|  | 5373 | MULTIARCH=$PLATFORM_TRIPLET | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5374 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5375 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5376 | if test x$MULTIARCH != x; then | 
|  | 5377 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" | 
|  | 5378 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5379 |  | 
|  | 5380 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
|  | 5382 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
|  | 5383 | save_LDFLAGS="$LDFLAGS" | 
|  | 5384 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5385 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5387 | /* end confdefs.h.  */ | 
|  | 5388 |  | 
|  | 5389 | int | 
|  | 5390 | main () | 
|  | 5391 | { | 
|  | 5392 |  | 
|  | 5393 | ; | 
|  | 5394 | return 0; | 
|  | 5395 | } | 
|  | 5396 | _ACEOF | 
|  | 5397 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 5398 | NO_AS_NEEDED="-Wl,--no-as-needed" | 
|  | 5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5400 | $as_echo "yes" >&6; } | 
|  | 5401 | else | 
|  | 5402 | NO_AS_NEEDED="" | 
|  | 5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5404 | $as_echo "no" >&6; } | 
|  | 5405 | fi | 
|  | 5406 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 5407 | conftest$ac_exeext conftest.$ac_ext | 
|  | 5408 | LDFLAGS="$save_LDFLAGS" | 
|  | 5409 |  | 
|  | 5410 |  | 
|  | 5411 |  | 
|  | 5412 | # checks for UNIX variants that set C preprocessor variables | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5413 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
|  | 5415 | $as_echo_n "checking for egrep... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5416 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5417 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5418 | else | 
|  | 5419 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 5420 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 5421 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5422 | if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5423 | ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5424 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 5425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5426 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 5427 | do | 
|  | 5428 | IFS=$as_save_IFS | 
|  | 5429 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5430 | for ac_prog in egrep; do | 
|  | 5431 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5432 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5433 | as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5434 | # Check for GNU ac_path_EGREP and select it if it is found. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5435 | # Check for GNU $ac_path_EGREP | 
|  | 5436 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 5437 | *GNU*) | 
|  | 5438 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 5439 | *) | 
|  | 5440 | ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5441 | $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5442 | while : | 
|  | 5443 | do | 
|  | 5444 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 5445 | mv "conftest.tmp" "conftest.in" | 
|  | 5446 | cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5447 | $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5448 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 5449 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5450 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5451 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 5452 | # Best one so far, save it but keep looking for a better one | 
|  | 5453 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 5454 | ac_path_EGREP_max=$ac_count | 
|  | 5455 | fi | 
|  | 5456 | # 10*(2^10) chars as input seems more than enough | 
|  | 5457 | test $ac_count -gt 10 && break | 
|  | 5458 | done | 
|  | 5459 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 5460 | esac | 
|  | 5461 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5462 | $ac_path_EGREP_found && break 3 | 
|  | 5463 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5464 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5465 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5466 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5467 | if test -z "$ac_cv_path_EGREP"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5468 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5469 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5470 | else | 
|  | 5471 | ac_cv_path_EGREP=$EGREP | 
|  | 5472 | fi | 
|  | 5473 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5474 | fi | 
|  | 5475 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
|  | 5477 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5478 | EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5479 |  | 
|  | 5480 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 5482 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5483 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5484 | $as_echo_n "(cached) " >&6 | 
|  | 5485 | else | 
|  | 5486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5487 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5488 | #include <stdlib.h> | 
|  | 5489 | #include <stdarg.h> | 
|  | 5490 | #include <string.h> | 
|  | 5491 | #include <float.h> | 
|  | 5492 |  | 
|  | 5493 | int | 
|  | 5494 | main () | 
|  | 5495 | { | 
|  | 5496 |  | 
|  | 5497 | ; | 
|  | 5498 | return 0; | 
|  | 5499 | } | 
|  | 5500 | _ACEOF | 
|  | 5501 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5502 | ac_cv_header_stdc=yes | 
|  | 5503 | else | 
|  | 5504 | ac_cv_header_stdc=no | 
|  | 5505 | fi | 
|  | 5506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5507 |  | 
|  | 5508 | if test $ac_cv_header_stdc = yes; then | 
|  | 5509 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 5510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5511 | /* end confdefs.h.  */ | 
|  | 5512 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5513 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5514 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5515 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5516 | $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5517 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5518 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5519 | ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5520 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5521 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5522 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5523 | fi | 
|  | 5524 |  | 
|  | 5525 | if test $ac_cv_header_stdc = yes; then | 
|  | 5526 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 5527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5528 | /* end confdefs.h.  */ | 
|  | 5529 | #include <stdlib.h> | 
|  | 5530 |  | 
|  | 5531 | _ACEOF | 
|  | 5532 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 5533 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 5534 |  | 
|  | 5535 | else | 
|  | 5536 | ac_cv_header_stdc=no | 
|  | 5537 | fi | 
|  | 5538 | rm -f conftest* | 
|  | 5539 |  | 
|  | 5540 | fi | 
|  | 5541 |  | 
|  | 5542 | if test $ac_cv_header_stdc = yes; then | 
|  | 5543 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 5544 | if test "$cross_compiling" = yes; then : | 
|  | 5545 | : | 
|  | 5546 | else | 
|  | 5547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5548 | /* end confdefs.h.  */ | 
|  | 5549 | #include <ctype.h> | 
|  | 5550 | #include <stdlib.h> | 
|  | 5551 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 5552 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 5553 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 5554 | #else | 
|  | 5555 | # define ISLOWER(c) \ | 
|  | 5556 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 5557 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 5558 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 5559 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 5560 | #endif | 
|  | 5561 |  | 
|  | 5562 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 5563 | int | 
|  | 5564 | main () | 
|  | 5565 | { | 
|  | 5566 | int i; | 
|  | 5567 | for (i = 0; i < 256; i++) | 
|  | 5568 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 5569 | || toupper (i) != TOUPPER (i)) | 
|  | 5570 | return 2; | 
|  | 5571 | return 0; | 
|  | 5572 | } | 
|  | 5573 | _ACEOF | 
|  | 5574 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 5575 |  | 
|  | 5576 | else | 
|  | 5577 | ac_cv_header_stdc=no | 
|  | 5578 | fi | 
|  | 5579 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5580 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 5581 | fi | 
|  | 5582 |  | 
|  | 5583 | fi | 
|  | 5584 | fi | 
|  | 5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 5586 | $as_echo "$ac_cv_header_stdc" >&6; } | 
|  | 5587 | if test $ac_cv_header_stdc = yes; then | 
|  | 5588 |  | 
|  | 5589 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
|  | 5590 |  | 
|  | 5591 | fi | 
|  | 5592 |  | 
|  | 5593 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 5594 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 5595 | inttypes.h stdint.h unistd.h | 
|  | 5596 | do : | 
|  | 5597 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 5598 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 5599 | " | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5600 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5601 | cat >>confdefs.h <<_ACEOF | 
|  | 5602 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 5603 | _ACEOF | 
|  | 5604 |  | 
|  | 5605 | fi | 
|  | 5606 |  | 
|  | 5607 | done | 
|  | 5608 |  | 
|  | 5609 |  | 
|  | 5610 |  | 
|  | 5611 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5612 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5613 | MINIX=yes | 
|  | 5614 | else | 
|  | 5615 | MINIX= | 
|  | 5616 | fi | 
|  | 5617 |  | 
|  | 5618 |  | 
|  | 5619 | if test "$MINIX" = yes; then | 
|  | 5620 |  | 
|  | 5621 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
|  | 5622 |  | 
|  | 5623 |  | 
|  | 5624 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
|  | 5625 |  | 
|  | 5626 |  | 
|  | 5627 | $as_echo "#define _MINIX 1" >>confdefs.h | 
|  | 5628 |  | 
|  | 5629 | fi | 
|  | 5630 |  | 
|  | 5631 |  | 
|  | 5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
|  | 5633 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5634 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5635 | $as_echo_n "(cached) " >&6 | 
|  | 5636 | else | 
|  | 5637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5638 | /* end confdefs.h.  */ | 
|  | 5639 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5640 | #         define __EXTENSIONS__ 1 | 
|  | 5641 | $ac_includes_default | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5642 | int | 
|  | 5643 | main () | 
|  | 5644 | { | 
|  | 5645 |  | 
|  | 5646 | ; | 
|  | 5647 | return 0; | 
|  | 5648 | } | 
|  | 5649 | _ACEOF | 
|  | 5650 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5651 | ac_cv_safe_to_define___extensions__=yes | 
|  | 5652 | else | 
|  | 5653 | ac_cv_safe_to_define___extensions__=no | 
|  | 5654 | fi | 
|  | 5655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5656 | fi | 
|  | 5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
|  | 5658 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
|  | 5659 | test $ac_cv_safe_to_define___extensions__ = yes && | 
|  | 5660 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
|  | 5661 |  | 
|  | 5662 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
|  | 5663 |  | 
|  | 5664 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
|  | 5665 |  | 
|  | 5666 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
|  | 5667 |  | 
|  | 5668 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
|  | 5669 |  | 
|  | 5670 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5671 |  | 
| Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 | 
|  | 5673 | $as_echo_n "checking for the Android API level... " >&6; } | 
|  | 5674 | cat >> conftest.c <<EOF | 
|  | 5675 | #ifdef __ANDROID__ | 
|  | 5676 | #include <android/api-level.h> | 
|  | 5677 | __ANDROID_API__ | 
|  | 5678 | #else | 
|  | 5679 | #error not Android | 
|  | 5680 | #endif | 
|  | 5681 | EOF | 
|  | 5682 |  | 
|  | 5683 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
|  | 5684 | ANDROID_API_LEVEL=`grep -v '^#' conftest.out | grep -v '^ *$'` | 
|  | 5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 | 
|  | 5686 | $as_echo "$ANDROID_API_LEVEL" >&6; } | 
|  | 5687 |  | 
|  | 5688 | cat >>confdefs.h <<_ACEOF | 
|  | 5689 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL | 
|  | 5690 | _ACEOF | 
|  | 5691 |  | 
|  | 5692 | else | 
|  | 5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 | 
|  | 5694 | $as_echo "not Android" >&6; } | 
|  | 5695 | fi | 
|  | 5696 | rm -f conftest.c conftest.out | 
|  | 5697 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5698 | # Check for unsupported systems | 
|  | 5699 | case $ac_sys_system/$ac_sys_release in | 
|  | 5700 | atheos*|Linux*/1*) | 
|  | 5701 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
|  | 5702 | echo See README for details. | 
|  | 5703 | exit 1;; | 
|  | 5704 | esac | 
|  | 5705 |  | 
|  | 5706 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
|  | 5708 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5709 |  | 
|  | 5710 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5711 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5712 | withval=$with_suffix; | 
|  | 5713 | case $withval in | 
|  | 5714 | no)	EXEEXT=;; | 
|  | 5715 | yes)	EXEEXT=.exe;; | 
|  | 5716 | *)	EXEEXT=$withval;; | 
|  | 5717 | esac | 
|  | 5718 | fi | 
|  | 5719 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
|  | 5721 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5722 |  | 
|  | 5723 | # Test whether we're running on a non-case-sensitive system, in which | 
|  | 5724 | # case we give a warning if no ext is given | 
|  | 5725 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
|  | 5727 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5728 | if test ! -d CaseSensitiveTestDir; then | 
|  | 5729 | mkdir CaseSensitiveTestDir | 
|  | 5730 | fi | 
|  | 5731 |  | 
|  | 5732 | if test -d casesensitivetestdir | 
|  | 5733 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5735 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5736 | BUILDEXEEXT=.exe | 
|  | 5737 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5739 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5740 | BUILDEXEEXT=$EXEEXT | 
|  | 5741 | fi | 
|  | 5742 | rmdir CaseSensitiveTestDir | 
|  | 5743 |  | 
|  | 5744 | case $MACHDEP in | 
|  | 5745 | bsdos*) | 
|  | 5746 | case $CC in | 
|  | 5747 | gcc) CC="$CC -D_HAVE_BSDI";; | 
|  | 5748 | esac;; | 
|  | 5749 | esac | 
|  | 5750 |  | 
|  | 5751 | case $ac_sys_system in | 
|  | 5752 | hp*|HP*) | 
|  | 5753 | case $CC in | 
|  | 5754 | cc|*/cc) CC="$CC -Ae";; | 
|  | 5755 | esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5756 | esac | 
|  | 5757 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5758 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
|  | 5760 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5761 | if test -z "$LIBRARY" | 
|  | 5762 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5763 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5764 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
|  | 5766 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5767 |  | 
|  | 5768 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
|  | 5769 | # name of the library into which to insert object files). BLDLIBRARY is also | 
|  | 5770 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
|  | 5771 | # is blank as the main program is not linked directly against LDLIBRARY. | 
|  | 5772 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
|  | 5773 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
|  | 5774 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
|  | 5775 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
|  | 5776 | # | 
|  | 5777 | # RUNSHARED is used to run shared python without installed libraries | 
|  | 5778 | # | 
|  | 5779 | # INSTSONAME is the name of the shared library that will be use to install | 
|  | 5780 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5781 | # | 
|  | 5782 | # LDVERSION is the shared library version number, normally the Python version | 
|  | 5783 | # with the ABI build flags appended. | 
|  | 5784 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5785 |  | 
|  | 5786 |  | 
|  | 5787 |  | 
|  | 5788 |  | 
|  | 5789 |  | 
|  | 5790 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5791 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5792 | LDLIBRARY="$LIBRARY" | 
|  | 5793 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 5794 | INSTSONAME='$(LDLIBRARY)' | 
|  | 5795 | DLLLIBRARY='' | 
|  | 5796 | LDLIBRARYDIR='' | 
|  | 5797 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5798 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5799 |  | 
|  | 5800 | # LINKCC is the command that links the python executable -- default is $(CC). | 
|  | 5801 | # If CXX is set, and if it is needed to link a main function that was | 
|  | 5802 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
|  | 5803 | # python might then depend on the C++ runtime | 
|  | 5804 | # This is altered for AIX in order to build the export list before | 
|  | 5805 | # linking. | 
|  | 5806 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
|  | 5808 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5809 | if test -z "$LINKCC" | 
|  | 5810 | then | 
|  | 5811 | LINKCC='$(PURIFY) $(MAINCC)' | 
|  | 5812 | case $ac_sys_system in | 
|  | 5813 | AIX*) | 
|  | 5814 | exp_extra="\"\"" | 
|  | 5815 | if test $ac_sys_release -ge 5 -o \ | 
|  | 5816 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
|  | 5817 | exp_extra="." | 
|  | 5818 | fi | 
|  | 5819 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5820 | QNX*) | 
|  | 5821 | # qcc must be used because the other compilers do not | 
|  | 5822 | # support -N. | 
|  | 5823 | LINKCC=qcc;; | 
|  | 5824 | esac | 
|  | 5825 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
|  | 5827 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5828 |  | 
|  | 5829 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
|  | 5830 | # make sure we default having it set to "no": this is used by | 
|  | 5831 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
|  | 5832 | # to linker command lines, and failing to detect GNU ld simply results | 
|  | 5833 | # in the same bahaviour as before. | 
|  | 5834 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
|  | 5836 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5837 | ac_prog=ld | 
|  | 5838 | if test "$GCC" = yes; then | 
|  | 5839 | ac_prog=`$CC -print-prog-name=ld` | 
|  | 5840 | fi | 
|  | 5841 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
|  | 5842 | *GNU*) | 
|  | 5843 | GNULD=yes;; | 
|  | 5844 | *) | 
|  | 5845 | GNULD=no;; | 
|  | 5846 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
|  | 5848 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5849 |  | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
|  | 5851 | $as_echo_n "checking for inline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5852 | if ${ac_cv_c_inline+:} false; then : | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5853 | $as_echo_n "(cached) " >&6 | 
|  | 5854 | else | 
|  | 5855 | ac_cv_c_inline=no | 
|  | 5856 | for ac_kw in inline __inline__ __inline; do | 
|  | 5857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5858 | /* end confdefs.h.  */ | 
|  | 5859 | #ifndef __cplusplus | 
|  | 5860 | typedef int foo_t; | 
|  | 5861 | static $ac_kw foo_t static_foo () {return 0; } | 
|  | 5862 | $ac_kw foo_t foo () {return 0; } | 
|  | 5863 | #endif | 
|  | 5864 |  | 
|  | 5865 | _ACEOF | 
|  | 5866 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5867 | ac_cv_c_inline=$ac_kw | 
|  | 5868 | fi | 
|  | 5869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5870 | test "$ac_cv_c_inline" != no && break | 
|  | 5871 | done | 
|  | 5872 |  | 
|  | 5873 | fi | 
|  | 5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
|  | 5875 | $as_echo "$ac_cv_c_inline" >&6; } | 
|  | 5876 |  | 
|  | 5877 | case $ac_cv_c_inline in | 
|  | 5878 | inline | yes) ;; | 
|  | 5879 | *) | 
|  | 5880 | case $ac_cv_c_inline in | 
|  | 5881 | no) ac_val=;; | 
|  | 5882 | *) ac_val=$ac_cv_c_inline;; | 
|  | 5883 | esac | 
|  | 5884 | cat >>confdefs.h <<_ACEOF | 
|  | 5885 | #ifndef __cplusplus | 
|  | 5886 | #define inline $ac_val | 
|  | 5887 | #endif | 
|  | 5888 | _ACEOF | 
|  | 5889 | ;; | 
|  | 5890 | esac | 
|  | 5891 |  | 
|  | 5892 | if test "$ac_cv_c_inline" != no ; then | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 5893 |  | 
|  | 5894 | $as_echo "#define USE_INLINE 1" >>confdefs.h | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5895 |  | 
|  | 5896 |  | 
|  | 5897 | fi | 
|  | 5898 |  | 
|  | 5899 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
|  | 5901 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5902 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5903 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5904 | enableval=$enable_shared; | 
|  | 5905 | fi | 
|  | 5906 |  | 
|  | 5907 |  | 
|  | 5908 | if test -z "$enable_shared" | 
|  | 5909 | then | 
|  | 5910 | case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5911 | CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5912 | enable_shared="yes";; | 
|  | 5913 | *) | 
|  | 5914 | enable_shared="no";; | 
|  | 5915 | esac | 
|  | 5916 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
|  | 5918 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5919 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
|  | 5921 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5922 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5923 | if test "${enable_profiling+set}" = set; then : | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5924 | enableval=$enable_profiling; | 
|  | 5925 | fi | 
|  | 5926 |  | 
|  | 5927 | if test "x$enable_profiling" = xyes; then | 
|  | 5928 | ac_save_cc="$CC" | 
| Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5929 | CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5931 | /* end confdefs.h.  */ | 
|  | 5932 | int main() { return 0; } | 
|  | 5933 | _ACEOF | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5934 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 5935 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5936 | else | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5937 | enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5938 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5939 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 5940 | conftest$ac_exeext conftest.$ac_ext | 
|  | 5941 | CC="$ac_save_cc" | 
|  | 5942 | else | 
|  | 5943 | enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5944 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
|  | 5946 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5947 |  | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5948 | if test "x$enable_profiling" = xyes; then | 
|  | 5949 | BASECFLAGS="-pg $BASECFLAGS" | 
|  | 5950 | LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5951 | fi | 
|  | 5952 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
|  | 5954 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5955 |  | 
|  | 5956 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
|  | 5957 | # library that we build, but we do not want to link against it (we | 
|  | 5958 | # will find it with a -framework option). For this reason there is an | 
|  | 5959 | # extra variable BLDLIBRARY against which Python and the extension | 
|  | 5960 | # modules are linked, BLDLIBRARY. This is normally the same as | 
|  | 5961 | # LDLIBRARY, but empty for MacOSX framework builds. | 
|  | 5962 | if test "$enable_framework" | 
|  | 5963 | then | 
|  | 5964 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5965 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5966 | BLDLIBRARY='' | 
|  | 5967 | else | 
|  | 5968 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 5969 | fi | 
|  | 5970 |  | 
|  | 5971 | # Other platforms follow | 
|  | 5972 | if test $enable_shared = "yes"; then | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5973 | PY_ENABLE_SHARED=1 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5974 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5975 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5976 |  | 
|  | 5977 | case $ac_sys_system in | 
|  | 5978 | CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5979 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
|  | 5980 | DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5981 | ;; | 
|  | 5982 | SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5983 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 5984 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5985 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5986 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5987 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5988 | then | 
|  | 5989 | PY3LIBRARY=libpython3.so | 
|  | 5990 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5991 | ;; | 
| Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 5992 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5993 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 5994 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5995 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5996 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5997 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5998 | then | 
|  | 5999 | PY3LIBRARY=libpython3.so | 
|  | 6000 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6001 | ;; | 
|  | 6002 | hp*|HP*) | 
|  | 6003 | case `uname -m` in | 
|  | 6004 | ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6005 | LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6006 | ;; | 
|  | 6007 | *) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6008 | LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6009 | ;; | 
|  | 6010 | esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6011 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6012 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6013 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6014 | Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6015 | LDLIBRARY='libpython$(LDVERSION).dylib' | 
|  | 6016 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6017 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6018 | ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6019 | AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6020 | LDLIBRARY='libpython$(LDVERSION).so' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6021 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6022 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6023 |  | 
|  | 6024 | esac | 
|  | 6025 | else # shared is disabled | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 6026 | PY_ENABLE_SHARED=0 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6027 | case $ac_sys_system in | 
|  | 6028 | CYGWIN*) | 
|  | 6029 | BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6030 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6031 | ;; | 
|  | 6032 | esac | 
|  | 6033 | fi | 
|  | 6034 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 6035 | if test "$cross_compiling" = yes; then | 
|  | 6036 | RUNSHARED= | 
|  | 6037 | fi | 
|  | 6038 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
|  | 6040 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6041 |  | 
|  | 6042 | if test -n "$ac_tool_prefix"; then | 
|  | 6043 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 6044 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6046 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6047 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6048 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6049 | else | 
|  | 6050 | if test -n "$RANLIB"; then | 
|  | 6051 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 6052 | else | 
|  | 6053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6054 | for as_dir in $PATH | 
|  | 6055 | do | 
|  | 6056 | IFS=$as_save_IFS | 
|  | 6057 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6058 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6059 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6060 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6062 | break 2 | 
|  | 6063 | fi | 
|  | 6064 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6065 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6066 | IFS=$as_save_IFS | 
|  | 6067 |  | 
|  | 6068 | fi | 
|  | 6069 | fi | 
|  | 6070 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 6071 | if test -n "$RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
|  | 6073 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6074 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6076 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6077 | fi | 
|  | 6078 |  | 
|  | 6079 |  | 
|  | 6080 | fi | 
|  | 6081 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 6082 | ac_ct_RANLIB=$RANLIB | 
|  | 6083 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 6084 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6086 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6087 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6088 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6089 | else | 
|  | 6090 | if test -n "$ac_ct_RANLIB"; then | 
|  | 6091 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 6092 | else | 
|  | 6093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6094 | for as_dir in $PATH | 
|  | 6095 | do | 
|  | 6096 | IFS=$as_save_IFS | 
|  | 6097 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6098 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6100 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6102 | break 2 | 
|  | 6103 | fi | 
|  | 6104 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6105 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6106 | IFS=$as_save_IFS | 
|  | 6107 |  | 
|  | 6108 | fi | 
|  | 6109 | fi | 
|  | 6110 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 6111 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
|  | 6113 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6114 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6116 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6117 | fi | 
|  | 6118 |  | 
|  | 6119 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 6120 | RANLIB=":" | 
|  | 6121 | else | 
|  | 6122 | case $cross_compiling:$ac_tool_warned in | 
|  | 6123 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6124 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6125 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6126 | ac_tool_warned=yes ;; | 
|  | 6127 | esac | 
|  | 6128 | RANLIB=$ac_ct_RANLIB | 
|  | 6129 | fi | 
|  | 6130 | else | 
|  | 6131 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 6132 | fi | 
|  | 6133 |  | 
|  | 6134 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6135 | if test -n "$ac_tool_prefix"; then | 
|  | 6136 | for ac_prog in ar aal | 
|  | 6137 | do | 
|  | 6138 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 6139 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6141 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6142 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6143 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6144 | else | 
|  | 6145 | if test -n "$AR"; then | 
|  | 6146 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 6147 | else | 
|  | 6148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6149 | for as_dir in $PATH | 
|  | 6150 | do | 
|  | 6151 | IFS=$as_save_IFS | 
|  | 6152 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6153 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6154 | 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] | 6155 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6157 | break 2 | 
|  | 6158 | fi | 
|  | 6159 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6160 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6161 | IFS=$as_save_IFS | 
|  | 6162 |  | 
|  | 6163 | fi | 
|  | 6164 | fi | 
|  | 6165 | AR=$ac_cv_prog_AR | 
|  | 6166 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
|  | 6168 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6169 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6171 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6172 | fi | 
|  | 6173 |  | 
|  | 6174 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6175 | test -n "$AR" && break | 
|  | 6176 | done | 
|  | 6177 | fi | 
|  | 6178 | if test -z "$AR"; then | 
|  | 6179 | ac_ct_AR=$AR | 
|  | 6180 | for ac_prog in ar aal | 
|  | 6181 | do | 
|  | 6182 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6183 | set dummy $ac_prog; ac_word=$2 | 
|  | 6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6185 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6186 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
|  | 6187 | $as_echo_n "(cached) " >&6 | 
|  | 6188 | else | 
|  | 6189 | if test -n "$ac_ct_AR"; then | 
|  | 6190 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 6191 | else | 
|  | 6192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6193 | for as_dir in $PATH | 
|  | 6194 | do | 
|  | 6195 | IFS=$as_save_IFS | 
|  | 6196 | test -z "$as_dir" && as_dir=. | 
|  | 6197 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 6198 | 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] | 6199 | ac_cv_prog_ac_ct_AR="$ac_prog" | 
|  | 6200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6201 | break 2 | 
|  | 6202 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6203 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6204 | done | 
|  | 6205 | IFS=$as_save_IFS | 
|  | 6206 |  | 
|  | 6207 | fi | 
|  | 6208 | fi | 
|  | 6209 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 6210 | if test -n "$ac_ct_AR"; then | 
|  | 6211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
|  | 6212 | $as_echo "$ac_ct_AR" >&6; } | 
|  | 6213 | else | 
|  | 6214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6215 | $as_echo "no" >&6; } | 
|  | 6216 | fi | 
|  | 6217 |  | 
|  | 6218 |  | 
|  | 6219 | test -n "$ac_ct_AR" && break | 
|  | 6220 | done | 
|  | 6221 |  | 
|  | 6222 | if test "x$ac_ct_AR" = x; then | 
|  | 6223 | AR="ar" | 
|  | 6224 | else | 
|  | 6225 | case $cross_compiling:$ac_tool_warned in | 
|  | 6226 | yes:) | 
|  | 6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6228 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 6229 | ac_tool_warned=yes ;; | 
|  | 6230 | esac | 
|  | 6231 | AR=$ac_ct_AR | 
|  | 6232 | fi | 
|  | 6233 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6234 |  | 
|  | 6235 |  | 
|  | 6236 | # tweak ARFLAGS only if the user didn't set it on the command line | 
|  | 6237 |  | 
|  | 6238 | if test -z "$ARFLAGS" | 
|  | 6239 | then | 
|  | 6240 | ARFLAGS="rc" | 
|  | 6241 | fi | 
|  | 6242 |  | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6243 | if test -n "$ac_tool_prefix"; then | 
|  | 6244 | for ac_prog in readelf | 
|  | 6245 | do | 
|  | 6246 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 6247 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6249 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6250 | if ${ac_cv_prog_READELF+:} false; then : | 
|  | 6251 | $as_echo_n "(cached) " >&6 | 
|  | 6252 | else | 
|  | 6253 | if test -n "$READELF"; then | 
|  | 6254 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | 
|  | 6255 | else | 
|  | 6256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6257 | for as_dir in $PATH | 
|  | 6258 | do | 
|  | 6259 | IFS=$as_save_IFS | 
|  | 6260 | test -z "$as_dir" && as_dir=. | 
|  | 6261 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6262 | 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] | 6263 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" | 
|  | 6264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6265 | break 2 | 
|  | 6266 | fi | 
|  | 6267 | done | 
|  | 6268 | done | 
|  | 6269 | IFS=$as_save_IFS | 
|  | 6270 |  | 
|  | 6271 | fi | 
|  | 6272 | fi | 
|  | 6273 | READELF=$ac_cv_prog_READELF | 
|  | 6274 | if test -n "$READELF"; then | 
|  | 6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | 
|  | 6276 | $as_echo "$READELF" >&6; } | 
|  | 6277 | else | 
|  | 6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6279 | $as_echo "no" >&6; } | 
|  | 6280 | fi | 
|  | 6281 |  | 
|  | 6282 |  | 
|  | 6283 | test -n "$READELF" && break | 
|  | 6284 | done | 
|  | 6285 | fi | 
|  | 6286 | if test -z "$READELF"; then | 
|  | 6287 | ac_ct_READELF=$READELF | 
|  | 6288 | for ac_prog in readelf | 
|  | 6289 | do | 
|  | 6290 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6291 | set dummy $ac_prog; ac_word=$2 | 
|  | 6292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6293 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6294 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | 
|  | 6295 | $as_echo_n "(cached) " >&6 | 
|  | 6296 | else | 
|  | 6297 | if test -n "$ac_ct_READELF"; then | 
|  | 6298 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | 
|  | 6299 | else | 
|  | 6300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6301 | for as_dir in $PATH | 
|  | 6302 | do | 
|  | 6303 | IFS=$as_save_IFS | 
|  | 6304 | test -z "$as_dir" && as_dir=. | 
|  | 6305 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6306 | 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] | 6307 | ac_cv_prog_ac_ct_READELF="$ac_prog" | 
|  | 6308 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6309 | break 2 | 
|  | 6310 | fi | 
|  | 6311 | done | 
|  | 6312 | done | 
|  | 6313 | IFS=$as_save_IFS | 
|  | 6314 |  | 
|  | 6315 | fi | 
|  | 6316 | fi | 
|  | 6317 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | 
|  | 6318 | if test -n "$ac_ct_READELF"; then | 
|  | 6319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | 
|  | 6320 | $as_echo "$ac_ct_READELF" >&6; } | 
|  | 6321 | else | 
|  | 6322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6323 | $as_echo "no" >&6; } | 
|  | 6324 | fi | 
|  | 6325 |  | 
|  | 6326 |  | 
|  | 6327 | test -n "$ac_ct_READELF" && break | 
|  | 6328 | done | 
|  | 6329 |  | 
|  | 6330 | if test "x$ac_ct_READELF" = x; then | 
|  | 6331 | READELF=":" | 
|  | 6332 | else | 
|  | 6333 | case $cross_compiling:$ac_tool_warned in | 
|  | 6334 | yes:) | 
|  | 6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6336 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 6337 | ac_tool_warned=yes ;; | 
|  | 6338 | esac | 
|  | 6339 | READELF=$ac_ct_READELF | 
|  | 6340 | fi | 
|  | 6341 | fi | 
|  | 6342 |  | 
|  | 6343 | if test "$cross_compiling" = yes; then | 
|  | 6344 | case "$READELF" in | 
|  | 6345 | readelf|:) | 
|  | 6346 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | 
|  | 6347 | ;; | 
|  | 6348 | esac | 
|  | 6349 | fi | 
|  | 6350 |  | 
|  | 6351 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6352 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6353 | case $MACHDEP in | 
|  | 6354 | bsdos*|hp*|HP*) | 
|  | 6355 | # install -d does not work on BSDI or HP-UX | 
|  | 6356 | if test -z "$INSTALL" | 
|  | 6357 | then | 
|  | 6358 | INSTALL="${srcdir}/install-sh -c" | 
|  | 6359 | fi | 
|  | 6360 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6361 | # Find a good install program.  We prefer a C program (faster), | 
|  | 6362 | # so one script is as good as another.  But avoid the broken or | 
|  | 6363 | # incompatible versions: | 
|  | 6364 | # SysV /etc/install, /usr/sbin/install | 
|  | 6365 | # SunOS /usr/etc/install | 
|  | 6366 | # IRIX /sbin/install | 
|  | 6367 | # AIX /bin/install | 
|  | 6368 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 6369 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 6370 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 6371 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 6372 | # OS/2's system install, which has a completely different semantic | 
|  | 6373 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6374 | # Reject install programs that cannot install multiple files. | 
|  | 6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
|  | 6376 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6377 | if test -z "$INSTALL"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6378 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6379 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6380 | else | 
|  | 6381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6382 | for as_dir in $PATH | 
|  | 6383 | do | 
|  | 6384 | IFS=$as_save_IFS | 
|  | 6385 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6386 | # Account for people who put trailing slashes in PATH elements. | 
|  | 6387 | case $as_dir/ in #(( | 
|  | 6388 | ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6389 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6390 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6391 | /usr/ucb/* ) ;; | 
|  | 6392 | *) | 
|  | 6393 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 6394 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 6395 | # by default. | 
|  | 6396 | for ac_prog in ginstall scoinst install; do | 
|  | 6397 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6398 | 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] | 6399 | if test $ac_prog = install && | 
|  | 6400 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6401 | # AIX install.  It has an incompatible calling convention. | 
|  | 6402 | : | 
|  | 6403 | elif test $ac_prog = install && | 
|  | 6404 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6405 | # program-specific install script used by HP pwplus--don't use. | 
|  | 6406 | : | 
|  | 6407 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6408 | rm -rf conftest.one conftest.two conftest.dir | 
|  | 6409 | echo one > conftest.one | 
|  | 6410 | echo two > conftest.two | 
|  | 6411 | mkdir conftest.dir | 
|  | 6412 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
|  | 6413 | test -s conftest.one && test -s conftest.two && | 
|  | 6414 | test -s conftest.dir/conftest.one && | 
|  | 6415 | test -s conftest.dir/conftest.two | 
|  | 6416 | then | 
|  | 6417 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 6418 | break 3 | 
|  | 6419 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6420 | fi | 
|  | 6421 | fi | 
|  | 6422 | done | 
|  | 6423 | done | 
|  | 6424 | ;; | 
|  | 6425 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6426 |  | 
|  | 6427 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6428 | IFS=$as_save_IFS | 
|  | 6429 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6430 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6431 |  | 
|  | 6432 | fi | 
|  | 6433 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 6434 | INSTALL=$ac_cv_path_install | 
|  | 6435 | else | 
|  | 6436 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 6437 | # value for INSTALL within a source directory, because that will | 
|  | 6438 | # break other packages using the cache if that directory is | 
|  | 6439 | # removed, or if the value is a relative name. | 
|  | 6440 | INSTALL=$ac_install_sh | 
|  | 6441 | fi | 
|  | 6442 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
|  | 6444 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6445 |  | 
|  | 6446 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 6447 | # It thinks the first close brace ends the variable substitution. | 
|  | 6448 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 6449 |  | 
|  | 6450 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 6451 |  | 
|  | 6452 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 6453 |  | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
|  | 6455 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
|  | 6456 | if test -z "$MKDIR_P"; then | 
|  | 6457 | if ${ac_cv_path_mkdir+:} false; then : | 
|  | 6458 | $as_echo_n "(cached) " >&6 | 
|  | 6459 | else | 
|  | 6460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6461 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
|  | 6462 | do | 
|  | 6463 | IFS=$as_save_IFS | 
|  | 6464 | test -z "$as_dir" && as_dir=. | 
|  | 6465 | for ac_prog in mkdir gmkdir; do | 
|  | 6466 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6467 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6468 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
|  | 6469 | 'mkdir (GNU coreutils) '* | \ | 
|  | 6470 | 'mkdir (coreutils) '* | \ | 
|  | 6471 | 'mkdir (fileutils) '4.1*) | 
|  | 6472 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
|  | 6473 | break 3;; | 
|  | 6474 | esac | 
|  | 6475 | done | 
|  | 6476 | done | 
|  | 6477 | done | 
|  | 6478 | IFS=$as_save_IFS | 
|  | 6479 |  | 
|  | 6480 | fi | 
|  | 6481 |  | 
|  | 6482 | test -d ./--version && rmdir ./--version | 
|  | 6483 | if test "${ac_cv_path_mkdir+set}" = set; then | 
|  | 6484 | MKDIR_P="$ac_cv_path_mkdir -p" | 
|  | 6485 | else | 
|  | 6486 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 6487 | # value for MKDIR_P within a source directory, because that will | 
|  | 6488 | # break other packages using the cache if that directory is | 
|  | 6489 | # removed, or if the value is a relative name. | 
|  | 6490 | MKDIR_P="$ac_install_sh -d" | 
|  | 6491 | fi | 
|  | 6492 | fi | 
|  | 6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
|  | 6494 | $as_echo "$MKDIR_P" >&6; } | 
|  | 6495 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6496 |  | 
|  | 6497 | # Not every filesystem supports hard links | 
|  | 6498 |  | 
|  | 6499 | if test -z "$LN" ; then | 
|  | 6500 | case $ac_sys_system in | 
|  | 6501 | CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6502 | *) LN=ln;; | 
|  | 6503 | esac | 
|  | 6504 | fi | 
|  | 6505 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6506 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6507 |  | 
|  | 6508 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6509 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6510 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
|  | 6512 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6513 |  | 
|  | 6514 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6515 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6516 | withval=$with_pydebug; | 
|  | 6517 | if test "$withval" != no | 
|  | 6518 | then | 
|  | 6519 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6520 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6521 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6523 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6524 | Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6525 | ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6526 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6527 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6528 | fi | 
|  | 6529 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6531 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6532 | fi | 
|  | 6533 |  | 
|  | 6534 |  | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6535 | # Enable optimization flags | 
|  | 6536 |  | 
|  | 6537 |  | 
|  | 6538 | Py_OPT='false' | 
|  | 6539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-optimizations" >&5 | 
|  | 6540 | $as_echo_n "checking for --with-optimizations... " >&6; } | 
|  | 6541 |  | 
|  | 6542 | # Check whether --with-optimizations was given. | 
|  | 6543 | if test "${with_optimizations+set}" = set; then : | 
|  | 6544 | withval=$with_optimizations; | 
|  | 6545 | if test "$withval" != no | 
|  | 6546 | then | 
|  | 6547 | Py_OPT='true' | 
|  | 6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6549 | $as_echo "yes" >&6; }; | 
|  | 6550 | else | 
|  | 6551 | Py_OPT='false' | 
|  | 6552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6553 | $as_echo "no" >&6; }; | 
|  | 6554 | fi | 
|  | 6555 | else | 
|  | 6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6557 | $as_echo "no" >&6; } | 
|  | 6558 | fi | 
|  | 6559 |  | 
|  | 6560 | if test "$Py_OPT" = 'true' ; then | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6561 | # Intentionally not forcing Py_LTO='true' here.  Too many toolchains do not | 
|  | 6562 | # compile working code using it and both test_distutils and test_gdb are | 
|  | 6563 | # broken when you do managed to get a toolchain that works with it.  People | 
|  | 6564 | # who want LTO need to use --with-lto themselves. | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6565 | DEF_MAKE_ALL_RULE="profile-opt" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6566 | REQUIRE_PGO="yes" | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6567 | DEF_MAKE_RULE="build_all" | 
|  | 6568 | else | 
|  | 6569 | DEF_MAKE_ALL_RULE="build_all" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6570 | REQUIRE_PGO="no" | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6571 | DEF_MAKE_RULE="all" | 
|  | 6572 | fi | 
|  | 6573 |  | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6574 | # Enable LTO flags | 
|  | 6575 |  | 
|  | 6576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 | 
|  | 6577 | $as_echo_n "checking for --with-lto... " >&6; } | 
|  | 6578 |  | 
|  | 6579 | # Check whether --with-lto was given. | 
|  | 6580 | if test "${with_lto+set}" = set; then : | 
|  | 6581 | withval=$with_lto; | 
|  | 6582 | if test "$withval" != no | 
|  | 6583 | then | 
|  | 6584 | Py_LTO='true' | 
|  | 6585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6586 | $as_echo "yes" >&6; }; | 
|  | 6587 | else | 
|  | 6588 | Py_LTO='false' | 
|  | 6589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6590 | $as_echo "no" >&6; }; | 
|  | 6591 | fi | 
|  | 6592 | else | 
|  | 6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6594 | $as_echo "no" >&6; } | 
|  | 6595 | fi | 
|  | 6596 |  | 
|  | 6597 | if test "$Py_LTO" = 'true' ; then | 
|  | 6598 | case $CC in | 
|  | 6599 | *clang*) | 
| Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6600 | case $ac_sys_system in | 
|  | 6601 | Darwin*) | 
|  | 6602 | # Any changes made here should be reflected in the GCC+Darwin case below | 
|  | 6603 | LTOFLAGS="-flto -Wl,-export_dynamic" | 
|  | 6604 | ;; | 
|  | 6605 | *) | 
|  | 6606 | LTOFLAGS="-flto" | 
|  | 6607 | ;; | 
|  | 6608 | esac | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6609 | ;; | 
|  | 6610 | *gcc*) | 
|  | 6611 | case $ac_sys_system in | 
|  | 6612 | Darwin*) | 
| Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6613 | LTOFLAGS="-flto -Wl,-export_dynamic" | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6614 | ;; | 
|  | 6615 | *) | 
|  | 6616 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | 
|  | 6617 | ;; | 
|  | 6618 | esac | 
|  | 6619 | ;; | 
|  | 6620 | esac | 
|  | 6621 | fi | 
|  | 6622 |  | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6623 | # Enable PGO flags. | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6624 |  | 
|  | 6625 |  | 
|  | 6626 |  | 
|  | 6627 |  | 
|  | 6628 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6629 | # Make this work on systems where llvm tools are not installed with their | 
|  | 6630 | # normal names in the default $PATH (ie: Ubuntu).  They exist under the | 
|  | 6631 | # non-suffixed name in their versioned llvm directory. | 
|  | 6632 | llvm_bin_dir='' | 
|  | 6633 | llvm_path="${PATH}" | 
|  | 6634 | if test "${CC}" = "clang" | 
|  | 6635 | then | 
|  | 6636 | clang_bin=`which clang` | 
|  | 6637 | # Some systems install clang elsewhere as a symlink to the real path | 
|  | 6638 | # which is where the related llvm tools are located. | 
|  | 6639 | if test -L "${clang_bin}" | 
|  | 6640 | then | 
|  | 6641 | clang_dir=`dirname "${clang_bin}"` | 
|  | 6642 | clang_bin=`readlink "${clang_bin}"` | 
|  | 6643 | llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` | 
|  | 6644 | llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" | 
|  | 6645 | fi | 
|  | 6646 | fi | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6647 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | 
|  | 6649 | $as_echo_n "checking target system type... " >&6; } | 
|  | 6650 | if ${ac_cv_target+:} false; then : | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6651 | $as_echo_n "(cached) " >&6 | 
|  | 6652 | else | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6653 | if test "x$target_alias" = x; then | 
|  | 6654 | ac_cv_target=$ac_cv_host | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6655 | else | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6656 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 
|  | 6657 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | 
|  | 6658 | fi | 
|  | 6659 |  | 
|  | 6660 | fi | 
|  | 6661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | 
|  | 6662 | $as_echo "$ac_cv_target" >&6; } | 
|  | 6663 | case $ac_cv_target in | 
|  | 6664 | *-*-*) ;; | 
|  | 6665 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | 
|  | 6666 | esac | 
|  | 6667 | target=$ac_cv_target | 
|  | 6668 | ac_save_IFS=$IFS; IFS='-' | 
|  | 6669 | set x $ac_cv_target | 
|  | 6670 | shift | 
|  | 6671 | target_cpu=$1 | 
|  | 6672 | target_vendor=$2 | 
|  | 6673 | shift; shift | 
|  | 6674 | # Remember, the first character of IFS is used to create $*, | 
|  | 6675 | # except with old shells: | 
|  | 6676 | target_os=$* | 
|  | 6677 | IFS=$ac_save_IFS | 
|  | 6678 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 
|  | 6679 |  | 
|  | 6680 |  | 
|  | 6681 | # The aliases save the names the user supplied, while $host etc. | 
|  | 6682 | # will get canonicalized. | 
|  | 6683 | test -n "$target_alias" && | 
|  | 6684 | test "$program_prefix$program_suffix$program_transform_name" = \ | 
|  | 6685 | NONENONEs,x,x, && | 
|  | 6686 | program_prefix=${target_alias}- | 
|  | 6687 | # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args. | 
|  | 6688 | set dummy $target_alias-llvm-profdata; ac_word=$2 | 
|  | 6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6690 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6691 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : | 
|  | 6692 | $as_echo_n "(cached) " >&6 | 
|  | 6693 | else | 
|  | 6694 | case $LLVM_PROFDATA in | 
|  | 6695 | [\\/]* | ?:[\\/]*) | 
|  | 6696 | ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. | 
|  | 6697 | ;; | 
|  | 6698 | *) | 
|  | 6699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6700 | for as_dir in ${llvm_path} | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6701 | do | 
|  | 6702 | IFS=$as_save_IFS | 
|  | 6703 | test -z "$as_dir" && as_dir=. | 
|  | 6704 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6705 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6706 | ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6708 | break 2 | 
|  | 6709 | fi | 
|  | 6710 | done | 
|  | 6711 | done | 
|  | 6712 | IFS=$as_save_IFS | 
|  | 6713 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6714 | ;; | 
|  | 6715 | esac | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6716 | fi | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6717 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA | 
|  | 6718 | if test -n "$LLVM_PROFDATA"; then | 
|  | 6719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 | 
|  | 6720 | $as_echo "$LLVM_PROFDATA" >&6; } | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6721 | else | 
|  | 6722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6723 | $as_echo "no" >&6; } | 
|  | 6724 | fi | 
|  | 6725 |  | 
|  | 6726 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6727 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then | 
|  | 6728 | if test "$build" = "$target"; then | 
|  | 6729 | ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA | 
|  | 6730 | # Extract the first word of "llvm-profdata", so it can be a program name with args. | 
|  | 6731 | set dummy llvm-profdata; ac_word=$2 | 
|  | 6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6733 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6734 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : | 
|  | 6735 | $as_echo_n "(cached) " >&6 | 
|  | 6736 | else | 
|  | 6737 | case $ac_pt_LLVM_PROFDATA in | 
|  | 6738 | [\\/]* | ?:[\\/]*) | 
|  | 6739 | ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. | 
|  | 6740 | ;; | 
|  | 6741 | *) | 
|  | 6742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6743 | for as_dir in ${llvm_path} | 
|  | 6744 | do | 
|  | 6745 | IFS=$as_save_IFS | 
|  | 6746 | test -z "$as_dir" && as_dir=. | 
|  | 6747 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6748 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 6749 | ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | 
|  | 6750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6751 | break 2 | 
|  | 6752 | fi | 
|  | 6753 | done | 
|  | 6754 | done | 
|  | 6755 | IFS=$as_save_IFS | 
|  | 6756 |  | 
|  | 6757 | test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''" | 
|  | 6758 | ;; | 
|  | 6759 | esac | 
|  | 6760 | fi | 
|  | 6761 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA | 
|  | 6762 | if test -n "$ac_pt_LLVM_PROFDATA"; then | 
|  | 6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 | 
|  | 6764 | $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } | 
|  | 6765 | else | 
|  | 6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6767 | $as_echo "no" >&6; } | 
|  | 6768 | fi | 
|  | 6769 |  | 
|  | 6770 | LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA | 
|  | 6771 | else | 
|  | 6772 | LLVM_PROFDATA="''" | 
|  | 6773 | fi | 
|  | 6774 | else | 
|  | 6775 | LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" | 
|  | 6776 | fi | 
|  | 6777 |  | 
|  | 6778 |  | 
|  | 6779 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" | 
|  | 6780 | then | 
|  | 6781 | LLVM_PROF_FOUND="found" | 
|  | 6782 | else | 
|  | 6783 | LLVM_PROF_FOUND="not-found" | 
|  | 6784 | fi | 
|  | 6785 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" | 
|  | 6786 | then | 
|  | 6787 | found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` | 
|  | 6788 | if test -n "${found_llvm_profdata}" | 
|  | 6789 | then | 
|  | 6790 | # llvm-profdata isn't directly in $PATH in some cases. | 
|  | 6791 | # https://apple.stackexchange.com/questions/197053/ | 
|  | 6792 | LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' | 
|  | 6793 | LLVM_PROF_FOUND=found | 
|  | 6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 | 
|  | 6795 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} | 
|  | 6796 | fi | 
|  | 6797 | fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6798 | LLVM_PROF_ERR=no | 
|  | 6799 | case $CC in | 
|  | 6800 | *clang*) | 
|  | 6801 | # Any changes made here should be reflected in the GCC+Darwin case below | 
|  | 6802 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
|  | 6803 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6804 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6805 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
|  | 6806 | if test $LLVM_PROF_FOUND = not-found | 
|  | 6807 | then | 
|  | 6808 | LLVM_PROF_ERR=yes | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6809 | if test "${REQUIRE_PGO}" = "yes" | 
|  | 6810 | then | 
|  | 6811 | as_fn_error $? "llvm-profdata is required for a --with-optimizations build but could not be found." "$LINENO" 5 | 
|  | 6812 | fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6813 | fi | 
|  | 6814 | ;; | 
|  | 6815 | *gcc*) | 
|  | 6816 | case $ac_sys_system in | 
|  | 6817 | Darwin*) | 
|  | 6818 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
|  | 6819 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6820 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6821 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6822 | if test "${LLVM_PROF_FOUND}" = "not-found" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6823 | then | 
|  | 6824 | LLVM_PROF_ERR=yes | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6825 | if test "${REQUIRE_PGO}" = "yes" | 
|  | 6826 | then | 
|  | 6827 | as_fn_error $? "llvm-profdata is required for a --with-optimizations build but could not be found." "$LINENO" 5 | 
|  | 6828 | fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6829 | fi | 
|  | 6830 | ;; | 
|  | 6831 | *) | 
|  | 6832 | PGO_PROF_GEN_FLAG="-fprofile-generate" | 
|  | 6833 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | 
|  | 6834 | LLVM_PROF_MERGER="true" | 
|  | 6835 | LLVM_PROF_FILE="" | 
|  | 6836 | ;; | 
|  | 6837 | esac | 
|  | 6838 | ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6839 | *icc*) | 
|  | 6840 | PGO_PROF_GEN_FLAG="-prof-gen" | 
|  | 6841 | PGO_PROF_USE_FLAG="-prof-use" | 
|  | 6842 | LLVM_PROF_MERGER="true" | 
|  | 6843 | LLVM_PROF_FILE="" | 
|  | 6844 | ;; | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6845 | esac | 
|  | 6846 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6847 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
|  | 6848 | # merged with this chunk of code? | 
|  | 6849 |  | 
|  | 6850 | # Optimizer/debugger flags | 
|  | 6851 | # ------------------------ | 
|  | 6852 | # (The following bit of code is complicated enough - please keep things | 
|  | 6853 | # indented properly.  Just pretend you're editing Python code. ;-) | 
|  | 6854 |  | 
|  | 6855 | # There are two parallel sets of case statements below, one that checks to | 
|  | 6856 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
|  | 6857 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
|  | 6858 | # user set OPT. | 
|  | 6859 |  | 
|  | 6860 | # tweak OPT based on compiler and platform, only if the user didn't set | 
|  | 6861 | # it on the command line | 
|  | 6862 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6863 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6864 | then | 
|  | 6865 | case $GCC in | 
|  | 6866 | yes) | 
|  | 6867 | if test "$CC" != 'g++' ; then | 
|  | 6868 | STRICT_PROTO="-Wstrict-prototypes" | 
|  | 6869 | fi | 
|  | 6870 | # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
|  | 6871 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
|  | 6872 | WRAP="-fwrapv" | 
|  | 6873 | fi | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6874 |  | 
|  | 6875 | # Clang also needs -fwrapv | 
| Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6876 | case $CC in | 
|  | 6877 | *clang*) WRAP="-fwrapv" | 
|  | 6878 | ;; | 
|  | 6879 | esac | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6880 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6881 | case $ac_cv_prog_cc_g in | 
|  | 6882 | yes) | 
|  | 6883 | if test "$Py_DEBUG" = 'true' ; then | 
|  | 6884 | # Optimization messes up debuggers, so turn it off for | 
|  | 6885 | # debug builds. | 
| Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6886 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then | 
|  | 6887 | OPT="-g -Og -Wall $STRICT_PROTO" | 
|  | 6888 | else | 
|  | 6889 | OPT="-g -O0 -Wall $STRICT_PROTO" | 
|  | 6890 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6891 | else | 
|  | 6892 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
|  | 6893 | fi | 
|  | 6894 | ;; | 
|  | 6895 | *) | 
|  | 6896 | OPT="-O3 -Wall $STRICT_PROTO" | 
|  | 6897 | ;; | 
|  | 6898 | esac | 
|  | 6899 | case $ac_sys_system in | 
|  | 6900 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
|  | 6901 | ;; | 
|  | 6902 | esac | 
|  | 6903 | ;; | 
|  | 6904 |  | 
|  | 6905 | *) | 
|  | 6906 | OPT="-O" | 
|  | 6907 | ;; | 
|  | 6908 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6909 | fi | 
|  | 6910 |  | 
|  | 6911 |  | 
|  | 6912 |  | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6913 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6914 | # The -arch flags for universal builds on OSX | 
|  | 6915 | UNIVERSAL_ARCH_FLAGS= | 
|  | 6916 |  | 
|  | 6917 |  | 
|  | 6918 | # tweak BASECFLAGS based on compiler and platform | 
|  | 6919 | case $GCC in | 
|  | 6920 | yes) | 
| Benjamin Peterson | 050af5d | 2016-09-10 17:53:13 -0700 | [diff] [blame] | 6921 | CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" | 
| Benjamin Peterson | d170256 | 2016-09-07 12:00:06 -0700 | [diff] [blame] | 6922 |  | 
| Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 | 
|  | 6924 | $as_echo_n "checking for -Wextra... " >&6; } | 
|  | 6925 | ac_save_cc="$CC" | 
|  | 6926 | CC="$CC -Wextra -Werror" | 
|  | 6927 | if ${ac_cv_extra_warnings+:} false; then : | 
|  | 6928 | $as_echo_n "(cached) " >&6 | 
|  | 6929 | else | 
|  | 6930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6931 | /* end confdefs.h.  */ | 
|  | 6932 |  | 
|  | 6933 |  | 
|  | 6934 | int | 
|  | 6935 | main () | 
|  | 6936 | { | 
|  | 6937 |  | 
|  | 6938 | ; | 
|  | 6939 | return 0; | 
|  | 6940 | } | 
|  | 6941 |  | 
|  | 6942 | _ACEOF | 
|  | 6943 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 6944 |  | 
|  | 6945 | ac_cv_extra_warnings=yes | 
|  | 6946 |  | 
|  | 6947 | else | 
|  | 6948 |  | 
|  | 6949 | ac_cv_extra_warnings=no | 
|  | 6950 |  | 
|  | 6951 | fi | 
|  | 6952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6953 | fi | 
|  | 6954 |  | 
|  | 6955 | CC="$ac_save_cc" | 
|  | 6956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 | 
|  | 6957 | $as_echo "$ac_cv_extra_warnings" >&6; } | 
|  | 6958 |  | 
|  | 6959 | if test $ac_cv_extra_warnings = yes | 
|  | 6960 | then | 
|  | 6961 | CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" | 
|  | 6962 | fi | 
|  | 6963 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6964 | # Python doesn't violate C99 aliasing rules, but older versions of | 
|  | 6965 | # GCC produce warnings for legal Python code.  Enable | 
|  | 6966 | # -fno-strict-aliasing on versions of GCC that support but produce | 
|  | 6967 | # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
|  | 6969 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6970 | ac_save_cc="$CC" | 
|  | 6971 | CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6972 | save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6973 | if ${ac_cv_no_strict_aliasing+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6974 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6975 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6977 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6978 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6979 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6980 | int | 
|  | 6981 | main () | 
|  | 6982 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6983 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6984 | ; | 
|  | 6985 | return 0; | 
|  | 6986 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6987 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6988 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6989 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6990 |  | 
|  | 6991 | CC="$ac_save_cc -fstrict-aliasing" | 
|  | 6992 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
|  | 6993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6994 | /* end confdefs.h.  */ | 
|  | 6995 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6996 | void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6997 | int | 
|  | 6998 | main () | 
|  | 6999 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 7000 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7001 | ; | 
|  | 7002 | return 0; | 
|  | 7003 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7004 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7005 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7006 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7007 |  | 
|  | 7008 | ac_cv_no_strict_aliasing=no | 
|  | 7009 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7010 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7011 |  | 
|  | 7012 | ac_cv_no_strict_aliasing=yes | 
|  | 7013 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7014 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7016 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7017 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7018 |  | 
|  | 7019 | ac_cv_no_strict_aliasing=no | 
|  | 7020 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7021 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7023 | fi | 
|  | 7024 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7025 | CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7026 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
|  | 7028 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7029 | if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7030 | then | 
|  | 7031 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
|  | 7032 | fi | 
|  | 7033 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7034 | # ICC doesn't recognize the option, but only emits a warning | 
|  | 7035 | ## XXX does it emit an unused result warning and can it be disabled? | 
|  | 7036 | case "$CC" in | 
|  | 7037 | *icc*) | 
|  | 7038 | ac_cv_disable_unused_result_warning=no | 
|  | 7039 | ;; | 
|  | 7040 | *) | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 | 
|  | 7042 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | 
|  | 7043 | ac_save_cc="$CC" | 
|  | 7044 | CC="$CC -Wunused-result -Werror" | 
|  | 7045 | save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7046 | if ${ac_cv_disable_unused_result_warning+:} false; then : | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7047 | $as_echo_n "(cached) " >&6 | 
|  | 7048 | else | 
|  | 7049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7050 | /* end confdefs.h.  */ | 
|  | 7051 |  | 
|  | 7052 |  | 
|  | 7053 | int | 
|  | 7054 | main () | 
|  | 7055 | { | 
|  | 7056 |  | 
|  | 7057 | ; | 
|  | 7058 | return 0; | 
|  | 7059 | } | 
|  | 7060 |  | 
|  | 7061 | _ACEOF | 
|  | 7062 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7063 |  | 
|  | 7064 | ac_cv_disable_unused_result_warning=yes | 
|  | 7065 |  | 
|  | 7066 | else | 
|  | 7067 |  | 
|  | 7068 | ac_cv_disable_unused_result_warning=no | 
|  | 7069 |  | 
|  | 7070 | fi | 
|  | 7071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7072 | fi | 
|  | 7073 |  | 
|  | 7074 | CFLAGS="$save_CFLAGS" | 
|  | 7075 | CC="$ac_save_cc" | 
|  | 7076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | 
|  | 7077 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7078 | ;; | 
|  | 7079 | esac | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7080 |  | 
|  | 7081 | if test $ac_cv_disable_unused_result_warning = yes | 
|  | 7082 | then | 
|  | 7083 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" | 
| Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7084 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" | 
|  | 7085 | fi | 
|  | 7086 |  | 
|  | 7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 | 
|  | 7088 | $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } | 
|  | 7089 | ac_save_cc="$CC" | 
|  | 7090 | CC="$CC -Wunused-parameter -Werror" | 
|  | 7091 | if ${ac_cv_disable_unused_parameter_warning+:} false; then : | 
|  | 7092 | $as_echo_n "(cached) " >&6 | 
|  | 7093 | else | 
|  | 7094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7095 | /* end confdefs.h.  */ | 
|  | 7096 |  | 
|  | 7097 |  | 
|  | 7098 | int | 
|  | 7099 | main () | 
|  | 7100 | { | 
|  | 7101 |  | 
|  | 7102 | ; | 
|  | 7103 | return 0; | 
|  | 7104 | } | 
|  | 7105 |  | 
|  | 7106 | _ACEOF | 
|  | 7107 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7108 |  | 
|  | 7109 | ac_cv_disable_unused_parameter_warning=yes | 
|  | 7110 |  | 
|  | 7111 | else | 
|  | 7112 |  | 
|  | 7113 | ac_cv_disable_unused_parameter_warning=no | 
|  | 7114 |  | 
|  | 7115 | fi | 
|  | 7116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7117 | fi | 
|  | 7118 |  | 
|  | 7119 | CC="$ac_save_cc" | 
|  | 7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 | 
|  | 7121 | $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } | 
|  | 7122 |  | 
|  | 7123 | if test $ac_cv_disable_unused_parameter_warning = yes | 
|  | 7124 | then | 
|  | 7125 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" | 
|  | 7126 | fi | 
|  | 7127 |  | 
|  | 7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 | 
|  | 7129 | $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } | 
|  | 7130 | ac_save_cc="$CC" | 
|  | 7131 | CC="$CC -Wmissing-field-initializers -Werror" | 
|  | 7132 | if ${ac_cv_disable_missing_field_initializers+:} false; then : | 
|  | 7133 | $as_echo_n "(cached) " >&6 | 
|  | 7134 | else | 
|  | 7135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7136 | /* end confdefs.h.  */ | 
|  | 7137 |  | 
|  | 7138 |  | 
|  | 7139 | int | 
|  | 7140 | main () | 
|  | 7141 | { | 
|  | 7142 |  | 
|  | 7143 | ; | 
|  | 7144 | return 0; | 
|  | 7145 | } | 
|  | 7146 |  | 
|  | 7147 | _ACEOF | 
|  | 7148 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7149 |  | 
|  | 7150 | ac_cv_disable_missing_field_initializers=yes | 
|  | 7151 |  | 
|  | 7152 | else | 
|  | 7153 |  | 
|  | 7154 | ac_cv_disable_missing_field_initializers=no | 
|  | 7155 |  | 
|  | 7156 | fi | 
|  | 7157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7158 | fi | 
|  | 7159 |  | 
|  | 7160 | CC="$ac_save_cc" | 
|  | 7161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 | 
|  | 7162 | $as_echo "$ac_cv_disable_missing_field_initializers" >&6; } | 
|  | 7163 |  | 
|  | 7164 | if test $ac_cv_disable_missing_field_initializers = yes | 
|  | 7165 | then | 
|  | 7166 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7167 | fi | 
|  | 7168 |  | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 | 
|  | 7170 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | 
|  | 7171 | ac_save_cc="$CC" | 
|  | 7172 | CC="$CC -Wsign-compare" | 
|  | 7173 | save_CFLAGS="$CFLAGS" | 
|  | 7174 | if ${ac_cv_enable_sign_compare_warning+:} false; then : | 
|  | 7175 | $as_echo_n "(cached) " >&6 | 
|  | 7176 | else | 
|  | 7177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7178 | /* end confdefs.h.  */ | 
|  | 7179 |  | 
|  | 7180 |  | 
|  | 7181 | int | 
|  | 7182 | main () | 
|  | 7183 | { | 
|  | 7184 |  | 
|  | 7185 | ; | 
|  | 7186 | return 0; | 
|  | 7187 | } | 
|  | 7188 |  | 
|  | 7189 | _ACEOF | 
|  | 7190 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7191 |  | 
|  | 7192 | ac_cv_enable_sign_compare_warning=yes | 
|  | 7193 |  | 
|  | 7194 | else | 
|  | 7195 |  | 
|  | 7196 | ac_cv_enable_sign_compare_warning=no | 
|  | 7197 |  | 
|  | 7198 | fi | 
|  | 7199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7200 | fi | 
|  | 7201 |  | 
|  | 7202 | CFLAGS="$save_CFLAGS" | 
|  | 7203 | CC="$ac_save_cc" | 
|  | 7204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 | 
|  | 7205 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | 
|  | 7206 |  | 
|  | 7207 | if test $ac_cv_enable_sign_compare_warning = yes | 
|  | 7208 | then | 
|  | 7209 | BASECFLAGS="$BASECFLAGS -Wsign-compare" | 
|  | 7210 | fi | 
|  | 7211 |  | 
|  | 7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 | 
|  | 7213 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | 
|  | 7214 | ac_save_cc="$CC" | 
|  | 7215 | CC="$CC -Wunreachable-code" | 
|  | 7216 | save_CFLAGS="$CFLAGS" | 
|  | 7217 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : | 
|  | 7218 | $as_echo_n "(cached) " >&6 | 
|  | 7219 | else | 
|  | 7220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7221 | /* end confdefs.h.  */ | 
|  | 7222 |  | 
|  | 7223 |  | 
|  | 7224 | int | 
|  | 7225 | main () | 
|  | 7226 | { | 
|  | 7227 |  | 
|  | 7228 | ; | 
|  | 7229 | return 0; | 
|  | 7230 | } | 
|  | 7231 |  | 
|  | 7232 | _ACEOF | 
|  | 7233 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7234 |  | 
|  | 7235 | ac_cv_enable_unreachable_code_warning=yes | 
|  | 7236 |  | 
|  | 7237 | else | 
|  | 7238 |  | 
|  | 7239 | ac_cv_enable_unreachable_code_warning=no | 
|  | 7240 |  | 
|  | 7241 | fi | 
|  | 7242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7243 | fi | 
|  | 7244 |  | 
|  | 7245 | CFLAGS="$save_CFLAGS" | 
|  | 7246 | CC="$ac_save_cc" | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7247 |  | 
|  | 7248 | # Don't enable unreachable code warning in debug mode, since it usually | 
|  | 7249 | # results in non-standard code paths. | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7250 | # Issue #24324: Unfortunately, the unreachable code warning does not work | 
|  | 7251 | # correctly on gcc and has been silently removed from the compiler. | 
|  | 7252 | # It is supported on clang but on OS X systems gcc may be an alias | 
|  | 7253 | # for clang.  Try to determine if the compiler is not really gcc and, | 
|  | 7254 | # if so, only then enable the warning. | 
|  | 7255 | if test $ac_cv_enable_unreachable_code_warning = yes && \ | 
|  | 7256 | test "$Py_DEBUG" != "true" && \ | 
|  | 7257 | 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] | 7258 | then | 
|  | 7259 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7260 | else | 
|  | 7261 | ac_cv_enable_unreachable_code_warning=no | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7262 | fi | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 | 
|  | 7264 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7265 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7266 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
|  | 7267 | # support.  Without this, treatment of subnormals doesn't follow | 
|  | 7268 | # the standard. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 7269 | case $host in | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7270 | alpha*) | 
|  | 7271 | BASECFLAGS="$BASECFLAGS -mieee" | 
|  | 7272 | ;; | 
|  | 7273 | esac | 
|  | 7274 |  | 
|  | 7275 | case $ac_sys_system in | 
|  | 7276 | SCO_SV*) | 
|  | 7277 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
|  | 7278 | ;; | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7279 |  | 
|  | 7280 | # is there any other compiler on Darwin besides gcc? | 
|  | 7281 | Darwin*) | 
|  | 7282 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
|  | 7283 | # used to be here, but non-Apple gcc doesn't accept them. | 
|  | 7284 | if test "${CC}" = gcc | 
|  | 7285 | then | 
|  | 7286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7287 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7288 | case "${UNIVERSALSDK}" in | 
|  | 7289 | */MacOSX10.4u.sdk) | 
|  | 7290 | # Build using 10.4 SDK, force usage of gcc when the | 
|  | 7291 | # compiler is gcc, otherwise the user will get very | 
|  | 7292 | # confusing error messages when building on OSX 10.6 | 
|  | 7293 | CC=gcc-4.0 | 
|  | 7294 | CPP=cpp-4.0 | 
|  | 7295 | ;; | 
|  | 7296 | esac | 
|  | 7297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7298 | $as_echo "$CC" >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7299 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7300 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7301 | if test "${enable_universalsdk}" | 
|  | 7302 | then | 
|  | 7303 | case "$UNIVERSAL_ARCHS" in | 
|  | 7304 | 32-bit) | 
|  | 7305 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
|  | 7306 | LIPO_32BIT_FLAGS="" | 
|  | 7307 | ARCH_RUN_32BIT="" | 
|  | 7308 | ;; | 
|  | 7309 | 64-bit) | 
|  | 7310 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
|  | 7311 | LIPO_32BIT_FLAGS="" | 
|  | 7312 | ARCH_RUN_32BIT="true" | 
|  | 7313 | ;; | 
|  | 7314 | all) | 
|  | 7315 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
|  | 7316 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
|  | 7317 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
|  | 7318 | ;; | 
|  | 7319 | intel) | 
|  | 7320 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
|  | 7321 | LIPO_32BIT_FLAGS="-extract i386" | 
|  | 7322 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
|  | 7323 | ;; | 
|  | 7324 | intel-32) | 
|  | 7325 | UNIVERSAL_ARCH_FLAGS="-arch i386" | 
|  | 7326 | LIPO_32BIT_FLAGS="" | 
|  | 7327 | ARCH_RUN_32BIT="" | 
|  | 7328 | ;; | 
|  | 7329 | 3-way) | 
|  | 7330 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
|  | 7331 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
|  | 7332 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
|  | 7333 | ;; | 
|  | 7334 | *) | 
|  | 7335 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
|  | 7336 | ;; | 
|  | 7337 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7338 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7339 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
|  | 7340 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
|  | 7341 | if test "${UNIVERSALSDK}" != "/" | 
|  | 7342 | then | 
|  | 7343 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
|  | 7344 | fi | 
|  | 7345 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7346 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7347 | # Calculate an appropriate deployment target for this build: | 
|  | 7348 | # The deployment target value is used explicitly to enable certain | 
|  | 7349 | # features are enabled (such as builtin libedit support for readline) | 
| Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 7350 | # 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] | 7351 | # component of the string returned by distutils.get_platform(). | 
|  | 7352 | # | 
|  | 7353 | # Use the value from: | 
|  | 7354 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | 
|  | 7355 | # 2. the operating system version of the build machine if >= 10.6 | 
|  | 7356 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests | 
|  | 7357 | #       below to pick either 10.3, 10.4, or 10.5 as the target. | 
|  | 7358 | # 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] | 7359 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 | 
|  | 7361 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7362 | cur_target_major=`sw_vers -productVersion | \ | 
|  | 7363 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
|  | 7364 | cur_target_minor=`sw_vers -productVersion | \ | 
|  | 7365 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
|  | 7366 | cur_target="${cur_target_major}.${cur_target_minor}" | 
|  | 7367 | if test ${cur_target_major} -eq 10 && \ | 
|  | 7368 | test ${cur_target_minor} -ge 3 && \ | 
|  | 7369 | test ${cur_target_minor} -le 5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7370 | then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7371 | # OS X 10.3 through 10.5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7372 | cur_target=10.3 | 
|  | 7373 | if test ${enable_universalsdk} | 
|  | 7374 | then | 
|  | 7375 | case "$UNIVERSAL_ARCHS" in | 
|  | 7376 | all|3-way|intel|64-bit) | 
|  | 7377 | # These configurations were first supported in 10.5 | 
|  | 7378 | cur_target='10.5' | 
|  | 7379 | ;; | 
|  | 7380 | esac | 
|  | 7381 | else | 
|  | 7382 | if test `/usr/bin/arch` = "i386" | 
|  | 7383 | then | 
|  | 7384 | # 10.4 was the first release to support Intel archs | 
|  | 7385 | cur_target="10.4" | 
|  | 7386 | fi | 
|  | 7387 | fi | 
|  | 7388 | fi | 
|  | 7389 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7390 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7391 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
|  | 7392 | # environment with a value that is the same as what we'll use | 
|  | 7393 | # in the Makefile to ensure that we'll get the same compiler | 
|  | 7394 | # environment during configure and build time. | 
|  | 7395 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
|  | 7396 | export MACOSX_DEPLOYMENT_TARGET | 
|  | 7397 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
|  | 7398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | 
|  | 7399 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7400 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7401 | # end of Darwin* tests | 
|  | 7402 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7403 | esac | 
|  | 7404 | ;; | 
|  | 7405 |  | 
|  | 7406 | *) | 
|  | 7407 | case $ac_sys_system in | 
|  | 7408 | OpenUNIX*|UnixWare*) | 
|  | 7409 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
|  | 7410 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7411 | SCO_SV*) | 
|  | 7412 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
|  | 7413 | ;; | 
|  | 7414 | esac | 
|  | 7415 | ;; | 
|  | 7416 | esac | 
|  | 7417 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7418 | # ICC needs -fp-model strict or floats behave badly | 
|  | 7419 | case "$CC" in | 
|  | 7420 | *icc*) | 
|  | 7421 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" | 
|  | 7422 | ;; | 
|  | 7423 | esac | 
|  | 7424 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7425 | if test "$Py_DEBUG" = 'true'; then | 
|  | 7426 | : | 
|  | 7427 | else | 
|  | 7428 | OPT="-DNDEBUG $OPT" | 
|  | 7429 | fi | 
|  | 7430 |  | 
|  | 7431 | if test "$ac_arch_flags" | 
|  | 7432 | then | 
|  | 7433 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
|  | 7434 | fi | 
|  | 7435 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7436 | # On some compilers, pthreads are available without further options | 
|  | 7437 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
|  | 7438 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
|  | 7439 | # So we have to see first whether pthreads are available without | 
|  | 7440 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
|  | 7442 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7443 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7444 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7445 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7446 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7447 | ac_cv_pthread_is_default=no | 
|  | 7448 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7450 | /* end confdefs.h.  */ | 
|  | 7451 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7452 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7453 | #include <pthread.h> | 
|  | 7454 |  | 
|  | 7455 | void* routine(void* p){return NULL;} | 
|  | 7456 |  | 
|  | 7457 | int main(){ | 
|  | 7458 | pthread_t p; | 
|  | 7459 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7460 | return 1; | 
|  | 7461 | (void)pthread_detach(p); | 
|  | 7462 | return 0; | 
|  | 7463 | } | 
|  | 7464 |  | 
|  | 7465 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7466 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7467 |  | 
|  | 7468 | ac_cv_pthread_is_default=yes | 
|  | 7469 | ac_cv_kthread=no | 
|  | 7470 | ac_cv_pthread=no | 
|  | 7471 |  | 
|  | 7472 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7473 | ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7474 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7475 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7476 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7477 | fi | 
|  | 7478 |  | 
|  | 7479 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7480 | fi | 
|  | 7481 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
|  | 7483 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7484 |  | 
|  | 7485 |  | 
|  | 7486 | if test $ac_cv_pthread_is_default = yes | 
|  | 7487 | then | 
|  | 7488 | ac_cv_kpthread=no | 
|  | 7489 | else | 
|  | 7490 | # -Kpthread, if available, provides the right #defines | 
|  | 7491 | # and linker options to make pthread_create available | 
|  | 7492 | # Some compilers won't report that they do not support -Kpthread, | 
|  | 7493 | # so we need to run a program to see whether it really made the | 
|  | 7494 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
|  | 7496 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7497 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7498 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7499 | else | 
|  | 7500 | ac_save_cc="$CC" | 
|  | 7501 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7502 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7503 | ac_cv_kpthread=no | 
|  | 7504 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7506 | /* end confdefs.h.  */ | 
|  | 7507 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7508 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7509 | #include <pthread.h> | 
|  | 7510 |  | 
|  | 7511 | void* routine(void* p){return NULL;} | 
|  | 7512 |  | 
|  | 7513 | int main(){ | 
|  | 7514 | pthread_t p; | 
|  | 7515 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7516 | return 1; | 
|  | 7517 | (void)pthread_detach(p); | 
|  | 7518 | return 0; | 
|  | 7519 | } | 
|  | 7520 |  | 
|  | 7521 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7522 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7523 | ac_cv_kpthread=yes | 
|  | 7524 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7525 | ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7526 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7527 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7528 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7529 | fi | 
|  | 7530 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7531 | CC="$ac_save_cc" | 
|  | 7532 | fi | 
|  | 7533 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
|  | 7535 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7536 | fi | 
|  | 7537 |  | 
|  | 7538 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
|  | 7539 | then | 
|  | 7540 | # -Kthread, if available, provides the right #defines | 
|  | 7541 | # and linker options to make pthread_create available | 
|  | 7542 | # Some compilers won't report that they do not support -Kthread, | 
|  | 7543 | # so we need to run a program to see whether it really made the | 
|  | 7544 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
|  | 7546 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7547 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7548 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7549 | else | 
|  | 7550 | ac_save_cc="$CC" | 
|  | 7551 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7552 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7553 | ac_cv_kthread=no | 
|  | 7554 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7556 | /* end confdefs.h.  */ | 
|  | 7557 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7558 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7559 | #include <pthread.h> | 
|  | 7560 |  | 
|  | 7561 | void* routine(void* p){return NULL;} | 
|  | 7562 |  | 
|  | 7563 | int main(){ | 
|  | 7564 | pthread_t p; | 
|  | 7565 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7566 | return 1; | 
|  | 7567 | (void)pthread_detach(p); | 
|  | 7568 | return 0; | 
|  | 7569 | } | 
|  | 7570 |  | 
|  | 7571 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7572 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7573 | ac_cv_kthread=yes | 
|  | 7574 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7575 | ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7576 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7577 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7578 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7579 | fi | 
|  | 7580 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7581 | CC="$ac_save_cc" | 
|  | 7582 | fi | 
|  | 7583 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
|  | 7585 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7586 | fi | 
|  | 7587 |  | 
|  | 7588 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
|  | 7589 | then | 
|  | 7590 | # -pthread, if available, provides the right #defines | 
|  | 7591 | # and linker options to make pthread_create available | 
|  | 7592 | # Some compilers won't report that they do not support -pthread, | 
|  | 7593 | # so we need to run a program to see whether it really made the | 
|  | 7594 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
|  | 7596 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7597 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7598 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7599 | else | 
|  | 7600 | ac_save_cc="$CC" | 
|  | 7601 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7602 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7603 | ac_cv_pthread=no | 
|  | 7604 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7606 | /* end confdefs.h.  */ | 
|  | 7607 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7608 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7609 | #include <pthread.h> | 
|  | 7610 |  | 
|  | 7611 | void* routine(void* p){return NULL;} | 
|  | 7612 |  | 
|  | 7613 | int main(){ | 
|  | 7614 | pthread_t p; | 
|  | 7615 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7616 | return 1; | 
|  | 7617 | (void)pthread_detach(p); | 
|  | 7618 | return 0; | 
|  | 7619 | } | 
|  | 7620 |  | 
|  | 7621 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7622 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7623 | ac_cv_pthread=yes | 
|  | 7624 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7625 | ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7626 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7627 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7628 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7629 | fi | 
|  | 7630 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7631 | CC="$ac_save_cc" | 
|  | 7632 | fi | 
|  | 7633 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
|  | 7635 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7636 | fi | 
|  | 7637 |  | 
|  | 7638 | # If we have set a CC compiler flag for thread support then | 
|  | 7639 | # check if it works for CXX, too. | 
|  | 7640 | ac_cv_cxx_thread=no | 
|  | 7641 | if test ! -z "$CXX" | 
|  | 7642 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
|  | 7644 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7645 | ac_save_cxx="$CXX" | 
|  | 7646 |  | 
|  | 7647 | if test "$ac_cv_kpthread" = "yes" | 
|  | 7648 | then | 
|  | 7649 | CXX="$CXX -Kpthread" | 
|  | 7650 | ac_cv_cxx_thread=yes | 
|  | 7651 | elif test "$ac_cv_kthread" = "yes" | 
|  | 7652 | then | 
|  | 7653 | CXX="$CXX -Kthread" | 
|  | 7654 | ac_cv_cxx_thread=yes | 
|  | 7655 | elif test "$ac_cv_pthread" = "yes" | 
|  | 7656 | then | 
|  | 7657 | CXX="$CXX -pthread" | 
|  | 7658 | ac_cv_cxx_thread=yes | 
|  | 7659 | fi | 
|  | 7660 |  | 
|  | 7661 | if test $ac_cv_cxx_thread = yes | 
|  | 7662 | then | 
|  | 7663 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
|  | 7664 | $CXX -c conftest.$ac_ext 2>&5 | 
|  | 7665 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
|  | 7666 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
|  | 7667 | then | 
|  | 7668 | ac_cv_cxx_thread=yes | 
|  | 7669 | else | 
|  | 7670 | ac_cv_cxx_thread=no | 
|  | 7671 | fi | 
|  | 7672 | rm -fr conftest* | 
|  | 7673 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
|  | 7675 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7676 | fi | 
|  | 7677 | CXX="$ac_save_cxx" | 
|  | 7678 |  | 
|  | 7679 |  | 
|  | 7680 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 7682 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7683 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7684 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7685 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7687 | /* end confdefs.h.  */ | 
|  | 7688 | #include <stdlib.h> | 
|  | 7689 | #include <stdarg.h> | 
|  | 7690 | #include <string.h> | 
|  | 7691 | #include <float.h> | 
|  | 7692 |  | 
|  | 7693 | int | 
|  | 7694 | main () | 
|  | 7695 | { | 
|  | 7696 |  | 
|  | 7697 | ; | 
|  | 7698 | return 0; | 
|  | 7699 | } | 
|  | 7700 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7701 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7702 | ac_cv_header_stdc=yes | 
|  | 7703 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7704 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7705 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7707 |  | 
|  | 7708 | if test $ac_cv_header_stdc = yes; then | 
|  | 7709 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7711 | /* end confdefs.h.  */ | 
|  | 7712 | #include <string.h> | 
|  | 7713 |  | 
|  | 7714 | _ACEOF | 
|  | 7715 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7716 | $EGREP "memchr" >/dev/null 2>&1; then : | 
|  | 7717 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7718 | else | 
|  | 7719 | ac_cv_header_stdc=no | 
|  | 7720 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7721 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7722 |  | 
|  | 7723 | fi | 
|  | 7724 |  | 
|  | 7725 | if test $ac_cv_header_stdc = yes; then | 
|  | 7726 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7728 | /* end confdefs.h.  */ | 
|  | 7729 | #include <stdlib.h> | 
|  | 7730 |  | 
|  | 7731 | _ACEOF | 
|  | 7732 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7733 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 7734 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7735 | else | 
|  | 7736 | ac_cv_header_stdc=no | 
|  | 7737 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7738 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7739 |  | 
|  | 7740 | fi | 
|  | 7741 |  | 
|  | 7742 | if test $ac_cv_header_stdc = yes; then | 
|  | 7743 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7744 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7745 | : | 
|  | 7746 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7748 | /* end confdefs.h.  */ | 
|  | 7749 | #include <ctype.h> | 
|  | 7750 | #include <stdlib.h> | 
|  | 7751 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 7752 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 7753 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 7754 | #else | 
|  | 7755 | # define ISLOWER(c) \ | 
|  | 7756 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 7757 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 7758 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 7759 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 7760 | #endif | 
|  | 7761 |  | 
|  | 7762 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 7763 | int | 
|  | 7764 | main () | 
|  | 7765 | { | 
|  | 7766 | int i; | 
|  | 7767 | for (i = 0; i < 256; i++) | 
|  | 7768 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 7769 | || toupper (i) != TOUPPER (i)) | 
|  | 7770 | return 2; | 
|  | 7771 | return 0; | 
|  | 7772 | } | 
|  | 7773 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7774 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 7775 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7776 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7777 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7778 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7779 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7780 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7781 | fi | 
|  | 7782 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7783 | fi | 
|  | 7784 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 7786 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7787 | if test $ac_cv_header_stdc = yes; then | 
|  | 7788 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7789 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7790 |  | 
|  | 7791 | fi | 
|  | 7792 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7793 | for ac_header in asm/types.h conio.h direct.h dlfcn.h errno.h \ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7794 | fcntl.h grp.h \ | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7795 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ | 
| Benjamin Peterson | 4fe5510 | 2016-09-06 11:58:01 -0700 | [diff] [blame] | 7796 | sched.h shadow.h signal.h stropts.h termios.h \ | 
| Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 7797 | unistd.h utime.h \ | 
| Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7798 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ | 
| Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 7799 | sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ | 
| Martin v. Löwis | 9d6c669 | 2012-02-03 17:44:58 +0100 | [diff] [blame] | 7800 | sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7801 | sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ | 
| Martin v. Löwis | 9d6c669 | 2012-02-03 17:44:58 +0100 | [diff] [blame] | 7802 | sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 7803 | sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7804 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 7805 | linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 7806 | sys/endian.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7807 | do : | 
|  | 7808 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 7809 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7810 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7811 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7812 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7813 | _ACEOF | 
|  | 7814 |  | 
|  | 7815 | fi | 
|  | 7816 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7817 | done | 
|  | 7818 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7819 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7820 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7821 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 7822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
|  | 7823 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7824 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7825 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7826 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7828 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7829 | #include <sys/types.h> | 
|  | 7830 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7831 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7832 | int | 
|  | 7833 | main () | 
|  | 7834 | { | 
|  | 7835 | if ((DIR *) 0) | 
|  | 7836 | return 0; | 
|  | 7837 | ; | 
|  | 7838 | return 0; | 
|  | 7839 | } | 
|  | 7840 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7841 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7842 | eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7843 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7844 | eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7845 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7847 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7848 | eval ac_res=\$$as_ac_Header | 
|  | 7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 7850 | $as_echo "$ac_res" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7851 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7852 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7853 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7854 | _ACEOF | 
|  | 7855 |  | 
|  | 7856 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7857 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7858 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7859 | done | 
|  | 7860 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 7861 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 7863 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7864 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7865 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7866 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7867 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7869 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7870 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7871 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7872 | Use char because int might match the return type of a GCC | 
|  | 7873 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7874 | #ifdef __cplusplus | 
|  | 7875 | extern "C" | 
|  | 7876 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7877 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7878 | int | 
|  | 7879 | main () | 
|  | 7880 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7881 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7882 | ; | 
|  | 7883 | return 0; | 
|  | 7884 | } | 
|  | 7885 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7886 | for ac_lib in '' dir; do | 
|  | 7887 | if test -z "$ac_lib"; then | 
|  | 7888 | ac_res="none required" | 
|  | 7889 | else | 
|  | 7890 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7891 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7892 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7893 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7894 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7895 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7896 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7897 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7898 | if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7899 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7900 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7901 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7902 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7903 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7904 | else | 
|  | 7905 | ac_cv_search_opendir=no | 
|  | 7906 | fi | 
|  | 7907 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7908 | LIBS=$ac_func_search_save_LIBS | 
|  | 7909 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 7911 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7912 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7913 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7914 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7915 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7916 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7917 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7918 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 7920 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7921 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7922 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7923 | else | 
|  | 7924 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7926 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7927 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7928 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7929 | Use char because int might match the return type of a GCC | 
|  | 7930 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7931 | #ifdef __cplusplus | 
|  | 7932 | extern "C" | 
|  | 7933 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7934 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7935 | int | 
|  | 7936 | main () | 
|  | 7937 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7938 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7939 | ; | 
|  | 7940 | return 0; | 
|  | 7941 | } | 
|  | 7942 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7943 | for ac_lib in '' x; do | 
|  | 7944 | if test -z "$ac_lib"; then | 
|  | 7945 | ac_res="none required" | 
|  | 7946 | else | 
|  | 7947 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7948 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7949 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7950 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7951 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7952 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7953 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7954 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7955 | if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7956 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7957 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7958 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7959 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7960 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7961 | else | 
|  | 7962 | ac_cv_search_opendir=no | 
|  | 7963 | fi | 
|  | 7964 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7965 | LIBS=$ac_func_search_save_LIBS | 
|  | 7966 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 7968 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7969 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7970 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7971 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7972 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7973 | fi | 
|  | 7974 |  | 
|  | 7975 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7976 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
|  | 7978 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7979 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7980 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7981 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7983 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7984 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7985 | int | 
|  | 7986 | main () | 
|  | 7987 | { | 
|  | 7988 | return makedev(0, 0); | 
|  | 7989 | ; | 
|  | 7990 | return 0; | 
|  | 7991 | } | 
|  | 7992 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7993 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7994 | ac_cv_header_sys_types_h_makedev=yes | 
|  | 7995 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7996 | ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7997 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7998 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7999 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8000 |  | 
|  | 8001 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
|  | 8003 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8004 |  | 
|  | 8005 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8006 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8007 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8008 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8009 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8010 |  | 
|  | 8011 | fi | 
|  | 8012 |  | 
|  | 8013 |  | 
|  | 8014 |  | 
|  | 8015 | if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8016 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8017 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8018 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8019 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8020 |  | 
|  | 8021 | fi | 
|  | 8022 |  | 
|  | 8023 |  | 
|  | 8024 | fi | 
|  | 8025 | fi | 
|  | 8026 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8027 |  | 
| Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 8028 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. | 
|  | 8029 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 | 
|  | 8030 | SAVE_CFLAGS=$CFLAGS | 
|  | 8031 | CFLAGS="-std=c99 $CFLAGS" | 
|  | 8032 | for ac_header in bluetooth/bluetooth.h | 
|  | 8033 | do : | 
|  | 8034 | ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" | 
|  | 8035 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : | 
|  | 8036 | cat >>confdefs.h <<_ACEOF | 
|  | 8037 | #define HAVE_BLUETOOTH_BLUETOOTH_H 1 | 
|  | 8038 | _ACEOF | 
|  | 8039 |  | 
|  | 8040 | fi | 
|  | 8041 |  | 
|  | 8042 | done | 
|  | 8043 |  | 
|  | 8044 | CFLAGS=$SAVE_CFLAGS | 
|  | 8045 |  | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8046 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. | 
|  | 8047 | for ac_header in net/if.h | 
|  | 8048 | do : | 
|  | 8049 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | 
|  | 8050 | #ifdef STDC_HEADERS | 
|  | 8051 | # include <stdlib.h> | 
|  | 8052 | # include <stddef.h> | 
|  | 8053 | #else | 
|  | 8054 | # ifdef HAVE_STDLIB_H | 
|  | 8055 | #  include <stdlib.h> | 
|  | 8056 | # endif | 
|  | 8057 | #endif | 
|  | 8058 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 8059 | # include <sys/socket.h> | 
|  | 8060 | #endif | 
|  | 8061 |  | 
|  | 8062 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8063 | if test "x$ac_cv_header_net_if_h" = xyes; then : | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8064 | cat >>confdefs.h <<_ACEOF | 
|  | 8065 | #define HAVE_NET_IF_H 1 | 
|  | 8066 | _ACEOF | 
|  | 8067 |  | 
|  | 8068 | fi | 
|  | 8069 |  | 
|  | 8070 | done | 
|  | 8071 |  | 
|  | 8072 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8073 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8074 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8075 | do : | 
|  | 8076 | 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] | 8077 | #ifdef HAVE_ASM_TYPES_H | 
|  | 8078 | #include <asm/types.h> | 
|  | 8079 | #endif | 
|  | 8080 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 8081 | #include <sys/socket.h> | 
|  | 8082 | #endif | 
|  | 8083 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8084 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8085 | if test "x$ac_cv_header_linux_netlink_h" = xyes; then : | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8086 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8087 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8088 | _ACEOF | 
|  | 8089 |  | 
|  | 8090 | fi | 
|  | 8091 |  | 
|  | 8092 | done | 
|  | 8093 |  | 
|  | 8094 |  | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8095 | # On Linux, can.h and can/raw.h require sys/socket.h | 
| Charles-François Natali | 773e42d | 2013-02-05 19:42:01 +0100 | [diff] [blame] | 8096 | for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8097 | do : | 
|  | 8098 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 8099 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | 
|  | 8100 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 8101 | #include <sys/socket.h> | 
|  | 8102 | #endif | 
|  | 8103 |  | 
|  | 8104 | " | 
|  | 8105 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
|  | 8106 | cat >>confdefs.h <<_ACEOF | 
|  | 8107 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 8108 | _ACEOF | 
|  | 8109 |  | 
|  | 8110 | fi | 
|  | 8111 |  | 
|  | 8112 | done | 
|  | 8113 |  | 
|  | 8114 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8115 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8116 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
|  | 8118 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
|  | 8119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8120 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8121 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8122 |  | 
|  | 8123 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8124 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8125 | $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8126 | was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8127 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8128 |  | 
|  | 8129 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8130 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8131 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8132 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8133 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8134 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8135 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 8137 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8138 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
|  | 8140 | $as_echo_n "checking for makedev... " >&6; } | 
|  | 8141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8142 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8143 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8144 | #if defined(MAJOR_IN_MKDEV) | 
|  | 8145 | #include <sys/mkdev.h> | 
|  | 8146 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 8147 | #include <sys/sysmacros.h> | 
|  | 8148 | #else | 
|  | 8149 | #include <sys/types.h> | 
|  | 8150 | #endif | 
|  | 8151 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8152 | int | 
|  | 8153 | main () | 
|  | 8154 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8155 |  | 
|  | 8156 | makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8157 | ; | 
|  | 8158 | return 0; | 
|  | 8159 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8160 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8161 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8162 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8163 | ac_cv_has_makedev=yes | 
|  | 8164 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8165 | ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8166 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8167 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8168 | conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
|  | 8170 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8171 | if test "$ac_cv_has_makedev" = "yes"; then | 
|  | 8172 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8173 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8174 |  | 
|  | 8175 | fi | 
|  | 8176 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8177 | # byte swapping | 
|  | 8178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | 
|  | 8179 | $as_echo_n "checking for le64toh... " >&6; } | 
|  | 8180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8181 | /* end confdefs.h.  */ | 
|  | 8182 |  | 
|  | 8183 | #ifdef HAVE_ENDIAN_H | 
|  | 8184 | #include <endian.h> | 
|  | 8185 | #elif defined(HAVE_SYS_ENDIAN_H) | 
|  | 8186 | #include <sys/endian.h> | 
|  | 8187 | #endif | 
|  | 8188 |  | 
|  | 8189 | int | 
|  | 8190 | main () | 
|  | 8191 | { | 
|  | 8192 |  | 
|  | 8193 | le64toh(1) | 
|  | 8194 | ; | 
|  | 8195 | return 0; | 
|  | 8196 | } | 
|  | 8197 |  | 
|  | 8198 | _ACEOF | 
|  | 8199 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 8200 | ac_cv_has_le64toh=yes | 
|  | 8201 | else | 
|  | 8202 | ac_cv_has_le64toh=no | 
|  | 8203 | fi | 
|  | 8204 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8205 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | 
|  | 8207 | $as_echo "$ac_cv_has_le64toh" >&6; } | 
|  | 8208 | if test "$ac_cv_has_le64toh" = "yes"; then | 
|  | 8209 |  | 
|  | 8210 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | 
|  | 8211 |  | 
|  | 8212 | fi | 
|  | 8213 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8214 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
|  | 8215 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
|  | 8216 | # defined, but the compiler does not support pragma redefine_extname, | 
|  | 8217 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
|  | 8218 | # structures (such as rlimit64) without declaring them. As a | 
|  | 8219 | # work-around, disable LFS on such configurations | 
|  | 8220 |  | 
|  | 8221 | use_lfs=yes | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
|  | 8223 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
|  | 8224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8225 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8226 |  | 
|  | 8227 | #define _LARGEFILE_SOURCE 1 | 
|  | 8228 | #define _FILE_OFFSET_BITS 64 | 
|  | 8229 | #include <sys/resource.h> | 
|  | 8230 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8231 | int | 
|  | 8232 | main () | 
|  | 8233 | { | 
|  | 8234 | struct rlimit foo; | 
|  | 8235 | ; | 
|  | 8236 | return 0; | 
|  | 8237 | } | 
|  | 8238 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8239 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8240 | sol_lfs_bug=no | 
|  | 8241 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8242 | sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8243 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
|  | 8246 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8247 | if test "$sol_lfs_bug" = "yes"; then | 
|  | 8248 | use_lfs=no | 
|  | 8249 | fi | 
|  | 8250 |  | 
| doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 8251 | # Don't use largefile support for GNU/Hurd | 
|  | 8252 | case $ac_sys_system in GNU*) | 
|  | 8253 | use_lfs=no | 
|  | 8254 | esac | 
|  | 8255 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8256 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8257 | # Two defines needed to enable largefile support on various platforms | 
|  | 8258 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8259 | case $ac_sys_system/$ac_sys_release in | 
|  | 8260 | AIX*) | 
|  | 8261 |  | 
|  | 8262 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
|  | 8263 |  | 
|  | 8264 | ;; | 
|  | 8265 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8266 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8267 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8268 |  | 
|  | 8269 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8270 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8271 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8272 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8273 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8274 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
|  | 8275 | cat >> confdefs.h <<\EOF | 
|  | 8276 | #if defined(SCO_DS) | 
|  | 8277 | #undef _OFF_T | 
|  | 8278 | #endif | 
|  | 8279 | EOF | 
|  | 8280 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8281 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8282 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8283 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8284 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8285 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 |  | 
|  | 8287 | cat >>confdefs.h <<_ACEOF | 
|  | 8288 | #define mode_t int | 
|  | 8289 | _ACEOF | 
|  | 8290 |  | 
|  | 8291 | fi | 
|  | 8292 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8293 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8294 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8295 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8296 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8297 |  | 
|  | 8298 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8299 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8300 | _ACEOF | 
|  | 8301 |  | 
|  | 8302 | fi | 
|  | 8303 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8304 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8305 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8306 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8307 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8308 |  | 
|  | 8309 | cat >>confdefs.h <<_ACEOF | 
|  | 8310 | #define pid_t int | 
|  | 8311 | _ACEOF | 
|  | 8312 |  | 
|  | 8313 | fi | 
|  | 8314 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8315 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8316 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 8317 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8318 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8319 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8320 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8321 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8322 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8323 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8324 |  | 
|  | 8325 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8326 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8327 | _ACEOF | 
|  | 8328 |  | 
|  | 8329 | fi | 
|  | 8330 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
|  | 8332 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8333 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8334 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8335 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8337 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8338 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8339 |  | 
|  | 8340 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8341 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8342 | $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8343 | ac_cv_type_uid_t=yes | 
|  | 8344 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8345 | ac_cv_type_uid_t=no | 
|  | 8346 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8347 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8348 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8349 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
|  | 8351 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8352 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8353 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8354 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8355 |  | 
|  | 8356 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8357 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8358 |  | 
|  | 8359 | fi | 
|  | 8360 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8361 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8362 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8363 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8364 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8365 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8366 |  | 
|  | 8367 | fi | 
|  | 8368 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8369 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" | 
|  | 8370 | if test "x$ac_cv_type___uint128_t" = xyes; then : | 
|  | 8371 |  | 
|  | 8372 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | 
|  | 8373 |  | 
|  | 8374 | fi | 
|  | 8375 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8376 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8377 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8378 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8379 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8380 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8381 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8382 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
|  | 8384 | $as_echo_n "checking size of int... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8385 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8386 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8387 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8388 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8389 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8390 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8391 | if test "$ac_cv_type_int" = yes; then | 
|  | 8392 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8393 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8394 | as_fn_error 77 "cannot compute sizeof (int) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8395 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8396 | else | 
|  | 8397 | ac_cv_sizeof_int=0 | 
|  | 8398 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8400 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8401 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
|  | 8403 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8404 |  | 
|  | 8405 |  | 
|  | 8406 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8407 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8408 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8409 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8410 |  | 
|  | 8411 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8412 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8413 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8414 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8415 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
|  | 8417 | $as_echo_n "checking size of long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8418 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8419 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8420 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8421 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8422 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8424 | if test "$ac_cv_type_long" = yes; then | 
|  | 8425 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8426 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8427 | as_fn_error 77 "cannot compute sizeof (long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8428 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8429 | else | 
|  | 8430 | ac_cv_sizeof_long=0 | 
|  | 8431 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8432 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8433 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8434 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
|  | 8436 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8437 |  | 
|  | 8438 |  | 
|  | 8439 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8440 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8441 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8442 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8443 |  | 
|  | 8444 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8445 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8446 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8447 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8448 | # This bug is HP SR number 8606223364. | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
|  | 8450 | $as_echo_n "checking size of long long... " >&6; } | 
|  | 8451 | if ${ac_cv_sizeof_long_long+:} false; then : | 
|  | 8452 | $as_echo_n "(cached) " >&6 | 
|  | 8453 | else | 
|  | 8454 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then : | 
|  | 8455 |  | 
|  | 8456 | else | 
|  | 8457 | if test "$ac_cv_type_long_long" = yes; then | 
|  | 8458 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8459 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 8460 | as_fn_error 77 "cannot compute sizeof (long long) | 
|  | 8461 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 8462 | else | 
|  | 8463 | ac_cv_sizeof_long_long=0 | 
|  | 8464 | fi | 
|  | 8465 | fi | 
|  | 8466 |  | 
|  | 8467 | fi | 
|  | 8468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
|  | 8469 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
|  | 8470 |  | 
|  | 8471 |  | 
|  | 8472 |  | 
|  | 8473 | cat >>confdefs.h <<_ACEOF | 
|  | 8474 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
|  | 8475 | _ACEOF | 
|  | 8476 |  | 
|  | 8477 |  | 
|  | 8478 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8479 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8480 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8481 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
|  | 8483 | $as_echo_n "checking size of void *... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8484 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8485 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8486 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8487 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8488 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8489 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8490 | if test "$ac_cv_type_void_p" = yes; then | 
|  | 8491 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8492 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8493 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8494 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8495 | else | 
|  | 8496 | ac_cv_sizeof_void_p=0 | 
|  | 8497 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8498 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8499 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8500 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
|  | 8502 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8503 |  | 
|  | 8504 |  | 
|  | 8505 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8506 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8507 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8508 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8509 |  | 
|  | 8510 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8511 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8512 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8513 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8514 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
|  | 8516 | $as_echo_n "checking size of short... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8517 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8518 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8519 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8520 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8521 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8522 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8523 | if test "$ac_cv_type_short" = yes; then | 
|  | 8524 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8525 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8526 | as_fn_error 77 "cannot compute sizeof (short) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8527 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8528 | else | 
|  | 8529 | ac_cv_sizeof_short=0 | 
|  | 8530 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8532 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8533 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
|  | 8535 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8536 |  | 
|  | 8537 |  | 
|  | 8538 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8539 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8540 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8541 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8542 |  | 
|  | 8543 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8544 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8545 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8546 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8547 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
|  | 8549 | $as_echo_n "checking size of float... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8550 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8551 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8552 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8553 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8555 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8556 | if test "$ac_cv_type_float" = yes; then | 
|  | 8557 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8558 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8559 | as_fn_error 77 "cannot compute sizeof (float) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8560 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8561 | else | 
|  | 8562 | ac_cv_sizeof_float=0 | 
|  | 8563 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8564 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8565 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8566 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
|  | 8568 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8569 |  | 
|  | 8570 |  | 
|  | 8571 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8572 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8573 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8574 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8575 |  | 
|  | 8576 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8577 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8578 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8579 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8580 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
|  | 8582 | $as_echo_n "checking size of double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8583 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8584 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8586 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8587 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8588 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8589 | if test "$ac_cv_type_double" = yes; then | 
|  | 8590 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8591 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8592 | as_fn_error 77 "cannot compute sizeof (double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8593 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8594 | else | 
|  | 8595 | ac_cv_sizeof_double=0 | 
|  | 8596 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8597 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8598 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8599 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
|  | 8601 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8602 |  | 
|  | 8603 |  | 
|  | 8604 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8606 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8607 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8608 |  | 
|  | 8609 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8610 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8611 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8612 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8613 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
|  | 8615 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8616 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8617 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8618 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8619 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8621 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8622 | if test "$ac_cv_type_fpos_t" = yes; then | 
|  | 8623 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8624 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8625 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8626 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8627 | else | 
|  | 8628 | ac_cv_sizeof_fpos_t=0 | 
|  | 8629 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8631 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8632 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
|  | 8634 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8635 |  | 
|  | 8636 |  | 
|  | 8637 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8638 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8639 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8640 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8641 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8642 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8643 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8644 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8645 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8646 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
|  | 8648 | $as_echo_n "checking size of size_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8649 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8650 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8651 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8652 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8653 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8654 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8655 | if test "$ac_cv_type_size_t" = yes; then | 
|  | 8656 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8657 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8658 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8659 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8660 | else | 
|  | 8661 | ac_cv_sizeof_size_t=0 | 
|  | 8662 | fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8663 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8664 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8665 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
|  | 8667 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8668 |  | 
|  | 8669 |  | 
|  | 8670 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8671 | cat >>confdefs.h <<_ACEOF | 
|  | 8672 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
|  | 8673 | _ACEOF | 
|  | 8674 |  | 
|  | 8675 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8676 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8677 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8678 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8679 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
|  | 8681 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8682 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8683 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8684 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8685 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then : | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8686 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8687 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8688 | if test "$ac_cv_type_pid_t" = yes; then | 
|  | 8689 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8690 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8691 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8692 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8693 | else | 
|  | 8694 | ac_cv_sizeof_pid_t=0 | 
|  | 8695 | fi | 
|  | 8696 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8697 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8698 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
|  | 8700 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8701 |  | 
|  | 8702 |  | 
|  | 8703 |  | 
|  | 8704 | cat >>confdefs.h <<_ACEOF | 
|  | 8705 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
|  | 8706 | _ACEOF | 
|  | 8707 |  | 
|  | 8708 |  | 
| Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 8709 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8710 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8711 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8712 | # This bug is HP SR number 8606223364. | 
|  | 8713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
|  | 8714 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
|  | 8715 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
|  | 8716 | $as_echo_n "(cached) " >&6 | 
|  | 8717 | else | 
|  | 8718 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then : | 
|  | 8719 |  | 
|  | 8720 | else | 
|  | 8721 | if test "$ac_cv_type_uintptr_t" = yes; then | 
|  | 8722 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8723 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 8724 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
|  | 8725 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 8726 | else | 
|  | 8727 | ac_cv_sizeof_uintptr_t=0 | 
|  | 8728 | fi | 
|  | 8729 | fi | 
|  | 8730 |  | 
|  | 8731 | fi | 
|  | 8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
|  | 8733 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
|  | 8734 |  | 
|  | 8735 |  | 
|  | 8736 |  | 
|  | 8737 | cat >>confdefs.h <<_ACEOF | 
|  | 8738 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
|  | 8739 | _ACEOF | 
|  | 8740 |  | 
|  | 8741 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8742 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
|  | 8744 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8745 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8747 | /* end confdefs.h.  */ | 
|  | 8748 |  | 
|  | 8749 | int | 
|  | 8750 | main () | 
|  | 8751 | { | 
|  | 8752 | long double x; x = (long double)0; | 
|  | 8753 | ; | 
|  | 8754 | return 0; | 
|  | 8755 | } | 
|  | 8756 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8757 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8758 |  | 
|  | 8759 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8760 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8761 |  | 
|  | 8762 | have_long_double=yes | 
|  | 8763 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8764 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
|  | 8767 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8768 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8769 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8770 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8771 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8772 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
|  | 8774 | $as_echo_n "checking size of long double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8775 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8776 | $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8777 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8778 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8779 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8780 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8781 | if test "$ac_cv_type_long_double" = yes; then | 
|  | 8782 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8783 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8784 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8785 | See \`config.log' for more details" "$LINENO" 5; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8786 | else | 
|  | 8787 | ac_cv_sizeof_long_double=0 | 
|  | 8788 | fi | 
|  | 8789 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8790 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8791 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
|  | 8793 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8794 |  | 
|  | 8795 |  | 
|  | 8796 |  | 
|  | 8797 | cat >>confdefs.h <<_ACEOF | 
|  | 8798 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
|  | 8799 | _ACEOF | 
|  | 8800 |  | 
|  | 8801 |  | 
|  | 8802 | fi | 
|  | 8803 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8804 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8805 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8806 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8807 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
|  | 8809 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8810 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8811 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8812 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8813 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8814 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8815 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8816 | if test "$ac_cv_type__Bool" = yes; then | 
|  | 8817 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8818 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8819 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8820 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8821 | else | 
|  | 8822 | ac_cv_sizeof__Bool=0 | 
|  | 8823 | fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8824 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8825 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8826 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
|  | 8828 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8829 |  | 
|  | 8830 |  | 
|  | 8831 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8832 | cat >>confdefs.h <<_ACEOF | 
|  | 8833 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
|  | 8834 | _ACEOF | 
|  | 8835 |  | 
|  | 8836 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8837 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8838 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8839 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8840 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8841 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
|  | 8843 | $as_echo_n "checking size of off_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8844 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8845 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8846 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8847 | 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] | 8848 | #ifdef HAVE_SYS_TYPES_H | 
|  | 8849 | #include <sys/types.h> | 
|  | 8850 | #endif | 
|  | 8851 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8852 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8853 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8854 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8855 | if test "$ac_cv_type_off_t" = yes; then | 
|  | 8856 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8857 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8858 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8859 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8860 | else | 
|  | 8861 | ac_cv_sizeof_off_t=0 | 
|  | 8862 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8863 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8864 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8865 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
|  | 8867 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8868 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8869 |  | 
|  | 8870 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8871 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8872 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8873 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8874 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8875 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8876 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
|  | 8878 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8879 | 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] | 8880 | "$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] | 8881 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8882 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8883 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8885 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8886 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8888 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8889 | fi | 
|  | 8890 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8891 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8892 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8893 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8894 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
|  | 8896 | $as_echo_n "checking size of time_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8897 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8898 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8899 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8900 | 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] | 8901 | #ifdef HAVE_SYS_TYPES_H | 
|  | 8902 | #include <sys/types.h> | 
|  | 8903 | #endif | 
|  | 8904 | #ifdef HAVE_TIME_H | 
|  | 8905 | #include <time.h> | 
|  | 8906 | #endif | 
|  | 8907 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8908 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8909 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8910 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8911 | if test "$ac_cv_type_time_t" = yes; then | 
|  | 8912 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8913 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8914 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8915 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8916 | else | 
|  | 8917 | ac_cv_sizeof_time_t=0 | 
|  | 8918 | fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8919 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8920 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8921 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
|  | 8923 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8924 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8925 |  | 
|  | 8926 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8928 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8929 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8930 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8931 |  | 
|  | 8932 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8933 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8934 | ac_save_cc="$CC" | 
|  | 8935 | if test "$ac_cv_kpthread" = "yes" | 
|  | 8936 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8937 | elif test "$ac_cv_kthread" = "yes" | 
|  | 8938 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8939 | elif test "$ac_cv_pthread" = "yes" | 
|  | 8940 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8941 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8942 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
|  | 8944 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8945 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8947 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8948 |  | 
|  | 8949 | #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8950 | int | 
|  | 8951 | main () | 
|  | 8952 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8953 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8954 | ; | 
|  | 8955 | return 0; | 
|  | 8956 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8957 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8958 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8959 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8960 | have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8961 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
|  | 8964 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8965 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8966 | # 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] | 8967 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8968 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8969 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
|  | 8971 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8972 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8973 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8974 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8975 | 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] | 8976 | #ifdef HAVE_PTHREAD_H | 
|  | 8977 | #include <pthread.h> | 
|  | 8978 | #endif | 
|  | 8979 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8980 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8981 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8982 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8983 | if test "$ac_cv_type_pthread_t" = yes; then | 
|  | 8984 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8985 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8986 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8987 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8988 | else | 
|  | 8989 | ac_cv_sizeof_pthread_t=0 | 
|  | 8990 | fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8991 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8992 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8993 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
|  | 8995 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8996 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8997 |  | 
|  | 8998 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8999 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9000 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9001 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9002 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9003 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9004 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9005 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9006 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9007 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9008 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9009 | Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9010 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
|  | 9011 | ;; | 
|  | 9012 | Darwin/*) | 
|  | 9013 | OTHER_LIBTOOL_OPT="" | 
|  | 9014 | ;; | 
|  | 9015 | esac | 
|  | 9016 |  | 
|  | 9017 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9018 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9019 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9020 | Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9021 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
|  | 9022 | if test "${enable_universalsdk}"; then | 
|  | 9023 | : | 
|  | 9024 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9025 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9026 | fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9027 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9028 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9029 | Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 9030 | gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9031 | if test ${gcc_version} '<' 4.0 | 
|  | 9032 | then | 
|  | 9033 | LIBTOOL_CRUFT="-lcc_dynamic" | 
|  | 9034 | else | 
|  | 9035 | LIBTOOL_CRUFT="" | 
|  | 9036 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9037 | if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9038 | ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9039 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9041 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9042 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9043 | #include <unistd.h> | 
|  | 9044 | int main(int argc, char*argv[]) | 
|  | 9045 | { | 
|  | 9046 | if (sizeof(long) == 4) { | 
|  | 9047 | return 0; | 
|  | 9048 | } else { | 
|  | 9049 | return 1; | 
|  | 9050 | } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9051 | } | 
|  | 9052 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9053 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9054 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9055 | ac_osx_32bit=yes | 
|  | 9056 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9057 | ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9058 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9059 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9060 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9061 | fi | 
|  | 9062 |  | 
|  | 9063 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9064 | if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9065 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9066 | i386) | 
|  | 9067 | MACOSX_DEFAULT_ARCH="i386" | 
|  | 9068 | ;; | 
|  | 9069 | ppc) | 
|  | 9070 | MACOSX_DEFAULT_ARCH="ppc" | 
|  | 9071 | ;; | 
|  | 9072 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9073 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9074 | ;; | 
|  | 9075 | esac | 
|  | 9076 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9077 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9078 | i386) | 
|  | 9079 | MACOSX_DEFAULT_ARCH="x86_64" | 
|  | 9080 | ;; | 
|  | 9081 | ppc) | 
|  | 9082 | MACOSX_DEFAULT_ARCH="ppc64" | 
|  | 9083 | ;; | 
|  | 9084 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9085 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9086 | ;; | 
|  | 9087 | esac | 
|  | 9088 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9089 | fi | 
|  | 9090 |  | 
|  | 9091 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9092 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9093 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9094 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
|  | 9096 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9097 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9098 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9099 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9100 | # -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9101 | # in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9102 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9103 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9104 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9106 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9107 | if test $enable_shared = "yes" | 
|  | 9108 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9109 | 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] | 9110 | fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9111 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9113 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9114 | fi | 
|  | 9115 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
|  | 9117 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9118 | case $ac_sys_system/$ac_sys_release in | 
|  | 9119 | Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9120 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9121 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9122 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
|  | 9124 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9125 | ;; | 
|  | 9126 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9128 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9129 | ;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9130 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9131 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9132 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9133 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9134 |  | 
|  | 9135 |  | 
|  | 9136 |  | 
|  | 9137 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9138 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9139 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9140 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) | 
|  | 9141 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
|  | 9142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | 
|  | 9143 | $as_echo_n "checking the extension of shared libraries... " >&6; } | 
|  | 9144 | if test -z "$SHLIB_SUFFIX"; then | 
|  | 9145 | case $ac_sys_system in | 
|  | 9146 | hp*|HP*) | 
|  | 9147 | case `uname -m` in | 
|  | 9148 | ia64) SHLIB_SUFFIX=.so;; | 
|  | 9149 | *)    SHLIB_SUFFIX=.sl;; | 
|  | 9150 | esac | 
|  | 9151 | ;; | 
|  | 9152 | CYGWIN*)   SHLIB_SUFFIX=.dll;; | 
|  | 9153 | *)	   SHLIB_SUFFIX=.so;; | 
|  | 9154 | esac | 
|  | 9155 | fi | 
|  | 9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | 
|  | 9157 | $as_echo "$SHLIB_SUFFIX" >&6; } | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9158 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9159 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 9160 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9161 | # (Shared libraries in this instance are shared modules to be loaded into | 
|  | 9162 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
|  | 9164 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9165 | if test -z "$LDSHARED" | 
|  | 9166 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9167 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9168 | AIX*) | 
| Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 9169 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp" | 
| Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 9170 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9171 | ;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9172 | IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9173 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9174 | SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9175 | if test "$GCC" = "yes" ; then | 
|  | 9176 | LDSHARED='$(CC) -shared' | 
|  | 9177 | LDCXXSHARED='$(CXX) -shared' | 
|  | 9178 | else | 
|  | 9179 | LDSHARED='$(CC) -G' | 
|  | 9180 | LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9181 | fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9182 | hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9183 | if test "$GCC" = "yes" ; then | 
|  | 9184 | LDSHARED='$(CC) -shared' | 
|  | 9185 | LDCXXSHARED='$(CXX) -shared' | 
|  | 9186 | else | 
|  | 9187 | LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9188 | fi ;; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9189 | Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9190 | LDSHARED='$(CC) -bundle' | 
|  | 9191 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9192 | if test "$enable_framework" ; then | 
|  | 9193 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9194 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 9195 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9196 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9197 | else | 
|  | 9198 | # No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9199 | LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9200 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9201 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9202 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9203 | LDSHARED='$(CC) -bundle' | 
|  | 9204 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9205 | if test "$enable_framework" ; then | 
|  | 9206 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9207 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 9208 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9209 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9210 | else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9211 | # No framework, use the Python app as bundle-loader | 
|  | 9212 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9213 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9214 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9215 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9216 | Darwin/*) | 
|  | 9217 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
|  | 9218 | # This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9219 |  | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9220 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
|  | 9221 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
|  | 9222 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
|  | 9223 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
|  | 9224 | if test ${dep_target_major} -eq 10 && \ | 
|  | 9225 | test ${dep_target_minor} -le 2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9226 | then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9227 | # building for OS X 10.0 through 10.2 | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9228 | LDSHARED='$(CC) -bundle' | 
|  | 9229 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9230 | if test "$enable_framework" ; then | 
|  | 9231 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9232 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 9233 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9234 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9235 | else | 
|  | 9236 | # No framework, use the Python app as bundle-loader | 
|  | 9237 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
|  | 9238 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9239 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9240 | fi | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9241 | else | 
|  | 9242 | # building for OS X 10.3 and later | 
|  | 9243 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
|  | 9244 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
|  | 9245 | BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9246 | fi | 
|  | 9247 | ;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9248 | Linux*|GNU*|QNX*) | 
|  | 9249 | LDSHARED='$(CC) -shared' | 
|  | 9250 | LDCXXSHARED='$(CXX) -shared';; | 
|  | 9251 | BSD/OS*/4*) | 
|  | 9252 | LDSHARED="gcc -shared" | 
|  | 9253 | LDCXXSHARED="g++ -shared";; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9254 | FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9255 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9256 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9257 | LDSHARED='$(CC) -shared' | 
|  | 9258 | LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9259 | else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9260 | LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9261 | fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9262 | OpenBSD*) | 
|  | 9263 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 9264 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9265 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 9266 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9267 | else | 
|  | 9268 | case `uname -r` in | 
|  | 9269 | [01].* | 2.[0-7] | 2.[0-7].*) | 
|  | 9270 | LDSHARED="ld -Bshareable ${LDFLAGS}" | 
|  | 9271 | ;; | 
|  | 9272 | *) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9273 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 9274 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9275 | ;; | 
|  | 9276 | esac | 
|  | 9277 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9278 | NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9279 | LDSHARED='$(CC) -shared' | 
|  | 9280 | LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9281 | OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9282 | if test "$GCC" = "yes" ; then | 
|  | 9283 | LDSHARED='$(CC) -shared' | 
|  | 9284 | LDCXXSHARED='$(CXX) -shared' | 
|  | 9285 | else | 
|  | 9286 | LDSHARED='$(CC) -G' | 
|  | 9287 | LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9288 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9289 | SCO_SV*) | 
|  | 9290 | LDSHARED='$(CC) -Wl,-G,-Bexport' | 
|  | 9291 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
|  | 9292 | CYGWIN*) | 
|  | 9293 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
|  | 9294 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9295 | *)	LDSHARED="ld";; | 
|  | 9296 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9297 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
|  | 9299 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9300 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9301 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9302 | # 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] | 9303 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
|  | 9305 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9306 | if test -z "$CCSHARED" | 
|  | 9307 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9308 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9309 | SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9310 | then CCSHARED="-fPIC"; | 
|  | 9311 | elif test `uname -p` = sparc; | 
|  | 9312 | then CCSHARED="-xcode=pic32"; | 
|  | 9313 | else CCSHARED="-Kpic"; | 
|  | 9314 | fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9315 | hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9316 | then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9317 | else CCSHARED="+z"; | 
|  | 9318 | fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9319 | Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9320 | BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9321 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9322 | OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9323 | if test "$GCC" = "yes" | 
|  | 9324 | then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9325 | else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9326 | fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9327 | SCO_SV*) | 
|  | 9328 | if test "$GCC" = "yes" | 
|  | 9329 | then CCSHARED="-fPIC" | 
|  | 9330 | else CCSHARED="-Kpic -belf" | 
|  | 9331 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9332 | IRIX*/6*)  case $CC in | 
|  | 9333 | *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9334 | *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9335 | esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9336 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9337 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
|  | 9339 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9340 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9341 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
|  | 9343 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9344 | if test -z "$LINKFORSHARED" | 
|  | 9345 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9346 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9347 | AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9348 | hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9349 | LINKFORSHARED="-Wl,-E -Wl,+s";; | 
|  | 9350 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9351 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9352 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9353 | # -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9354 | Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9355 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 9356 |  | 
|  | 9357 | # Issue #18075: the default maximum stack size (8MBytes) is too | 
|  | 9358 | # small for the default recursion limit. Increase the stack size | 
|  | 9359 | # to ensure that tests don't crash | 
|  | 9360 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | 
|  | 9361 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9362 | if test "$enable_framework" | 
|  | 9363 | then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9364 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9365 | fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9366 | LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9367 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9368 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9369 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9370 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9371 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 9372 | then | 
|  | 9373 | LINKFORSHARED="-Wl,--export-dynamic" | 
|  | 9374 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9375 | SunOS/5*) case $CC in | 
|  | 9376 | *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9377 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9378 | then | 
|  | 9379 | LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9380 | fi;; | 
|  | 9381 | esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9382 | CYGWIN*) | 
|  | 9383 | if test $enable_shared = "no" | 
|  | 9384 | then | 
|  | 9385 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
|  | 9386 | fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9387 | QNX*) | 
|  | 9388 | # -Wl,-E causes the symbols to be added to the dynamic | 
|  | 9389 | # symbol table so that they can be found when a module | 
|  | 9390 | # is loaded.  -N 2048K causes the stack size to be set | 
|  | 9391 | # to 2048 kilobytes so that the stack doesn't overflow | 
|  | 9392 | # when running test_compile.py. | 
|  | 9393 | LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9394 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9395 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
|  | 9397 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9398 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9399 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9400 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
|  | 9402 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9403 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
|  | 9404 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9405 | case $ac_sys_system in | 
|  | 9406 | CYGWIN*) | 
|  | 9407 | # Cygwin needs CCSHARED when building extension DLLs | 
|  | 9408 | # but not when building the interpreter DLL. | 
|  | 9409 | CFLAGSFORSHARED='';; | 
|  | 9410 | *) | 
|  | 9411 | CFLAGSFORSHARED='$(CCSHARED)' | 
|  | 9412 | esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9413 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
|  | 9415 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9416 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9417 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
|  | 9418 | # library (with --enable-shared). | 
|  | 9419 | # 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] | 9420 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
|  | 9421 | # if it is not required, since it creates a dependency of the shared library | 
|  | 9422 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
|  | 9423 | # don't need to link LIBS explicitly. The default should be only changed | 
|  | 9424 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9425 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
|  | 9427 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9428 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9429 | *) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9430 | SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9431 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
|  | 9433 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9434 |  | 
|  | 9435 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9436 | # checks for libraries | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 | 
|  | 9438 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9439 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9440 | $as_echo_n "(cached) " >&6 | 
|  | 9441 | else | 
|  | 9442 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9443 | LIBS="-lsendfile  $LIBS" | 
|  | 9444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9445 | /* end confdefs.h.  */ | 
|  | 9446 |  | 
|  | 9447 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9448 | Use char because int might match the return type of a GCC | 
|  | 9449 | builtin and then its argument prototype would still apply.  */ | 
|  | 9450 | #ifdef __cplusplus | 
|  | 9451 | extern "C" | 
|  | 9452 | #endif | 
|  | 9453 | char sendfile (); | 
|  | 9454 | int | 
|  | 9455 | main () | 
|  | 9456 | { | 
|  | 9457 | return sendfile (); | 
|  | 9458 | ; | 
|  | 9459 | return 0; | 
|  | 9460 | } | 
|  | 9461 | _ACEOF | 
|  | 9462 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 9463 | ac_cv_lib_sendfile_sendfile=yes | 
|  | 9464 | else | 
|  | 9465 | ac_cv_lib_sendfile_sendfile=no | 
|  | 9466 | fi | 
|  | 9467 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9468 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9469 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9470 | fi | 
|  | 9471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | 
|  | 9472 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9473 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9474 | cat >>confdefs.h <<_ACEOF | 
|  | 9475 | #define HAVE_LIBSENDFILE 1 | 
|  | 9476 | _ACEOF | 
|  | 9477 |  | 
|  | 9478 | LIBS="-lsendfile $LIBS" | 
|  | 9479 |  | 
|  | 9480 | fi | 
|  | 9481 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
|  | 9483 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9484 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9485 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9486 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9487 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9488 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9490 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9491 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9492 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9493 | Use char because int might match the return type of a GCC | 
|  | 9494 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | #ifdef __cplusplus | 
|  | 9496 | extern "C" | 
|  | 9497 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9498 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | int | 
|  | 9500 | main () | 
|  | 9501 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9502 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9503 | ; | 
|  | 9504 | return 0; | 
|  | 9505 | } | 
|  | 9506 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9507 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9508 | ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9509 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9510 | ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9511 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9512 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9513 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9514 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9515 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 9517 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9518 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9519 | cat >>confdefs.h <<_ACEOF | 
|  | 9520 | #define HAVE_LIBDL 1 | 
|  | 9521 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9522 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9523 | LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9524 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9525 | fi | 
|  | 9526 | # Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
|  | 9528 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9529 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9530 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9531 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9532 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9533 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9535 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9536 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9537 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9538 | Use char because int might match the return type of a GCC | 
|  | 9539 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9540 | #ifdef __cplusplus | 
|  | 9541 | extern "C" | 
|  | 9542 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9543 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9544 | int | 
|  | 9545 | main () | 
|  | 9546 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9547 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9548 | ; | 
|  | 9549 | return 0; | 
|  | 9550 | } | 
|  | 9551 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9552 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9553 | ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9554 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9555 | ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9556 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9557 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9558 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9559 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9560 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 9562 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9563 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 | cat >>confdefs.h <<_ACEOF | 
|  | 9565 | #define HAVE_LIBDLD 1 | 
|  | 9566 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9567 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9568 | LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9569 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9570 | fi | 
|  | 9571 | # Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9572 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 9573 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9574 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
|  | 9576 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9577 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9578 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9579 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9580 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9582 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9583 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9584 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9585 | Use char because int might match the return type of a GCC | 
|  | 9586 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9587 | #ifdef __cplusplus | 
|  | 9588 | extern "C" | 
|  | 9589 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9590 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9591 | int | 
|  | 9592 | main () | 
|  | 9593 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9594 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9595 | ; | 
|  | 9596 | return 0; | 
|  | 9597 | } | 
|  | 9598 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9599 | for ac_lib in '' pthread rt posix4; do | 
|  | 9600 | if test -z "$ac_lib"; then | 
|  | 9601 | ac_res="none required" | 
|  | 9602 | else | 
|  | 9603 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9604 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9605 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9606 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9607 | ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9608 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9609 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9610 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9611 | if ${ac_cv_search_sem_init+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9612 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9613 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9614 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9615 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9616 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9617 | else | 
|  | 9618 | ac_cv_search_sem_init=no | 
|  | 9619 | fi | 
|  | 9620 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9621 | LIBS=$ac_func_search_save_LIBS | 
|  | 9622 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
|  | 9624 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9625 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9626 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9627 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9628 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9629 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9630 | # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9631 | # posix4 on Solaris 2.6 | 
|  | 9632 | # pthread (first!) on Linux | 
|  | 9633 | fi | 
|  | 9634 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9635 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
|  | 9637 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9638 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9639 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9640 | else | 
|  | 9641 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9642 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9644 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9645 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9646 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9647 | Use char because int might match the return type of a GCC | 
|  | 9648 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9649 | #ifdef __cplusplus | 
|  | 9650 | extern "C" | 
|  | 9651 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9652 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9653 | int | 
|  | 9654 | main () | 
|  | 9655 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9656 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9657 | ; | 
|  | 9658 | return 0; | 
|  | 9659 | } | 
|  | 9660 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9661 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9662 | ac_cv_lib_intl_textdomain=yes | 
|  | 9663 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9664 | ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9665 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9666 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9667 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9668 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9669 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
|  | 9671 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9672 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9673 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9674 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9675 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 9676 | LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9677 | fi | 
|  | 9678 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9679 |  | 
|  | 9680 | # checks for system dependent C++ extensions support | 
|  | 9681 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9682 | AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
|  | 9683 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
|  | 9684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9685 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9686 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9687 | #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9688 | int | 
|  | 9689 | main () | 
|  | 9690 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9691 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9692 | ; | 
|  | 9693 | return 0; | 
|  | 9694 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9695 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9696 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9697 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9698 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9699 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9700 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9701 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9703 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9704 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9705 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9706 |  | 
|  | 9707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9708 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9709 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9710 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9711 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9712 | conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9713 | *) ;; | 
|  | 9714 | esac | 
|  | 9715 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9716 | # check for systems that require aligned memory access | 
|  | 9717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | 
|  | 9718 | $as_echo_n "checking aligned memory access is required... " >&6; } | 
|  | 9719 | if test "$cross_compiling" = yes; then : | 
|  | 9720 | aligned_required=yes | 
|  | 9721 | else | 
|  | 9722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9723 | /* end confdefs.h.  */ | 
|  | 9724 |  | 
|  | 9725 | int main() | 
|  | 9726 | { | 
|  | 9727 | char s[16]; | 
|  | 9728 | int i, *p1, *p2; | 
|  | 9729 | for (i=0; i < 16; i++) | 
|  | 9730 | s[i] = i; | 
|  | 9731 | p1 = (int*)(s+1); | 
|  | 9732 | p2 = (int*)(s+2); | 
|  | 9733 | if (*p1 == *p2) | 
|  | 9734 | return 1; | 
|  | 9735 | return 0; | 
|  | 9736 | } | 
|  | 9737 |  | 
|  | 9738 | _ACEOF | 
|  | 9739 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 9740 | aligned_required=no | 
|  | 9741 | else | 
|  | 9742 | aligned_required=yes | 
|  | 9743 | fi | 
|  | 9744 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9745 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 9746 | fi | 
|  | 9747 |  | 
|  | 9748 |  | 
|  | 9749 | if test "$aligned_required" = yes ; then | 
|  | 9750 |  | 
|  | 9751 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | 
|  | 9752 |  | 
|  | 9753 | fi | 
|  | 9754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aligned_required" >&5 | 
|  | 9755 | $as_echo "$aligned_required" >&6; } | 
|  | 9756 |  | 
|  | 9757 |  | 
|  | 9758 | # str, bytes and memoryview hash algorithm | 
|  | 9759 |  | 
|  | 9760 |  | 
|  | 9761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | 
|  | 9762 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | 
|  | 9763 |  | 
|  | 9764 | # Check whether --with-hash_algorithm was given. | 
|  | 9765 | if test "${with_hash_algorithm+set}" = set; then : | 
|  | 9766 | withval=$with_hash_algorithm; | 
|  | 9767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9768 | $as_echo "$withval" >&6; } | 
|  | 9769 | case "$withval" in | 
|  | 9770 | siphash24) | 
|  | 9771 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | 
|  | 9772 |  | 
|  | 9773 | ;; | 
|  | 9774 | fnv) | 
|  | 9775 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | 
|  | 9776 |  | 
|  | 9777 | ;; | 
|  | 9778 | *) | 
|  | 9779 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | 
|  | 9780 | ;; | 
|  | 9781 | esac | 
|  | 9782 |  | 
|  | 9783 | else | 
|  | 9784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | 
|  | 9785 | $as_echo "default" >&6; } | 
|  | 9786 | fi | 
|  | 9787 |  | 
|  | 9788 |  | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 9789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 | 
|  | 9790 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | 
|  | 9791 |  | 
|  | 9792 | # Check whether --with-address_sanitizer was given. | 
|  | 9793 | if test "${with_address_sanitizer+set}" = set; then : | 
|  | 9794 | withval=$with_address_sanitizer; | 
|  | 9795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9796 | $as_echo "$withval" >&6; } | 
|  | 9797 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" | 
|  | 9798 | LDFLAGS="-fsanitize=address $LDFLAGS" | 
|  | 9799 |  | 
|  | 9800 | else | 
|  | 9801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9802 | $as_echo "no" >&6; } | 
|  | 9803 | fi | 
|  | 9804 |  | 
|  | 9805 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9806 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
|  | 9808 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9809 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9810 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9811 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9812 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9813 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9815 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9816 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9817 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9818 | Use char because int might match the return type of a GCC | 
|  | 9819 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | #ifdef __cplusplus | 
|  | 9821 | extern "C" | 
|  | 9822 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9823 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9824 | int | 
|  | 9825 | main () | 
|  | 9826 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9827 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9828 | ; | 
|  | 9829 | return 0; | 
|  | 9830 | } | 
|  | 9831 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9832 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9833 | ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9834 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9835 | ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9836 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9837 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9838 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9839 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9840 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
|  | 9842 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9843 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9844 | LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9845 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9846 | # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
|  | 9848 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9849 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9850 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9851 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9852 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9853 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9855 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9856 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9857 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9858 | Use char because int might match the return type of a GCC | 
|  | 9859 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9860 | #ifdef __cplusplus | 
|  | 9861 | extern "C" | 
|  | 9862 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9863 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9864 | int | 
|  | 9865 | main () | 
|  | 9866 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9867 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9868 | ; | 
|  | 9869 | return 0; | 
|  | 9870 | } | 
|  | 9871 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9872 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9873 | ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9874 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9875 | ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9876 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9877 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9878 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9879 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9880 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
|  | 9882 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9883 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9884 | LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9885 | fi | 
|  | 9886 | # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9887 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
|  | 9889 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9890 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9891 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9892 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9893 | withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9895 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9896 | LIBS="$withval $LIBS" | 
|  | 9897 |  | 
|  | 9898 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9900 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9901 | fi | 
|  | 9902 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9903 |  | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 9904 |  | 
|  | 9905 |  | 
|  | 9906 |  | 
|  | 9907 |  | 
|  | 9908 |  | 
|  | 9909 |  | 
|  | 9910 |  | 
|  | 9911 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
|  | 9912 | if test -n "$ac_tool_prefix"; then | 
|  | 9913 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
|  | 9914 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
|  | 9915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9916 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 9917 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
|  | 9918 | $as_echo_n "(cached) " >&6 | 
|  | 9919 | else | 
|  | 9920 | case $PKG_CONFIG in | 
|  | 9921 | [\\/]* | ?:[\\/]*) | 
|  | 9922 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
|  | 9923 | ;; | 
|  | 9924 | *) | 
|  | 9925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9926 | for as_dir in $PATH | 
|  | 9927 | do | 
|  | 9928 | IFS=$as_save_IFS | 
|  | 9929 | test -z "$as_dir" && as_dir=. | 
|  | 9930 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 9931 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 9932 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
|  | 9933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 9934 | break 2 | 
|  | 9935 | fi | 
|  | 9936 | done | 
|  | 9937 | done | 
|  | 9938 | IFS=$as_save_IFS | 
|  | 9939 |  | 
|  | 9940 | ;; | 
|  | 9941 | esac | 
|  | 9942 | fi | 
|  | 9943 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
|  | 9944 | if test -n "$PKG_CONFIG"; then | 
|  | 9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
|  | 9946 | $as_echo "$PKG_CONFIG" >&6; } | 
|  | 9947 | else | 
|  | 9948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9949 | $as_echo "no" >&6; } | 
|  | 9950 | fi | 
|  | 9951 |  | 
|  | 9952 |  | 
|  | 9953 | fi | 
|  | 9954 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
|  | 9955 | ac_pt_PKG_CONFIG=$PKG_CONFIG | 
|  | 9956 | # Extract the first word of "pkg-config", so it can be a program name with args. | 
|  | 9957 | set dummy pkg-config; ac_word=$2 | 
|  | 9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9959 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 9960 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
|  | 9961 | $as_echo_n "(cached) " >&6 | 
|  | 9962 | else | 
|  | 9963 | case $ac_pt_PKG_CONFIG in | 
|  | 9964 | [\\/]* | ?:[\\/]*) | 
|  | 9965 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
|  | 9966 | ;; | 
|  | 9967 | *) | 
|  | 9968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9969 | for as_dir in $PATH | 
|  | 9970 | do | 
|  | 9971 | IFS=$as_save_IFS | 
|  | 9972 | test -z "$as_dir" && as_dir=. | 
|  | 9973 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 9974 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 9975 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
|  | 9976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 9977 | break 2 | 
|  | 9978 | fi | 
|  | 9979 | done | 
|  | 9980 | done | 
|  | 9981 | IFS=$as_save_IFS | 
|  | 9982 |  | 
|  | 9983 | ;; | 
|  | 9984 | esac | 
|  | 9985 | fi | 
|  | 9986 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
|  | 9987 | if test -n "$ac_pt_PKG_CONFIG"; then | 
|  | 9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
|  | 9989 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
|  | 9990 | else | 
|  | 9991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9992 | $as_echo "no" >&6; } | 
|  | 9993 | fi | 
|  | 9994 |  | 
|  | 9995 | if test "x$ac_pt_PKG_CONFIG" = x; then | 
|  | 9996 | PKG_CONFIG="" | 
|  | 9997 | else | 
|  | 9998 | case $cross_compiling:$ac_tool_warned in | 
|  | 9999 | yes:) | 
|  | 10000 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 10001 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 10002 | ac_tool_warned=yes ;; | 
|  | 10003 | esac | 
|  | 10004 | PKG_CONFIG=$ac_pt_PKG_CONFIG | 
|  | 10005 | fi | 
|  | 10006 | else | 
|  | 10007 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
|  | 10008 | fi | 
|  | 10009 |  | 
|  | 10010 | fi | 
|  | 10011 | if test -n "$PKG_CONFIG"; then | 
|  | 10012 | _pkg_min_version=0.9.0 | 
|  | 10013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
|  | 10014 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
|  | 10015 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
|  | 10016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10017 | $as_echo "yes" >&6; } | 
|  | 10018 | else | 
|  | 10019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10020 | $as_echo "no" >&6; } | 
|  | 10021 | PKG_CONFIG="" | 
|  | 10022 | fi | 
|  | 10023 | fi | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10024 |  | 
|  | 10025 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
|  | 10027 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10028 |  | 
|  | 10029 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10030 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10031 | withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 10032 | else | 
|  | 10033 | with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10034 | fi | 
|  | 10035 |  | 
|  | 10036 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
|  | 10038 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10039 |  | 
|  | 10040 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
|  | 10042 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10043 |  | 
|  | 10044 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10045 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10046 | withval=$with_system_ffi; | 
|  | 10047 | fi | 
|  | 10048 |  | 
|  | 10049 |  | 
| Zachary Ware | 935043d | 2016-09-09 17:01:21 -0700 | [diff] [blame] | 10050 | case "$with_system_ffi" in | 
|  | 10051 | "") | 
|  | 10052 | case $ac_sys_system in | 
|  | 10053 | Darwin) | 
|  | 10054 | with_system_ffi="no" | 
|  | 10055 | ;; | 
|  | 10056 | *) | 
|  | 10057 | with_system_ffi="yes" | 
|  | 10058 | ;; | 
|  | 10059 | esac | 
|  | 10060 | ;; | 
|  | 10061 | yes|no) | 
|  | 10062 | ;; | 
|  | 10063 | *) | 
|  | 10064 | as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 | 
|  | 10065 | ;; | 
|  | 10066 | esac | 
|  | 10067 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10068 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 10069 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
|  | 10070 | else | 
|  | 10071 | LIBFFI_INCLUDEDIR="" | 
|  | 10072 | fi | 
|  | 10073 |  | 
|  | 10074 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
|  | 10076 | $as_echo "$with_system_ffi" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 10077 |  | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10078 | # Check for use of the system libmpdec library | 
|  | 10079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | 
|  | 10080 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | 
|  | 10081 |  | 
|  | 10082 | # Check whether --with-system_libmpdec was given. | 
|  | 10083 | if test "${with_system_libmpdec+set}" = set; then : | 
|  | 10084 | withval=$with_system_libmpdec; | 
|  | 10085 | else | 
|  | 10086 | with_system_libmpdec="no" | 
|  | 10087 | fi | 
|  | 10088 |  | 
|  | 10089 |  | 
|  | 10090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | 
|  | 10091 | $as_echo "$with_system_libmpdec" >&6; } | 
|  | 10092 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10093 | # Check for support for loadable sqlite extensions | 
|  | 10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
|  | 10095 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
|  | 10096 | # Check whether --enable-loadable-sqlite-extensions was given. | 
|  | 10097 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
|  | 10098 | enableval=$enable_loadable_sqlite_extensions; | 
|  | 10099 | else | 
|  | 10100 | enable_loadable_sqlite_extensions="no" | 
|  | 10101 | fi | 
|  | 10102 |  | 
|  | 10103 |  | 
|  | 10104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
|  | 10105 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
|  | 10106 |  | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10107 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path | 
|  | 10108 |  | 
|  | 10109 |  | 
|  | 10110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | 
|  | 10111 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | 
|  | 10112 |  | 
|  | 10113 | # Check whether --with-tcltk-includes was given. | 
|  | 10114 | if test "${with_tcltk_includes+set}" = set; then : | 
|  | 10115 | withval=$with_tcltk_includes; | 
|  | 10116 | else | 
|  | 10117 | with_tcltk_includes="default" | 
|  | 10118 | fi | 
|  | 10119 |  | 
|  | 10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | 
|  | 10121 | $as_echo "$with_tcltk_includes" >&6; } | 
|  | 10122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | 
|  | 10123 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | 
|  | 10124 |  | 
|  | 10125 | # Check whether --with-tcltk-libs was given. | 
|  | 10126 | if test "${with_tcltk_libs+set}" = set; then : | 
|  | 10127 | withval=$with_tcltk_libs; | 
|  | 10128 | else | 
|  | 10129 | with_tcltk_libs="default" | 
|  | 10130 | fi | 
|  | 10131 |  | 
|  | 10132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | 
|  | 10133 | $as_echo "$with_tcltk_libs" >&6; } | 
|  | 10134 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | 
|  | 10135 | then | 
|  | 10136 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | 
|  | 10137 | then | 
|  | 10138 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | 
|  | 10139 | fi | 
|  | 10140 | TCLTK_INCLUDES="" | 
|  | 10141 | TCLTK_LIBS="" | 
|  | 10142 | else | 
|  | 10143 | TCLTK_INCLUDES="$with_tcltk_includes" | 
|  | 10144 | TCLTK_LIBS="$with_tcltk_libs" | 
|  | 10145 | fi | 
|  | 10146 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10147 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
|  | 10149 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10150 |  | 
|  | 10151 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10152 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10153 | withval=$with_dbmliborder; | 
|  | 10154 | if test x$with_dbmliborder = xyes | 
|  | 10155 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10156 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10157 | else | 
|  | 10158 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
|  | 10159 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
|  | 10160 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10161 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10162 | fi | 
|  | 10163 | done | 
|  | 10164 | fi | 
|  | 10165 | fi | 
|  | 10166 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
|  | 10168 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10169 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10170 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10171 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10172 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10173 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10174 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10175 |  | 
|  | 10176 | # Templates for things AC_DEFINEd more than once. | 
|  | 10177 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10178 |  | 
|  | 10179 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10180 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
|  | 10182 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10183 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10184 | # Check whether --with-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10185 | if test "${with_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10186 | withval=$with_threads; | 
|  | 10187 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10188 |  | 
|  | 10189 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10190 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10191 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10192 | # Check whether --with-thread was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10193 | if test "${with_thread+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10194 | withval=$with_thread; with_threads=$with_thread | 
|  | 10195 | fi | 
|  | 10196 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10197 |  | 
|  | 10198 | if test -z "$with_threads" | 
|  | 10199 | then with_threads="yes" | 
|  | 10200 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
|  | 10202 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10203 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10204 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10205 | if test "$with_threads" = "no" | 
|  | 10206 | then | 
|  | 10207 | USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10208 | elif test "$ac_cv_pthread_is_default" = yes | 
|  | 10209 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10210 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10211 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10212 | # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10213 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10214 |  | 
|  | 10215 | posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10217 | elif test "$ac_cv_kpthread" = "yes" | 
|  | 10218 | then | 
|  | 10219 | CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10220 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 10221 | CXX="$CXX -Kpthread" | 
|  | 10222 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10223 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10224 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10225 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10226 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10227 | elif test "$ac_cv_kthread" = "yes" | 
|  | 10228 | then | 
|  | 10229 | CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10230 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 10231 | CXX="$CXX -Kthread" | 
|  | 10232 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10233 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10234 |  | 
|  | 10235 | posix_threads=yes | 
|  | 10236 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10237 | elif test "$ac_cv_pthread" = "yes" | 
|  | 10238 | then | 
|  | 10239 | CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10240 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 10241 | CXX="$CXX -pthread" | 
|  | 10242 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10243 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10244 |  | 
|  | 10245 | posix_threads=yes | 
|  | 10246 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10247 | else | 
|  | 10248 | if test ! -z "$with_threads" -a -d "$with_threads" | 
|  | 10249 | then LDFLAGS="$LDFLAGS -L$with_threads" | 
|  | 10250 | fi | 
|  | 10251 | if test ! -z "$withval" -a -d "$withval" | 
|  | 10252 | then LDFLAGS="$LDFLAGS -L$withval" | 
|  | 10253 | fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10254 |  | 
|  | 10255 | # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10256 | # define _POSIX_THREADS in unistd.h. Some apparently don't | 
|  | 10257 | # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
|  | 10259 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
|  | 10260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10261 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10262 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10263 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10264 | #ifdef _POSIX_THREADS | 
|  | 10265 | yes | 
|  | 10266 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10267 |  | 
|  | 10268 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10269 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10270 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10271 | unistd_defines_pthreads=yes | 
|  | 10272 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10273 | unistd_defines_pthreads=no | 
|  | 10274 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10275 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10276 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
|  | 10278 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10279 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10280 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10281 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10282 | # Just looking for pthread_create in libpthread is not enough: | 
|  | 10283 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
|  | 10284 | # So we really have to include pthread.h, and then link. | 
|  | 10285 | _libs=$LIBS | 
|  | 10286 | LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
|  | 10288 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
|  | 10289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10290 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10291 |  | 
|  | 10292 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10293 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10294 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10295 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | int | 
|  | 10297 | main () | 
|  | 10298 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10299 |  | 
|  | 10300 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10301 | ; | 
|  | 10302 | return 0; | 
|  | 10303 | } | 
|  | 10304 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10305 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10306 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10308 | $as_echo "yes" >&6; } | 
|  | 10309 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10310 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10311 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10312 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10313 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10314 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10315 | LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10316 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10317 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10318 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10319 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10320 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10321 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10322 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10323 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
|  | 10325 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10326 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10327 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10328 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10329 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10330 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10332 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10333 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10334 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10335 | Use char because int might match the return type of a GCC | 
|  | 10336 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10337 | #ifdef __cplusplus | 
|  | 10338 | extern "C" | 
|  | 10339 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10340 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10341 | int | 
|  | 10342 | main () | 
|  | 10343 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10344 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10345 | ; | 
|  | 10346 | return 0; | 
|  | 10347 | } | 
|  | 10348 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10349 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10350 | ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10351 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10352 | ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10353 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10354 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10355 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10356 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10357 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
|  | 10359 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10360 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10361 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10362 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10363 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10364 | LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10365 | THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10366 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10367 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
|  | 10369 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10370 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10371 | $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10372 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10373 | ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10374 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10376 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10377 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10378 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10379 | Use char because int might match the return type of a GCC | 
|  | 10380 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10381 | #ifdef __cplusplus | 
|  | 10382 | extern "C" | 
|  | 10383 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10385 | int | 
|  | 10386 | main () | 
|  | 10387 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10388 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10389 | ; | 
|  | 10390 | return 0; | 
|  | 10391 | } | 
|  | 10392 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10393 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10394 | ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10395 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10396 | ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10397 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10398 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10399 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10400 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10401 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
|  | 10403 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10404 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10405 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10406 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10407 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10408 | LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10409 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10410 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10411 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
|  | 10413 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10414 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10415 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10416 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10417 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10418 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10420 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10421 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10422 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10423 | Use char because int might match the return type of a GCC | 
|  | 10424 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10425 | #ifdef __cplusplus | 
|  | 10426 | extern "C" | 
|  | 10427 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10428 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10429 | int | 
|  | 10430 | main () | 
|  | 10431 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10432 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10433 | ; | 
|  | 10434 | return 0; | 
|  | 10435 | } | 
|  | 10436 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10437 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10438 | ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10439 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10440 | ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10441 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10442 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10443 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10444 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10445 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
|  | 10447 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10448 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10449 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10450 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10451 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10452 | LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10453 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10454 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10455 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
|  | 10457 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10458 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10459 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10460 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10461 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10462 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10464 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10465 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10466 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10467 | Use char because int might match the return type of a GCC | 
|  | 10468 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10469 | #ifdef __cplusplus | 
|  | 10470 | extern "C" | 
|  | 10471 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10472 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10473 | int | 
|  | 10474 | main () | 
|  | 10475 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10476 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10477 | ; | 
|  | 10478 | return 0; | 
|  | 10479 | } | 
|  | 10480 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10481 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10482 | ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10483 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10484 | ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10485 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10486 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10487 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10488 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10489 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
|  | 10491 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10492 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10493 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10494 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10495 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10496 | LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10497 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10498 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10499 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10500 | USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10501 | fi | 
|  | 10502 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10503 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10504 | fi | 
|  | 10505 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10506 | fi | 
|  | 10507 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10508 | fi | 
|  | 10509 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10510 | fi | 
|  | 10511 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10512 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10513 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10514 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10515 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
|  | 10517 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10518 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10519 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10520 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10521 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10522 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10524 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10525 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10526 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10527 | Use char because int might match the return type of a GCC | 
|  | 10528 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10529 | #ifdef __cplusplus | 
|  | 10530 | extern "C" | 
|  | 10531 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10532 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10533 | int | 
|  | 10534 | main () | 
|  | 10535 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10536 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10537 | ; | 
|  | 10538 | return 0; | 
|  | 10539 | } | 
|  | 10540 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10541 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10542 | ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10543 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10544 | ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10545 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10546 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10547 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10548 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10549 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
|  | 10551 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10552 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10553 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10554 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10555 | LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10556 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10557 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10558 | fi | 
|  | 10559 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10560 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 10561 | if test "$posix_threads" != "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
|  | 10563 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10564 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10565 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10566 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10567 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10568 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10570 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10571 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10572 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10573 | Use char because int might match the return type of a GCC | 
|  | 10574 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10575 | #ifdef __cplusplus | 
|  | 10576 | extern "C" | 
|  | 10577 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10578 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10579 | int | 
|  | 10580 | main () | 
|  | 10581 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10582 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10583 | ; | 
|  | 10584 | return 0; | 
|  | 10585 | } | 
|  | 10586 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10587 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10588 | ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10589 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10590 | ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10591 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10592 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10593 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10594 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10595 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
|  | 10597 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10598 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10599 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10600 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10601 | LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10602 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10603 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10604 | fi | 
|  | 10605 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10606 | fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10607 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10608 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10609 | if test "$posix_threads" = "yes"; then | 
|  | 10610 | if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10611 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10612 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10613 |  | 
|  | 10614 | fi | 
|  | 10615 |  | 
|  | 10616 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
|  | 10617 | case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10618 | SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10619 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10620 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10621 | ;; | 
|  | 10622 | SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10623 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10624 |  | 
|  | 10625 | ;; | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10626 | AIX/*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10627 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 10628 |  | 
|  | 10629 | ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10630 | esac | 
|  | 10631 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
|  | 10633 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10634 | if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10635 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10636 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10637 | if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10638 | ac_cv_pthread_system_supported=no | 
|  | 10639 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10641 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10642 |  | 
|  | 10643 | #include <stdio.h> | 
|  | 10644 | #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10645 | void *foo(void *parm) { | 
|  | 10646 | return NULL; | 
|  | 10647 | } | 
|  | 10648 | main() { | 
|  | 10649 | pthread_attr_t attr; | 
|  | 10650 | pthread_t id; | 
|  | 10651 | if (pthread_attr_init(&attr)) exit(-1); | 
|  | 10652 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
|  | 10653 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
|  | 10654 | exit(0); | 
|  | 10655 | } | 
|  | 10656 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10657 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10658 | ac_cv_pthread_system_supported=yes | 
|  | 10659 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10660 | ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10661 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10662 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 10663 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10664 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10665 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10666 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10667 | fi | 
|  | 10668 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
|  | 10670 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10671 | if test "$ac_cv_pthread_system_supported" = "yes"; then | 
|  | 10672 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10673 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10674 |  | 
|  | 10675 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10676 | for ac_func in pthread_sigmask | 
|  | 10677 | do : | 
|  | 10678 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10679 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10680 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10681 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10682 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10683 | case $ac_sys_system in | 
|  | 10684 | CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10685 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10686 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10687 |  | 
|  | 10688 | ;; | 
|  | 10689 | esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10690 | fi | 
|  | 10691 | done | 
|  | 10692 |  | 
| Christian Heimes | f77b4b2 | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 10693 | for ac_func in pthread_atfork | 
|  | 10694 | do : | 
|  | 10695 | ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" | 
|  | 10696 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : | 
|  | 10697 | cat >>confdefs.h <<_ACEOF | 
|  | 10698 | #define HAVE_PTHREAD_ATFORK 1 | 
|  | 10699 | _ACEOF | 
|  | 10700 |  | 
|  | 10701 | fi | 
|  | 10702 | done | 
|  | 10703 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10704 | fi | 
|  | 10705 |  | 
|  | 10706 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10707 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10708 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
|  | 10710 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10711 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10712 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10713 | enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10714 | no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10716 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10717 | ipv6=no | 
|  | 10718 | ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10719 | *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10720 | $as_echo "yes" >&6; } | 
|  | 10721 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10722 |  | 
|  | 10723 | ipv6=yes | 
|  | 10724 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10725 | esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10726 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10727 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10729 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10730 | /* AF_INET6 available check */ | 
|  | 10731 | #include <sys/types.h> | 
|  | 10732 | #include <sys/socket.h> | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10733 | int | 
|  | 10734 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10735 | { | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10736 | int domain = AF_INET6; | 
|  | 10737 | ; | 
|  | 10738 | return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10739 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10740 | _ACEOF | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10741 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10742 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10744 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10745 | ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10746 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10747 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10748 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10750 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10751 | ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10752 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10753 | fi | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10755 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10756 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
|  | 10758 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
|  | 10759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10760 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10761 |  | 
|  | 10762 | #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10763 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10764 | int | 
|  | 10765 | main () | 
|  | 10766 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10767 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10768 | x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10769 | ; | 
|  | 10770 | return 0; | 
|  | 10771 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10772 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10773 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10774 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10775 |  | 
|  | 10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10777 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10778 | ipv6=yes | 
|  | 10779 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10780 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10781 |  | 
|  | 10782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10783 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10784 | ipv6=no | 
|  | 10785 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10786 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10788 | fi | 
|  | 10789 |  | 
|  | 10790 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10791 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10792 |  | 
|  | 10793 | fi | 
|  | 10794 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10795 | fi | 
|  | 10796 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10797 |  | 
|  | 10798 | ipv6type=unknown | 
|  | 10799 | ipv6lib=none | 
|  | 10800 | ipv6trylibc=no | 
|  | 10801 |  | 
|  | 10802 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
|  | 10804 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10805 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
|  | 10806 | do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10807 | case $i in | 
|  | 10808 | inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10810 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10811 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10812 | #include <netinet/in.h> | 
|  | 10813 | #ifdef IPV6_INRIA_VERSION | 
|  | 10814 | yes | 
|  | 10815 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10816 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10817 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10818 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10819 | ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10820 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10821 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10822 |  | 
|  | 10823 | ;; | 
|  | 10824 | kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10826 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10827 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10828 | #include <netinet/in.h> | 
|  | 10829 | #ifdef __KAME__ | 
|  | 10830 | yes | 
|  | 10831 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10832 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10833 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10834 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10835 | ipv6type=$i; | 
|  | 10836 | ipv6lib=inet6 | 
|  | 10837 | ipv6libdir=/usr/local/v6/lib | 
|  | 10838 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10839 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10840 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10841 |  | 
|  | 10842 | ;; | 
|  | 10843 | linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10845 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10846 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10847 | #include <features.h> | 
|  | 10848 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
|  | 10849 | yes | 
|  | 10850 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10851 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10852 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10853 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10854 | ipv6type=$i; | 
|  | 10855 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10856 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10857 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10858 |  | 
|  | 10859 | ;; | 
|  | 10860 | linux-inet6) | 
|  | 10861 | if test -d /usr/inet6; then | 
|  | 10862 | ipv6type=$i | 
|  | 10863 | ipv6lib=inet6 | 
|  | 10864 | ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10865 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10866 | fi | 
|  | 10867 | ;; | 
|  | 10868 | solaris) | 
|  | 10869 | if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10870 | if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10871 | ipv6type=$i | 
|  | 10872 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10873 | fi | 
|  | 10874 | fi | 
|  | 10875 | ;; | 
|  | 10876 | toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10878 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10879 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10880 | #include <sys/param.h> | 
|  | 10881 | #ifdef _TOSHIBA_INET6 | 
|  | 10882 | yes | 
|  | 10883 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10884 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10885 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10886 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10887 | ipv6type=$i; | 
|  | 10888 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10889 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10890 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10891 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10892 |  | 
|  | 10893 | ;; | 
|  | 10894 | v6d) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10896 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10897 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10898 | #include </usr/local/v6/include/sys/v6config.h> | 
|  | 10899 | #ifdef __V6D__ | 
|  | 10900 | yes | 
|  | 10901 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10902 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10904 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10905 | ipv6type=$i; | 
|  | 10906 | ipv6lib=v6; | 
|  | 10907 | ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10908 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10909 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10910 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10911 |  | 
|  | 10912 | ;; | 
|  | 10913 | zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10915 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10916 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10917 | #include <sys/param.h> | 
|  | 10918 | #ifdef _ZETA_MINAMI_INET6 | 
|  | 10919 | yes | 
|  | 10920 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10921 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10922 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10923 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10924 | ipv6type=$i; | 
|  | 10925 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10926 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10927 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10928 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10929 |  | 
|  | 10930 | ;; | 
|  | 10931 | esac | 
|  | 10932 | if test "$ipv6type" != "unknown"; then | 
|  | 10933 | break | 
|  | 10934 | fi | 
|  | 10935 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
|  | 10937 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10938 | fi | 
|  | 10939 |  | 
|  | 10940 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
|  | 10941 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
|  | 10942 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
|  | 10943 | echo "using lib$ipv6lib" | 
|  | 10944 | else | 
|  | 10945 | if test $ipv6trylibc = "yes"; then | 
|  | 10946 | echo "using libc" | 
|  | 10947 | else | 
|  | 10948 | echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
|  | 10949 | echo "You need to fetch lib$ipv6lib.a from appropriate" | 
|  | 10950 | echo 'ipv6 kit and compile beforehand.' | 
|  | 10951 | exit 1 | 
|  | 10952 | fi | 
|  | 10953 | fi | 
|  | 10954 | fi | 
|  | 10955 |  | 
| Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 10956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 | 
|  | 10957 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | 
|  | 10958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 10959 | /* end confdefs.h.  */ | 
|  | 10960 | /* CAN_RAW_FD_FRAMES available check */ | 
|  | 10961 | #include <linux/can/raw.h> | 
|  | 10962 | int | 
|  | 10963 | main () | 
|  | 10964 | { | 
|  | 10965 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | 
|  | 10966 | ; | 
|  | 10967 | return 0; | 
|  | 10968 | } | 
|  | 10969 | _ACEOF | 
|  | 10970 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 10971 |  | 
|  | 10972 |  | 
|  | 10973 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h | 
|  | 10974 |  | 
|  | 10975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10976 | $as_echo "yes" >&6; } | 
|  | 10977 |  | 
|  | 10978 | else | 
|  | 10979 |  | 
|  | 10980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10981 | $as_echo "no" >&6; } | 
|  | 10982 |  | 
|  | 10983 | fi | 
|  | 10984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10985 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10986 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
|  | 10988 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10989 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10990 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10991 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10992 | withval=$with_doc_strings; | 
|  | 10993 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10994 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10995 |  | 
|  | 10996 | if test -z "$with_doc_strings" | 
|  | 10997 | then with_doc_strings="yes" | 
|  | 10998 | fi | 
|  | 10999 | if test "$with_doc_strings" != "no" | 
|  | 11000 | then | 
|  | 11001 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11002 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11003 |  | 
|  | 11004 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
|  | 11006 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11007 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11008 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
|  | 11010 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11011 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11012 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11013 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11014 | withval=$with_pymalloc; | 
|  | 11015 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11016 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11017 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11018 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 11019 | then | 
|  | 11020 | with_pymalloc="yes" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11021 | fi | 
|  | 11022 | if test "$with_pymalloc" != "no" | 
|  | 11023 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11024 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11025 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11026 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11027 | ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11028 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
|  | 11030 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11031 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11032 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
|  | 11034 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11035 |  | 
|  | 11036 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11037 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11038 | withval=$with_valgrind; | 
|  | 11039 | else | 
|  | 11040 | with_valgrind=no | 
|  | 11041 | fi | 
|  | 11042 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
|  | 11044 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11045 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11046 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11047 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11048 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11049 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11050 |  | 
|  | 11051 | else | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11052 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11053 |  | 
|  | 11054 | fi | 
|  | 11055 |  | 
|  | 11056 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 11057 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11058 | fi | 
|  | 11059 |  | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11060 | # Check for DTrace support | 
|  | 11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 | 
|  | 11062 | $as_echo_n "checking for --with-dtrace... " >&6; } | 
|  | 11063 |  | 
|  | 11064 | # Check whether --with-dtrace was given. | 
|  | 11065 | if test "${with_dtrace+set}" = set; then : | 
|  | 11066 | withval=$with_dtrace; | 
|  | 11067 | else | 
|  | 11068 | with_dtrace=no | 
|  | 11069 | fi | 
|  | 11070 |  | 
|  | 11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 | 
|  | 11072 | $as_echo "$with_dtrace" >&6; } | 
|  | 11073 |  | 
|  | 11074 |  | 
|  | 11075 |  | 
|  | 11076 |  | 
|  | 11077 |  | 
|  | 11078 | DTRACE= | 
|  | 11079 | DFLAGS= | 
|  | 11080 | DTRACE_HEADERS= | 
|  | 11081 | DTRACE_OBJS= | 
|  | 11082 |  | 
|  | 11083 | if test "$with_dtrace" = "yes" | 
|  | 11084 | then | 
|  | 11085 | # Extract the first word of "dtrace", so it can be a program name with args. | 
|  | 11086 | set dummy dtrace; ac_word=$2 | 
|  | 11087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11088 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 11089 | if ${ac_cv_path_DTRACE+:} false; then : | 
|  | 11090 | $as_echo_n "(cached) " >&6 | 
|  | 11091 | else | 
|  | 11092 | case $DTRACE in | 
|  | 11093 | [\\/]* | ?:[\\/]*) | 
|  | 11094 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. | 
|  | 11095 | ;; | 
|  | 11096 | *) | 
|  | 11097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11098 | for as_dir in $PATH | 
|  | 11099 | do | 
|  | 11100 | IFS=$as_save_IFS | 
|  | 11101 | test -z "$as_dir" && as_dir=. | 
|  | 11102 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 11104 | ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" | 
|  | 11105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11106 | break 2 | 
|  | 11107 | fi | 
|  | 11108 | done | 
|  | 11109 | done | 
|  | 11110 | IFS=$as_save_IFS | 
|  | 11111 |  | 
|  | 11112 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" | 
|  | 11113 | ;; | 
|  | 11114 | esac | 
|  | 11115 | fi | 
|  | 11116 | DTRACE=$ac_cv_path_DTRACE | 
|  | 11117 | if test -n "$DTRACE"; then | 
|  | 11118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 | 
|  | 11119 | $as_echo "$DTRACE" >&6; } | 
|  | 11120 | else | 
|  | 11121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11122 | $as_echo "no" >&6; } | 
|  | 11123 | fi | 
|  | 11124 |  | 
|  | 11125 |  | 
|  | 11126 | if test "$DTRACE" = "not found"; then | 
|  | 11127 | as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 | 
|  | 11128 | fi | 
|  | 11129 |  | 
|  | 11130 | $as_echo "#define WITH_DTRACE 1" >>confdefs.h | 
|  | 11131 |  | 
|  | 11132 | DTRACE_HEADERS="Include/pydtrace_probes.h" | 
|  | 11133 |  | 
|  | 11134 | # On OS X, DTrace providers do not need to be explicitly compiled and | 
|  | 11135 | # linked into the binary. Correspondingly, dtrace(1) is missing the ELF | 
|  | 11136 | # generation flag '-G'. We check for presence of this flag, rather than | 
|  | 11137 | # hardcoding support by OS, in the interest of robustness. | 
|  | 11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 | 
|  | 11139 | $as_echo_n "checking whether DTrace probes require linking... " >&6; } | 
|  | 11140 | if ${ac_cv_dtrace_link+:} false; then : | 
|  | 11141 | $as_echo_n "(cached) " >&6 | 
|  | 11142 | else | 
|  | 11143 | ac_cv_dtrace_link=no | 
|  | 11144 | echo 'BEGIN' > conftest.d | 
|  | 11145 | "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ | 
|  | 11146 | ac_cv_dtrace_link=yes | 
|  | 11147 |  | 
|  | 11148 | fi | 
|  | 11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 | 
|  | 11150 | $as_echo "$ac_cv_dtrace_link" >&6; } | 
|  | 11151 | if test "$ac_cv_dtrace_link" = "yes"; then | 
|  | 11152 | DTRACE_OBJS="Python/pydtrace.o" | 
|  | 11153 | fi | 
|  | 11154 | fi | 
|  | 11155 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11156 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11157 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11158 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11159 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11160 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
|  | 11161 | # platforms, such as AIX, have dlopen(), but don't want to use it. | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11162 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11163 | do : | 
|  | 11164 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11165 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11166 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11167 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11168 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11169 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11170 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11171 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11172 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11173 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11174 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
|  | 11175 | # loading of modules. | 
|  | 11176 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
|  | 11178 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11179 | if test -z "$DYNLOADFILE" | 
|  | 11180 | then | 
|  | 11181 | case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 11182 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
|  | 11183 | if test "$ac_cv_func_dlopen" = yes | 
|  | 11184 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 11185 | else DYNLOADFILE="dynload_aix.o" | 
|  | 11186 | fi | 
|  | 11187 | ;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11188 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11189 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
|  | 11190 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11191 | *) | 
|  | 11192 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
|  | 11193 | # out any dynamic loading | 
|  | 11194 | if test "$ac_cv_func_dlopen" = yes | 
|  | 11195 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 11196 | else DYNLOADFILE="dynload_stub.o" | 
|  | 11197 | fi | 
|  | 11198 | ;; | 
|  | 11199 | esac | 
|  | 11200 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
|  | 11202 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11203 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
|  | 11204 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11205 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11206 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11207 |  | 
|  | 11208 | fi | 
|  | 11209 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11210 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
|  | 11211 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11212 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
|  | 11214 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11215 | if test -z "$MACHDEP_OBJS" | 
|  | 11216 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11217 | MACHDEP_OBJS=$extra_machdep_objs | 
|  | 11218 | else | 
|  | 11219 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11220 | fi | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11221 | if test -z "$MACHDEP_OBJS"; then | 
|  | 11222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 11223 | $as_echo "none" >&6; } | 
|  | 11224 | else | 
|  | 11225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | 
|  | 11226 | $as_echo "$MACHDEP_OBJS" >&6; } | 
|  | 11227 | fi | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11228 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11229 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 11230 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 11231 | clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11232 | fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ | 
| Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 11233 | futimens futimes gai_strerror getentropy \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11234 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 11235 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 11236 | if_nameindex \ | 
| Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 11237 | initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ | 
|  | 11238 | memrchr mbrtowc mkdirat mkfifo \ | 
| Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 11239 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11240 | posix_fallocate posix_fadvise pread \ | 
| Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 11241 | pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 11242 | select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ | 
| Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 11243 | setgid sethostname \ | 
| Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 11244 | setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ | 
| Charles-François Natali | ea0d5fc | 2011-09-06 19:03:35 +0200 | [diff] [blame] | 11245 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ | 
|  | 11246 | sched_rr_get_interval \ | 
| Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 11247 | sigaction sigaltstack siginterrupt sigpending sigrelse \ | 
|  | 11248 | sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11249 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11250 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ | 
| Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 11251 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11252 | do : | 
|  | 11253 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11254 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11255 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11256 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11257 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11258 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11259 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11260 | fi | 
|  | 11261 | done | 
|  | 11262 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11263 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11264 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> | 
|  | 11265 | #include <dirent.h> | 
|  | 11266 | " | 
|  | 11267 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | 
|  | 11268 |  | 
|  | 11269 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | 
|  | 11270 |  | 
|  | 11271 | fi | 
|  | 11272 |  | 
|  | 11273 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11274 | # For some functions, having a definition is not sufficient, since | 
|  | 11275 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
|  | 11277 | $as_echo_n "checking for chroot... " >&6; } | 
|  | 11278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11279 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11280 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11281 | int | 
|  | 11282 | main () | 
|  | 11283 | { | 
|  | 11284 | void *x=chroot | 
|  | 11285 | ; | 
|  | 11286 | return 0; | 
|  | 11287 | } | 
|  | 11288 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11289 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11290 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11291 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11292 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11294 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11295 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11297 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11298 |  | 
|  | 11299 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
|  | 11302 | $as_echo_n "checking for link... " >&6; } | 
|  | 11303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11304 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11305 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11306 | int | 
|  | 11307 | main () | 
|  | 11308 | { | 
|  | 11309 | void *x=link | 
|  | 11310 | ; | 
|  | 11311 | return 0; | 
|  | 11312 | } | 
|  | 11313 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11314 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11315 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11316 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11317 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11319 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11320 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11322 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11323 |  | 
|  | 11324 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
|  | 11327 | $as_echo_n "checking for symlink... " >&6; } | 
|  | 11328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11329 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11330 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11331 | int | 
|  | 11332 | main () | 
|  | 11333 | { | 
|  | 11334 | void *x=symlink | 
|  | 11335 | ; | 
|  | 11336 | return 0; | 
|  | 11337 | } | 
|  | 11338 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11339 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11340 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11341 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11342 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11344 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11345 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11347 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11348 |  | 
|  | 11349 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
|  | 11352 | $as_echo_n "checking for fchdir... " >&6; } | 
|  | 11353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11354 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11355 | #include <unistd.h> | 
|  | 11356 | int | 
|  | 11357 | main () | 
|  | 11358 | { | 
|  | 11359 | void *x=fchdir | 
|  | 11360 | ; | 
|  | 11361 | return 0; | 
|  | 11362 | } | 
|  | 11363 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11364 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11365 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11366 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11367 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11369 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11370 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11372 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11373 |  | 
|  | 11374 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
|  | 11377 | $as_echo_n "checking for fsync... " >&6; } | 
|  | 11378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11379 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11380 | #include <unistd.h> | 
|  | 11381 | int | 
|  | 11382 | main () | 
|  | 11383 | { | 
|  | 11384 | void *x=fsync | 
|  | 11385 | ; | 
|  | 11386 | return 0; | 
|  | 11387 | } | 
|  | 11388 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11389 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11390 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11391 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11392 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11394 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11395 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11397 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11398 |  | 
|  | 11399 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
|  | 11402 | $as_echo_n "checking for fdatasync... " >&6; } | 
|  | 11403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11404 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11405 | #include <unistd.h> | 
|  | 11406 | int | 
|  | 11407 | main () | 
|  | 11408 | { | 
|  | 11409 | void *x=fdatasync | 
|  | 11410 | ; | 
|  | 11411 | return 0; | 
|  | 11412 | } | 
|  | 11413 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11414 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11415 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11416 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11417 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11419 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11420 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11422 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11423 |  | 
|  | 11424 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
|  | 11427 | $as_echo_n "checking for epoll... " >&6; } | 
|  | 11428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11429 | /* end confdefs.h.  */ | 
|  | 11430 | #include <sys/epoll.h> | 
|  | 11431 | int | 
|  | 11432 | main () | 
|  | 11433 | { | 
|  | 11434 | void *x=epoll_create | 
|  | 11435 | ; | 
|  | 11436 | return 0; | 
|  | 11437 | } | 
|  | 11438 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11439 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11440 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11441 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11442 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11444 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11445 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11447 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11448 |  | 
|  | 11449 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 | 
|  | 11452 | $as_echo_n "checking for epoll_create1... " >&6; } | 
|  | 11453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11454 | /* end confdefs.h.  */ | 
|  | 11455 | #include <sys/epoll.h> | 
|  | 11456 | int | 
|  | 11457 | main () | 
|  | 11458 | { | 
|  | 11459 | void *x=epoll_create1 | 
|  | 11460 | ; | 
|  | 11461 | return 0; | 
|  | 11462 | } | 
|  | 11463 | _ACEOF | 
|  | 11464 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11465 |  | 
|  | 11466 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | 
|  | 11467 |  | 
|  | 11468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11469 | $as_echo "yes" >&6; } | 
|  | 11470 | else | 
|  | 11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11472 | $as_echo "no" >&6; } | 
|  | 11473 |  | 
|  | 11474 | fi | 
|  | 11475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
|  | 11477 | $as_echo_n "checking for kqueue... " >&6; } | 
|  | 11478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11479 | /* end confdefs.h.  */ | 
|  | 11480 |  | 
|  | 11481 | #include <sys/types.h> | 
|  | 11482 | #include <sys/event.h> | 
|  | 11483 |  | 
|  | 11484 | int | 
|  | 11485 | main () | 
|  | 11486 | { | 
|  | 11487 | int x=kqueue() | 
|  | 11488 | ; | 
|  | 11489 | return 0; | 
|  | 11490 | } | 
|  | 11491 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11492 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11493 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11494 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11495 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11497 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11498 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11500 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11501 |  | 
|  | 11502 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 | 
|  | 11505 | $as_echo_n "checking for prlimit... " >&6; } | 
|  | 11506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11507 | /* end confdefs.h.  */ | 
|  | 11508 |  | 
|  | 11509 | #include <sys/time.h> | 
|  | 11510 | #include <sys/resource.h> | 
|  | 11511 |  | 
|  | 11512 | int | 
|  | 11513 | main () | 
|  | 11514 | { | 
|  | 11515 | void *x=prlimit | 
|  | 11516 | ; | 
|  | 11517 | return 0; | 
|  | 11518 | } | 
|  | 11519 | _ACEOF | 
|  | 11520 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11521 |  | 
|  | 11522 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | 
|  | 11523 |  | 
|  | 11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11525 | $as_echo "yes" >&6; } | 
|  | 11526 | else | 
|  | 11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11528 | $as_echo "no" >&6; } | 
|  | 11529 |  | 
|  | 11530 | fi | 
|  | 11531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11532 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11533 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
|  | 11534 | # functions ctermid_r, setgroups in the library, but no prototype | 
|  | 11535 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
|  | 11536 | # address to avoid compiler warnings and potential miscompilations | 
|  | 11537 | # because of the missing prototypes. | 
|  | 11538 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
|  | 11540 | $as_echo_n "checking for ctermid_r... " >&6; } | 
|  | 11541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11542 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11543 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11544 | #include <stdio.h> | 
|  | 11545 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11546 | int | 
|  | 11547 | main () | 
|  | 11548 | { | 
|  | 11549 | void* p = ctermid_r | 
|  | 11550 | ; | 
|  | 11551 | return 0; | 
|  | 11552 | } | 
|  | 11553 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11554 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11555 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11556 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11557 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11559 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11560 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11562 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11563 |  | 
|  | 11564 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11566 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
|  | 11568 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11569 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11570 | $as_echo_n "(cached) " >&6 | 
|  | 11571 | else | 
|  | 11572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11573 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11574 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11575 | int | 
|  | 11576 | main () | 
|  | 11577 | { | 
|  | 11578 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11579 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11580 | ; | 
|  | 11581 | return 0; | 
|  | 11582 | } | 
|  | 11583 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11584 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11585 | ac_cv_flock_decl=yes | 
|  | 11586 | else | 
|  | 11587 | ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11588 |  | 
|  | 11589 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11591 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11592 | fi | 
|  | 11593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
|  | 11594 | $as_echo "$ac_cv_flock_decl" >&6; } | 
|  | 11595 | if test "x${ac_cv_flock_decl}" = xyes; then | 
|  | 11596 | for ac_func in flock | 
|  | 11597 | do : | 
|  | 11598 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11599 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11600 | cat >>confdefs.h <<_ACEOF | 
|  | 11601 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11602 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11603 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11604 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11606 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11607 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11608 | $as_echo_n "(cached) " >&6 | 
|  | 11609 | else | 
|  | 11610 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11611 | LIBS="-lbsd  $LIBS" | 
|  | 11612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11613 | /* end confdefs.h.  */ | 
|  | 11614 |  | 
|  | 11615 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11616 | Use char because int might match the return type of a GCC | 
|  | 11617 | builtin and then its argument prototype would still apply.  */ | 
|  | 11618 | #ifdef __cplusplus | 
|  | 11619 | extern "C" | 
|  | 11620 | #endif | 
|  | 11621 | char flock (); | 
|  | 11622 | int | 
|  | 11623 | main () | 
|  | 11624 | { | 
|  | 11625 | return flock (); | 
|  | 11626 | ; | 
|  | 11627 | return 0; | 
|  | 11628 | } | 
|  | 11629 | _ACEOF | 
|  | 11630 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 11631 | ac_cv_lib_bsd_flock=yes | 
|  | 11632 | else | 
|  | 11633 | ac_cv_lib_bsd_flock=no | 
|  | 11634 | fi | 
|  | 11635 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11636 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11637 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11638 | fi | 
|  | 11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
|  | 11640 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11641 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11642 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11643 |  | 
|  | 11644 |  | 
|  | 11645 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
|  | 11646 |  | 
|  | 11647 |  | 
|  | 11648 | fi | 
|  | 11649 |  | 
|  | 11650 |  | 
|  | 11651 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11652 | done | 
|  | 11653 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11654 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11655 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
|  | 11657 | $as_echo_n "checking for getpagesize... " >&6; } | 
|  | 11658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11659 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11660 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11661 | #include <unistd.h> | 
|  | 11662 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11663 | int | 
|  | 11664 | main () | 
|  | 11665 | { | 
|  | 11666 | void* p = getpagesize | 
|  | 11667 | ; | 
|  | 11668 | return 0; | 
|  | 11669 | } | 
|  | 11670 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11671 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11672 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11673 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11674 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11676 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11677 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11679 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11680 |  | 
|  | 11681 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11683 |  | 
| Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
|  | 11685 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
|  | 11686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11687 | /* end confdefs.h.  */ | 
|  | 11688 |  | 
|  | 11689 | #include <stdlib.h> | 
|  | 11690 |  | 
|  | 11691 | int | 
|  | 11692 | main () | 
|  | 11693 | { | 
|  | 11694 | int res = unsetenv("DUMMY") | 
|  | 11695 | ; | 
|  | 11696 | return 0; | 
|  | 11697 | } | 
|  | 11698 | _ACEOF | 
|  | 11699 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11701 | $as_echo "no" >&6; } | 
|  | 11702 | else | 
|  | 11703 |  | 
|  | 11704 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
|  | 11705 |  | 
|  | 11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11707 | $as_echo "yes" >&6; } | 
|  | 11708 |  | 
|  | 11709 | fi | 
|  | 11710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11711 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11712 | for ac_prog in true | 
|  | 11713 | do | 
|  | 11714 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 11715 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11717 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11718 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11719 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11720 | else | 
|  | 11721 | if test -n "$TRUE"; then | 
|  | 11722 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
|  | 11723 | else | 
|  | 11724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11725 | for as_dir in $PATH | 
|  | 11726 | do | 
|  | 11727 | IFS=$as_save_IFS | 
|  | 11728 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11729 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11730 | 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] | 11731 | ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11733 | break 2 | 
|  | 11734 | fi | 
|  | 11735 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11736 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11737 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11738 |  | 
|  | 11739 | fi | 
|  | 11740 | fi | 
|  | 11741 | TRUE=$ac_cv_prog_TRUE | 
|  | 11742 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
|  | 11744 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11745 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11747 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11748 | fi | 
|  | 11749 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11750 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11751 | test -n "$TRUE" && break | 
|  | 11752 | done | 
|  | 11753 | test -n "$TRUE" || TRUE="/bin/true" | 
|  | 11754 |  | 
|  | 11755 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
|  | 11757 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11758 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11759 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11760 | else | 
|  | 11761 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11762 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11764 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11765 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11766 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11767 | Use char because int might match the return type of a GCC | 
|  | 11768 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11769 | #ifdef __cplusplus | 
|  | 11770 | extern "C" | 
|  | 11771 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11772 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11773 | int | 
|  | 11774 | main () | 
|  | 11775 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11776 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11777 | ; | 
|  | 11778 | return 0; | 
|  | 11779 | } | 
|  | 11780 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11781 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11782 | ac_cv_lib_c_inet_aton=yes | 
|  | 11783 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11784 | ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11785 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11786 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11787 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11788 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11789 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
|  | 11791 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11792 | if test "x$ac_cv_lib_c_inet_aton" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11793 | $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11794 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
|  | 11796 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11797 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11798 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11799 | else | 
|  | 11800 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11801 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11803 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11804 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11805 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11806 | Use char because int might match the return type of a GCC | 
|  | 11807 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11808 | #ifdef __cplusplus | 
|  | 11809 | extern "C" | 
|  | 11810 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11811 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11812 | int | 
|  | 11813 | main () | 
|  | 11814 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11815 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11816 | ; | 
|  | 11817 | return 0; | 
|  | 11818 | } | 
|  | 11819 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11820 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11821 | ac_cv_lib_resolv_inet_aton=yes | 
|  | 11822 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11823 | ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11824 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11825 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11826 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11827 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11828 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
|  | 11830 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11831 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11832 | cat >>confdefs.h <<_ACEOF | 
|  | 11833 | #define HAVE_LIBRESOLV 1 | 
|  | 11834 | _ACEOF | 
|  | 11835 |  | 
|  | 11836 | LIBS="-lresolv $LIBS" | 
|  | 11837 |  | 
|  | 11838 | fi | 
|  | 11839 |  | 
|  | 11840 |  | 
|  | 11841 | fi | 
|  | 11842 |  | 
|  | 11843 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11844 | # On Tru64, chflags seems to be present, but calling it will | 
|  | 11845 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
|  | 11847 | $as_echo_n "checking for chflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11848 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11849 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11850 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11851 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11852 | ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11853 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11855 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11856 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11857 | #include <sys/stat.h> | 
|  | 11858 | #include <unistd.h> | 
|  | 11859 | int main(int argc, char*argv[]) | 
|  | 11860 | { | 
|  | 11861 | if(chflags(argv[0], 0) != 0) | 
|  | 11862 | return 1; | 
|  | 11863 | return 0; | 
|  | 11864 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11865 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11866 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11867 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11868 | ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11869 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11870 | ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11871 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11872 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11873 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11874 | fi | 
|  | 11875 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11876 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11877 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
|  | 11879 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11880 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11881 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11882 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11883 | ac_cv_have_chflags="yes" | 
|  | 11884 | else | 
|  | 11885 | ac_cv_have_chflags="no" | 
|  | 11886 | fi | 
|  | 11887 |  | 
|  | 11888 | fi | 
|  | 11889 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11890 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11891 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11892 |  | 
|  | 11893 | fi | 
|  | 11894 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
|  | 11896 | $as_echo_n "checking for lchflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11897 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11898 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11899 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11900 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11901 | ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11902 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11904 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11905 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11906 | #include <sys/stat.h> | 
|  | 11907 | #include <unistd.h> | 
|  | 11908 | int main(int argc, char*argv[]) | 
|  | 11909 | { | 
|  | 11910 | if(lchflags(argv[0], 0) != 0) | 
|  | 11911 | return 1; | 
|  | 11912 | return 0; | 
|  | 11913 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11914 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11915 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11916 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11917 | ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11918 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11919 | ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11920 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11921 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11922 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11923 | fi | 
|  | 11924 |  | 
|  | 11925 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11926 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
|  | 11928 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11929 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11930 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11931 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11932 | ac_cv_have_lchflags="yes" | 
|  | 11933 | else | 
|  | 11934 | ac_cv_have_lchflags="no" | 
|  | 11935 | fi | 
|  | 11936 |  | 
|  | 11937 | fi | 
|  | 11938 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11939 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11940 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11941 |  | 
|  | 11942 | fi | 
|  | 11943 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11944 | case $ac_sys_system/$ac_sys_release in | 
|  | 11945 | Darwin/*) | 
|  | 11946 | _CUR_CFLAGS="${CFLAGS}" | 
|  | 11947 | _CUR_LDFLAGS="${LDFLAGS}" | 
|  | 11948 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
|  | 11949 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
|  | 11950 | ;; | 
|  | 11951 | esac | 
|  | 11952 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
|  | 11954 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11955 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11956 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11957 | else | 
|  | 11958 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11959 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11961 | /* end confdefs.h.  */ | 
|  | 11962 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11963 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11964 | Use char because int might match the return type of a GCC | 
|  | 11965 | builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11966 | #ifdef __cplusplus | 
|  | 11967 | extern "C" | 
|  | 11968 | #endif | 
|  | 11969 | char inflateCopy (); | 
|  | 11970 | int | 
|  | 11971 | main () | 
|  | 11972 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11973 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11974 | ; | 
|  | 11975 | return 0; | 
|  | 11976 | } | 
|  | 11977 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11978 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11979 | ac_cv_lib_z_inflateCopy=yes | 
|  | 11980 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11981 | ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11982 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11983 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11984 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11985 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11986 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
|  | 11988 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11989 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11990 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11991 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11992 |  | 
|  | 11993 | fi | 
|  | 11994 |  | 
|  | 11995 |  | 
|  | 11996 | case $ac_sys_system/$ac_sys_release in | 
|  | 11997 | Darwin/*) | 
|  | 11998 | CFLAGS="${_CUR_CFLAGS}" | 
|  | 11999 | LDFLAGS="${_CUR_LDFLAGS}" | 
|  | 12000 | ;; | 
|  | 12001 | esac | 
|  | 12002 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
|  | 12004 | $as_echo_n "checking for hstrerror... " >&6; } | 
|  | 12005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12006 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12007 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12008 | #include <netdb.h> | 
|  | 12009 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12010 | int | 
|  | 12011 | main () | 
|  | 12012 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12013 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12014 | ; | 
|  | 12015 | return 0; | 
|  | 12016 | } | 
|  | 12017 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12018 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12020 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12021 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12023 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12024 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12026 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12027 |  | 
|  | 12028 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12029 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12030 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12031 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
|  | 12033 | $as_echo_n "checking for inet_aton... " >&6; } | 
|  | 12034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12035 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12036 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12037 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12038 | #include <sys/socket.h> | 
|  | 12039 | #include <netinet/in.h> | 
|  | 12040 | #include <arpa/inet.h> | 
|  | 12041 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12042 | int | 
|  | 12043 | main () | 
|  | 12044 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12045 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12046 | ; | 
|  | 12047 | return 0; | 
|  | 12048 | } | 
|  | 12049 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12050 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12051 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12052 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12053 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12055 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12056 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12058 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12059 |  | 
|  | 12060 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12061 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12062 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12063 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
|  | 12065 | $as_echo_n "checking for inet_pton... " >&6; } | 
|  | 12066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12067 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12068 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12069 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12070 | #include <sys/socket.h> | 
|  | 12071 | #include <netinet/in.h> | 
|  | 12072 | #include <arpa/inet.h> | 
|  | 12073 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12074 | int | 
|  | 12075 | main () | 
|  | 12076 | { | 
|  | 12077 | void* p = inet_pton | 
|  | 12078 | ; | 
|  | 12079 | return 0; | 
|  | 12080 | } | 
|  | 12081 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12082 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12083 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12084 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12085 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12087 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12088 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12090 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12091 |  | 
|  | 12092 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12094 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12095 | # On some systems, setgroups is in unistd.h, on others, in grp.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
|  | 12097 | $as_echo_n "checking for setgroups... " >&6; } | 
|  | 12098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12099 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12100 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12101 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12102 | #ifdef HAVE_GRP_H | 
|  | 12103 | #include <grp.h> | 
|  | 12104 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12105 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12106 | int | 
|  | 12107 | main () | 
|  | 12108 | { | 
|  | 12109 | void* p = setgroups | 
|  | 12110 | ; | 
|  | 12111 | return 0; | 
|  | 12112 | } | 
|  | 12113 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12114 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12115 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12116 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12117 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12119 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12120 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12122 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12123 |  | 
|  | 12124 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12126 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12127 | # check for openpty and forkpty | 
|  | 12128 |  | 
|  | 12129 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12130 | do : | 
|  | 12131 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12132 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12133 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12134 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12135 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12136 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12137 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
|  | 12139 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12140 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12141 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12142 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12143 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12144 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12146 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12147 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12148 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12149 | Use char because int might match the return type of a GCC | 
|  | 12150 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12151 | #ifdef __cplusplus | 
|  | 12152 | extern "C" | 
|  | 12153 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12154 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12155 | int | 
|  | 12156 | main () | 
|  | 12157 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12158 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12159 | ; | 
|  | 12160 | return 0; | 
|  | 12161 | } | 
|  | 12162 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12163 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12164 | ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12165 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12166 | ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12167 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12168 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12169 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12170 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12171 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
|  | 12173 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12174 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12175 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12176 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12177 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
|  | 12179 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12180 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12181 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12182 | else | 
|  | 12183 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12184 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12186 | /* end confdefs.h.  */ | 
|  | 12187 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12188 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12189 | Use char because int might match the return type of a GCC | 
|  | 12190 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12191 | #ifdef __cplusplus | 
|  | 12192 | extern "C" | 
|  | 12193 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12194 | char openpty (); | 
|  | 12195 | int | 
|  | 12196 | main () | 
|  | 12197 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12198 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12199 | ; | 
|  | 12200 | return 0; | 
|  | 12201 | } | 
|  | 12202 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12203 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12204 | ac_cv_lib_bsd_openpty=yes | 
|  | 12205 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12206 | ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12207 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12208 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12209 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12210 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12211 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
|  | 12213 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12214 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12215 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12216 | LIBS="$LIBS -lbsd" | 
|  | 12217 | fi | 
|  | 12218 |  | 
|  | 12219 |  | 
|  | 12220 | fi | 
|  | 12221 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12222 |  | 
|  | 12223 | fi | 
|  | 12224 | done | 
|  | 12225 |  | 
|  | 12226 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12227 | do : | 
|  | 12228 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12229 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12230 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12231 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12232 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12233 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12234 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
|  | 12236 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12237 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12238 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12239 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12240 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12241 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12243 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12244 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12245 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12246 | Use char because int might match the return type of a GCC | 
|  | 12247 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12248 | #ifdef __cplusplus | 
|  | 12249 | extern "C" | 
|  | 12250 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12251 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12252 | int | 
|  | 12253 | main () | 
|  | 12254 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12255 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12256 | ; | 
|  | 12257 | return 0; | 
|  | 12258 | } | 
|  | 12259 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12260 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12261 | ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12262 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12263 | ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12264 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12265 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12266 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12267 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12268 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
|  | 12270 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12271 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12272 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12273 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12274 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
|  | 12276 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12277 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12278 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12279 | else | 
|  | 12280 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12281 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12283 | /* end confdefs.h.  */ | 
|  | 12284 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12285 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12286 | Use char because int might match the return type of a GCC | 
|  | 12287 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12288 | #ifdef __cplusplus | 
|  | 12289 | extern "C" | 
|  | 12290 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12291 | char forkpty (); | 
|  | 12292 | int | 
|  | 12293 | main () | 
|  | 12294 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12295 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12296 | ; | 
|  | 12297 | return 0; | 
|  | 12298 | } | 
|  | 12299 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12300 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12301 | ac_cv_lib_bsd_forkpty=yes | 
|  | 12302 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12303 | ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12304 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12305 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12306 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12307 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12308 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
|  | 12310 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12311 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12312 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12313 | LIBS="$LIBS -lbsd" | 
|  | 12314 | fi | 
|  | 12315 |  | 
|  | 12316 |  | 
|  | 12317 | fi | 
|  | 12318 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12319 |  | 
|  | 12320 | fi | 
|  | 12321 | done | 
|  | 12322 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12323 |  | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12324 | # Stuff for expat. | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12325 | for ac_func in memmove | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12326 | do : | 
|  | 12327 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12328 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12329 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12330 | #define HAVE_MEMMOVE 1 | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12331 | _ACEOF | 
|  | 12332 |  | 
|  | 12333 | fi | 
|  | 12334 | done | 
|  | 12335 |  | 
|  | 12336 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12337 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12338 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12339 | do : | 
|  | 12340 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 12341 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12342 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12343 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12344 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12345 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12346 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12347 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12348 | done | 
|  | 12349 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12350 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12351 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12352 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12353 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12354 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12355 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12356 | case " $LIBOBJS " in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12357 | *" dup2.$ac_objext "* ) ;; | 
|  | 12358 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12359 | ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12360 | esac | 
|  | 12361 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12362 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12363 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12364 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12365 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12366 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
|  | 12367 |  | 
|  | 12368 | else | 
|  | 12369 | case " $LIBOBJS " in | 
|  | 12370 | *" strdup.$ac_objext "* ) ;; | 
|  | 12371 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
|  | 12372 | ;; | 
|  | 12373 | esac | 
|  | 12374 |  | 
|  | 12375 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12376 |  | 
|  | 12377 |  | 
|  | 12378 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12379 | do : | 
|  | 12380 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12381 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12382 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12383 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12384 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12386 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12387 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12388 | int | 
|  | 12389 | main () | 
|  | 12390 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12391 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12392 | ; | 
|  | 12393 | return 0; | 
|  | 12394 | } | 
|  | 12395 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12396 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12397 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12398 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12399 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12400 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12402 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12403 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12404 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12405 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12406 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12407 | do : | 
|  | 12408 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12409 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12410 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12411 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12412 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12414 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12415 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12416 | int | 
|  | 12417 | main () | 
|  | 12418 | { | 
|  | 12419 | setpgrp(0,0); | 
|  | 12420 | ; | 
|  | 12421 | return 0; | 
|  | 12422 | } | 
|  | 12423 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12424 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12425 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12426 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12427 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12428 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12430 |  | 
|  | 12431 | fi | 
|  | 12432 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12433 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12434 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12435 | do : | 
|  | 12436 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12437 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12438 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12439 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12440 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12442 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12443 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12444 | int | 
|  | 12445 | main () | 
|  | 12446 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12447 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12448 | ; | 
|  | 12449 | return 0; | 
|  | 12450 | } | 
|  | 12451 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12452 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12453 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12454 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12455 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12456 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12457 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12458 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12459 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12461 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12462 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12463 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12464 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12465 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12466 | for ac_func in clock_gettime | 
|  | 12467 | do : | 
|  | 12468 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | 
|  | 12469 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | 
|  | 12470 | cat >>confdefs.h <<_ACEOF | 
|  | 12471 | #define HAVE_CLOCK_GETTIME 1 | 
|  | 12472 | _ACEOF | 
|  | 12473 |  | 
|  | 12474 | else | 
|  | 12475 |  | 
|  | 12476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | 
|  | 12477 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | 
|  | 12478 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | 
|  | 12479 | $as_echo_n "(cached) " >&6 | 
|  | 12480 | else | 
|  | 12481 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12482 | LIBS="-lrt  $LIBS" | 
|  | 12483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12484 | /* end confdefs.h.  */ | 
|  | 12485 |  | 
|  | 12486 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12487 | Use char because int might match the return type of a GCC | 
|  | 12488 | builtin and then its argument prototype would still apply.  */ | 
|  | 12489 | #ifdef __cplusplus | 
|  | 12490 | extern "C" | 
|  | 12491 | #endif | 
|  | 12492 | char clock_gettime (); | 
|  | 12493 | int | 
|  | 12494 | main () | 
|  | 12495 | { | 
|  | 12496 | return clock_gettime (); | 
|  | 12497 | ; | 
|  | 12498 | return 0; | 
|  | 12499 | } | 
|  | 12500 | _ACEOF | 
|  | 12501 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12502 | ac_cv_lib_rt_clock_gettime=yes | 
|  | 12503 | else | 
|  | 12504 | ac_cv_lib_rt_clock_gettime=no | 
|  | 12505 | fi | 
|  | 12506 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12507 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12508 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12509 | fi | 
|  | 12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | 
|  | 12511 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | 
|  | 12512 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | 
|  | 12513 |  | 
| Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 12514 | LIBS="$LIBS -lrt" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12515 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 
|  | 12516 |  | 
|  | 12517 |  | 
|  | 12518 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | 
|  | 12519 |  | 
|  | 12520 |  | 
|  | 12521 | fi | 
|  | 12522 |  | 
|  | 12523 |  | 
|  | 12524 | fi | 
|  | 12525 | done | 
|  | 12526 |  | 
|  | 12527 |  | 
|  | 12528 | for ac_func in clock_getres | 
|  | 12529 | do : | 
|  | 12530 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | 
|  | 12531 | if test "x$ac_cv_func_clock_getres" = xyes; then : | 
|  | 12532 | cat >>confdefs.h <<_ACEOF | 
|  | 12533 | #define HAVE_CLOCK_GETRES 1 | 
|  | 12534 | _ACEOF | 
|  | 12535 |  | 
|  | 12536 | else | 
|  | 12537 |  | 
|  | 12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | 
|  | 12539 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | 
|  | 12540 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | 
|  | 12541 | $as_echo_n "(cached) " >&6 | 
|  | 12542 | else | 
|  | 12543 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12544 | LIBS="-lrt  $LIBS" | 
|  | 12545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12546 | /* end confdefs.h.  */ | 
|  | 12547 |  | 
|  | 12548 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12549 | Use char because int might match the return type of a GCC | 
|  | 12550 | builtin and then its argument prototype would still apply.  */ | 
|  | 12551 | #ifdef __cplusplus | 
|  | 12552 | extern "C" | 
|  | 12553 | #endif | 
|  | 12554 | char clock_getres (); | 
|  | 12555 | int | 
|  | 12556 | main () | 
|  | 12557 | { | 
|  | 12558 | return clock_getres (); | 
|  | 12559 | ; | 
|  | 12560 | return 0; | 
|  | 12561 | } | 
|  | 12562 | _ACEOF | 
|  | 12563 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12564 | ac_cv_lib_rt_clock_getres=yes | 
|  | 12565 | else | 
|  | 12566 | ac_cv_lib_rt_clock_getres=no | 
|  | 12567 | fi | 
|  | 12568 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12569 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12570 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12571 | fi | 
|  | 12572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | 
|  | 12573 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | 
|  | 12574 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | 
|  | 12575 |  | 
|  | 12576 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | 
|  | 12577 |  | 
|  | 12578 |  | 
|  | 12579 | fi | 
|  | 12580 |  | 
|  | 12581 |  | 
|  | 12582 | fi | 
|  | 12583 | done | 
|  | 12584 |  | 
|  | 12585 |  | 
| Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 12586 | for ac_func in clock_settime | 
|  | 12587 | do : | 
|  | 12588 | ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" | 
|  | 12589 | if test "x$ac_cv_func_clock_settime" = xyes; then : | 
|  | 12590 | cat >>confdefs.h <<_ACEOF | 
|  | 12591 | #define HAVE_CLOCK_SETTIME 1 | 
|  | 12592 | _ACEOF | 
|  | 12593 |  | 
|  | 12594 | else | 
|  | 12595 |  | 
|  | 12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 | 
|  | 12597 | $as_echo_n "checking for clock_settime in -lrt... " >&6; } | 
|  | 12598 | if ${ac_cv_lib_rt_clock_settime+:} false; then : | 
|  | 12599 | $as_echo_n "(cached) " >&6 | 
|  | 12600 | else | 
|  | 12601 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12602 | LIBS="-lrt  $LIBS" | 
|  | 12603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12604 | /* end confdefs.h.  */ | 
|  | 12605 |  | 
|  | 12606 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12607 | Use char because int might match the return type of a GCC | 
|  | 12608 | builtin and then its argument prototype would still apply.  */ | 
|  | 12609 | #ifdef __cplusplus | 
|  | 12610 | extern "C" | 
|  | 12611 | #endif | 
|  | 12612 | char clock_settime (); | 
|  | 12613 | int | 
|  | 12614 | main () | 
|  | 12615 | { | 
|  | 12616 | return clock_settime (); | 
|  | 12617 | ; | 
|  | 12618 | return 0; | 
|  | 12619 | } | 
|  | 12620 | _ACEOF | 
|  | 12621 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12622 | ac_cv_lib_rt_clock_settime=yes | 
|  | 12623 | else | 
|  | 12624 | ac_cv_lib_rt_clock_settime=no | 
|  | 12625 | fi | 
|  | 12626 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12627 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12628 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12629 | fi | 
|  | 12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 | 
|  | 12631 | $as_echo "$ac_cv_lib_rt_clock_settime" >&6; } | 
|  | 12632 | if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : | 
|  | 12633 |  | 
|  | 12634 | $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h | 
|  | 12635 |  | 
|  | 12636 |  | 
|  | 12637 | fi | 
|  | 12638 |  | 
|  | 12639 |  | 
|  | 12640 | fi | 
|  | 12641 | done | 
|  | 12642 |  | 
|  | 12643 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
|  | 12645 | $as_echo_n "checking for major... " >&6; } | 
|  | 12646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12647 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12648 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12649 | #if defined(MAJOR_IN_MKDEV) | 
|  | 12650 | #include <sys/mkdev.h> | 
|  | 12651 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 12652 | #include <sys/sysmacros.h> | 
|  | 12653 | #else | 
|  | 12654 | #include <sys/types.h> | 
|  | 12655 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12656 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12657 | int | 
|  | 12658 | main () | 
|  | 12659 | { | 
|  | 12660 |  | 
|  | 12661 | makedev(major(0),minor(0)); | 
|  | 12662 |  | 
|  | 12663 | ; | 
|  | 12664 | return 0; | 
|  | 12665 | } | 
|  | 12666 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12667 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12668 |  | 
|  | 12669 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12670 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12671 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 12673 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12674 |  | 
|  | 12675 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12676 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12678 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12679 |  | 
|  | 12680 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12681 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12682 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12683 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12684 | # 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] | 12685 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
|  | 12687 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
|  | 12688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12689 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12690 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12691 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12692 | #include <sys/socket.h> | 
|  | 12693 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12694 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12695 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12696 | int | 
|  | 12697 | main () | 
|  | 12698 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12699 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12700 | ; | 
|  | 12701 | return 0; | 
|  | 12702 | } | 
|  | 12703 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12704 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12705 | have_getaddrinfo=yes | 
|  | 12706 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12707 | have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12708 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12709 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12710 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
|  | 12712 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12713 | if test $have_getaddrinfo = yes | 
|  | 12714 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
|  | 12716 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12717 | if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12718 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12719 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12720 | if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12721 |  | 
|  | 12722 | if test "${enable_ipv6+set}" = set; then | 
|  | 12723 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
|  | 12724 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12725 | ac_cv_buggy_getaddrinfo=yes | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12726 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12727 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12729 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12730 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 12731 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12732 | #include <sys/types.h> | 
|  | 12733 | #include <netdb.h> | 
|  | 12734 | #include <string.h> | 
|  | 12735 | #include <sys/socket.h> | 
|  | 12736 | #include <netinet/in.h> | 
|  | 12737 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12738 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12739 | { | 
|  | 12740 | int passive, gaierr, inet4 = 0, inet6 = 0; | 
|  | 12741 | struct addrinfo hints, *ai, *aitop; | 
|  | 12742 | char straddr[INET6_ADDRSTRLEN], strport[16]; | 
|  | 12743 |  | 
|  | 12744 | for (passive = 0; passive <= 1; passive++) { | 
|  | 12745 | memset(&hints, 0, sizeof(hints)); | 
|  | 12746 | hints.ai_family = AF_UNSPEC; | 
|  | 12747 | hints.ai_flags = passive ? AI_PASSIVE : 0; | 
|  | 12748 | hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 12749 | hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12750 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
|  | 12751 | (void)gai_strerror(gaierr); | 
|  | 12752 | goto bad; | 
|  | 12753 | } | 
|  | 12754 | for (ai = aitop; ai; ai = ai->ai_next) { | 
|  | 12755 | if (ai->ai_addr == NULL || | 
|  | 12756 | ai->ai_addrlen == 0 || | 
|  | 12757 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
|  | 12758 | straddr, sizeof(straddr), strport, sizeof(strport), | 
|  | 12759 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
|  | 12760 | goto bad; | 
|  | 12761 | } | 
|  | 12762 | switch (ai->ai_family) { | 
|  | 12763 | case AF_INET: | 
|  | 12764 | if (strcmp(strport, "54321") != 0) { | 
|  | 12765 | goto bad; | 
|  | 12766 | } | 
|  | 12767 | if (passive) { | 
|  | 12768 | if (strcmp(straddr, "0.0.0.0") != 0) { | 
|  | 12769 | goto bad; | 
|  | 12770 | } | 
|  | 12771 | } else { | 
|  | 12772 | if (strcmp(straddr, "127.0.0.1") != 0) { | 
|  | 12773 | goto bad; | 
|  | 12774 | } | 
|  | 12775 | } | 
|  | 12776 | inet4++; | 
|  | 12777 | break; | 
|  | 12778 | case AF_INET6: | 
|  | 12779 | if (strcmp(strport, "54321") != 0) { | 
|  | 12780 | goto bad; | 
|  | 12781 | } | 
|  | 12782 | if (passive) { | 
|  | 12783 | if (strcmp(straddr, "::") != 0) { | 
|  | 12784 | goto bad; | 
|  | 12785 | } | 
|  | 12786 | } else { | 
|  | 12787 | if (strcmp(straddr, "::1") != 0) { | 
|  | 12788 | goto bad; | 
|  | 12789 | } | 
|  | 12790 | } | 
|  | 12791 | inet6++; | 
|  | 12792 | break; | 
|  | 12793 | case AF_UNSPEC: | 
|  | 12794 | goto bad; | 
|  | 12795 | break; | 
|  | 12796 | default: | 
|  | 12797 | /* another family support? */ | 
|  | 12798 | break; | 
|  | 12799 | } | 
|  | 12800 | } | 
| Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 12801 | freeaddrinfo(aitop); | 
|  | 12802 | aitop = NULL; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12803 | } | 
|  | 12804 |  | 
|  | 12805 | if (!(inet4 == 0 || inet4 == 2)) | 
|  | 12806 | goto bad; | 
|  | 12807 | if (!(inet6 == 0 || inet6 == 2)) | 
|  | 12808 | goto bad; | 
|  | 12809 |  | 
|  | 12810 | if (aitop) | 
|  | 12811 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12812 | return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12813 |  | 
|  | 12814 | bad: | 
|  | 12815 | if (aitop) | 
|  | 12816 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12817 | return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12818 | } | 
|  | 12819 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12820 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12821 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12822 | ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12823 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12824 | ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12825 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12826 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12827 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12828 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12829 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12830 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12831 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12832 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12833 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
|  | 12835 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
|  | 12836 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12837 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12838 | then | 
|  | 12839 | if test $ipv6 = yes | 
|  | 12840 | then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12841 | echo 'Fatal: You must get working getaddrinfo() function.' | 
|  | 12842 | echo '       or you can specify "--disable-ipv6"'. | 
|  | 12843 | exit 1 | 
|  | 12844 | fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12845 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12846 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12847 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12848 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12849 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12850 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12851 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12852 | do : | 
|  | 12853 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12854 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12855 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12856 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12857 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12858 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12859 | fi | 
|  | 12860 | done | 
|  | 12861 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12862 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12863 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 12865 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12866 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12867 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12868 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12870 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12871 | #include <sys/types.h> | 
|  | 12872 | #include <sys/time.h> | 
|  | 12873 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12874 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 | int | 
|  | 12876 | main () | 
|  | 12877 | { | 
|  | 12878 | if ((struct tm *) 0) | 
|  | 12879 | return 0; | 
|  | 12880 | ; | 
|  | 12881 | return 0; | 
|  | 12882 | } | 
|  | 12883 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12884 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12885 | ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12886 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12887 | ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12888 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12890 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
|  | 12892 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12893 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12894 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12895 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12896 |  | 
|  | 12897 | fi | 
|  | 12898 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 12900 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12901 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12902 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12903 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12905 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12906 | #include <sys/types.h> | 
|  | 12907 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12908 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12909 | int | 
|  | 12910 | main () | 
|  | 12911 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12912 | struct tm tm; | 
|  | 12913 | int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12914 | return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12915 | ; | 
|  | 12916 | return 0; | 
|  | 12917 | } | 
|  | 12918 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12919 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12920 | ac_cv_struct_tm=time.h | 
|  | 12921 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12922 | ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12923 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12925 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
|  | 12927 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12928 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12929 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12930 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12931 |  | 
|  | 12932 | fi | 
|  | 12933 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12934 | 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] | 12935 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12936 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12937 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12938 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12939 |  | 
|  | 12940 | cat >>confdefs.h <<_ACEOF | 
|  | 12941 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 12942 | _ACEOF | 
|  | 12943 |  | 
|  | 12944 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12945 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12946 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 12948 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12949 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12950 |  | 
|  | 12951 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12952 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 12953 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12954 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12955 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12956 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12957 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12958 | fi | 
|  | 12959 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12960 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12961 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12962 | _ACEOF | 
|  | 12963 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 12965 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12966 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12967 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12968 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12970 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12971 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12972 | #if !HAVE_DECL_TZNAME | 
|  | 12973 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12974 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12975 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12976 | int | 
|  | 12977 | main () | 
|  | 12978 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12979 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12980 | ; | 
|  | 12981 | return 0; | 
|  | 12982 | } | 
|  | 12983 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12984 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12985 | ac_cv_var_tzname=yes | 
|  | 12986 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12987 | ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12988 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12989 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12990 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12991 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 12993 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12994 | if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12995 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12996 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12997 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12998 | fi | 
|  | 12999 | fi | 
|  | 13000 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13001 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13002 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13003 |  | 
|  | 13004 | cat >>confdefs.h <<_ACEOF | 
|  | 13005 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
|  | 13006 | _ACEOF | 
|  | 13007 |  | 
|  | 13008 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13009 | fi | 
|  | 13010 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13011 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13012 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13013 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13014 | cat >>confdefs.h <<_ACEOF | 
|  | 13015 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
|  | 13016 | _ACEOF | 
|  | 13017 |  | 
|  | 13018 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13019 | fi | 
|  | 13020 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13021 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13022 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : | 
| Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 13023 |  | 
|  | 13024 | cat >>confdefs.h <<_ACEOF | 
|  | 13025 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
|  | 13026 | _ACEOF | 
|  | 13027 |  | 
|  | 13028 |  | 
|  | 13029 | fi | 
|  | 13030 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13031 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13032 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13033 |  | 
|  | 13034 | cat >>confdefs.h <<_ACEOF | 
|  | 13035 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
|  | 13036 | _ACEOF | 
|  | 13037 |  | 
|  | 13038 |  | 
|  | 13039 | fi | 
|  | 13040 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13041 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13042 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13043 |  | 
|  | 13044 | cat >>confdefs.h <<_ACEOF | 
|  | 13045 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
|  | 13046 | _ACEOF | 
|  | 13047 |  | 
|  | 13048 |  | 
|  | 13049 | fi | 
|  | 13050 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13051 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13052 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13053 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 | cat >>confdefs.h <<_ACEOF | 
|  | 13055 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
|  | 13056 | _ACEOF | 
|  | 13057 |  | 
|  | 13058 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13059 | fi | 
|  | 13060 |  | 
| Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13061 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " | 
|  | 13062 | #include <sys/types.h> | 
|  | 13063 | #include <pwd.h> | 
|  | 13064 |  | 
|  | 13065 | " | 
|  | 13066 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | 
|  | 13067 |  | 
|  | 13068 | cat >>confdefs.h <<_ACEOF | 
|  | 13069 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | 
|  | 13070 | _ACEOF | 
|  | 13071 |  | 
|  | 13072 |  | 
|  | 13073 | fi | 
|  | 13074 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " | 
|  | 13075 | #include <sys/types.h> | 
|  | 13076 | #include <pwd.h> | 
|  | 13077 |  | 
|  | 13078 | " | 
|  | 13079 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : | 
|  | 13080 |  | 
|  | 13081 | cat >>confdefs.h <<_ACEOF | 
|  | 13082 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 | 
|  | 13083 | _ACEOF | 
|  | 13084 |  | 
|  | 13085 |  | 
|  | 13086 | fi | 
|  | 13087 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13088 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
|  | 13090 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13091 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13092 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13093 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13094 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13096 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13097 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13098 | int | 
|  | 13099 | main () | 
|  | 13100 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13101 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13102 | ; | 
|  | 13103 | return 0; | 
|  | 13104 | } | 
|  | 13105 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13106 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13107 | ac_cv_header_time_altzone=yes | 
|  | 13108 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13109 | ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13110 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13112 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13113 | fi | 
|  | 13114 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
|  | 13116 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13117 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13118 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13119 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13120 |  | 
|  | 13121 | fi | 
|  | 13122 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13123 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
|  | 13125 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
|  | 13126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13127 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13128 |  | 
|  | 13129 | #include <sys/types.h> | 
|  | 13130 | #include <sys/select.h> | 
|  | 13131 | #include <sys/time.h> | 
|  | 13132 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13133 | int | 
|  | 13134 | main () | 
|  | 13135 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13136 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13137 | ; | 
|  | 13138 | return 0; | 
|  | 13139 | } | 
|  | 13140 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13141 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13142 |  | 
|  | 13143 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13144 | $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13145 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13146 | was_it_defined=yes | 
|  | 13147 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13148 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 13151 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13152 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
|  | 13154 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13155 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13156 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13157 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13159 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13160 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13161 | int | 
|  | 13162 | main () | 
|  | 13163 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13164 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13165 | ; | 
|  | 13166 | return 0; | 
|  | 13167 | } | 
|  | 13168 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13169 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13170 | ac_cv_struct_addrinfo=yes | 
|  | 13171 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13172 | ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13173 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13175 | fi | 
|  | 13176 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
|  | 13178 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13179 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13180 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13181 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13182 |  | 
|  | 13183 | fi | 
|  | 13184 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
|  | 13186 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13187 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13188 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13189 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13191 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13192 |  | 
|  | 13193 | #		include <sys/types.h> | 
|  | 13194 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13195 | int | 
|  | 13196 | main () | 
|  | 13197 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13198 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13199 | ; | 
|  | 13200 | return 0; | 
|  | 13201 | } | 
|  | 13202 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13203 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13204 | ac_cv_struct_sockaddr_storage=yes | 
|  | 13205 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13206 | ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13207 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13209 | fi | 
|  | 13210 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
|  | 13212 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13213 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13214 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13215 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13216 |  | 
|  | 13217 | fi | 
|  | 13218 |  | 
| Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 | 
|  | 13220 | $as_echo_n "checking for sockaddr_alg... " >&6; } | 
|  | 13221 | if ${ac_cv_struct_sockaddr_alg+:} false; then : | 
|  | 13222 | $as_echo_n "(cached) " >&6 | 
|  | 13223 | else | 
|  | 13224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13225 | /* end confdefs.h.  */ | 
|  | 13226 |  | 
|  | 13227 | #		include <sys/types.h> | 
|  | 13228 | #		include <sys/socket.h> | 
|  | 13229 | #		include <linux/if_alg.h> | 
|  | 13230 | int | 
|  | 13231 | main () | 
|  | 13232 | { | 
|  | 13233 | struct sockaddr_alg s | 
|  | 13234 | ; | 
|  | 13235 | return 0; | 
|  | 13236 | } | 
|  | 13237 | _ACEOF | 
|  | 13238 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13239 | ac_cv_struct_sockaddr_alg=yes | 
|  | 13240 | else | 
|  | 13241 | ac_cv_struct_sockaddr_alg=no | 
|  | 13242 | fi | 
|  | 13243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13244 | fi | 
|  | 13245 |  | 
|  | 13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 | 
|  | 13247 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } | 
|  | 13248 | if test $ac_cv_struct_sockaddr_alg = yes; then | 
|  | 13249 |  | 
|  | 13250 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h | 
|  | 13251 |  | 
|  | 13252 | fi | 
|  | 13253 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13254 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13255 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
|  | 13257 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13258 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13259 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13260 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13262 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13263 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13264 | int | 
|  | 13265 | main () | 
|  | 13266 | { | 
|  | 13267 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13268 | test_array [0] = 0; | 
|  | 13269 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13270 |  | 
|  | 13271 | ; | 
|  | 13272 | return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13273 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13274 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13275 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13276 | ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13277 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13278 | ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13279 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13281 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
|  | 13283 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13284 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13285 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13286 |  | 
|  | 13287 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13288 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
|  | 13290 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13291 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13292 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13293 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13295 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13296 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13297 | int | 
|  | 13298 | main () | 
|  | 13299 | { | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13300 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13301 | #ifndef __cplusplus | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13302 | /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13303 | typedef int charset[2]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13304 | const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13305 | /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13306 | char const *const *pcpcc; | 
|  | 13307 | char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13308 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 13309 | struct point {int x, y;}; | 
|  | 13310 | static struct point const zero = {0,0}; | 
|  | 13311 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 13312 | It does not let you subtract one const X* pointer from another in | 
|  | 13313 | an arm of an if-expression whose if-part is not a constant | 
|  | 13314 | expression */ | 
|  | 13315 | const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13316 | pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13317 | /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13318 | ++pcpcc; | 
|  | 13319 | ppc = (char**) pcpcc; | 
|  | 13320 | pcpcc = (char const *const *) ppc; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13321 | { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
|  | 13322 | char tx; | 
|  | 13323 | char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13324 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13325 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13326 | *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13327 | if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13328 | } | 
|  | 13329 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|  | 13330 | int x[] = {25, 17}; | 
|  | 13331 | const int *foo = &x[0]; | 
|  | 13332 | ++foo; | 
|  | 13333 | } | 
|  | 13334 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 13335 | typedef const int *iptr; | 
|  | 13336 | iptr p = 0; | 
|  | 13337 | ++p; | 
|  | 13338 | } | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13339 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13340 | "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] | 13341 | struct s { int j; const int *ap[3]; } bx; | 
|  | 13342 | struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13343 | } | 
|  | 13344 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 13345 | const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13346 | if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13347 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13348 | return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13349 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13350 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13351 | ; | 
|  | 13352 | return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13353 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13354 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13355 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13356 | ac_cv_c_const=yes | 
|  | 13357 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13358 | ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13359 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13361 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
|  | 13363 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13364 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13365 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13366 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13367 |  | 
|  | 13368 | fi | 
|  | 13369 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13370 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13371 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
|  | 13373 | $as_echo_n "checking for working volatile... " >&6; } | 
|  | 13374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13375 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13376 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13377 | int | 
|  | 13378 | main () | 
|  | 13379 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13380 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13381 | ; | 
|  | 13382 | return 0; | 
|  | 13383 | } | 
|  | 13384 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13385 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13386 | works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13387 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13388 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13389 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13390 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13391 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13392 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13395 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13396 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13397 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
|  | 13399 | $as_echo_n "checking for working signed char... " >&6; } | 
|  | 13400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13401 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13402 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13403 | int | 
|  | 13404 | main () | 
|  | 13405 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13406 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13407 | ; | 
|  | 13408 | return 0; | 
|  | 13409 | } | 
|  | 13410 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13411 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13412 | works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13413 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13414 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13415 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13416 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13417 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13418 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13421 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13422 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13423 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
|  | 13425 | $as_echo_n "checking for prototypes... " >&6; } | 
|  | 13426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13427 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13428 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13429 | int | 
|  | 13430 | main () | 
|  | 13431 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13432 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13433 | ; | 
|  | 13434 | return 0; | 
|  | 13435 | } | 
|  | 13436 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13437 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13438 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13439 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13440 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13441 | have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13442 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
|  | 13445 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13446 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13447 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
|  | 13449 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
|  | 13450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13451 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13452 |  | 
|  | 13453 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13454 | int foo(int x, ...) { | 
|  | 13455 | va_list va; | 
|  | 13456 | va_start(va, x); | 
|  | 13457 | va_arg(va, int); | 
|  | 13458 | va_arg(va, char *); | 
|  | 13459 | va_arg(va, double); | 
|  | 13460 | return 0; | 
|  | 13461 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13462 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13463 | int | 
|  | 13464 | main () | 
|  | 13465 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13466 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13467 | ; | 
|  | 13468 | return 0; | 
|  | 13469 | } | 
|  | 13470 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13471 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13472 |  | 
|  | 13473 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13474 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13475 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13476 | works=yes | 
|  | 13477 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13478 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13481 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13482 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13483 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
|  | 13485 | $as_echo_n "checking for socketpair... " >&6; } | 
|  | 13486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13487 | /* end confdefs.h.  */ | 
|  | 13488 |  | 
|  | 13489 | #include <sys/types.h> | 
|  | 13490 | #include <sys/socket.h> | 
|  | 13491 |  | 
|  | 13492 | int | 
|  | 13493 | main () | 
|  | 13494 | { | 
|  | 13495 | void *x=socketpair | 
|  | 13496 | ; | 
|  | 13497 | return 0; | 
|  | 13498 | } | 
|  | 13499 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13500 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13501 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13502 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13503 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13505 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13506 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13508 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13509 |  | 
|  | 13510 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13512 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13513 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
|  | 13515 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
|  | 13516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13517 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13518 | #include <sys/types.h> | 
|  | 13519 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13520 | int | 
|  | 13521 | main () | 
|  | 13522 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13523 | struct sockaddr x; | 
|  | 13524 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13525 | ; | 
|  | 13526 | return 0; | 
|  | 13527 | } | 
|  | 13528 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13529 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13531 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13532 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13533 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13534 |  | 
|  | 13535 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13537 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13538 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13539 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13541 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13542 | # 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] | 13543 |  | 
|  | 13544 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13545 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13546 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13547 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13548 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13549 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
|  | 13551 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13552 | OLD_CFLAGS=$CFLAGS | 
|  | 13553 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13555 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13556 |  | 
|  | 13557 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13558 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13559 | int | 
|  | 13560 | main () | 
|  | 13561 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13562 |  | 
|  | 13563 | char *name; | 
|  | 13564 | struct hostent *he, *res; | 
|  | 13565 | char buffer[2048]; | 
|  | 13566 | int buflen = 2048; | 
|  | 13567 | int h_errnop; | 
|  | 13568 |  | 
|  | 13569 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13570 |  | 
|  | 13571 | ; | 
|  | 13572 | return 0; | 
|  | 13573 | } | 
|  | 13574 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13575 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13576 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13577 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13578 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13579 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13580 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13581 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13583 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13584 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13585 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13586 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13588 | $as_echo "no" >&6; } | 
|  | 13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
|  | 13590 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
|  | 13591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13592 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13593 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13594 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13595 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13596 | int | 
|  | 13597 | main () | 
|  | 13598 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13599 |  | 
|  | 13600 | char *name; | 
|  | 13601 | struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13602 | char buffer[2048]; | 
|  | 13603 | int buflen = 2048; | 
|  | 13604 | int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13605 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13606 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13607 |  | 
|  | 13608 | ; | 
|  | 13609 | return 0; | 
|  | 13610 | } | 
|  | 13611 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13612 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13613 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13614 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13615 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13616 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13617 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13618 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13620 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13621 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13622 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13623 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13625 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
|  | 13627 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
|  | 13628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13629 | /* end confdefs.h.  */ | 
|  | 13630 |  | 
|  | 13631 | #           include <netdb.h> | 
|  | 13632 |  | 
|  | 13633 | int | 
|  | 13634 | main () | 
|  | 13635 | { | 
|  | 13636 |  | 
|  | 13637 | char *name; | 
|  | 13638 | struct hostent *he; | 
|  | 13639 | struct hostent_data data; | 
|  | 13640 |  | 
|  | 13641 | (void) gethostbyname_r(name, he, &data); | 
|  | 13642 |  | 
|  | 13643 | ; | 
|  | 13644 | return 0; | 
|  | 13645 | } | 
|  | 13646 | _ACEOF | 
|  | 13647 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13648 |  | 
|  | 13649 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
|  | 13650 |  | 
|  | 13651 |  | 
|  | 13652 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
|  | 13653 |  | 
|  | 13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13655 | $as_echo "yes" >&6; } | 
|  | 13656 |  | 
|  | 13657 | else | 
|  | 13658 |  | 
|  | 13659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13660 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13661 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13662 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13664 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13665 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13667 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13668 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13670 | CFLAGS=$OLD_CFLAGS | 
|  | 13671 |  | 
|  | 13672 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13673 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13674 | for ac_func in gethostbyname | 
|  | 13675 | do : | 
|  | 13676 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13677 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13678 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13679 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13680 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13681 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13682 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13683 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13684 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13685 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13686 | fi | 
|  | 13687 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13688 |  | 
|  | 13689 |  | 
|  | 13690 |  | 
|  | 13691 |  | 
|  | 13692 |  | 
|  | 13693 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13694 | # checks for system services | 
|  | 13695 | # (none yet) | 
|  | 13696 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13697 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13698 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13699 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13700 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13701 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
|  | 13703 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13704 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13705 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13706 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13707 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13708 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13710 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13711 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13712 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13713 | Use char because int might match the return type of a GCC | 
|  | 13714 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13715 | #ifdef __cplusplus | 
|  | 13716 | extern "C" | 
|  | 13717 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13718 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13719 | int | 
|  | 13720 | main () | 
|  | 13721 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13722 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13723 | ; | 
|  | 13724 | return 0; | 
|  | 13725 | } | 
|  | 13726 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13727 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13728 | ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13729 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13730 | ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13731 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13732 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13733 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13734 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13735 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
|  | 13737 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13738 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13739 | cat >>confdefs.h <<_ACEOF | 
|  | 13740 | #define HAVE_LIBIEEE 1 | 
|  | 13741 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13742 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13743 | LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13744 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13745 | fi | 
|  | 13746 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13747 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13748 | fi | 
|  | 13749 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13750 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13751 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
|  | 13753 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13754 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13755 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13756 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13757 | withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13758 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13759 | then | 
|  | 13760 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13761 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13762 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13764 | $as_echo "yes" >&6; } | 
|  | 13765 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13766 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13767 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13768 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13770 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13771 | fi | 
|  | 13772 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13773 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13774 | # check for --with-libm=... | 
|  | 13775 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13776 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 13777 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13778 | *) LIBM=-lm | 
|  | 13779 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
|  | 13781 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13782 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13783 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13784 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13785 | withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13786 | if test "$withval" = no | 
|  | 13787 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
|  | 13789 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13790 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13791 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
|  | 13793 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13794 | 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] | 13795 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13796 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
|  | 13798 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13799 | fi | 
|  | 13800 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13801 |  | 
|  | 13802 | # check for --with-libc=... | 
|  | 13803 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
|  | 13805 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13806 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13807 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13808 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13809 | withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13810 | if test "$withval" = no | 
|  | 13811 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
|  | 13813 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13814 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13815 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
|  | 13817 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13818 | 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] | 13819 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13820 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
|  | 13822 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13823 | fi | 
|  | 13824 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13825 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13826 | # ************************************** | 
|  | 13827 | # * Check for gcc x64 inline assembler * | 
|  | 13828 | # ************************************** | 
|  | 13829 |  | 
|  | 13830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | 
|  | 13831 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | 
|  | 13832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13833 | /* end confdefs.h.  */ | 
|  | 13834 |  | 
|  | 13835 | int | 
|  | 13836 | main () | 
|  | 13837 | { | 
|  | 13838 |  | 
|  | 13839 | __asm__ __volatile__ ("movq %rcx, %rax"); | 
|  | 13840 |  | 
|  | 13841 | ; | 
|  | 13842 | return 0; | 
|  | 13843 | } | 
|  | 13844 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13845 | if ac_fn_c_try_link "$LINENO"; then : | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13846 | have_gcc_asm_for_x64=yes | 
|  | 13847 | else | 
|  | 13848 | have_gcc_asm_for_x64=no | 
|  | 13849 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13850 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13851 | conftest$ac_exeext conftest.$ac_ext | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 | 
|  | 13853 | $as_echo "$have_gcc_asm_for_x64" >&6; } | 
|  | 13854 | if test "$have_gcc_asm_for_x64" = yes | 
|  | 13855 | then | 
|  | 13856 |  | 
|  | 13857 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | 
|  | 13858 |  | 
|  | 13859 | fi | 
|  | 13860 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13861 | # ************************************************** | 
|  | 13862 | # * Check for various properties of floating point * | 
|  | 13863 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13864 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
|  | 13866 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13867 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13868 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13869 | else | 
|  | 13870 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13871 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13872 | ac_cv_little_endian_double=no | 
|  | 13873 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13875 | /* end confdefs.h.  */ | 
|  | 13876 |  | 
|  | 13877 | #include <string.h> | 
|  | 13878 | int main() { | 
|  | 13879 | double x = 9006104071832581.0; | 
|  | 13880 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
|  | 13881 | return 0; | 
|  | 13882 | else | 
|  | 13883 | return 1; | 
|  | 13884 | } | 
|  | 13885 |  | 
|  | 13886 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13887 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13888 | ac_cv_little_endian_double=yes | 
|  | 13889 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13890 | ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13891 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13892 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13893 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13894 | fi | 
|  | 13895 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13896 | fi | 
|  | 13897 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
|  | 13899 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13900 | if test "$ac_cv_little_endian_double" = yes | 
|  | 13901 | then | 
|  | 13902 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13903 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13904 |  | 
|  | 13905 | fi | 
|  | 13906 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
|  | 13908 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13909 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13910 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13911 | else | 
|  | 13912 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13913 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13914 | ac_cv_big_endian_double=no | 
|  | 13915 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13917 | /* end confdefs.h.  */ | 
|  | 13918 |  | 
|  | 13919 | #include <string.h> | 
|  | 13920 | int main() { | 
|  | 13921 | double x = 9006104071832581.0; | 
|  | 13922 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
|  | 13923 | return 0; | 
|  | 13924 | else | 
|  | 13925 | return 1; | 
|  | 13926 | } | 
|  | 13927 |  | 
|  | 13928 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13929 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13930 | ac_cv_big_endian_double=yes | 
|  | 13931 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13932 | ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13933 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13934 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13935 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13936 | fi | 
|  | 13937 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13938 | fi | 
|  | 13939 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
|  | 13941 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13942 | if test "$ac_cv_big_endian_double" = yes | 
|  | 13943 | then | 
|  | 13944 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13945 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13946 |  | 
|  | 13947 | fi | 
|  | 13948 |  | 
|  | 13949 | # Some ARM platforms use a mixed-endian representation for doubles. | 
|  | 13950 | # While Python doesn't currently have full support for these platforms | 
|  | 13951 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
|  | 13952 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
|  | 13954 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13955 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13956 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13957 | else | 
|  | 13958 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13959 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13960 | ac_cv_mixed_endian_double=no | 
|  | 13961 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13963 | /* end confdefs.h.  */ | 
|  | 13964 |  | 
|  | 13965 | #include <string.h> | 
|  | 13966 | int main() { | 
|  | 13967 | double x = 9006104071832581.0; | 
|  | 13968 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
|  | 13969 | return 0; | 
|  | 13970 | else | 
|  | 13971 | return 1; | 
|  | 13972 | } | 
|  | 13973 |  | 
|  | 13974 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13975 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13976 | ac_cv_mixed_endian_double=yes | 
|  | 13977 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13978 | ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13979 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13980 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13981 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13982 | fi | 
|  | 13983 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13984 | fi | 
|  | 13985 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
|  | 13987 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13988 | if test "$ac_cv_mixed_endian_double" = yes | 
|  | 13989 | then | 
|  | 13990 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13991 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13992 |  | 
|  | 13993 | fi | 
|  | 13994 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13995 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13996 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13997 | # 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] | 13998 | # 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] | 13999 | # 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] | 14000 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14001 |  | 
|  | 14002 | # This inline assembler syntax may also work for suncc and icc, | 
|  | 14003 | # so we try it on all platforms. | 
|  | 14004 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
|  | 14006 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
|  | 14007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14008 | /* end confdefs.h.  */ | 
|  | 14009 |  | 
|  | 14010 | int | 
|  | 14011 | main () | 
|  | 14012 | { | 
|  | 14013 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14014 | unsigned short cw; | 
|  | 14015 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
|  | 14016 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14017 |  | 
|  | 14018 | ; | 
|  | 14019 | return 0; | 
|  | 14020 | } | 
|  | 14021 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14022 | if ac_fn_c_try_link "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14023 | have_gcc_asm_for_x87=yes | 
|  | 14024 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14025 | have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14026 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14027 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14028 | conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
|  | 14030 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14031 | if test "$have_gcc_asm_for_x87" = yes | 
|  | 14032 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14033 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14034 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14035 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14036 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14037 |  | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 | 
|  | 14039 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | 
|  | 14040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14041 | /* end confdefs.h.  */ | 
|  | 14042 |  | 
|  | 14043 | int | 
|  | 14044 | main () | 
|  | 14045 | { | 
|  | 14046 |  | 
|  | 14047 | unsigned int fpcr; | 
|  | 14048 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | 
|  | 14049 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | 
|  | 14050 |  | 
|  | 14051 | ; | 
|  | 14052 | return 0; | 
|  | 14053 | } | 
|  | 14054 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14055 | if ac_fn_c_try_link "$LINENO"; then : | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14056 | have_gcc_asm_for_mc68881=yes | 
|  | 14057 | else | 
|  | 14058 | have_gcc_asm_for_mc68881=no | 
|  | 14059 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14060 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14061 | conftest$ac_exeext conftest.$ac_ext | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 | 
|  | 14063 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | 
|  | 14064 | if test "$have_gcc_asm_for_mc68881" = yes | 
|  | 14065 | then | 
|  | 14066 |  | 
|  | 14067 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h | 
|  | 14068 |  | 
|  | 14069 | fi | 
|  | 14070 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14071 | # Detect whether system arithmetic is subject to x87-style double | 
|  | 14072 | # rounding issues.  The result of this test has little meaning on non | 
|  | 14073 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
|  | 14074 | # mode is round-to-nearest and double rounding issues are present, and | 
|  | 14075 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
|  | 14077 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14078 | # $BASECFLAGS may affect the result | 
|  | 14079 | ac_save_cc="$CC" | 
|  | 14080 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14081 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14082 | ac_cv_x87_double_rounding=no | 
|  | 14083 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14085 | /* end confdefs.h.  */ | 
|  | 14086 |  | 
|  | 14087 | #include <stdlib.h> | 
|  | 14088 | #include <math.h> | 
|  | 14089 | int main() { | 
|  | 14090 | volatile double x, y, z; | 
|  | 14091 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
|  | 14092 | x = 0.99999999999999989; /* 1-2**-53 */ | 
|  | 14093 | y = 1./x; | 
|  | 14094 | if (y != 1.) | 
|  | 14095 | exit(0); | 
|  | 14096 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
|  | 14097 | x = 1e16; | 
|  | 14098 | y = 2.99999; | 
|  | 14099 | z = x + y; | 
|  | 14100 | if (z != 1e16+4.) | 
|  | 14101 | exit(0); | 
|  | 14102 | /* both tests show evidence of double rounding */ | 
|  | 14103 | exit(1); | 
|  | 14104 | } | 
|  | 14105 |  | 
|  | 14106 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14107 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14108 | ac_cv_x87_double_rounding=no | 
|  | 14109 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14110 | ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14111 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14112 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14113 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14114 | fi | 
|  | 14115 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14116 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
|  | 14118 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14119 | if test "$ac_cv_x87_double_rounding" = yes | 
|  | 14120 | then | 
|  | 14121 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14122 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14123 |  | 
|  | 14124 | fi | 
|  | 14125 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14126 | # ************************************ | 
|  | 14127 | # * Check for mathematical functions * | 
|  | 14128 | # ************************************ | 
|  | 14129 |  | 
|  | 14130 | LIBS_SAVE=$LIBS | 
|  | 14131 | LIBS="$LIBS $LIBM" | 
|  | 14132 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14133 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
|  | 14134 | do : | 
|  | 14135 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 14136 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14137 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14138 | cat >>confdefs.h <<_ACEOF | 
|  | 14139 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 14140 | _ACEOF | 
|  | 14141 |  | 
|  | 14142 | fi | 
|  | 14143 | done | 
|  | 14144 |  | 
| Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 14145 | for ac_func in hypot lgamma log1p log2 round tgamma | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14146 | do : | 
|  | 14147 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 14148 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14149 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14150 | cat >>confdefs.h <<_ACEOF | 
|  | 14151 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 14152 | _ACEOF | 
|  | 14153 |  | 
|  | 14154 | fi | 
|  | 14155 | done | 
|  | 14156 |  | 
|  | 14157 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
|  | 14158 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14159 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14160 | ac_have_decl=1 | 
|  | 14161 | else | 
|  | 14162 | ac_have_decl=0 | 
|  | 14163 | fi | 
|  | 14164 |  | 
|  | 14165 | cat >>confdefs.h <<_ACEOF | 
|  | 14166 | #define HAVE_DECL_ISINF $ac_have_decl | 
|  | 14167 | _ACEOF | 
|  | 14168 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
|  | 14169 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14170 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14171 | ac_have_decl=1 | 
|  | 14172 | else | 
|  | 14173 | ac_have_decl=0 | 
|  | 14174 | fi | 
|  | 14175 |  | 
|  | 14176 | cat >>confdefs.h <<_ACEOF | 
|  | 14177 | #define HAVE_DECL_ISNAN $ac_have_decl | 
|  | 14178 | _ACEOF | 
|  | 14179 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
|  | 14180 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14181 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14182 | ac_have_decl=1 | 
|  | 14183 | else | 
|  | 14184 | ac_have_decl=0 | 
|  | 14185 | fi | 
|  | 14186 |  | 
|  | 14187 | cat >>confdefs.h <<_ACEOF | 
|  | 14188 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
|  | 14189 | _ACEOF | 
|  | 14190 |  | 
|  | 14191 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14192 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
|  | 14193 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
|  | 14195 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14196 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14197 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14198 | else | 
|  | 14199 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14200 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14201 | ac_cv_tanh_preserves_zero_sign=no | 
|  | 14202 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14204 | /* end confdefs.h.  */ | 
|  | 14205 |  | 
|  | 14206 | #include <math.h> | 
|  | 14207 | #include <stdlib.h> | 
|  | 14208 | int main() { | 
|  | 14209 | /* return 0 if either negative zeros don't exist | 
|  | 14210 | on this platform or if negative zeros exist | 
|  | 14211 | and tanh(-0.) == -0. */ | 
|  | 14212 | if (atan2(0., -1.) == atan2(-0., -1.) || | 
|  | 14213 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
|  | 14214 | else exit(1); | 
|  | 14215 | } | 
|  | 14216 |  | 
|  | 14217 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14218 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14219 | ac_cv_tanh_preserves_zero_sign=yes | 
|  | 14220 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14221 | ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14222 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14223 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14224 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14225 | fi | 
|  | 14226 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14227 | fi | 
|  | 14228 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
|  | 14230 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14231 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
|  | 14232 | then | 
|  | 14233 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14234 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14235 |  | 
|  | 14236 | fi | 
|  | 14237 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14238 | if test "$ac_cv_func_log1p" = yes | 
|  | 14239 | then | 
|  | 14240 | # On some versions of AIX, log1p(-0.) returns 0. instead of | 
|  | 14241 | # -0.  See issue #9920. | 
|  | 14242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
|  | 14243 | $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14244 | if ${ac_cv_log1p_drops_zero_sign+:} false; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14245 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14246 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14247 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14248 | if test "$cross_compiling" = yes; then : | 
|  | 14249 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14250 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14252 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14253 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14254 | #include <math.h> | 
|  | 14255 | #include <stdlib.h> | 
|  | 14256 | int main() { | 
|  | 14257 | /* Fail if the signs of log1p(-0.) and -0. can be | 
|  | 14258 | distinguished. */ | 
|  | 14259 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
|  | 14260 | return 0; | 
|  | 14261 | else | 
|  | 14262 | return 1; | 
|  | 14263 | } | 
|  | 14264 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14265 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14266 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 14267 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14268 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14269 | ac_cv_log1p_drops_zero_sign=yes | 
|  | 14270 | fi | 
|  | 14271 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14272 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14273 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14274 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14275 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14276 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
|  | 14278 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
|  | 14279 | fi | 
|  | 14280 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
|  | 14281 | then | 
|  | 14282 |  | 
|  | 14283 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
|  | 14284 |  | 
|  | 14285 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14286 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14287 | LIBS=$LIBS_SAVE | 
|  | 14288 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14289 | # For multiprocessing module, check that sem_open | 
|  | 14290 | # actually works.  For FreeBSD versions <= 7.2, | 
|  | 14291 | # the kernel module that provides POSIX semaphores | 
|  | 14292 | # isn't loaded by default, so an attempt to call | 
|  | 14293 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
|  | 14295 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14296 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14297 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14298 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14299 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14300 | ac_cv_posix_semaphores_enabled=yes | 
|  | 14301 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14303 | /* end confdefs.h.  */ | 
|  | 14304 |  | 
|  | 14305 | #include <unistd.h> | 
|  | 14306 | #include <fcntl.h> | 
|  | 14307 | #include <stdio.h> | 
|  | 14308 | #include <semaphore.h> | 
|  | 14309 | #include <sys/stat.h> | 
|  | 14310 |  | 
|  | 14311 | int main(void) { | 
|  | 14312 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
|  | 14313 | if (a == SEM_FAILED) { | 
|  | 14314 | perror("sem_open"); | 
|  | 14315 | return 1; | 
|  | 14316 | } | 
|  | 14317 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14318 | sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14319 | return 0; | 
|  | 14320 | } | 
|  | 14321 |  | 
|  | 14322 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14323 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14324 | ac_cv_posix_semaphores_enabled=yes | 
|  | 14325 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14326 | ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14327 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14328 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14329 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14330 | fi | 
|  | 14331 |  | 
|  | 14332 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14333 | fi | 
|  | 14334 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
|  | 14336 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14337 | if test $ac_cv_posix_semaphores_enabled = no | 
|  | 14338 | then | 
|  | 14339 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14340 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14341 |  | 
|  | 14342 | fi | 
|  | 14343 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14344 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
|  | 14346 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14347 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14348 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14349 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14350 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14351 | ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14352 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14354 | /* end confdefs.h.  */ | 
|  | 14355 |  | 
|  | 14356 | #include <unistd.h> | 
|  | 14357 | #include <fcntl.h> | 
|  | 14358 | #include <stdio.h> | 
|  | 14359 | #include <semaphore.h> | 
|  | 14360 | #include <sys/stat.h> | 
|  | 14361 |  | 
|  | 14362 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14363 | 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] | 14364 | int count; | 
|  | 14365 | int res; | 
|  | 14366 | if(a==SEM_FAILED){ | 
|  | 14367 | perror("sem_open"); | 
|  | 14368 | return 1; | 
|  | 14369 |  | 
|  | 14370 | } | 
|  | 14371 | res = sem_getvalue(a, &count); | 
|  | 14372 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14373 | sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14374 | return res==-1 ? 1 : 0; | 
|  | 14375 | } | 
|  | 14376 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14377 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14378 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14379 | ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14380 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14381 | ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14382 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14383 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14384 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14385 | fi | 
|  | 14386 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14387 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14388 | fi | 
|  | 14389 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
|  | 14391 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14392 | if test $ac_cv_broken_sem_getvalue = yes | 
|  | 14393 | then | 
|  | 14394 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14395 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14396 |  | 
|  | 14397 | fi | 
|  | 14398 |  | 
| Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14399 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> | 
|  | 14400 | " | 
|  | 14401 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : | 
|  | 14402 | ac_have_decl=1 | 
|  | 14403 | else | 
|  | 14404 | ac_have_decl=0 | 
|  | 14405 | fi | 
|  | 14406 |  | 
|  | 14407 | cat >>confdefs.h <<_ACEOF | 
|  | 14408 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl | 
|  | 14409 | _ACEOF | 
|  | 14410 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | 
|  | 14411 | " | 
|  | 14412 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | 
|  | 14413 | ac_have_decl=1 | 
|  | 14414 | else | 
|  | 14415 | ac_have_decl=0 | 
|  | 14416 | fi | 
|  | 14417 |  | 
|  | 14418 | cat >>confdefs.h <<_ACEOF | 
|  | 14419 | #define HAVE_DECL_RTLD_NOW $ac_have_decl | 
|  | 14420 | _ACEOF | 
|  | 14421 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> | 
|  | 14422 | " | 
|  | 14423 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : | 
|  | 14424 | ac_have_decl=1 | 
|  | 14425 | else | 
|  | 14426 | ac_have_decl=0 | 
|  | 14427 | fi | 
|  | 14428 |  | 
|  | 14429 | cat >>confdefs.h <<_ACEOF | 
|  | 14430 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl | 
|  | 14431 | _ACEOF | 
|  | 14432 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> | 
|  | 14433 | " | 
|  | 14434 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : | 
|  | 14435 | ac_have_decl=1 | 
|  | 14436 | else | 
|  | 14437 | ac_have_decl=0 | 
|  | 14438 | fi | 
|  | 14439 |  | 
|  | 14440 | cat >>confdefs.h <<_ACEOF | 
|  | 14441 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl | 
|  | 14442 | _ACEOF | 
|  | 14443 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> | 
|  | 14444 | " | 
|  | 14445 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : | 
|  | 14446 | ac_have_decl=1 | 
|  | 14447 | else | 
|  | 14448 | ac_have_decl=0 | 
|  | 14449 | fi | 
|  | 14450 |  | 
|  | 14451 | cat >>confdefs.h <<_ACEOF | 
|  | 14452 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl | 
|  | 14453 | _ACEOF | 
|  | 14454 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> | 
|  | 14455 | " | 
|  | 14456 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : | 
|  | 14457 | ac_have_decl=1 | 
|  | 14458 | else | 
|  | 14459 | ac_have_decl=0 | 
|  | 14460 | fi | 
|  | 14461 |  | 
|  | 14462 | cat >>confdefs.h <<_ACEOF | 
|  | 14463 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl | 
|  | 14464 | _ACEOF | 
|  | 14465 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> | 
|  | 14466 | " | 
|  | 14467 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : | 
|  | 14468 | ac_have_decl=1 | 
|  | 14469 | else | 
|  | 14470 | ac_have_decl=0 | 
|  | 14471 | fi | 
|  | 14472 |  | 
|  | 14473 | cat >>confdefs.h <<_ACEOF | 
|  | 14474 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl | 
|  | 14475 | _ACEOF | 
|  | 14476 |  | 
|  | 14477 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14478 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
|  | 14480 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14481 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14482 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14483 | enableval=$enable_big_digits; case $enable_big_digits in | 
|  | 14484 | yes) | 
|  | 14485 | enable_big_digits=30 ;; | 
|  | 14486 | no) | 
|  | 14487 | enable_big_digits=15 ;; | 
|  | 14488 | 15|30) | 
|  | 14489 | ;; | 
|  | 14490 | *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14491 | 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] | 14492 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
|  | 14494 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14495 |  | 
|  | 14496 | cat >>confdefs.h <<_ACEOF | 
|  | 14497 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
|  | 14498 | _ACEOF | 
|  | 14499 |  | 
|  | 14500 |  | 
|  | 14501 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 14503 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14504 | fi | 
|  | 14505 |  | 
|  | 14506 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14507 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14508 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14509 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14510 |  | 
|  | 14511 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14512 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14514 | wchar_h="yes" | 
|  | 14515 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14516 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14517 | wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14518 |  | 
|  | 14519 | fi | 
|  | 14520 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14521 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14522 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14523 | # determine wchar_t size | 
|  | 14524 | if test "$wchar_h" = yes | 
|  | 14525 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14526 | # 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] | 14527 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 14528 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 14529 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
|  | 14531 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14532 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14533 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14534 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14535 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
|  | 14536 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14537 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14538 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14539 | if test "$ac_cv_type_wchar_t" = yes; then | 
|  | 14540 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 14541 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14542 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14543 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14544 | else | 
|  | 14545 | ac_cv_sizeof_wchar_t=0 | 
|  | 14546 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14547 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14548 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14549 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
|  | 14551 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14552 |  | 
|  | 14553 |  | 
|  | 14554 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14555 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14556 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14557 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14558 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14559 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14560 | fi | 
|  | 14561 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
|  | 14563 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14564 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14566 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14567 |  | 
|  | 14568 | #include <tcl.h> | 
|  | 14569 | #if TCL_UTF_MAX != 6 | 
|  | 14570 | # error "NOT UCS4_TCL" | 
|  | 14571 | #endif | 
|  | 14572 | int | 
|  | 14573 | main () | 
|  | 14574 | { | 
|  | 14575 |  | 
|  | 14576 | ; | 
|  | 14577 | return 0; | 
|  | 14578 | } | 
|  | 14579 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14580 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14581 |  | 
|  | 14582 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14583 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14584 |  | 
|  | 14585 | have_ucs4_tcl=yes | 
|  | 14586 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14587 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
|  | 14590 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14591 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14592 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14593 | if test "$wchar_h" = yes | 
|  | 14594 | then | 
|  | 14595 | # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
|  | 14597 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14598 | if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14599 | $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14600 | else | 
|  | 14601 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14602 | if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14603 | ac_cv_wchar_t_signed=yes | 
|  | 14604 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14606 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14607 |  | 
|  | 14608 | #include <wchar.h> | 
|  | 14609 | int main() | 
|  | 14610 | { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14611 | /* Success: exit code 0 */ | 
|  | 14612 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14613 | } | 
|  | 14614 |  | 
|  | 14615 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14616 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14617 | ac_cv_wchar_t_signed=yes | 
|  | 14618 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14619 | ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14620 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14621 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14622 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14623 | fi | 
|  | 14624 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14625 | fi | 
|  | 14626 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
|  | 14628 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14629 | fi | 
|  | 14630 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14631 | # 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] | 14632 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 14633 | -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14634 | then | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14635 | HAVE_USABLE_WCHAR_T="yes" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14636 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14637 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14638 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14639 | else | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14640 | HAVE_USABLE_WCHAR_T="no usable wchar_t found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14641 | fi | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 | 
|  | 14643 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14644 |  | 
|  | 14645 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
|  | 14647 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14648 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14649 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14650 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14651 | ac_cv_c_bigendian=unknown | 
|  | 14652 | # See if we're dealing with a universal compiler. | 
|  | 14653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14654 | /* end confdefs.h.  */ | 
|  | 14655 | #ifndef __APPLE_CC__ | 
|  | 14656 | not a universal capable compiler | 
|  | 14657 | #endif | 
|  | 14658 | typedef int dummy; | 
|  | 14659 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14660 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14661 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14662 |  | 
|  | 14663 | # Check for potential -arch flags.  It is not universal unless | 
|  | 14664 | # there are at least two -arch flags with different values. | 
|  | 14665 | ac_arch= | 
|  | 14666 | ac_prev= | 
|  | 14667 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
|  | 14668 | if test -n "$ac_prev"; then | 
|  | 14669 | case $ac_word in | 
|  | 14670 | i?86 | x86_64 | ppc | ppc64) | 
|  | 14671 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
|  | 14672 | ac_arch=$ac_word | 
|  | 14673 | else | 
|  | 14674 | ac_cv_c_bigendian=universal | 
|  | 14675 | break | 
|  | 14676 | fi | 
|  | 14677 | ;; | 
|  | 14678 | esac | 
|  | 14679 | ac_prev= | 
|  | 14680 | elif test "x$ac_word" = "x-arch"; then | 
|  | 14681 | ac_prev=arch | 
|  | 14682 | fi | 
|  | 14683 | done | 
|  | 14684 | fi | 
|  | 14685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14686 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14687 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 14688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14689 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14690 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14691 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14692 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14693 | int | 
|  | 14694 | main () | 
|  | 14695 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14696 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
|  | 14697 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
|  | 14698 | && LITTLE_ENDIAN) | 
|  | 14699 | bogus endian macros | 
|  | 14700 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14701 |  | 
|  | 14702 | ; | 
|  | 14703 | return 0; | 
|  | 14704 | } | 
|  | 14705 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14706 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14707 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14709 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14710 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14711 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14712 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14713 | int | 
|  | 14714 | main () | 
|  | 14715 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14716 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14717 | not big endian | 
|  | 14718 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14719 |  | 
|  | 14720 | ; | 
|  | 14721 | return 0; | 
|  | 14722 | } | 
|  | 14723 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14724 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14725 | ac_cv_c_bigendian=yes | 
|  | 14726 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14727 | ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14728 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14730 | fi | 
|  | 14731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14732 | fi | 
|  | 14733 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14734 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
|  | 14735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14736 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14737 | #include <limits.h> | 
|  | 14738 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14739 | int | 
|  | 14740 | main () | 
|  | 14741 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14742 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
|  | 14743 | bogus endian macros | 
|  | 14744 | #endif | 
|  | 14745 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14746 | ; | 
|  | 14747 | return 0; | 
|  | 14748 | } | 
|  | 14749 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14750 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14751 | # It does; now see whether it defined to _BIG_ENDIAN or not. | 
|  | 14752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14753 | /* end confdefs.h.  */ | 
|  | 14754 | #include <limits.h> | 
|  | 14755 |  | 
|  | 14756 | int | 
|  | 14757 | main () | 
|  | 14758 | { | 
|  | 14759 | #ifndef _BIG_ENDIAN | 
|  | 14760 | not big endian | 
|  | 14761 | #endif | 
|  | 14762 |  | 
|  | 14763 | ; | 
|  | 14764 | return 0; | 
|  | 14765 | } | 
|  | 14766 | _ACEOF | 
|  | 14767 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14768 | ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14769 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14770 | ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14771 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14773 | fi | 
|  | 14774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14775 | fi | 
|  | 14776 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14777 | # Compile a test program. | 
|  | 14778 | if test "$cross_compiling" = yes; then : | 
|  | 14779 | # Try to guess by grepping values from an object file. | 
|  | 14780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14781 | /* end confdefs.h.  */ | 
|  | 14782 | short int ascii_mm[] = | 
|  | 14783 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 14784 | short int ascii_ii[] = | 
|  | 14785 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 14786 | int use_ascii (int i) { | 
|  | 14787 | return ascii_mm[i] + ascii_ii[i]; | 
|  | 14788 | } | 
|  | 14789 | short int ebcdic_ii[] = | 
|  | 14790 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 14791 | short int ebcdic_mm[] = | 
|  | 14792 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 14793 | int use_ebcdic (int i) { | 
|  | 14794 | return ebcdic_mm[i] + ebcdic_ii[i]; | 
|  | 14795 | } | 
|  | 14796 | extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14797 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14798 | int | 
|  | 14799 | main () | 
|  | 14800 | { | 
|  | 14801 | return use_ascii (foo) == use_ebcdic (foo); | 
|  | 14802 | ; | 
|  | 14803 | return 0; | 
|  | 14804 | } | 
|  | 14805 | _ACEOF | 
|  | 14806 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14807 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
|  | 14808 | ac_cv_c_bigendian=yes | 
|  | 14809 | fi | 
|  | 14810 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 14811 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 14812 | ac_cv_c_bigendian=no | 
|  | 14813 | else | 
|  | 14814 | # finding both strings is unlikely to happen, but who knows? | 
|  | 14815 | ac_cv_c_bigendian=unknown | 
|  | 14816 | fi | 
|  | 14817 | fi | 
|  | 14818 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14820 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14822 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14823 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14824 | int | 
|  | 14825 | main () | 
|  | 14826 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14827 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14828 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 14829 | union | 
|  | 14830 | { | 
|  | 14831 | long int l; | 
|  | 14832 | char c[sizeof (long int)]; | 
|  | 14833 | } u; | 
|  | 14834 | u.l = 1; | 
|  | 14835 | return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14836 |  | 
|  | 14837 | ; | 
|  | 14838 | return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14839 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14840 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14841 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14842 | ac_cv_c_bigendian=no | 
|  | 14843 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14844 | ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14845 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14846 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14847 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14848 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14849 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14850 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14851 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
|  | 14853 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
|  | 14854 | case $ac_cv_c_bigendian in #( | 
|  | 14855 | yes) | 
|  | 14856 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
|  | 14857 | ;; #( | 
|  | 14858 | no) | 
|  | 14859 | ;; #( | 
|  | 14860 | universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14861 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14862 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14863 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14864 | ;; #( | 
|  | 14865 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14866 | as_fn_error $? "unknown endianness | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14867 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14868 | esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14869 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14870 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14871 | # ABI version string for Python extension modules.  This appears between the | 
|  | 14872 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
|  | 14873 | # from the following attributes which affect the ABI of this Python build (in | 
|  | 14874 | # this order): | 
|  | 14875 | # | 
|  | 14876 | # * The Python implementation (always 'cpython-' for us) | 
|  | 14877 | # * The major and minor version numbers | 
|  | 14878 | # * --with-pydebug (adds a 'd') | 
|  | 14879 | # * --with-pymalloc (adds a 'm') | 
|  | 14880 | # * --with-wide-unicode (adds a 'u') | 
|  | 14881 | # | 
|  | 14882 | # 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] | 14883 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
|  | 14884 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14885 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
|  | 14887 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
|  | 14888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
|  | 14889 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
|  | 14891 | $as_echo_n "checking SOABI... " >&6; } | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 14892 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
|  | 14894 | $as_echo "$SOABI" >&6; } | 
|  | 14895 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14896 |  | 
|  | 14897 | case $ac_sys_system in | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 14898 | Linux*|GNU*|Darwin) | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14899 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; | 
|  | 14900 | *) | 
|  | 14901 | EXT_SUFFIX=${SHLIB_SUFFIX};; | 
|  | 14902 | esac | 
|  | 14903 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
|  | 14905 | $as_echo_n "checking LDVERSION... " >&6; } | 
|  | 14906 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
|  | 14907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
|  | 14908 | $as_echo "$LDVERSION" >&6; } | 
|  | 14909 |  | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14910 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 14911 | if test x$PLATFORM_TRIPLET = x; then | 
|  | 14912 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | 
|  | 14913 | else | 
|  | 14914 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | 
|  | 14915 | fi | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14916 |  | 
|  | 14917 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14918 | # Check whether right shifting a negative integer extends the sign bit | 
|  | 14919 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
|  | 14921 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14922 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14923 | $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14924 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14925 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14926 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14927 | ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14928 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14930 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14931 |  | 
|  | 14932 | int main() | 
|  | 14933 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14934 | exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14935 | } | 
|  | 14936 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14937 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14938 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14939 | ac_cv_rshift_extends_sign=yes | 
|  | 14940 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14941 | ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14942 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14943 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14944 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14945 | fi | 
|  | 14946 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14947 | fi | 
|  | 14948 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
|  | 14950 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14951 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14952 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14953 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14954 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14955 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14956 | fi | 
|  | 14957 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14958 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
|  | 14960 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14961 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14962 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14963 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14964 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14966 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14967 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14968 | int | 
|  | 14969 | main () | 
|  | 14970 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14971 |  | 
|  | 14972 | FILE *f = fopen("/dev/null", "r"); | 
|  | 14973 | flockfile(f); | 
|  | 14974 | getc_unlocked(f); | 
|  | 14975 | funlockfile(f); | 
|  | 14976 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14977 | ; | 
|  | 14978 | return 0; | 
|  | 14979 | } | 
|  | 14980 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14981 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14982 | ac_cv_have_getc_unlocked=yes | 
|  | 14983 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14984 | ac_cv_have_getc_unlocked=no | 
|  | 14985 | fi | 
|  | 14986 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14987 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14988 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14989 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
|  | 14991 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14992 | if test "$ac_cv_have_getc_unlocked" = yes | 
|  | 14993 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14994 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14995 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14996 |  | 
|  | 14997 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14998 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14999 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15000 | # save the value of LIBS so we don't actually link Python with readline | 
|  | 15001 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15002 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15003 | # On some systems we need to link readline to a termcap compatible | 
|  | 15004 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
|  | 15005 | # with setup.py. | 
|  | 15006 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
|  | 15008 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 15009 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15010 | if test -z "$py_libtermcap"; then | 
|  | 15011 | READLINE_LIBS="-lreadline" | 
|  | 15012 | else | 
|  | 15013 | READLINE_LIBS="-lreadline -l$py_libtermcap" | 
|  | 15014 | fi | 
|  | 15015 | LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15017 | /* end confdefs.h.  */ | 
|  | 15018 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15019 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15020 | Use char because int might match the return type of a GCC | 
|  | 15021 | builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15022 | #ifdef __cplusplus | 
|  | 15023 | extern "C" | 
|  | 15024 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15025 | char readline (); | 
|  | 15026 | int | 
|  | 15027 | main () | 
|  | 15028 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15029 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15030 | ; | 
|  | 15031 | return 0; | 
|  | 15032 | } | 
|  | 15033 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15034 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15035 | py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15036 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15037 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15038 | conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15039 | if test $py_cv_lib_readline = yes; then | 
|  | 15040 | break | 
|  | 15041 | fi | 
|  | 15042 | done | 
|  | 15043 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
|  | 15044 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 15045 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 15047 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15048 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
|  | 15050 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15051 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15052 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15053 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15054 | fi | 
|  | 15055 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15056 | # check for readline 2.1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
|  | 15058 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15059 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15060 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15061 | else | 
|  | 15062 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15063 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15065 | /* end confdefs.h.  */ | 
|  | 15066 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15067 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15068 | Use char because int might match the return type of a GCC | 
|  | 15069 | builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15070 | #ifdef __cplusplus | 
|  | 15071 | extern "C" | 
|  | 15072 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15073 | char rl_callback_handler_install (); | 
|  | 15074 | int | 
|  | 15075 | main () | 
|  | 15076 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15077 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15078 | ; | 
|  | 15079 | return 0; | 
|  | 15080 | } | 
|  | 15081 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15082 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15083 | ac_cv_lib_readline_rl_callback_handler_install=yes | 
|  | 15084 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15085 | ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15086 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15087 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15088 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15089 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15090 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
|  | 15092 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15093 | if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15094 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15095 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15096 |  | 
|  | 15097 | fi | 
|  | 15098 |  | 
|  | 15099 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15100 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15102 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15103 | #include <readline/readline.h> | 
|  | 15104 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15105 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15106 | have_readline=yes | 
|  | 15107 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15108 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15109 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15110 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15111 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15112 | if test $have_readline = yes | 
|  | 15113 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15115 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15116 | #include <readline/readline.h> | 
|  | 15117 |  | 
|  | 15118 | _ACEOF | 
|  | 15119 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15120 | $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15121 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15122 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15123 |  | 
|  | 15124 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15125 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15126 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15128 | /* end confdefs.h.  */ | 
|  | 15129 | #include <readline/readline.h> | 
|  | 15130 |  | 
|  | 15131 | _ACEOF | 
|  | 15132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15133 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15134 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15135 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15136 |  | 
|  | 15137 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15138 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15139 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15140 | fi | 
|  | 15141 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15142 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
|  | 15144 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15145 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15146 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15147 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15148 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15149 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15151 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15152 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15153 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15154 | Use char because int might match the return type of a GCC | 
|  | 15155 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15156 | #ifdef __cplusplus | 
|  | 15157 | extern "C" | 
|  | 15158 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15159 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15160 | int | 
|  | 15161 | main () | 
|  | 15162 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15163 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15164 | ; | 
|  | 15165 | return 0; | 
|  | 15166 | } | 
|  | 15167 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15168 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 | ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15170 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15171 | ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15172 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15173 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15174 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15175 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15176 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
|  | 15178 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15179 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15180 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15181 | $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15182 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15183 | fi | 
|  | 15184 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15185 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15186 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
|  | 15188 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15189 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15190 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15191 | else | 
|  | 15192 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15193 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15195 | /* end confdefs.h.  */ | 
|  | 15196 |  | 
|  | 15197 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15198 | Use char because int might match the return type of a GCC | 
|  | 15199 | builtin and then its argument prototype would still apply.  */ | 
|  | 15200 | #ifdef __cplusplus | 
|  | 15201 | extern "C" | 
|  | 15202 | #endif | 
|  | 15203 | char rl_completion_display_matches_hook (); | 
|  | 15204 | int | 
|  | 15205 | main () | 
|  | 15206 | { | 
|  | 15207 | return rl_completion_display_matches_hook (); | 
|  | 15208 | ; | 
|  | 15209 | return 0; | 
|  | 15210 | } | 
|  | 15211 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15212 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15213 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
|  | 15214 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15215 | ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15216 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15217 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15218 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15219 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15220 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
|  | 15222 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15223 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15224 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15225 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15226 |  | 
|  | 15227 | fi | 
|  | 15228 |  | 
|  | 15229 |  | 
| Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15230 | # also in 4.0, but not in editline | 
|  | 15231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | 
|  | 15232 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | 
|  | 15233 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | 
|  | 15234 | $as_echo_n "(cached) " >&6 | 
|  | 15235 | else | 
|  | 15236 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15237 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
|  | 15238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15239 | /* end confdefs.h.  */ | 
|  | 15240 |  | 
|  | 15241 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15242 | Use char because int might match the return type of a GCC | 
|  | 15243 | builtin and then its argument prototype would still apply.  */ | 
|  | 15244 | #ifdef __cplusplus | 
|  | 15245 | extern "C" | 
|  | 15246 | #endif | 
|  | 15247 | char rl_resize_terminal (); | 
|  | 15248 | int | 
|  | 15249 | main () | 
|  | 15250 | { | 
|  | 15251 | return rl_resize_terminal (); | 
|  | 15252 | ; | 
|  | 15253 | return 0; | 
|  | 15254 | } | 
|  | 15255 | _ACEOF | 
|  | 15256 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 15257 | ac_cv_lib_readline_rl_resize_terminal=yes | 
|  | 15258 | else | 
|  | 15259 | ac_cv_lib_readline_rl_resize_terminal=no | 
|  | 15260 | fi | 
|  | 15261 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15262 | conftest$ac_exeext conftest.$ac_ext | 
|  | 15263 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15264 | fi | 
|  | 15265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | 
|  | 15266 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | 
|  | 15267 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | 
|  | 15268 |  | 
|  | 15269 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | 
|  | 15270 |  | 
|  | 15271 | fi | 
|  | 15272 |  | 
|  | 15273 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15274 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
|  | 15276 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15277 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15278 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15279 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15280 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15281 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15283 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15284 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15285 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15286 | Use char because int might match the return type of a GCC | 
|  | 15287 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15288 | #ifdef __cplusplus | 
|  | 15289 | extern "C" | 
|  | 15290 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15291 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15292 | int | 
|  | 15293 | main () | 
|  | 15294 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15295 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15296 | ; | 
|  | 15297 | return 0; | 
|  | 15298 | } | 
|  | 15299 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15300 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15301 | ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15302 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15303 | ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15304 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15305 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15306 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15307 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15308 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
|  | 15310 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15311 | if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15312 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15313 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15314 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15315 | fi | 
|  | 15316 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15317 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15318 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15320 | /* end confdefs.h.  */ | 
|  | 15321 | #include <readline/readline.h> | 
|  | 15322 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15323 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15324 | have_readline=yes | 
|  | 15325 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15326 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15327 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15328 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15329 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15330 | if test $have_readline = yes | 
|  | 15331 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15333 | /* end confdefs.h.  */ | 
|  | 15334 | #include <readline/readline.h> | 
|  | 15335 |  | 
|  | 15336 | _ACEOF | 
|  | 15337 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15338 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15339 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15340 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15341 |  | 
|  | 15342 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15343 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15344 |  | 
|  | 15345 | fi | 
|  | 15346 |  | 
| Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 | 
|  | 15348 | $as_echo_n "checking for append_history in -lreadline... " >&6; } | 
|  | 15349 | if ${ac_cv_lib_readline_append_history+:} false; then : | 
|  | 15350 | $as_echo_n "(cached) " >&6 | 
|  | 15351 | else | 
|  | 15352 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15353 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
|  | 15354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15355 | /* end confdefs.h.  */ | 
|  | 15356 |  | 
|  | 15357 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15358 | Use char because int might match the return type of a GCC | 
|  | 15359 | builtin and then its argument prototype would still apply.  */ | 
|  | 15360 | #ifdef __cplusplus | 
|  | 15361 | extern "C" | 
|  | 15362 | #endif | 
|  | 15363 | char append_history (); | 
|  | 15364 | int | 
|  | 15365 | main () | 
|  | 15366 | { | 
|  | 15367 | return append_history (); | 
|  | 15368 | ; | 
|  | 15369 | return 0; | 
|  | 15370 | } | 
|  | 15371 | _ACEOF | 
|  | 15372 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 15373 | ac_cv_lib_readline_append_history=yes | 
|  | 15374 | else | 
|  | 15375 | ac_cv_lib_readline_append_history=no | 
|  | 15376 | fi | 
|  | 15377 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15378 | conftest$ac_exeext conftest.$ac_ext | 
|  | 15379 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15380 | fi | 
|  | 15381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 | 
|  | 15382 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } | 
|  | 15383 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : | 
|  | 15384 |  | 
|  | 15385 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h | 
|  | 15386 |  | 
|  | 15387 | fi | 
|  | 15388 |  | 
|  | 15389 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15390 | # End of readline checks: restore LIBS | 
|  | 15391 | LIBS=$LIBS_no_readline | 
|  | 15392 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
|  | 15394 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15395 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15396 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15397 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15398 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15399 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15400 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15401 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15403 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15404 |  | 
|  | 15405 | int main() | 
|  | 15406 | { | 
|  | 15407 | int val1 = nice(1); | 
|  | 15408 | if (val1 != -1 && val1 == nice(2)) | 
|  | 15409 | exit(0); | 
|  | 15410 | exit(1); | 
|  | 15411 | } | 
|  | 15412 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15413 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15414 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15415 | ac_cv_broken_nice=yes | 
|  | 15416 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15417 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15418 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15419 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15420 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15421 | fi | 
|  | 15422 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15423 | fi | 
|  | 15424 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
|  | 15426 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15427 | if test "$ac_cv_broken_nice" = yes | 
|  | 15428 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15429 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15430 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15431 |  | 
|  | 15432 | fi | 
|  | 15433 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
|  | 15435 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15436 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15437 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15438 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15439 | if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15440 | ac_cv_broken_poll=no | 
|  | 15441 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15443 | /* end confdefs.h.  */ | 
|  | 15444 |  | 
|  | 15445 | #include <poll.h> | 
|  | 15446 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15447 | int main() | 
|  | 15448 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15449 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15450 | int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15451 |  | 
|  | 15452 | close (42); | 
|  | 15453 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15454 | poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15455 | if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15456 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15457 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15458 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15459 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15460 | return 1; | 
|  | 15461 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15462 |  | 
|  | 15463 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15464 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15465 | ac_cv_broken_poll=yes | 
|  | 15466 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15467 | ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15468 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15469 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15470 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15471 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15472 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15473 | fi | 
|  | 15474 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
|  | 15476 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15477 | if test "$ac_cv_broken_poll" = yes | 
|  | 15478 | then | 
|  | 15479 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15480 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15481 |  | 
|  | 15482 | fi | 
|  | 15483 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15484 | # Before we can test tzset, we need to check if struct tm has a tm_zone | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15485 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
|  | 15486 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15487 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15488 | #include <$ac_cv_struct_tm> | 
|  | 15489 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15490 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15491 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15492 |  | 
|  | 15493 | cat >>confdefs.h <<_ACEOF | 
|  | 15494 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 15495 | _ACEOF | 
|  | 15496 |  | 
|  | 15497 |  | 
|  | 15498 | fi | 
|  | 15499 |  | 
|  | 15500 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 15501 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15502 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15503 |  | 
|  | 15504 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15505 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 15506 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15507 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15508 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15509 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15510 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15511 | fi | 
|  | 15512 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15513 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15514 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15515 | _ACEOF | 
|  | 15516 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 15518 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15519 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15520 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15521 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15523 | /* end confdefs.h.  */ | 
|  | 15524 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15525 | #if !HAVE_DECL_TZNAME | 
|  | 15526 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15527 | #endif | 
|  | 15528 |  | 
|  | 15529 | int | 
|  | 15530 | main () | 
|  | 15531 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15532 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15533 | ; | 
|  | 15534 | return 0; | 
|  | 15535 | } | 
|  | 15536 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15537 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15538 | ac_cv_var_tzname=yes | 
|  | 15539 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15540 | ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15541 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15542 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15543 | conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15544 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 15546 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15547 | if test $ac_cv_var_tzname = yes; then | 
|  | 15548 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15549 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15550 |  | 
|  | 15551 | fi | 
|  | 15552 | fi | 
|  | 15553 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15554 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15555 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
|  | 15557 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15558 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15559 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15560 | else | 
|  | 15561 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15562 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15563 | ac_cv_working_tzset=no | 
|  | 15564 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15566 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15567 |  | 
|  | 15568 | #include <stdlib.h> | 
|  | 15569 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15570 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15571 |  | 
|  | 15572 | #if HAVE_TZNAME | 
|  | 15573 | extern char *tzname[]; | 
|  | 15574 | #endif | 
|  | 15575 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15576 | int main() | 
|  | 15577 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15578 | /* Note that we need to ensure that not only does tzset(3) | 
|  | 15579 | do 'something' with localtime, but it works as documented | 
|  | 15580 | 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] | 15581 | This includes making sure that tzname is set properly if | 
|  | 15582 | tm->tm_zone does not exist since it is the alternative way | 
|  | 15583 | of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15584 |  | 
|  | 15585 | Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15586 | after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15587 | */ | 
|  | 15588 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15589 | time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15590 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
|  | 15591 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15592 | putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15593 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15594 | if (localtime(&groundhogday)->tm_hour != 0) | 
|  | 15595 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15596 | #if HAVE_TZNAME | 
|  | 15597 | /* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
|  | 15598 | if (strcmp(tzname[0], "UTC") || | 
|  | 15599 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
|  | 15600 | exit(1); | 
|  | 15601 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15602 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15603 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15604 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15605 | if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15606 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15607 | #if HAVE_TZNAME | 
|  | 15608 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
|  | 15609 | exit(1); | 
|  | 15610 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15611 |  | 
|  | 15612 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
|  | 15613 | tzset(); | 
|  | 15614 | if (localtime(&groundhogday)->tm_hour != 11) | 
|  | 15615 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15616 | #if HAVE_TZNAME | 
|  | 15617 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
|  | 15618 | exit(1); | 
|  | 15619 | #endif | 
|  | 15620 |  | 
|  | 15621 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15622 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
|  | 15623 | exit(1); | 
|  | 15624 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
|  | 15625 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15626 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15627 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15628 | exit(0); | 
|  | 15629 | } | 
|  | 15630 |  | 
|  | 15631 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15632 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15633 | ac_cv_working_tzset=yes | 
|  | 15634 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15635 | ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15636 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15637 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15638 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15639 | fi | 
|  | 15640 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15641 | fi | 
|  | 15642 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
|  | 15644 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15645 | if test "$ac_cv_working_tzset" = yes | 
|  | 15646 | then | 
|  | 15647 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15648 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15649 |  | 
|  | 15650 | fi | 
|  | 15651 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15652 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
|  | 15654 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15655 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15656 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15657 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15659 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15660 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15661 | int | 
|  | 15662 | main () | 
|  | 15663 | { | 
|  | 15664 |  | 
|  | 15665 | struct stat st; | 
|  | 15666 | st.st_mtim.tv_nsec = 1; | 
|  | 15667 |  | 
|  | 15668 | ; | 
|  | 15669 | return 0; | 
|  | 15670 | } | 
|  | 15671 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15672 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15673 | ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15674 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15675 | ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15676 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15678 | fi | 
|  | 15679 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
|  | 15681 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15682 | if test "$ac_cv_stat_tv_nsec" = yes | 
|  | 15683 | then | 
|  | 15684 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15685 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15686 |  | 
|  | 15687 | fi | 
|  | 15688 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15689 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
|  | 15691 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15692 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15693 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15694 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15696 | /* end confdefs.h.  */ | 
|  | 15697 | #include <sys/stat.h> | 
|  | 15698 | int | 
|  | 15699 | main () | 
|  | 15700 | { | 
|  | 15701 |  | 
|  | 15702 | struct stat st; | 
|  | 15703 | st.st_mtimespec.tv_nsec = 1; | 
|  | 15704 |  | 
|  | 15705 | ; | 
|  | 15706 | return 0; | 
|  | 15707 | } | 
|  | 15708 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15709 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15710 | ac_cv_stat_tv_nsec2=yes | 
|  | 15711 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15712 | ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15713 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15715 | fi | 
|  | 15716 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
|  | 15718 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15719 | if test "$ac_cv_stat_tv_nsec2" = yes | 
|  | 15720 | then | 
|  | 15721 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15722 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15723 |  | 
|  | 15724 | fi | 
|  | 15725 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15726 | # first curses header check | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15727 | ac_save_cppflags="$CPPFLAGS" | 
|  | 15728 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15729 |  | 
|  | 15730 | for ac_header in curses.h ncurses.h | 
|  | 15731 | do : | 
|  | 15732 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15733 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
|  | 15734 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
|  | 15735 | cat >>confdefs.h <<_ACEOF | 
|  | 15736 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 15737 | _ACEOF | 
|  | 15738 |  | 
|  | 15739 | fi | 
|  | 15740 |  | 
|  | 15741 | done | 
|  | 15742 |  | 
|  | 15743 |  | 
|  | 15744 | # On Solaris, term.h requires curses.h | 
|  | 15745 | for ac_header in term.h | 
|  | 15746 | do : | 
|  | 15747 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
|  | 15748 | #ifdef HAVE_CURSES_H | 
|  | 15749 | #include <curses.h> | 
|  | 15750 | #endif | 
|  | 15751 |  | 
|  | 15752 | " | 
|  | 15753 | if test "x$ac_cv_header_term_h" = xyes; then : | 
|  | 15754 | cat >>confdefs.h <<_ACEOF | 
|  | 15755 | #define HAVE_TERM_H 1 | 
|  | 15756 | _ACEOF | 
|  | 15757 |  | 
|  | 15758 | fi | 
|  | 15759 |  | 
|  | 15760 | done | 
|  | 15761 |  | 
|  | 15762 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15763 | # On HP/UX 11.0, mvwdelch is a block with a return statement | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
|  | 15765 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15766 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15767 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15768 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15770 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15771 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15772 | int | 
|  | 15773 | main () | 
|  | 15774 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15775 |  | 
|  | 15776 | int rtn; | 
|  | 15777 | rtn = mvwdelch(0,0,0); | 
|  | 15778 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15779 | ; | 
|  | 15780 | return 0; | 
|  | 15781 | } | 
|  | 15782 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15783 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15784 | ac_cv_mvwdelch_is_expression=yes | 
|  | 15785 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15786 | ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15787 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15789 | fi | 
|  | 15790 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
|  | 15792 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15793 |  | 
|  | 15794 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
|  | 15795 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15796 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15797 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15798 |  | 
|  | 15799 | fi | 
|  | 15800 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
|  | 15802 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15803 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15804 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15805 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15807 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15808 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15809 | int | 
|  | 15810 | main () | 
|  | 15811 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15812 |  | 
|  | 15813 | WINDOW *w; | 
|  | 15814 | w->_flags = 0; | 
|  | 15815 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15816 | ; | 
|  | 15817 | return 0; | 
|  | 15818 | } | 
|  | 15819 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15820 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15821 | ac_cv_window_has_flags=yes | 
|  | 15822 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15823 | ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15824 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15826 | fi | 
|  | 15827 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
|  | 15829 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15830 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15831 |  | 
|  | 15832 | if test "$ac_cv_window_has_flags" = yes | 
|  | 15833 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15834 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15835 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15836 |  | 
|  | 15837 | fi | 
|  | 15838 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
|  | 15840 | $as_echo_n "checking for is_term_resized... " >&6; } | 
|  | 15841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15842 | /* end confdefs.h.  */ | 
|  | 15843 | #include <curses.h> | 
|  | 15844 | int | 
|  | 15845 | main () | 
|  | 15846 | { | 
|  | 15847 | void *x=is_term_resized | 
|  | 15848 | ; | 
|  | 15849 | return 0; | 
|  | 15850 | } | 
|  | 15851 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15852 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15853 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15854 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15855 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15857 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15858 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15860 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15861 |  | 
|  | 15862 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15864 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
|  | 15866 | $as_echo_n "checking for resize_term... " >&6; } | 
|  | 15867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15868 | /* end confdefs.h.  */ | 
|  | 15869 | #include <curses.h> | 
|  | 15870 | int | 
|  | 15871 | main () | 
|  | 15872 | { | 
|  | 15873 | void *x=resize_term | 
|  | 15874 | ; | 
|  | 15875 | return 0; | 
|  | 15876 | } | 
|  | 15877 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15878 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15879 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15880 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15881 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15883 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15884 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15886 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15887 |  | 
|  | 15888 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15890 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
|  | 15892 | $as_echo_n "checking for resizeterm... " >&6; } | 
|  | 15893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15894 | /* end confdefs.h.  */ | 
|  | 15895 | #include <curses.h> | 
|  | 15896 | int | 
|  | 15897 | main () | 
|  | 15898 | { | 
|  | 15899 | void *x=resizeterm | 
|  | 15900 | ; | 
|  | 15901 | return 0; | 
|  | 15902 | } | 
|  | 15903 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15904 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15905 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15906 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15907 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15909 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15910 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15912 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15913 |  | 
|  | 15914 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15916 | # last curses configure check | 
|  | 15917 | CPPFLAGS=$ac_save_cppflags | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15918 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
|  | 15920 | $as_echo "$as_me: checking for device files" >&6;} | 
|  | 15921 |  | 
|  | 15922 | if test "x$cross_compiling" = xyes; then | 
|  | 15923 | if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
|  | 15924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 15925 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
|  | 15926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
|  | 15927 | $as_echo "not set" >&6; } | 
|  | 15928 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
|  | 15929 | fi | 
|  | 15930 | if test "${ac_cv_file__dev_ptc+set}" != set; then | 
|  | 15931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 15932 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
|  | 15933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
|  | 15934 | $as_echo "not set" >&6; } | 
|  | 15935 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
|  | 15936 | fi | 
|  | 15937 | fi | 
|  | 15938 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 15940 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15941 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
|  | 15942 | $as_echo_n "(cached) " >&6 | 
|  | 15943 | else | 
|  | 15944 | test "$cross_compiling" = yes && | 
|  | 15945 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
|  | 15946 | if test -r "/dev/ptmx"; then | 
|  | 15947 | ac_cv_file__dev_ptmx=yes | 
|  | 15948 | else | 
|  | 15949 | ac_cv_file__dev_ptmx=no | 
|  | 15950 | fi | 
|  | 15951 | fi | 
|  | 15952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
|  | 15953 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
|  | 15954 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15955 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15956 | fi | 
|  | 15957 |  | 
|  | 15958 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15959 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15960 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15961 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15962 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 15964 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15965 | if ${ac_cv_file__dev_ptc+:} false; then : | 
|  | 15966 | $as_echo_n "(cached) " >&6 | 
|  | 15967 | else | 
|  | 15968 | test "$cross_compiling" = yes && | 
|  | 15969 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
|  | 15970 | if test -r "/dev/ptc"; then | 
|  | 15971 | ac_cv_file__dev_ptc=yes | 
|  | 15972 | else | 
|  | 15973 | ac_cv_file__dev_ptc=no | 
|  | 15974 | fi | 
|  | 15975 | fi | 
|  | 15976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
|  | 15977 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
|  | 15978 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15979 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15980 | fi | 
|  | 15981 |  | 
|  | 15982 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15983 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15984 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15985 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15986 | fi | 
|  | 15987 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 15988 | if test $ac_sys_system = Darwin | 
|  | 15989 | then | 
|  | 15990 | LIBS="$LIBS -framework CoreFoundation" | 
|  | 15991 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15992 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
|  | 15994 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15995 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15996 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15997 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15998 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15999 | ac_cv_have_size_t_format="cross -- assuming yes" | 
|  | 16000 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16001 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16003 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16004 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16005 | #include <stdio.h> | 
|  | 16006 | #include <stddef.h> | 
|  | 16007 | #include <string.h> | 
|  | 16008 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16009 | #ifdef HAVE_SYS_TYPES_H | 
|  | 16010 | #include <sys/types.h> | 
|  | 16011 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16012 |  | 
|  | 16013 | #ifdef HAVE_SSIZE_T | 
|  | 16014 | typedef ssize_t Py_ssize_t; | 
|  | 16015 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
|  | 16016 | typedef long Py_ssize_t; | 
|  | 16017 | #else | 
|  | 16018 | typedef int Py_ssize_t; | 
|  | 16019 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16020 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16021 | int main() | 
|  | 16022 | { | 
|  | 16023 | char buffer[256]; | 
|  | 16024 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16025 | if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
|  | 16026 | return 1; | 
|  | 16027 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16028 | if (strcmp(buffer, "123")) | 
|  | 16029 | return 1; | 
|  | 16030 |  | 
|  | 16031 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
|  | 16032 | return 1; | 
|  | 16033 |  | 
|  | 16034 | if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16035 | return 1; | 
|  | 16036 |  | 
|  | 16037 | return 0; | 
|  | 16038 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16039 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16040 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16041 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16042 | ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16043 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16044 | ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16045 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16046 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16047 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 16048 | fi | 
|  | 16049 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16050 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
|  | 16052 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16053 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16054 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16055 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16056 |  | 
|  | 16057 | fi | 
|  | 16058 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16059 | 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] | 16060 | #ifdef HAVE_SYS_TYPES_H | 
|  | 16061 | #include <sys/types.h> | 
|  | 16062 | #endif | 
|  | 16063 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 16064 | #include <sys/socket.h> | 
|  | 16065 | #endif | 
|  | 16066 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16067 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16068 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16069 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16070 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16071 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16072 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16073 |  | 
|  | 16074 | fi | 
|  | 16075 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16076 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
|  | 16078 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16079 | if ${ac_cv_broken_mbstowcs+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16080 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16081 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16082 | if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16083 | ac_cv_broken_mbstowcs=no | 
|  | 16084 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16086 | /* end confdefs.h.  */ | 
|  | 16087 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 16088 | #include <stdio.h> | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16089 | #include<stdlib.h> | 
|  | 16090 | int main() { | 
|  | 16091 | size_t len = -1; | 
|  | 16092 | const char *str = "text"; | 
|  | 16093 | len = mbstowcs(NULL, str, 0); | 
|  | 16094 | return (len != 4); | 
|  | 16095 | } | 
|  | 16096 |  | 
|  | 16097 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16098 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16099 | ac_cv_broken_mbstowcs=no | 
|  | 16100 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16101 | ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16102 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16103 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16104 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16105 | fi | 
|  | 16106 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16107 | fi | 
|  | 16108 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
|  | 16110 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16111 | if test "$ac_cv_broken_mbstowcs" = yes | 
|  | 16112 | then | 
|  | 16113 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16114 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16115 |  | 
|  | 16116 | fi | 
|  | 16117 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16118 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
|  | 16120 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16121 |  | 
|  | 16122 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16123 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16124 | withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16125 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16126 | then | 
|  | 16127 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16128 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16129 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 16131 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16132 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16133 | if test "$withval" = no | 
|  | 16134 | then | 
|  | 16135 |  | 
|  | 16136 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
|  | 16137 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 16139 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16140 | fi | 
|  | 16141 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16142 | else | 
|  | 16143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 16144 | $as_echo "no value specified" >&6; } | 
|  | 16145 | fi | 
|  | 16146 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16147 |  | 
| Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
|  | 16149 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
|  | 16150 | if ${ac_cv_computed_gotos+:} false; then : | 
|  | 16151 | $as_echo_n "(cached) " >&6 | 
|  | 16152 | else | 
|  | 16153 | if test "$cross_compiling" = yes; then : | 
|  | 16154 | if test "${with_computed_gotos+set}" = set; then | 
|  | 16155 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | 
|  | 16156 | else | 
|  | 16157 | ac_cv_computed_gotos=no | 
|  | 16158 | fi | 
|  | 16159 | else | 
|  | 16160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16161 | /* end confdefs.h.  */ | 
|  | 16162 |  | 
|  | 16163 | int main(int argc, char **argv) | 
|  | 16164 | { | 
|  | 16165 | static void *targets[1] = { &&LABEL1 }; | 
|  | 16166 | goto LABEL2; | 
|  | 16167 | LABEL1: | 
|  | 16168 | return 0; | 
|  | 16169 | LABEL2: | 
|  | 16170 | goto *targets[0]; | 
|  | 16171 | return 1; | 
|  | 16172 | } | 
|  | 16173 |  | 
|  | 16174 | _ACEOF | 
|  | 16175 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16176 | ac_cv_computed_gotos=yes | 
|  | 16177 | else | 
|  | 16178 | ac_cv_computed_gotos=no | 
|  | 16179 | fi | 
|  | 16180 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16181 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16182 | fi | 
|  | 16183 |  | 
|  | 16184 | fi | 
|  | 16185 |  | 
|  | 16186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
|  | 16187 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
|  | 16188 | case "$ac_cv_computed_gotos" in yes*) | 
|  | 16189 |  | 
|  | 16190 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
|  | 16191 |  | 
|  | 16192 | esac | 
|  | 16193 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 16194 | case $ac_sys_system in | 
|  | 16195 | AIX*) | 
|  | 16196 |  | 
|  | 16197 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
|  | 16198 | ;; | 
|  | 16199 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16200 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16201 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 16202 |  | 
|  | 16203 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16204 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
|  | 16205 | do | 
|  | 16206 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
|  | 16207 | done | 
|  | 16208 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16209 |  | 
| Ned Deily | 0db50cf | 2014-07-25 12:41:31 -0700 | [diff] [blame] | 16210 | SRCDIRS="Parser Grammar Objects Python Modules Mac Programs" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
|  | 16212 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16213 | for dir in $SRCDIRS; do | 
|  | 16214 | if test ! -d $dir; then | 
|  | 16215 | mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16216 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16217 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
|  | 16219 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16220 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16221 | # Availability of -O2: | 
|  | 16222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | 
|  | 16223 | $as_echo_n "checking for -O2... " >&6; } | 
|  | 16224 | saved_cflags="$CFLAGS" | 
|  | 16225 | CFLAGS="-O2" | 
|  | 16226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16227 | /* end confdefs.h.  */ | 
|  | 16228 |  | 
|  | 16229 | int | 
|  | 16230 | main () | 
|  | 16231 | { | 
|  | 16232 |  | 
|  | 16233 |  | 
|  | 16234 | ; | 
|  | 16235 | return 0; | 
|  | 16236 | } | 
|  | 16237 | _ACEOF | 
|  | 16238 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 16239 | have_O2=yes | 
|  | 16240 | else | 
|  | 16241 | have_O2=no | 
|  | 16242 | fi | 
|  | 16243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | 
|  | 16245 | $as_echo "$have_O2" >&6; } | 
|  | 16246 | CFLAGS="$saved_cflags" | 
|  | 16247 |  | 
|  | 16248 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | 
|  | 16249 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | 
|  | 16250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | 
|  | 16251 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | 
|  | 16252 | saved_cflags="$CFLAGS" | 
|  | 16253 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | 
|  | 16254 | if test "$have_O2" = no; then | 
|  | 16255 | CFLAGS="" | 
|  | 16256 | fi | 
|  | 16257 | if test "$cross_compiling" = yes; then : | 
|  | 16258 | have_glibc_memmove_bug=undefined | 
|  | 16259 | else | 
|  | 16260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16261 | /* end confdefs.h.  */ | 
|  | 16262 |  | 
|  | 16263 | #include <stdio.h> | 
|  | 16264 | #include <stdlib.h> | 
|  | 16265 | #include <string.h> | 
|  | 16266 | void foo(void *p, void *q) { memmove(p, q, 19); } | 
|  | 16267 | int main() { | 
|  | 16268 | char a[32] = "123456789000000000"; | 
|  | 16269 | foo(&a[9], a); | 
|  | 16270 | if (strcmp(a, "123456789123456789000000000") != 0) | 
|  | 16271 | return 1; | 
|  | 16272 | foo(a, &a[9]); | 
|  | 16273 | if (strcmp(a, "123456789000000000") != 0) | 
|  | 16274 | return 1; | 
|  | 16275 | return 0; | 
|  | 16276 | } | 
|  | 16277 |  | 
|  | 16278 | _ACEOF | 
|  | 16279 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16280 | have_glibc_memmove_bug=no | 
|  | 16281 | else | 
|  | 16282 | have_glibc_memmove_bug=yes | 
|  | 16283 | fi | 
|  | 16284 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16285 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16286 | fi | 
|  | 16287 |  | 
|  | 16288 | CFLAGS="$saved_cflags" | 
|  | 16289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | 
|  | 16290 | $as_echo "$have_glibc_memmove_bug" >&6; } | 
|  | 16291 | if test "$have_glibc_memmove_bug" = yes; then | 
|  | 16292 |  | 
|  | 16293 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | 
|  | 16294 |  | 
|  | 16295 | fi | 
|  | 16296 |  | 
|  | 16297 | if test "$have_gcc_asm_for_x87" = yes; then | 
|  | 16298 | # Some versions of gcc miscompile inline asm: | 
|  | 16299 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | 
|  | 16300 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | 
|  | 16301 | case $CC in | 
|  | 16302 | *gcc*) | 
|  | 16303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | 
|  | 16304 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | 
|  | 16305 | saved_cflags="$CFLAGS" | 
|  | 16306 | CFLAGS="-O2" | 
|  | 16307 | if test "$cross_compiling" = yes; then : | 
|  | 16308 | have_ipa_pure_const_bug=undefined | 
|  | 16309 | else | 
|  | 16310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16311 | /* end confdefs.h.  */ | 
|  | 16312 |  | 
|  | 16313 | __attribute__((noinline)) int | 
|  | 16314 | foo(int *p) { | 
|  | 16315 | int r; | 
|  | 16316 | asm ( "movl \$6, (%1)\n\t" | 
|  | 16317 | "xorl %0, %0\n\t" | 
|  | 16318 | : "=r" (r) : "r" (p) : "memory" | 
|  | 16319 | ); | 
|  | 16320 | return r; | 
|  | 16321 | } | 
|  | 16322 | int main() { | 
|  | 16323 | int p = 8; | 
|  | 16324 | if ((foo(&p) ? : p) != 6) | 
|  | 16325 | return 1; | 
|  | 16326 | return 0; | 
|  | 16327 | } | 
|  | 16328 |  | 
|  | 16329 | _ACEOF | 
|  | 16330 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16331 | have_ipa_pure_const_bug=no | 
|  | 16332 | else | 
|  | 16333 | have_ipa_pure_const_bug=yes | 
|  | 16334 | fi | 
|  | 16335 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16336 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16337 | fi | 
|  | 16338 |  | 
|  | 16339 | CFLAGS="$saved_cflags" | 
|  | 16340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | 
|  | 16341 | $as_echo "$have_ipa_pure_const_bug" >&6; } | 
|  | 16342 | if test "$have_ipa_pure_const_bug" = yes; then | 
|  | 16343 |  | 
|  | 16344 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | 
|  | 16345 |  | 
|  | 16346 | fi | 
|  | 16347 | ;; | 
|  | 16348 | esac | 
|  | 16349 | fi | 
|  | 16350 |  | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16351 | # Check for stdatomic.h | 
|  | 16352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 | 
|  | 16353 | $as_echo_n "checking for stdatomic.h... " >&6; } | 
|  | 16354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16355 | /* end confdefs.h.  */ | 
|  | 16356 |  | 
|  | 16357 |  | 
|  | 16358 | #include <stdatomic.h> | 
| Victor Stinner | 923e06f | 2015-01-14 16:01:46 +0100 | [diff] [blame] | 16359 | atomic_int value = ATOMIC_VAR_INIT(1); | 
|  | 16360 | _Atomic void *py_atomic_address = (void*) &value; | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16361 | int main() { | 
|  | 16362 | int loaded_value = atomic_load(&value); | 
|  | 16363 | return 0; | 
|  | 16364 | } | 
|  | 16365 |  | 
|  | 16366 |  | 
|  | 16367 | _ACEOF | 
|  | 16368 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16369 | have_stdatomic_h=yes | 
|  | 16370 | else | 
|  | 16371 | have_stdatomic_h=no | 
|  | 16372 | fi | 
|  | 16373 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16374 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16375 |  | 
|  | 16376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 | 
|  | 16377 | $as_echo "$have_stdatomic_h" >&6; } | 
|  | 16378 |  | 
|  | 16379 | if test "$have_stdatomic_h" = yes; then | 
|  | 16380 |  | 
|  | 16381 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h | 
|  | 16382 |  | 
|  | 16383 | fi | 
|  | 16384 |  | 
|  | 16385 | # Check for GCC >= 4.7 __atomic builtins | 
|  | 16386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 | 
|  | 16387 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } | 
|  | 16388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16389 | /* end confdefs.h.  */ | 
|  | 16390 |  | 
|  | 16391 |  | 
|  | 16392 | volatile int val = 1; | 
|  | 16393 | int main() { | 
|  | 16394 | __atomic_load_n(&val, __ATOMIC_SEQ_CST); | 
|  | 16395 | return 0; | 
|  | 16396 | } | 
|  | 16397 |  | 
|  | 16398 |  | 
|  | 16399 | _ACEOF | 
|  | 16400 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16401 | have_builtin_atomic=yes | 
|  | 16402 | else | 
|  | 16403 | have_builtin_atomic=no | 
|  | 16404 | fi | 
|  | 16405 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16406 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16407 |  | 
|  | 16408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 | 
|  | 16409 | $as_echo "$have_builtin_atomic" >&6; } | 
|  | 16410 |  | 
|  | 16411 | if test "$have_builtin_atomic" = yes; then | 
|  | 16412 |  | 
|  | 16413 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h | 
|  | 16414 |  | 
|  | 16415 | fi | 
|  | 16416 |  | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 16417 | # ensurepip option | 
|  | 16418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | 
|  | 16419 | $as_echo_n "checking for ensurepip... " >&6; } | 
|  | 16420 |  | 
|  | 16421 | # Check whether --with-ensurepip was given. | 
|  | 16422 | if test "${with_ensurepip+set}" = set; then : | 
|  | 16423 | withval=$with_ensurepip; | 
|  | 16424 | else | 
|  | 16425 | with_ensurepip=upgrade | 
|  | 16426 | fi | 
|  | 16427 |  | 
|  | 16428 | case $with_ensurepip in #( | 
|  | 16429 | yes|upgrade) : | 
|  | 16430 | ENSUREPIP=upgrade ;; #( | 
|  | 16431 | install) : | 
|  | 16432 | ENSUREPIP=install ;; #( | 
|  | 16433 | no) : | 
|  | 16434 | ENSUREPIP=no ;; #( | 
|  | 16435 | *) : | 
|  | 16436 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | 
|  | 16437 | esac | 
|  | 16438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | 
|  | 16439 | $as_echo "$ENSUREPIP" >&6; } | 
|  | 16440 |  | 
|  | 16441 |  | 
| Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 16442 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined | 
|  | 16443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 | 
|  | 16444 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | 
|  | 16445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16446 | /* end confdefs.h.  */ | 
|  | 16447 |  | 
|  | 16448 |  | 
|  | 16449 | #include <dirent.h> | 
|  | 16450 |  | 
|  | 16451 | int main() { | 
|  | 16452 | struct dirent entry; | 
|  | 16453 | return entry.d_type == DT_UNKNOWN; | 
|  | 16454 | } | 
|  | 16455 |  | 
|  | 16456 |  | 
|  | 16457 | _ACEOF | 
|  | 16458 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16459 | have_dirent_d_type=yes | 
|  | 16460 | else | 
|  | 16461 | have_dirent_d_type=no | 
|  | 16462 | fi | 
|  | 16463 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16464 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 | 
|  | 16466 | $as_echo "$have_dirent_d_type" >&6; } | 
|  | 16467 |  | 
|  | 16468 | if test "$have_dirent_d_type" = yes; then | 
|  | 16469 |  | 
|  | 16470 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h | 
|  | 16471 |  | 
|  | 16472 | fi | 
|  | 16473 |  | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16474 | # check if the Linux getrandom() syscall is available | 
|  | 16475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 | 
|  | 16476 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | 
|  | 16477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16478 | /* end confdefs.h.  */ | 
|  | 16479 |  | 
|  | 16480 |  | 
| Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 16481 | #include <unistd.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16482 | #include <sys/syscall.h> | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16483 | #include <linux/random.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16484 |  | 
|  | 16485 | int main() { | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16486 | char buffer[1]; | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16487 | const size_t buflen = sizeof(buffer); | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16488 | const int flags = GRND_NONBLOCK; | 
|  | 16489 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16490 | (void)syscall(SYS_getrandom, buffer, buflen, flags); | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16491 | return 0; | 
|  | 16492 | } | 
|  | 16493 |  | 
|  | 16494 |  | 
|  | 16495 | _ACEOF | 
|  | 16496 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16497 | have_getrandom_syscall=yes | 
|  | 16498 | else | 
|  | 16499 | have_getrandom_syscall=no | 
|  | 16500 | fi | 
|  | 16501 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16502 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 | 
|  | 16504 | $as_echo "$have_getrandom_syscall" >&6; } | 
|  | 16505 |  | 
|  | 16506 | if test "$have_getrandom_syscall" = yes; then | 
|  | 16507 |  | 
|  | 16508 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h | 
|  | 16509 |  | 
|  | 16510 | fi | 
|  | 16511 |  | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16512 | # check if the getrandom() function is available | 
|  | 16513 | # the test was written for the Solaris function of <sys/random.h> | 
|  | 16514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 | 
|  | 16515 | $as_echo_n "checking for the getrandom() function... " >&6; } | 
|  | 16516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16517 | /* end confdefs.h.  */ | 
|  | 16518 |  | 
|  | 16519 |  | 
|  | 16520 | #include <sys/random.h> | 
|  | 16521 |  | 
|  | 16522 | int main() { | 
|  | 16523 | char buffer[1]; | 
|  | 16524 | const size_t buflen = sizeof(buffer); | 
|  | 16525 | const int flags = 0; | 
|  | 16526 | /* ignore the result, Python checks for ENOSYS at runtime */ | 
|  | 16527 | (void)getrandom(buffer, buflen, flags); | 
|  | 16528 | return 0; | 
|  | 16529 | } | 
|  | 16530 |  | 
|  | 16531 |  | 
|  | 16532 | _ACEOF | 
|  | 16533 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16534 | have_getrandom=yes | 
|  | 16535 | else | 
|  | 16536 | have_getrandom=no | 
|  | 16537 | fi | 
|  | 16538 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16539 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 | 
|  | 16541 | $as_echo "$have_getrandom" >&6; } | 
|  | 16542 |  | 
|  | 16543 | if test "$have_getrandom" = yes; then | 
|  | 16544 |  | 
|  | 16545 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h | 
|  | 16546 |  | 
|  | 16547 | fi | 
|  | 16548 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16549 | # generate output files | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 16550 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc Misc/python-config.sh" | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 16551 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16552 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
|  | 16553 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16554 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16555 | # This file is a shell script that caches the results of configure | 
|  | 16556 | # 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] | 16557 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 16558 | # It is not useful on other systems.  If it contains results you don't | 
|  | 16559 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16560 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16561 | # config.status only pays attention to the cache file if you give it | 
|  | 16562 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16563 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16564 | # `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] | 16565 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 16566 | # following values. | 
|  | 16567 |  | 
|  | 16568 | _ACEOF | 
|  | 16569 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16570 | # The following way of writing the cache mishandles newlines in values, | 
|  | 16571 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16572 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16573 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 16574 | # 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] | 16575 | ( | 
|  | 16576 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 16577 | eval ac_val=\$$ac_var | 
|  | 16578 | case $ac_val in #( | 
|  | 16579 | *${as_nl}*) | 
|  | 16580 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16581 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 16582 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16583 | esac | 
|  | 16584 | case $ac_var in #( | 
|  | 16585 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16586 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 16587 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16588 | esac ;; | 
|  | 16589 | esac | 
|  | 16590 | done | 
|  | 16591 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16592 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16593 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 16594 | *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16595 | # `set' does not quote correctly, so add quotes: double-quote | 
|  | 16596 | # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16597 | sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16598 | "s/'/'\\\\''/g; | 
|  | 16599 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16600 | ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16601 | *) | 
|  | 16602 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16603 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16604 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16605 | esac | | 
|  | 16606 | sort | 
|  | 16607 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16608 | sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16609 | /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16610 | t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16611 | :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16612 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 16613 | t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16614 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 16615 | :end' >>confcache | 
|  | 16616 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 16617 | if test -w "$cache_file"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16618 | if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16619 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
|  | 16620 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16621 | if test ! -f "$cache_file" || test -h "$cache_file"; then | 
|  | 16622 | cat confcache >"$cache_file" | 
|  | 16623 | else | 
|  | 16624 | case $cache_file in #( | 
|  | 16625 | */* | ?:*) | 
|  | 16626 | mv -f confcache "$cache_file"$$ && | 
|  | 16627 | mv -f "$cache_file"$$ "$cache_file" ;; #( | 
|  | 16628 | *) | 
|  | 16629 | mv -f confcache "$cache_file" ;; | 
|  | 16630 | esac | 
|  | 16631 | fi | 
|  | 16632 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16633 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16634 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
|  | 16635 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16636 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16637 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16638 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16639 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16640 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 16641 | # Let make expand exec_prefix. | 
|  | 16642 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16643 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16644 | DEFS=-DHAVE_CONFIG_H | 
|  | 16645 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16646 | ac_libobjs= | 
|  | 16647 | ac_ltlibobjs= | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16648 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16649 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 16650 | # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16651 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16652 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16653 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 16654 | #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16655 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 16656 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16657 | done | 
|  | 16658 | LIBOBJS=$ac_libobjs | 
|  | 16659 |  | 
|  | 16660 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 16661 |  | 
|  | 16662 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16663 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16664 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16665 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16666 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16667 | ac_clean_files_save=$ac_clean_files | 
|  | 16668 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16669 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
|  | 16670 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 16671 | as_write_fail=0 | 
|  | 16672 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16673 | #! $SHELL | 
|  | 16674 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16675 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16676 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16677 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16678 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16679 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16680 | ac_cs_recheck=false | 
|  | 16681 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16682 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16683 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 16684 | export SHELL | 
|  | 16685 | _ASEOF | 
|  | 16686 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
|  | 16687 | ## -------------------- ## | 
|  | 16688 | ## M4sh Initialization. ## | 
|  | 16689 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16690 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16691 | # Be more Bourne compatible | 
|  | 16692 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16693 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16694 | emulate sh | 
|  | 16695 | NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16696 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16697 | # is contrary to our usage.  Disable this feature. | 
|  | 16698 | alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16699 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16700 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16701 | case `(set -o) 2>/dev/null` in #( | 
|  | 16702 | *posix*) : | 
|  | 16703 | set -o posix ;; #( | 
|  | 16704 | *) : | 
|  | 16705 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16706 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16707 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16708 |  | 
|  | 16709 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16710 | as_nl=' | 
|  | 16711 | ' | 
|  | 16712 | export as_nl | 
|  | 16713 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 16714 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 16715 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 16716 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 16717 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 16718 | # but without wasting forks for bash or zsh. | 
|  | 16719 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 16720 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 16721 | as_echo='print -r --' | 
|  | 16722 | as_echo_n='print -rn --' | 
|  | 16723 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 16724 | as_echo='printf %s\n' | 
|  | 16725 | as_echo_n='printf %s' | 
|  | 16726 | else | 
|  | 16727 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 16728 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 16729 | as_echo_n='/usr/ucb/echo -n' | 
|  | 16730 | else | 
|  | 16731 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 16732 | as_echo_n_body='eval | 
|  | 16733 | arg=$1; | 
|  | 16734 | case $arg in #( | 
|  | 16735 | *"$as_nl"*) | 
|  | 16736 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 16737 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 16738 | esac; | 
|  | 16739 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 16740 | ' | 
|  | 16741 | export as_echo_n_body | 
|  | 16742 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 16743 | fi | 
|  | 16744 | export as_echo_body | 
|  | 16745 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 16746 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16747 |  | 
|  | 16748 | # The user is always right. | 
|  | 16749 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16750 | PATH_SEPARATOR=: | 
|  | 16751 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 16752 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 16753 | PATH_SEPARATOR=';' | 
|  | 16754 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16755 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16756 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16757 |  | 
|  | 16758 | # IFS | 
|  | 16759 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 16760 | # there to prevent editors from complaining about space-tab. | 
|  | 16761 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 16762 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16763 | IFS=" ""	$as_nl" | 
|  | 16764 |  | 
|  | 16765 | # 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] | 16766 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16767 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16768 | *[\\/]* ) as_myself=$0 ;; | 
|  | 16769 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16770 | for as_dir in $PATH | 
|  | 16771 | do | 
|  | 16772 | IFS=$as_save_IFS | 
|  | 16773 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16774 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 16775 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16776 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16777 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16778 | ;; | 
|  | 16779 | esac | 
|  | 16780 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 16781 | # in which case we are not to be found in the path. | 
|  | 16782 | if test "x$as_myself" = x; then | 
|  | 16783 | as_myself=$0 | 
|  | 16784 | fi | 
|  | 16785 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16786 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 16787 | exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16788 | fi | 
|  | 16789 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16790 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 16791 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 16792 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 16793 | # trigger a bug in pdksh 5.2.14. | 
|  | 16794 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 16795 | do eval test x\${$as_var+set} = xset \ | 
|  | 16796 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16797 | done | 
|  | 16798 | PS1='$ ' | 
|  | 16799 | PS2='> ' | 
|  | 16800 | PS4='+ ' | 
|  | 16801 |  | 
|  | 16802 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16803 | LC_ALL=C | 
|  | 16804 | export LC_ALL | 
|  | 16805 | LANGUAGE=C | 
|  | 16806 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16807 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16808 | # CDPATH. | 
|  | 16809 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 16810 |  | 
|  | 16811 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16812 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 16813 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16814 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 16815 | # 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] | 16816 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16817 | as_fn_error () | 
|  | 16818 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16819 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 16820 | if test "$4"; then | 
|  | 16821 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 16822 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16823 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16824 | $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16825 | as_fn_exit $as_status | 
|  | 16826 | } # as_fn_error | 
|  | 16827 |  | 
|  | 16828 |  | 
|  | 16829 | # as_fn_set_status STATUS | 
|  | 16830 | # ----------------------- | 
|  | 16831 | # Set $? to STATUS, without forking. | 
|  | 16832 | as_fn_set_status () | 
|  | 16833 | { | 
|  | 16834 | return $1 | 
|  | 16835 | } # as_fn_set_status | 
|  | 16836 |  | 
|  | 16837 | # as_fn_exit STATUS | 
|  | 16838 | # ----------------- | 
|  | 16839 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 16840 | as_fn_exit () | 
|  | 16841 | { | 
|  | 16842 | set +e | 
|  | 16843 | as_fn_set_status $1 | 
|  | 16844 | exit $1 | 
|  | 16845 | } # as_fn_exit | 
|  | 16846 |  | 
|  | 16847 | # as_fn_unset VAR | 
|  | 16848 | # --------------- | 
|  | 16849 | # Portably unset VAR. | 
|  | 16850 | as_fn_unset () | 
|  | 16851 | { | 
|  | 16852 | { eval $1=; unset $1;} | 
|  | 16853 | } | 
|  | 16854 | as_unset=as_fn_unset | 
|  | 16855 | # as_fn_append VAR VALUE | 
|  | 16856 | # ---------------------- | 
|  | 16857 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 16858 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 16859 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 16860 | # implementations. | 
|  | 16861 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 16862 | eval 'as_fn_append () | 
|  | 16863 | { | 
|  | 16864 | eval $1+=\$2 | 
|  | 16865 | }' | 
|  | 16866 | else | 
|  | 16867 | as_fn_append () | 
|  | 16868 | { | 
|  | 16869 | eval $1=\$$1\$2 | 
|  | 16870 | } | 
|  | 16871 | fi # as_fn_append | 
|  | 16872 |  | 
|  | 16873 | # as_fn_arith ARG... | 
|  | 16874 | # ------------------ | 
|  | 16875 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 16876 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 16877 | # must be portable across $(()) and expr. | 
|  | 16878 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 16879 | eval 'as_fn_arith () | 
|  | 16880 | { | 
|  | 16881 | as_val=$(( $* )) | 
|  | 16882 | }' | 
|  | 16883 | else | 
|  | 16884 | as_fn_arith () | 
|  | 16885 | { | 
|  | 16886 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 16887 | } | 
|  | 16888 | fi # as_fn_arith | 
|  | 16889 |  | 
|  | 16890 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16891 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 16892 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 16893 | as_expr=expr | 
|  | 16894 | else | 
|  | 16895 | as_expr=false | 
|  | 16896 | fi | 
|  | 16897 |  | 
|  | 16898 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 16899 | as_basename=basename | 
|  | 16900 | else | 
|  | 16901 | as_basename=false | 
|  | 16902 | fi | 
|  | 16903 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16904 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 16905 | as_dirname=dirname | 
|  | 16906 | else | 
|  | 16907 | as_dirname=false | 
|  | 16908 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16909 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16910 | as_me=`$as_basename -- "$0" || | 
|  | 16911 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 16912 | X"$0" : 'X\(//\)$' \| \ | 
|  | 16913 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16914 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16915 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 16916 | s//\1/ | 
|  | 16917 | q | 
|  | 16918 | } | 
|  | 16919 | /^X\/\(\/\/\)$/{ | 
|  | 16920 | s//\1/ | 
|  | 16921 | q | 
|  | 16922 | } | 
|  | 16923 | /^X\/\(\/\).*/{ | 
|  | 16924 | s//\1/ | 
|  | 16925 | q | 
|  | 16926 | } | 
|  | 16927 | s/.*/./; q'` | 
|  | 16928 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16929 | # Avoid depending upon Character Ranges. | 
|  | 16930 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 16931 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 16932 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 16933 | as_cr_digits='0123456789' | 
|  | 16934 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16935 |  | 
|  | 16936 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16937 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16938 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16939 | case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16940 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16941 | xy)  ECHO_C='\c';; | 
|  | 16942 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 16943 | ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16944 | esac;; | 
|  | 16945 | *) | 
|  | 16946 | ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16947 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 16948 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16949 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16950 | if test -d conf$$.dir; then | 
|  | 16951 | rm -f conf$$.dir/conf$$.file | 
|  | 16952 | else | 
|  | 16953 | rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16954 | mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16955 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16956 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 16957 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 16958 | as_ln_s='ln -s' | 
|  | 16959 | # ... but there are two gotchas: | 
|  | 16960 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 16961 | # 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] | 16962 | # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16963 | 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] | 16964 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16965 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 16966 | as_ln_s=ln | 
|  | 16967 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16968 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16969 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16970 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16971 | as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16972 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16973 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 16974 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16975 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16976 |  | 
|  | 16977 | # as_fn_mkdir_p | 
|  | 16978 | # ------------- | 
|  | 16979 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 16980 | as_fn_mkdir_p () | 
|  | 16981 | { | 
|  | 16982 |  | 
|  | 16983 | case $as_dir in #( | 
|  | 16984 | -*) as_dir=./$as_dir;; | 
|  | 16985 | esac | 
|  | 16986 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 16987 | as_dirs= | 
|  | 16988 | while :; do | 
|  | 16989 | case $as_dir in #( | 
|  | 16990 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 16991 | *) as_qdir=$as_dir;; | 
|  | 16992 | esac | 
|  | 16993 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 16994 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 16995 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 16996 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 16997 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 16998 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 16999 | $as_echo X"$as_dir" | | 
|  | 17000 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 17001 | s//\1/ | 
|  | 17002 | q | 
|  | 17003 | } | 
|  | 17004 | /^X\(\/\/\)[^/].*/{ | 
|  | 17005 | s//\1/ | 
|  | 17006 | q | 
|  | 17007 | } | 
|  | 17008 | /^X\(\/\/\)$/{ | 
|  | 17009 | s//\1/ | 
|  | 17010 | q | 
|  | 17011 | } | 
|  | 17012 | /^X\(\/\).*/{ | 
|  | 17013 | s//\1/ | 
|  | 17014 | q | 
|  | 17015 | } | 
|  | 17016 | s/.*/./; q'` | 
|  | 17017 | test -d "$as_dir" && break | 
|  | 17018 | done | 
|  | 17019 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17020 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17021 |  | 
|  | 17022 |  | 
|  | 17023 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17024 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17025 | as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17026 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17027 | test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17028 | as_mkdir_p=false | 
|  | 17029 | fi | 
|  | 17030 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17031 |  | 
|  | 17032 | # as_fn_executable_p FILE | 
|  | 17033 | # ----------------------- | 
|  | 17034 | # Test if FILE is an executable regular file. | 
|  | 17035 | as_fn_executable_p () | 
|  | 17036 | { | 
|  | 17037 | test -f "$1" && test -x "$1" | 
|  | 17038 | } # as_fn_executable_p | 
|  | 17039 | as_test_x='test -x' | 
|  | 17040 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17041 |  | 
|  | 17042 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17043 | 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] | 17044 |  | 
|  | 17045 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17046 | 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] | 17047 |  | 
|  | 17048 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17049 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17050 | ## ----------------------------------- ## | 
|  | 17051 | ## Main body of $CONFIG_STATUS script. ## | 
|  | 17052 | ## ----------------------------------- ## | 
|  | 17053 | _ASEOF | 
|  | 17054 | 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] | 17055 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17056 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 17057 | # 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] | 17058 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17059 | # values after options handling. | 
|  | 17060 | ac_log=" | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 17061 | This file was extended by python $as_me 3.6, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17062 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17063 |  | 
|  | 17064 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 17065 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 17066 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 17067 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 17068 | $ $0 $@ | 
|  | 17069 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17070 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 17071 | " | 
|  | 17072 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17073 | _ACEOF | 
|  | 17074 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17075 | case $ac_config_files in *" | 
|  | 17076 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
|  | 17077 | esac | 
|  | 17078 |  | 
|  | 17079 | case $ac_config_headers in *" | 
|  | 17080 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
|  | 17081 | esac | 
|  | 17082 |  | 
|  | 17083 |  | 
|  | 17084 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17085 | # Files that config.status was made for. | 
| Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 17086 | config_files="$ac_config_files" | 
|  | 17087 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17088 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17089 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17090 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17091 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17092 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17093 | \`$as_me' instantiates files and other configuration actions | 
|  | 17094 | from templates according to the current configuration.  Unless the files | 
|  | 17095 | 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] | 17096 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17097 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17098 |  | 
|  | 17099 | -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17100 | -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17101 | --config     print configuration, then exit | 
|  | 17102 | -q, --quiet, --silent | 
|  | 17103 | do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17104 | -d, --debug      don't remove temporary files | 
|  | 17105 | --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17106 | --file=FILE[:TEMPLATE] | 
|  | 17107 | instantiate the configuration file FILE | 
|  | 17108 | --header=FILE[:TEMPLATE] | 
|  | 17109 | instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17110 |  | 
|  | 17111 | Configuration files: | 
|  | 17112 | $config_files | 
|  | 17113 |  | 
|  | 17114 | Configuration headers: | 
|  | 17115 | $config_headers | 
|  | 17116 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 17117 | Report bugs to <https://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 17118 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17119 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17120 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17121 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17122 | ac_cs_version="\\ | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 17123 | python config.status 3.6 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17124 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17125 | with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17126 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17127 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17128 | This config.status script is free software; the Free Software Foundation | 
|  | 17129 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17130 |  | 
|  | 17131 | ac_pwd='$ac_pwd' | 
|  | 17132 | srcdir='$srcdir' | 
|  | 17133 | INSTALL='$INSTALL' | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17134 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17135 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17136 | _ACEOF | 
|  | 17137 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17138 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 17139 | # 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] | 17140 | ac_need_defaults=: | 
|  | 17141 | while test $# != 0 | 
|  | 17142 | do | 
|  | 17143 | case $1 in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17144 | --*=?*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17145 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 17146 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17147 | ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17148 | ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17149 | --*=) | 
|  | 17150 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 17151 | ac_optarg= | 
|  | 17152 | ac_shift=: | 
|  | 17153 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17154 | *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17155 | ac_option=$1 | 
|  | 17156 | ac_optarg=$2 | 
|  | 17157 | ac_shift=shift | 
|  | 17158 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17159 | esac | 
|  | 17160 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17161 | case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17162 | # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17163 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 17164 | ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17165 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17166 | $as_echo "$ac_cs_version"; exit ;; | 
|  | 17167 | --config | --confi | --conf | --con | --co | --c ) | 
|  | 17168 | $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17169 | --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17170 | debug=: ;; | 
|  | 17171 | --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17172 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17173 | case $ac_optarg in | 
|  | 17174 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17175 | '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17176 | esac | 
|  | 17177 | as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17178 | ac_need_defaults=false;; | 
|  | 17179 | --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17180 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17181 | case $ac_optarg in | 
|  | 17182 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 17183 | esac | 
|  | 17184 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17185 | ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17186 | --he | --h) | 
|  | 17187 | # Conflict between --help and --header | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17188 | as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17189 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17190 | --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17191 | $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17192 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 17193 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 17194 | ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17195 |  | 
|  | 17196 | # This is an error. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17197 | -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17198 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17199 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17200 | *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17201 | ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17202 |  | 
|  | 17203 | esac | 
|  | 17204 | shift | 
|  | 17205 | done | 
|  | 17206 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17207 | ac_configure_extra_args= | 
|  | 17208 |  | 
|  | 17209 | if $ac_cs_silent; then | 
|  | 17210 | exec 6>/dev/null | 
|  | 17211 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 17212 | fi | 
|  | 17213 |  | 
|  | 17214 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17215 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17216 | if \$ac_cs_recheck; then | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17217 | 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] | 17218 | shift | 
|  | 17219 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
|  | 17220 | CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17221 | export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17222 | exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17223 | fi | 
|  | 17224 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17225 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17226 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17227 | exec 5>>config.log | 
|  | 17228 | { | 
|  | 17229 | echo | 
|  | 17230 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 17231 | ## Running $as_me. ## | 
|  | 17232 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17233 | $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17234 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17235 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17236 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17237 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17238 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17239 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17240 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17241 |  | 
|  | 17242 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17243 | for ac_config_target in $ac_config_targets | 
|  | 17244 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17245 | case $ac_config_target in | 
|  | 17246 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
|  | 17247 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
|  | 17248 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 17249 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
|  | 17250 | "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] | 17251 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
|  | 17252 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17253 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17254 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17255 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17256 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17257 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17258 | esac | 
|  | 17259 | done | 
|  | 17260 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17261 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17262 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 17263 | # then the envvar interface is used.  Set only those that are not. | 
|  | 17264 | # We use the long form for the default assignment because of an extremely | 
|  | 17265 | # bizarre bug on SunOS 4.1.3. | 
|  | 17266 | if $ac_need_defaults; then | 
|  | 17267 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 17268 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
|  | 17269 | fi | 
|  | 17270 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17271 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17272 | # 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] | 17273 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17274 | # Hook for its removal unless debugging. | 
|  | 17275 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 17276 | # 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] | 17277 | $debug || | 
|  | 17278 | { | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17279 | tmp= ac_tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17280 | trap 'exit_status=$? | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17281 | : "${ac_tmp:=$tmp}" | 
|  | 17282 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17283 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17284 | trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17285 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17286 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17287 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17288 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17289 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17290 | test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17291 | }  || | 
|  | 17292 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17293 | tmp=./conf$$-$RANDOM | 
|  | 17294 | (umask 077 && mkdir "$tmp") | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17295 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17296 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17297 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17298 | # Set up the scripts for CONFIG_FILES section. | 
|  | 17299 | # No need to generate them if there are no CONFIG_FILES. | 
|  | 17300 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17301 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17302 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17303 |  | 
|  | 17304 | ac_cr=`echo X | tr X '\015'` | 
|  | 17305 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
|  | 17306 | # But we know of no other shell where ac_cr would be empty at this | 
|  | 17307 | # point, so we can use a bashism as a fallback. | 
|  | 17308 | if test "x$ac_cr" = x; then | 
|  | 17309 | eval ac_cr=\$\'\\r\' | 
|  | 17310 | fi | 
|  | 17311 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
|  | 17312 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17313 | ac_cs_awk_cr='\\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17314 | else | 
|  | 17315 | ac_cs_awk_cr=$ac_cr | 
|  | 17316 | fi | 
|  | 17317 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17318 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17319 | _ACEOF | 
|  | 17320 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17321 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17322 | { | 
|  | 17323 | echo "cat >conf$$subs.awk <<_ACEOF" && | 
|  | 17324 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
|  | 17325 | echo "_ACEOF" | 
|  | 17326 | } >conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17327 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
|  | 17328 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17329 | ac_delim='%!_!# ' | 
|  | 17330 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17331 | . ./conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17332 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17333 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17334 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
|  | 17335 | if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17336 | break | 
|  | 17337 | elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17338 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17339 | else | 
|  | 17340 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17341 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17342 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17343 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17344 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17345 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17346 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17347 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17348 | sed -n ' | 
|  | 17349 | h | 
|  | 17350 | s/^/S["/; s/!.*/"]=/ | 
|  | 17351 | p | 
|  | 17352 | g | 
|  | 17353 | s/^[^!]*!// | 
|  | 17354 | :repl | 
|  | 17355 | t repl | 
|  | 17356 | s/'"$ac_delim"'$// | 
|  | 17357 | t delim | 
|  | 17358 | :nl | 
|  | 17359 | h | 
|  | 17360 | s/\(.\{148\}\)..*/\1/ | 
|  | 17361 | t more1 | 
|  | 17362 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
|  | 17363 | p | 
|  | 17364 | n | 
|  | 17365 | b repl | 
|  | 17366 | :more1 | 
|  | 17367 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 17368 | p | 
|  | 17369 | g | 
|  | 17370 | s/.\{148\}// | 
|  | 17371 | t nl | 
|  | 17372 | :delim | 
|  | 17373 | h | 
|  | 17374 | s/\(.\{148\}\)..*/\1/ | 
|  | 17375 | t more2 | 
|  | 17376 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
|  | 17377 | p | 
|  | 17378 | b | 
|  | 17379 | :more2 | 
|  | 17380 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 17381 | p | 
|  | 17382 | g | 
|  | 17383 | s/.\{148\}// | 
|  | 17384 | t delim | 
|  | 17385 | ' <conf$$subs.awk | sed ' | 
|  | 17386 | /^[^""]/{ | 
|  | 17387 | N | 
|  | 17388 | s/\n// | 
|  | 17389 | } | 
|  | 17390 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 17391 | rm -f conf$$subs.awk | 
|  | 17392 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17393 | _ACAWK | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17394 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17395 | for (key in S) S_is_set[key] = 1 | 
|  | 17396 | FS = "" | 
|  | 17397 |  | 
|  | 17398 | } | 
|  | 17399 | { | 
|  | 17400 | line = $ 0 | 
|  | 17401 | nfields = split(line, field, "@") | 
|  | 17402 | substed = 0 | 
|  | 17403 | len = length(field[1]) | 
|  | 17404 | for (i = 2; i < nfields; i++) { | 
|  | 17405 | key = field[i] | 
|  | 17406 | keylen = length(key) | 
|  | 17407 | if (S_is_set[key]) { | 
|  | 17408 | value = S[key] | 
|  | 17409 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
|  | 17410 | len += length(value) + length(field[++i]) | 
|  | 17411 | substed = 1 | 
|  | 17412 | } else | 
|  | 17413 | len += 1 + keylen | 
|  | 17414 | } | 
|  | 17415 |  | 
|  | 17416 | print line | 
|  | 17417 | } | 
|  | 17418 |  | 
|  | 17419 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17420 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17421 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 17422 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
|  | 17423 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
|  | 17424 | else | 
|  | 17425 | cat | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17426 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17427 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17428 | _ACEOF | 
|  | 17429 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17430 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
|  | 17431 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17432 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 17433 | # (actually we leave an empty line to preserve line numbers). | 
|  | 17434 | if test "x$srcdir" = x.; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17435 | ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
|  | 17436 | h | 
|  | 17437 | s/// | 
|  | 17438 | s/^/:/ | 
|  | 17439 | s/[	 ]*$/:/ | 
|  | 17440 | s/:\$(srcdir):/:/g | 
|  | 17441 | s/:\${srcdir}:/:/g | 
|  | 17442 | s/:@srcdir@:/:/g | 
|  | 17443 | s/^:*// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17444 | s/:*$// | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17445 | x | 
|  | 17446 | s/\(=[	 ]*\).*/\1/ | 
|  | 17447 | G | 
|  | 17448 | s/\n// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17449 | s/^[^=]*=[	 ]*$// | 
|  | 17450 | }' | 
|  | 17451 | fi | 
|  | 17452 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17453 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17454 | fi # test -n "$CONFIG_FILES" | 
|  | 17455 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17456 | # Set up the scripts for CONFIG_HEADERS section. | 
|  | 17457 | # No need to generate them if there are no CONFIG_HEADERS. | 
|  | 17458 | # This happens for instance with `./config.status Makefile'. | 
|  | 17459 | if test -n "$CONFIG_HEADERS"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17460 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17461 | BEGIN { | 
|  | 17462 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17463 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17464 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
|  | 17465 | # here-document in config.status, that substitutes the proper values into | 
|  | 17466 | # config.h.in to produce config.h. | 
|  | 17467 |  | 
|  | 17468 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
|  | 17469 | # handling of long lines. | 
|  | 17470 | ac_delim='%!_!# ' | 
|  | 17471 | for ac_last_try in false false :; do | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17472 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
|  | 17473 | if test -z "$ac_tt"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17474 | break | 
|  | 17475 | elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17476 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17477 | else | 
|  | 17478 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 17479 | fi | 
|  | 17480 | done | 
|  | 17481 |  | 
|  | 17482 | # For the awk script, D is an array of macro values keyed by name, | 
|  | 17483 | # likewise P contains macro parameters if any.  Preserve backslash | 
|  | 17484 | # newline sequences. | 
|  | 17485 |  | 
|  | 17486 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 17487 | sed -n ' | 
|  | 17488 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 17489 | t rset | 
|  | 17490 | :rset | 
|  | 17491 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
|  | 17492 | t def | 
|  | 17493 | d | 
|  | 17494 | :def | 
|  | 17495 | s/\\$// | 
|  | 17496 | t bsnl | 
|  | 17497 | s/["\\]/\\&/g | 
|  | 17498 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 17499 | D["\1"]=" \3"/p | 
|  | 17500 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
|  | 17501 | d | 
|  | 17502 | :bsnl | 
|  | 17503 | s/["\\]/\\&/g | 
|  | 17504 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 17505 | D["\1"]=" \3\\\\\\n"\\/p | 
|  | 17506 | t cont | 
|  | 17507 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
|  | 17508 | t cont | 
|  | 17509 | d | 
|  | 17510 | :cont | 
|  | 17511 | n | 
|  | 17512 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 17513 | t clear | 
|  | 17514 | :clear | 
|  | 17515 | s/\\$// | 
|  | 17516 | t bsnlc | 
|  | 17517 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
|  | 17518 | d | 
|  | 17519 | :bsnlc | 
|  | 17520 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
|  | 17521 | b cont | 
|  | 17522 | ' <confdefs.h | sed ' | 
|  | 17523 | s/'"$ac_delim"'/"\\\ | 
|  | 17524 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 17525 |  | 
|  | 17526 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17527 | for (key in D) D_is_set[key] = 1 | 
|  | 17528 | FS = "" | 
|  | 17529 | } | 
|  | 17530 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
|  | 17531 | line = \$ 0 | 
|  | 17532 | split(line, arg, " ") | 
|  | 17533 | if (arg[1] == "#") { | 
|  | 17534 | defundef = arg[2] | 
|  | 17535 | mac1 = arg[3] | 
|  | 17536 | } else { | 
|  | 17537 | defundef = substr(arg[1], 2) | 
|  | 17538 | mac1 = arg[2] | 
|  | 17539 | } | 
|  | 17540 | split(mac1, mac2, "(") #) | 
|  | 17541 | macro = mac2[1] | 
|  | 17542 | prefix = substr(line, 1, index(line, defundef) - 1) | 
|  | 17543 | if (D_is_set[macro]) { | 
|  | 17544 | # Preserve the white space surrounding the "#". | 
|  | 17545 | print prefix "define", macro P[macro] D[macro] | 
|  | 17546 | next | 
|  | 17547 | } else { | 
|  | 17548 | # Replace #undef with comments.  This is necessary, for example, | 
|  | 17549 | # in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 17550 | # on some systems where configure will not decide to define it. | 
|  | 17551 | if (defundef == "undef") { | 
|  | 17552 | print "/*", prefix defundef, macro, "*/" | 
|  | 17553 | next | 
|  | 17554 | } | 
|  | 17555 | } | 
|  | 17556 | } | 
|  | 17557 | { print } | 
|  | 17558 | _ACAWK | 
|  | 17559 | _ACEOF | 
|  | 17560 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17561 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17562 | fi # test -n "$CONFIG_HEADERS" | 
|  | 17563 |  | 
|  | 17564 |  | 
|  | 17565 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
|  | 17566 | shift | 
|  | 17567 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17568 | do | 
|  | 17569 | case $ac_tag in | 
|  | 17570 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 17571 | esac | 
|  | 17572 | case $ac_mode$ac_tag in | 
|  | 17573 | :[FHL]*:*);; | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17574 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17575 | :[FH]-) ac_tag=-:-;; | 
|  | 17576 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 17577 | esac | 
|  | 17578 | ac_save_IFS=$IFS | 
|  | 17579 | IFS=: | 
|  | 17580 | set x $ac_tag | 
|  | 17581 | IFS=$ac_save_IFS | 
|  | 17582 | shift | 
|  | 17583 | ac_file=$1 | 
|  | 17584 | shift | 
|  | 17585 |  | 
|  | 17586 | case $ac_mode in | 
|  | 17587 | :L) ac_source=$1;; | 
|  | 17588 | :[FH]) | 
|  | 17589 | ac_file_inputs= | 
|  | 17590 | for ac_f | 
|  | 17591 | do | 
|  | 17592 | case $ac_f in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17593 | -) ac_f="$ac_tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17594 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 17595 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 17596 | # because $ac_f cannot contain `:'. | 
|  | 17597 | test -f "$ac_f" || | 
|  | 17598 | case $ac_f in | 
|  | 17599 | [\\/$]*) false;; | 
|  | 17600 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 17601 | esac || | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17602 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17603 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17604 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
|  | 17605 | as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17606 | done | 
|  | 17607 |  | 
|  | 17608 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 17609 | # use $as_me), people would be surprised to read: | 
|  | 17610 | #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17611 | configure_input='Generated from '` | 
|  | 17612 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
|  | 17613 | `' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17614 | if test x"$ac_file" != x-; then | 
|  | 17615 | configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17616 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
|  | 17617 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17618 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17619 | # Neutralize special characters interpreted by sed in replacement strings. | 
|  | 17620 | case $configure_input in #( | 
|  | 17621 | *\&* | *\|* | *\\* ) | 
|  | 17622 | ac_sed_conf_input=`$as_echo "$configure_input" | | 
|  | 17623 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
|  | 17624 | *) ac_sed_conf_input=$configure_input;; | 
|  | 17625 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17626 |  | 
|  | 17627 | case $ac_tag in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17628 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
|  | 17629 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17630 | esac | 
|  | 17631 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17632 | esac | 
|  | 17633 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17634 | ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17635 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17636 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 17637 | X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17638 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17639 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17640 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 17641 | s//\1/ | 
|  | 17642 | q | 
|  | 17643 | } | 
|  | 17644 | /^X\(\/\/\)[^/].*/{ | 
|  | 17645 | s//\1/ | 
|  | 17646 | q | 
|  | 17647 | } | 
|  | 17648 | /^X\(\/\/\)$/{ | 
|  | 17649 | s//\1/ | 
|  | 17650 | q | 
|  | 17651 | } | 
|  | 17652 | /^X\(\/\).*/{ | 
|  | 17653 | s//\1/ | 
|  | 17654 | q | 
|  | 17655 | } | 
|  | 17656 | s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17657 | as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17658 | ac_builddir=. | 
|  | 17659 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17660 | case "$ac_dir" in | 
|  | 17661 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 17662 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17663 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17664 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17665 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17666 | case $ac_top_builddir_sub in | 
|  | 17667 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 17668 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 17669 | esac ;; | 
|  | 17670 | esac | 
|  | 17671 | ac_abs_top_builddir=$ac_pwd | 
|  | 17672 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 17673 | # for backward compatibility: | 
|  | 17674 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17675 |  | 
|  | 17676 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17677 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17678 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17679 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 17680 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 17681 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17682 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17683 | ac_top_srcdir=$srcdir | 
|  | 17684 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 17685 | *) # Relative name. | 
|  | 17686 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 17687 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 17688 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17689 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17690 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17691 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17692 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17693 | case $ac_mode in | 
|  | 17694 | :F) | 
|  | 17695 | # | 
|  | 17696 | # CONFIG_FILE | 
|  | 17697 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17698 |  | 
|  | 17699 | case $INSTALL in | 
|  | 17700 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17701 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17702 | esac | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17703 | ac_MKDIR_P=$MKDIR_P | 
|  | 17704 | case $MKDIR_P in | 
|  | 17705 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 17706 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
|  | 17707 | esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17708 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17709 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17710 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17711 | # If the template does not know about datarootdir, expand it. | 
|  | 17712 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 17713 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17714 | ac_sed_dataroot=' | 
|  | 17715 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17716 | p | 
|  | 17717 | q | 
|  | 17718 | } | 
|  | 17719 | /@datadir@/p | 
|  | 17720 | /@docdir@/p | 
|  | 17721 | /@infodir@/p | 
|  | 17722 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17723 | /@mandir@/p' | 
|  | 17724 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17725 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 17726 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
|  | 17728 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17729 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17730 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17731 | ac_datarootdir_hack=' | 
|  | 17732 | s&@datadir@&$datadir&g | 
|  | 17733 | s&@docdir@&$docdir&g | 
|  | 17734 | s&@infodir@&$infodir&g | 
|  | 17735 | s&@localedir@&$localedir&g | 
|  | 17736 | s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17737 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17738 | esac | 
|  | 17739 | _ACEOF | 
|  | 17740 |  | 
|  | 17741 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 17742 | # Shell code in configure.ac might set extrasub. | 
|  | 17743 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17744 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17745 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17746 | $extrasub | 
|  | 17747 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17748 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17749 | :t | 
|  | 17750 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17751 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17752 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17753 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17754 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 17755 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 17756 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 17757 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 17758 | s&@builddir@&$ac_builddir&;t t | 
|  | 17759 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 17760 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 17761 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17762 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17763 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17764 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17765 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
|  | 17766 | >$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] | 17767 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17768 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17769 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
|  | 17770 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
|  | 17771 | "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17773 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17774 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17775 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17776 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17777 | rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17778 | case $ac_file in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17779 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
|  | 17780 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17781 | esac \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17782 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17783 | ;; | 
|  | 17784 | :H) | 
|  | 17785 | # | 
|  | 17786 | # CONFIG_HEADER | 
|  | 17787 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17788 | if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17789 | { | 
|  | 17790 | $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17791 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
|  | 17792 | } >"$ac_tmp/config.h" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17793 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17794 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17795 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
|  | 17796 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17797 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17798 | rm -f "$ac_file" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17799 | mv "$ac_tmp/config.h" "$ac_file" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17800 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17801 | fi | 
|  | 17802 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17803 | $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17804 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17805 | || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17806 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17807 | ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17808 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17809 |  | 
|  | 17810 | esac | 
|  | 17811 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17812 |  | 
|  | 17813 | case $ac_file$ac_mode in | 
|  | 17814 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
|  | 17815 |  | 
|  | 17816 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17817 | done # for ac_tag | 
|  | 17818 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17819 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17820 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17821 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17822 | ac_clean_files=$ac_clean_files_save | 
|  | 17823 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17824 | test $ac_write_fail = 0 || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17825 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17826 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17827 |  | 
|  | 17828 | # configure is writing to config.log, and then calls config.status. | 
|  | 17829 | # config.status does its own redirection, appending to config.log. | 
|  | 17830 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 17831 | # by configure, so config.status won't be able to write to it; its | 
|  | 17832 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 17833 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 17834 | # appended to by config.status.  When coming back to configure, we | 
|  | 17835 | # need to make the FD available again. | 
|  | 17836 | if test "$no_create" != yes; then | 
|  | 17837 | ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17838 | ac_config_status_args= | 
|  | 17839 | test "$silent" = yes && | 
|  | 17840 | ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17841 | exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17842 | $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] | 17843 | exec 5>>config.log | 
|  | 17844 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 17845 | # would make configure fail if this is the last instruction. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17846 | $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17847 | fi | 
|  | 17848 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
|  | 17849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
|  | 17850 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17851 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17852 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17853 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17854 | echo "creating Modules/Setup" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17855 | if test ! -f Modules/Setup | 
|  | 17856 | then | 
|  | 17857 | cp $srcdir/Modules/Setup.dist Modules/Setup | 
|  | 17858 | fi | 
|  | 17859 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17860 | echo "creating Modules/Setup.local" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17861 | if test ! -f Modules/Setup.local | 
|  | 17862 | then | 
|  | 17863 | echo "# Edit this file for local setup changes" >Modules/Setup.local | 
|  | 17864 | fi | 
|  | 17865 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17866 | echo "creating Makefile" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17867 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
|  | 17868 | -s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17869 | Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17870 | mv config.c Modules | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 17871 |  | 
|  | 17872 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | 
|  | 17873 | echo "" >&6 | 
|  | 17874 | echo "" >&6 | 
| Christian Heimes | 938da64 | 2016-09-24 12:34:25 +0200 | [diff] [blame^] | 17875 | echo "If you want a release build with all optimizations active (LTO, PGO, etc)," >&6 | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 17876 | echo "please run ./configure --with-optimizations" >&6 | 
|  | 17877 | echo "" >&6 | 
|  | 17878 | echo "" >&6 | 
|  | 17879 | fi | 
|  | 17880 |  |