| 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 | 
|  | 645 | THREADOBJ | 
|  | 646 | LDLAST | 
|  | 647 | USE_THREAD_MODULE | 
|  | 648 | SIGNAL_OBJS | 
|  | 649 | USE_SIGNAL_MODULE | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 650 | TCLTK_LIBS | 
|  | 651 | TCLTK_INCLUDES | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 652 | LIBFFI_INCLUDEDIR | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 653 | PKG_CONFIG_LIBDIR | 
|  | 654 | PKG_CONFIG_PATH | 
|  | 655 | PKG_CONFIG | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 656 | SHLIBS | 
|  | 657 | CFLAGSFORSHARED | 
|  | 658 | LINKFORSHARED | 
|  | 659 | CCSHARED | 
|  | 660 | BLDSHARED | 
|  | 661 | LDCXXSHARED | 
|  | 662 | LDSHARED | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 663 | SHLIB_SUFFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 664 | LIBTOOL_CRUFT | 
|  | 665 | OTHER_LIBTOOL_OPT | 
|  | 666 | UNIVERSAL_ARCH_FLAGS | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 667 | CFLAGS_NODIST | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 668 | BASECFLAGS | 
|  | 669 | OPT | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 670 | LLVM_PROF_FOUND | 
|  | 671 | LLVM_PROF_ERR | 
|  | 672 | LLVM_PROF_FILE | 
|  | 673 | LLVM_PROF_MERGER | 
|  | 674 | PGO_PROF_USE_FLAG | 
|  | 675 | PGO_PROF_GEN_FLAG | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 676 | LTOFLAGS | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 677 | ABIFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 678 | LN | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 679 | MKDIR_P | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 680 | INSTALL_DATA | 
|  | 681 | INSTALL_SCRIPT | 
|  | 682 | INSTALL_PROGRAM | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 683 | ac_ct_READELF | 
|  | 684 | READELF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 685 | ARFLAGS | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 686 | ac_ct_AR | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 687 | AR | 
|  | 688 | RANLIB | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 689 | USE_INLINE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 690 | GNULD | 
|  | 691 | LINKCC | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 692 | LDVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 693 | RUNSHARED | 
|  | 694 | INSTSONAME | 
|  | 695 | LDLIBRARYDIR | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 696 | PY3LIBRARY | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 697 | BLDLIBRARY | 
|  | 698 | DLLLIBRARY | 
|  | 699 | LDLIBRARY | 
|  | 700 | LIBRARY | 
|  | 701 | BUILDEXEEXT | 
|  | 702 | EGREP | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 703 | NO_AS_NEEDED | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 704 | MULTIARCH_CPPFLAGS | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 705 | PLATFORM_TRIPLET | 
| doko@ubuntu.com | 092f616 | 2015-04-15 20:45:33 +0200 | [diff] [blame] | 706 | PLATDIR | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 707 | MULTIARCH | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 708 | ac_ct_CXX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 709 | MAINCC | 
|  | 710 | CXX | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 711 | GREP | 
|  | 712 | CPP | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 713 | OBJEXT | 
|  | 714 | EXEEXT | 
|  | 715 | ac_ct_CC | 
|  | 716 | CPPFLAGS | 
|  | 717 | LDFLAGS | 
|  | 718 | CFLAGS | 
|  | 719 | CC | 
|  | 720 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
|  | 721 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
|  | 722 | SGI_ABI | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 723 | _PYTHON_HOST_PLATFORM | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 724 | MACHDEP | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 725 | FRAMEWORKINSTALLAPPSPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 726 | FRAMEWORKUNIXTOOLSPREFIX | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 727 | FRAMEWORKPYTHONW | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 728 | FRAMEWORKALTINSTALLLAST | 
|  | 729 | FRAMEWORKALTINSTALLFIRST | 
|  | 730 | FRAMEWORKINSTALLLAST | 
|  | 731 | FRAMEWORKINSTALLFIRST | 
|  | 732 | PYTHONFRAMEWORKINSTALLDIR | 
|  | 733 | PYTHONFRAMEWORKPREFIX | 
|  | 734 | PYTHONFRAMEWORKDIR | 
|  | 735 | PYTHONFRAMEWORKIDENTIFIER | 
|  | 736 | PYTHONFRAMEWORK | 
|  | 737 | LIPO_32BIT_FLAGS | 
|  | 738 | ARCH_RUN_32BIT | 
|  | 739 | UNIVERSALSDK | 
|  | 740 | CONFIG_ARGS | 
|  | 741 | SOVERSION | 
|  | 742 | VERSION | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 743 | GENERATED_COMMENT | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 744 | PYTHON_FOR_BUILD | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 745 | PYTHON_FOR_GEN | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 746 | host_os | 
|  | 747 | host_vendor | 
|  | 748 | host_cpu | 
|  | 749 | host | 
|  | 750 | build_os | 
|  | 751 | build_vendor | 
|  | 752 | build_cpu | 
|  | 753 | build | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 754 | HAS_HG | 
|  | 755 | HGBRANCH | 
|  | 756 | HGTAG | 
|  | 757 | HGVERSION | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 758 | BASECPPFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 759 | target_alias | 
|  | 760 | host_alias | 
|  | 761 | build_alias | 
|  | 762 | LIBS | 
|  | 763 | ECHO_T | 
|  | 764 | ECHO_N | 
|  | 765 | ECHO_C | 
|  | 766 | DEFS | 
|  | 767 | mandir | 
|  | 768 | localedir | 
|  | 769 | libdir | 
|  | 770 | psdir | 
|  | 771 | pdfdir | 
|  | 772 | dvidir | 
|  | 773 | htmldir | 
|  | 774 | infodir | 
|  | 775 | docdir | 
|  | 776 | oldincludedir | 
|  | 777 | includedir | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 778 | runstatedir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 779 | localstatedir | 
|  | 780 | sharedstatedir | 
|  | 781 | sysconfdir | 
|  | 782 | datadir | 
|  | 783 | datarootdir | 
|  | 784 | libexecdir | 
|  | 785 | sbindir | 
|  | 786 | bindir | 
|  | 787 | program_transform_name | 
|  | 788 | prefix | 
|  | 789 | exec_prefix | 
|  | 790 | PACKAGE_URL | 
|  | 791 | PACKAGE_BUGREPORT | 
|  | 792 | PACKAGE_STRING | 
|  | 793 | PACKAGE_VERSION | 
|  | 794 | PACKAGE_TARNAME | 
|  | 795 | PACKAGE_NAME | 
|  | 796 | PATH_SEPARATOR | 
|  | 797 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 798 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 799 | ac_user_opts=' | 
|  | 800 | enable_option_checking | 
|  | 801 | enable_universalsdk | 
|  | 802 | with_universal_archs | 
|  | 803 | with_framework_name | 
|  | 804 | enable_framework | 
|  | 805 | with_gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 806 | with_icc | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 807 | with_cxx_main | 
|  | 808 | with_suffix | 
|  | 809 | enable_shared | 
|  | 810 | enable_profiling | 
|  | 811 | with_pydebug | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 812 | with_lto | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 813 | with_hash_algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 814 | with_address_sanitizer | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 815 | with_libs | 
|  | 816 | with_system_expat | 
|  | 817 | with_system_ffi | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 818 | with_system_libmpdec | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 819 | enable_loadable_sqlite_extensions | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 820 | with_tcltk_includes | 
|  | 821 | with_tcltk_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 822 | with_dbmliborder | 
|  | 823 | with_signal_module | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 824 | with_threads | 
|  | 825 | with_thread | 
|  | 826 | enable_ipv6 | 
|  | 827 | with_doc_strings | 
|  | 828 | with_tsc | 
|  | 829 | with_pymalloc | 
|  | 830 | with_valgrind | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 831 | with_fpectl | 
|  | 832 | with_libm | 
|  | 833 | with_libc | 
|  | 834 | enable_big_digits | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 835 | with_computed_gotos | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 836 | with_ensurepip | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 837 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 838 | ac_precious_vars='build_alias | 
|  | 839 | host_alias | 
|  | 840 | target_alias | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 841 | MACHDEP | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 842 | CC | 
|  | 843 | CFLAGS | 
|  | 844 | LDFLAGS | 
|  | 845 | LIBS | 
|  | 846 | CPPFLAGS | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 847 | CPP | 
|  | 848 | PKG_CONFIG | 
|  | 849 | PKG_CONFIG_PATH | 
|  | 850 | PKG_CONFIG_LIBDIR' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 851 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 852 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 853 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 854 | ac_init_help= | 
|  | 855 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 856 | ac_unrecognized_opts= | 
|  | 857 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 858 | # The variables have the same names as the options, with | 
|  | 859 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 860 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 861 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 862 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 863 | no_recursion= | 
|  | 864 | prefix=NONE | 
|  | 865 | program_prefix=NONE | 
|  | 866 | program_suffix=NONE | 
|  | 867 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 868 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 869 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 870 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 871 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 872 | x_includes=NONE | 
|  | 873 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 874 |  | 
|  | 875 | # Installation directory options. | 
|  | 876 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 877 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 878 | # by default will actually change. | 
|  | 879 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 880 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 881 | bindir='${exec_prefix}/bin' | 
|  | 882 | sbindir='${exec_prefix}/sbin' | 
|  | 883 | libexecdir='${exec_prefix}/libexec' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 884 | datarootdir='${prefix}/share' | 
|  | 885 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 886 | sysconfdir='${prefix}/etc' | 
|  | 887 | sharedstatedir='${prefix}/com' | 
|  | 888 | localstatedir='${prefix}/var' | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 889 | runstatedir='${localstatedir}/run' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 890 | includedir='${prefix}/include' | 
|  | 891 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 892 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
|  | 893 | infodir='${datarootdir}/info' | 
|  | 894 | htmldir='${docdir}' | 
|  | 895 | dvidir='${docdir}' | 
|  | 896 | pdfdir='${docdir}' | 
|  | 897 | psdir='${docdir}' | 
|  | 898 | libdir='${exec_prefix}/lib' | 
|  | 899 | localedir='${datarootdir}/locale' | 
|  | 900 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 901 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 902 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 903 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 904 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 905 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 906 | # If the previous option needs an argument, assign it. | 
|  | 907 | if test -n "$ac_prev"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 908 | eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 909 | ac_prev= | 
|  | 910 | continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 911 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 912 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 913 | case $ac_option in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 914 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
|  | 915 | *=)   ac_optarg= ;; | 
|  | 916 | *)    ac_optarg=yes ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 917 | esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 918 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 919 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 920 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 921 | case $ac_dashdash$ac_option in | 
|  | 922 | --) | 
|  | 923 | ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 924 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 925 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 926 | ac_prev=bindir ;; | 
|  | 927 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 928 | bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 929 |  | 
|  | 930 | -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 931 | ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 932 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 933 | build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 934 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 935 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 936 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 937 | ac_prev=cache_file ;; | 
|  | 938 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 939 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 940 | cache_file=$ac_optarg ;; | 
|  | 941 |  | 
|  | 942 | --config-cache | -C) | 
|  | 943 | cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 944 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 945 | -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 946 | ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 947 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 948 | datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 949 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 950 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
|  | 951 | | --dataroo | --dataro | --datar) | 
|  | 952 | ac_prev=datarootdir ;; | 
|  | 953 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
|  | 954 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
|  | 955 | datarootdir=$ac_optarg ;; | 
|  | 956 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 957 | -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 958 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 959 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 960 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 961 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 962 | ac_useropt_orig=$ac_useropt | 
|  | 963 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 964 | case $ac_user_opts in | 
|  | 965 | *" | 
|  | 966 | "enable_$ac_useropt" | 
|  | 967 | "*) ;; | 
|  | 968 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
|  | 969 | ac_unrecognized_sep=', ';; | 
|  | 970 | esac | 
|  | 971 | eval enable_$ac_useropt=no ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 972 |  | 
|  | 973 | -docdir | --docdir | --docdi | --doc | --do) | 
|  | 974 | ac_prev=docdir ;; | 
|  | 975 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
|  | 976 | docdir=$ac_optarg ;; | 
|  | 977 |  | 
|  | 978 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
|  | 979 | ac_prev=dvidir ;; | 
|  | 980 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
|  | 981 | dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 982 |  | 
|  | 983 | -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 984 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 985 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 986 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 987 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 988 | ac_useropt_orig=$ac_useropt | 
|  | 989 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 990 | case $ac_user_opts in | 
|  | 991 | *" | 
|  | 992 | "enable_$ac_useropt" | 
|  | 993 | "*) ;; | 
|  | 994 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
|  | 995 | ac_unrecognized_sep=', ';; | 
|  | 996 | esac | 
|  | 997 | eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 998 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 999 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 1000 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 1001 | | --exec | --exe | --ex) | 
|  | 1002 | ac_prev=exec_prefix ;; | 
|  | 1003 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 1004 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 1005 | | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1006 | exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1007 |  | 
|  | 1008 | -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1009 | # Obsolete; use --with-gas. | 
|  | 1010 | with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1011 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1012 | -help | --help | --hel | --he | -h) | 
|  | 1013 | ac_init_help=long ;; | 
|  | 1014 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 1015 | ac_init_help=recursive ;; | 
|  | 1016 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 1017 | ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1018 |  | 
|  | 1019 | -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1020 | ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1021 | -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1022 | host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1023 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1024 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
|  | 1025 | ac_prev=htmldir ;; | 
|  | 1026 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
|  | 1027 | | --ht=*) | 
|  | 1028 | htmldir=$ac_optarg ;; | 
|  | 1029 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1030 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 1031 | | --includ | --inclu | --incl | --inc) | 
|  | 1032 | ac_prev=includedir ;; | 
|  | 1033 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 1034 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1035 | includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1036 |  | 
|  | 1037 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 1038 | ac_prev=infodir ;; | 
|  | 1039 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1040 | infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1041 |  | 
|  | 1042 | -libdir | --libdir | --libdi | --libd) | 
|  | 1043 | ac_prev=libdir ;; | 
|  | 1044 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1045 | libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1046 |  | 
|  | 1047 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 1048 | | --libexe | --libex | --libe) | 
|  | 1049 | ac_prev=libexecdir ;; | 
|  | 1050 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 1051 | | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1052 | libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1053 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1054 | -localedir | --localedir | --localedi | --localed | --locale) | 
|  | 1055 | ac_prev=localedir ;; | 
|  | 1056 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
|  | 1057 | localedir=$ac_optarg ;; | 
|  | 1058 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1059 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1060 | | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1061 | ac_prev=localstatedir ;; | 
|  | 1062 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1063 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1064 | localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1065 |  | 
|  | 1066 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 1067 | ac_prev=mandir ;; | 
|  | 1068 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1069 | mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1070 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1071 | -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1072 | # Obsolete; use --without-fp. | 
|  | 1073 | with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1074 |  | 
|  | 1075 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1076 | | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1077 | no_create=yes ;; | 
|  | 1078 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1079 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 1080 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 1081 | no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1082 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1083 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 1084 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 1085 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 1086 | ac_prev=oldincludedir ;; | 
|  | 1087 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 1088 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 1089 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1090 | oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1091 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1092 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 1093 | ac_prev=prefix ;; | 
|  | 1094 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1095 | prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1096 |  | 
|  | 1097 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 1098 | | --program-pre | --program-pr | --program-p) | 
|  | 1099 | ac_prev=program_prefix ;; | 
|  | 1100 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 1101 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1102 | program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1103 |  | 
|  | 1104 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 1105 | | --program-suf | --program-su | --program-s) | 
|  | 1106 | ac_prev=program_suffix ;; | 
|  | 1107 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 1108 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1109 | program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 |  | 
|  | 1111 | -program-transform-name | --program-transform-name \ | 
|  | 1112 | | --program-transform-nam | --program-transform-na \ | 
|  | 1113 | | --program-transform-n | --program-transform- \ | 
|  | 1114 | | --program-transform | --program-transfor \ | 
|  | 1115 | | --program-transfo | --program-transf \ | 
|  | 1116 | | --program-trans | --program-tran \ | 
|  | 1117 | | --progr-tra | --program-tr | --program-t) | 
|  | 1118 | ac_prev=program_transform_name ;; | 
|  | 1119 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 1120 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 1121 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 1122 | | --program-transform=* | --program-transfor=* \ | 
|  | 1123 | | --program-transfo=* | --program-transf=* \ | 
|  | 1124 | | --program-trans=* | --program-tran=* \ | 
|  | 1125 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1126 | program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1127 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1128 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
|  | 1129 | ac_prev=pdfdir ;; | 
|  | 1130 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
|  | 1131 | pdfdir=$ac_optarg ;; | 
|  | 1132 |  | 
|  | 1133 | -psdir | --psdir | --psdi | --psd | --ps) | 
|  | 1134 | ac_prev=psdir ;; | 
|  | 1135 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
|  | 1136 | psdir=$ac_optarg ;; | 
|  | 1137 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1138 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1139 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1140 | silent=yes ;; | 
|  | 1141 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 1142 | -runstatedir | --runstatedir | --runstatedi | --runstated \ | 
|  | 1143 | | --runstate | --runstat | --runsta | --runst | --runs \ | 
|  | 1144 | | --run | --ru | --r) | 
|  | 1145 | ac_prev=runstatedir ;; | 
|  | 1146 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | 
|  | 1147 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | 
|  | 1148 | | --run=* | --ru=* | --r=*) | 
|  | 1149 | runstatedir=$ac_optarg ;; | 
|  | 1150 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1151 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 1152 | ac_prev=sbindir ;; | 
|  | 1153 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 1154 | | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1155 | sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1156 |  | 
|  | 1157 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 1158 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 1159 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 1160 | | --sha | --sh) | 
|  | 1161 | ac_prev=sharedstatedir ;; | 
|  | 1162 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 1163 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 1164 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 1165 | | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1166 | sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1167 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1168 | -site | --site | --sit) | 
|  | 1169 | ac_prev=site ;; | 
|  | 1170 | -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1171 | site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1172 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1173 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 1174 | ac_prev=srcdir ;; | 
|  | 1175 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1176 | srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1177 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1178 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 1179 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 1180 | ac_prev=sysconfdir ;; | 
|  | 1181 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 1182 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1183 | sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1184 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1185 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1186 | ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1187 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1188 | target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1189 |  | 
|  | 1190 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 1191 | verbose=yes ;; | 
|  | 1192 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1193 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 1194 | ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1195 |  | 
|  | 1196 | -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1197 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1198 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1199 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1200 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1201 | ac_useropt_orig=$ac_useropt | 
|  | 1202 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1203 | case $ac_user_opts in | 
|  | 1204 | *" | 
|  | 1205 | "with_$ac_useropt" | 
|  | 1206 | "*) ;; | 
|  | 1207 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
|  | 1208 | ac_unrecognized_sep=', ';; | 
|  | 1209 | esac | 
|  | 1210 | eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1211 |  | 
|  | 1212 | -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1213 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1214 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1215 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1216 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1217 | ac_useropt_orig=$ac_useropt | 
|  | 1218 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1219 | case $ac_user_opts in | 
|  | 1220 | *" | 
|  | 1221 | "with_$ac_useropt" | 
|  | 1222 | "*) ;; | 
|  | 1223 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
|  | 1224 | ac_unrecognized_sep=', ';; | 
|  | 1225 | esac | 
|  | 1226 | eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1227 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1228 | --x) | 
|  | 1229 | # Obsolete; use --with-x. | 
|  | 1230 | with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1231 |  | 
|  | 1232 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 1233 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 1234 | ac_prev=x_includes ;; | 
|  | 1235 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 1236 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1237 | x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1238 |  | 
|  | 1239 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 1240 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 1241 | ac_prev=x_libraries ;; | 
|  | 1242 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 1243 | | --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] | 1244 | x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1245 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1246 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
|  | 1247 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1248 | ;; | 
|  | 1249 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1250 | *=*) | 
|  | 1251 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 1252 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1253 | case $ac_envvar in #( | 
|  | 1254 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1255 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1256 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1257 | eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1258 | export $ac_envvar ;; | 
|  | 1259 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1260 | *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1261 | # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1262 | $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] | 1263 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1264 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1265 | : "${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] | 1266 | ;; | 
|  | 1267 |  | 
|  | 1268 | esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1269 | done | 
|  | 1270 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1271 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1272 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1273 | as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1274 | fi | 
|  | 1275 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1276 | if test -n "$ac_unrecognized_opts"; then | 
|  | 1277 | case $enable_option_checking in | 
|  | 1278 | no) ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1279 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1280 | *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
|  | 1281 | esac | 
|  | 1282 | fi | 
|  | 1283 |  | 
|  | 1284 | # Check all directory arguments for consistency. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1285 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
|  | 1286 | datadir sysconfdir sharedstatedir localstatedir includedir \ | 
|  | 1287 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 1288 | libdir localedir mandir runstatedir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1289 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1290 | eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1291 | # Remove trailing slashes. | 
|  | 1292 | case $ac_val in | 
|  | 1293 | */ ) | 
|  | 1294 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
|  | 1295 | eval $ac_var=\$ac_val;; | 
|  | 1296 | esac | 
|  | 1297 | # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1298 | case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1299 | [\\/$]* | ?:[\\/]* )  continue;; | 
|  | 1300 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1301 | esac | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1302 | 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] | 1303 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1304 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1305 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 1306 | # used to hold the argument of --host etc. | 
|  | 1307 | # FIXME: To remove some day. | 
|  | 1308 | build=$build_alias | 
|  | 1309 | host=$host_alias | 
|  | 1310 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1311 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1312 | # FIXME: To remove some day. | 
|  | 1313 | if test "x$host_alias" != x; then | 
|  | 1314 | if test "x$build_alias" = x; then | 
|  | 1315 | cross_compiling=maybe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1316 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 1317 | cross_compiling=yes | 
|  | 1318 | fi | 
|  | 1319 | fi | 
|  | 1320 |  | 
|  | 1321 | ac_tool_prefix= | 
|  | 1322 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 1323 |  | 
|  | 1324 | test "$silent" = yes && exec 6>/dev/null | 
|  | 1325 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1326 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1327 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
|  | 1328 | ac_ls_di=`ls -di .` && | 
|  | 1329 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1330 | as_fn_error $? "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1331 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1332 | as_fn_error $? "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1333 |  | 
|  | 1334 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1335 | # Find the source files, if location was not specified. | 
|  | 1336 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1337 | ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1338 | # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1339 | ac_confdir=`$as_dirname -- "$as_myself" || | 
|  | 1340 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 1341 | X"$as_myself" : 'X\(//\)[^/]' \| \ | 
|  | 1342 | X"$as_myself" : 'X\(//\)$' \| \ | 
|  | 1343 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 1344 | $as_echo X"$as_myself" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 1346 | s//\1/ | 
|  | 1347 | q | 
|  | 1348 | } | 
|  | 1349 | /^X\(\/\/\)[^/].*/{ | 
|  | 1350 | s//\1/ | 
|  | 1351 | q | 
|  | 1352 | } | 
|  | 1353 | /^X\(\/\/\)$/{ | 
|  | 1354 | s//\1/ | 
|  | 1355 | q | 
|  | 1356 | } | 
|  | 1357 | /^X\(\/\).*/{ | 
|  | 1358 | s//\1/ | 
|  | 1359 | q | 
|  | 1360 | } | 
|  | 1361 | s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1362 | srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1363 | if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1364 | srcdir=.. | 
|  | 1365 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1366 | else | 
|  | 1367 | ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1368 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1369 | if test ! -r "$srcdir/$ac_unique_file"; then | 
|  | 1370 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1371 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1372 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1373 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
|  | 1374 | ac_abs_confdir=`( | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1375 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1376 | pwd)` | 
|  | 1377 | # When building in place, set srcdir=. | 
|  | 1378 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
|  | 1379 | srcdir=. | 
|  | 1380 | fi | 
|  | 1381 | # Remove unnecessary trailing slashes from srcdir. | 
|  | 1382 | # Double slashes in file names in object file debugging info | 
|  | 1383 | # mess up M-x gdb in Emacs. | 
|  | 1384 | case $srcdir in | 
|  | 1385 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
|  | 1386 | esac | 
|  | 1387 | for ac_var in $ac_precious_vars; do | 
|  | 1388 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1389 | eval ac_env_${ac_var}_value=\$${ac_var} | 
|  | 1390 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1391 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
|  | 1392 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1393 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1394 | # | 
|  | 1395 | # Report the --help message. | 
|  | 1396 | # | 
|  | 1397 | if test "$ac_init_help" = "long"; then | 
|  | 1398 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 1399 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 1400 | cat <<_ACEOF | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1401 | \`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] | 1402 |  | 
|  | 1403 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 1404 |  | 
|  | 1405 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 1406 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 1407 |  | 
|  | 1408 | Defaults for the options are specified in brackets. | 
|  | 1409 |  | 
|  | 1410 | Configuration: | 
|  | 1411 | -h, --help              display this help and exit | 
|  | 1412 | --help=short        display options specific to this package | 
|  | 1413 | --help=recursive    display the short help of all the included packages | 
|  | 1414 | -V, --version           display version information and exit | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1415 | -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1416 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 1417 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 1418 | -n, --no-create         do not create output files | 
|  | 1419 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 1420 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1421 | Installation directories: | 
|  | 1422 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1423 | [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1424 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1425 | [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1426 |  | 
|  | 1427 | By default, \`make install' will install all the files in | 
|  | 1428 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 1429 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 1430 | for instance \`--prefix=\$HOME'. | 
|  | 1431 |  | 
|  | 1432 | For better control, use the options below. | 
|  | 1433 |  | 
|  | 1434 | Fine tuning of the installation directories: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1435 | --bindir=DIR            user executables [EPREFIX/bin] | 
|  | 1436 | --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
|  | 1437 | --libexecdir=DIR        program executables [EPREFIX/libexec] | 
|  | 1438 | --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
|  | 1439 | --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
|  | 1440 | --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 1441 | --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1442 | --libdir=DIR            object code libraries [EPREFIX/lib] | 
|  | 1443 | --includedir=DIR        C header files [PREFIX/include] | 
|  | 1444 | --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
|  | 1445 | --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
|  | 1446 | --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
|  | 1447 | --infodir=DIR           info documentation [DATAROOTDIR/info] | 
|  | 1448 | --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
|  | 1449 | --mandir=DIR            man documentation [DATAROOTDIR/man] | 
|  | 1450 | --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
|  | 1451 | --htmldir=DIR           html documentation [DOCDIR] | 
|  | 1452 | --dvidir=DIR            dvi documentation [DOCDIR] | 
|  | 1453 | --pdfdir=DIR            pdf documentation [DOCDIR] | 
|  | 1454 | --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | _ACEOF | 
|  | 1456 |  | 
|  | 1457 | cat <<\_ACEOF | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1458 |  | 
|  | 1459 | System types: | 
|  | 1460 | --build=BUILD     configure for building on BUILD [guessed] | 
|  | 1461 | --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1462 | _ACEOF | 
|  | 1463 | fi | 
|  | 1464 |  | 
|  | 1465 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1466 | case $ac_init_help in | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1467 | short | recursive ) echo "Configuration of python 3.6:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1468 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1469 | cat <<\_ACEOF | 
|  | 1470 |  | 
|  | 1471 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1472 | --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1473 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1474 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1475 | --enable-universalsdk[=SDKDIR] | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1476 | Build fat binary against Mac OS X SDK | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1477 | --enable-framework[=INSTALLDIR] | 
|  | 1478 | Build (MacOSX|Darwin) framework | 
|  | 1479 | --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1480 | --enable-profiling      enable C-level code profiling | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1481 | --enable-loadable-sqlite-extensions | 
|  | 1482 | support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1483 | --enable-ipv6           Enable ipv6 (with ipv4) support | 
|  | 1484 | --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1485 | --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1486 | use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1487 |  | 
|  | 1488 | Optional Packages: | 
|  | 1489 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1490 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1491 | --with-universal-archs=ARCH | 
|  | 1492 | select architectures for universal build ("32-bit", | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 1493 | "64-bit", "3-way", "intel", "intel-32", or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1494 | --with-framework-name=FRAMEWORK | 
|  | 1495 | specify an alternate name of the framework built | 
|  | 1496 | with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1497 | --without-gcc           never use gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 1498 | --with-icc              build with icc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1499 | --with-cxx-main=<compiler> | 
|  | 1500 | compile main() and link python executable with C++ | 
|  | 1501 | compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1502 | --with-suffix=.exe      set executable suffix | 
|  | 1503 | --with-pydebug          build with Py_DEBUG defined | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 1504 | --with-lto              Enable Link Time Optimization in PGO builds. | 
|  | 1505 | Disabled by default. | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1506 | --with-hash-algorithm=[fnv|siphash24] | 
|  | 1507 | select hash algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1508 | --with-address-sanitizer | 
|  | 1509 | enable AddressSanitizer | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1510 | --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1511 | --with-system-expat     build pyexpat module using an installed expat | 
|  | 1512 | library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1513 | --with-system-ffi       build _ctypes module using an installed ffi library | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1514 | --with-system-libmpdec  build _decimal module using an installed libmpdec | 
|  | 1515 | library | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1516 | --with-tcltk-includes='-I...' | 
|  | 1517 | override search for Tcl and Tk include files | 
|  | 1518 | --with-tcltk-libs='-L...' | 
|  | 1519 | override search for Tcl and Tk libs | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1520 | --with-dbmliborder=db1:db2:... | 
|  | 1521 | order to check db backends for dbm. Valid value is a | 
|  | 1522 | colon separated string with the backend names | 
|  | 1523 | `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1524 | --with-signal-module    disable/enable signal module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1525 | --with(out)-threads[=DIRECTORY] | 
|  | 1526 | disable/enable thread support | 
|  | 1527 | --with(out)-thread[=DIRECTORY] | 
|  | 1528 | deprecated; use --with(out)-threads | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1529 | --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1530 | --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1531 | --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1532 | --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1533 | --with-fpectl           enable SIGFPE catching | 
|  | 1534 | --with-libm=STRING      math library | 
|  | 1535 | --with-libc=STRING      C library | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1536 | --with(out)-computed-gotos | 
|  | 1537 | Use computed gotos in evaluation loop (enabled by | 
|  | 1538 | default on supported compilers) | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 1539 | --with(out)-ensurepip=[=upgrade] | 
|  | 1540 | "install" or "upgrade" using bundled pip | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1541 |  | 
|  | 1542 | Some influential environment variables: | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1543 | MACHDEP     name for machine-dependent library files | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1544 | CC          C compiler command | 
|  | 1545 | CFLAGS      C compiler flags | 
|  | 1546 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1547 | nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1548 | LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1549 | CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1550 | you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1551 | CPP         C preprocessor | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 1552 | PKG_CONFIG  path to pkg-config utility | 
|  | 1553 | PKG_CONFIG_PATH | 
|  | 1554 | directories to add to pkg-config's search path | 
|  | 1555 | PKG_CONFIG_LIBDIR | 
|  | 1556 | path overriding pkg-config's built-in search path | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1557 |  | 
|  | 1558 | Use these variables to override the choices made by `configure' or to help | 
|  | 1559 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1560 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1561 | Report bugs to <https://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1562 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1563 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1564 | fi | 
|  | 1565 |  | 
|  | 1566 | if test "$ac_init_help" = "recursive"; then | 
|  | 1567 | # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1568 | 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] | 1569 | test -d "$ac_dir" || | 
|  | 1570 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
|  | 1571 | continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1572 | ac_builddir=. | 
|  | 1573 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1574 | case "$ac_dir" in | 
|  | 1575 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1576 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1577 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1578 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1579 | 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] | 1580 | case $ac_top_builddir_sub in | 
|  | 1581 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1582 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 1583 | esac ;; | 
|  | 1584 | esac | 
|  | 1585 | ac_abs_top_builddir=$ac_pwd | 
|  | 1586 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 1587 | # for backward compatibility: | 
|  | 1588 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1589 |  | 
|  | 1590 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1591 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1592 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1593 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 1594 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 1595 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1596 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1597 | ac_top_srcdir=$srcdir | 
|  | 1598 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 1599 | *) # Relative name. | 
|  | 1600 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 1601 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 1602 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1603 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1604 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1605 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1606 | cd "$ac_dir" || { ac_status=$?; continue; } | 
|  | 1607 | # Check for guested configure. | 
|  | 1608 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 1609 | echo && | 
|  | 1610 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
|  | 1611 | elif test -f "$ac_srcdir/configure"; then | 
|  | 1612 | echo && | 
|  | 1613 | $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1614 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1615 | $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] | 1616 | fi || ac_status=$? | 
|  | 1617 | cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1618 | done | 
|  | 1619 | fi | 
|  | 1620 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1621 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1622 | if $ac_init_version; then | 
|  | 1623 | cat <<\_ACEOF | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1624 | python configure 3.6 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1625 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1626 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1627 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1628 | This configure script is free software; the Free Software Foundation | 
|  | 1629 | gives unlimited permission to copy, distribute and modify it. | 
|  | 1630 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1631 | exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1632 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1633 |  | 
|  | 1634 | ## ------------------------ ## | 
|  | 1635 | ## Autoconf initialization. ## | 
|  | 1636 | ## ------------------------ ## | 
|  | 1637 |  | 
|  | 1638 | # ac_fn_c_try_compile LINENO | 
|  | 1639 | # -------------------------- | 
|  | 1640 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
|  | 1641 | ac_fn_c_try_compile () | 
|  | 1642 | { | 
|  | 1643 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1644 | rm -f conftest.$ac_objext | 
|  | 1645 | if { { ac_try="$ac_compile" | 
|  | 1646 | case "(($ac_try" in | 
|  | 1647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1648 | *) ac_try_echo=$ac_try;; | 
|  | 1649 | esac | 
|  | 1650 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1651 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1652 | (eval "$ac_compile") 2>conftest.err | 
|  | 1653 | ac_status=$? | 
|  | 1654 | if test -s conftest.err; then | 
|  | 1655 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1656 | cat conftest.er1 >&5 | 
|  | 1657 | mv -f conftest.er1 conftest.err | 
|  | 1658 | fi | 
|  | 1659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1660 | test $ac_status = 0; } && { | 
|  | 1661 | test -z "$ac_c_werror_flag" || | 
|  | 1662 | test ! -s conftest.err | 
|  | 1663 | } && test -s conftest.$ac_objext; then : | 
|  | 1664 | ac_retval=0 | 
|  | 1665 | else | 
|  | 1666 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1667 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1668 |  | 
|  | 1669 | ac_retval=1 | 
|  | 1670 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1671 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1672 | as_fn_set_status $ac_retval | 
|  | 1673 |  | 
|  | 1674 | } # ac_fn_c_try_compile | 
|  | 1675 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1676 | # ac_fn_c_try_cpp LINENO | 
|  | 1677 | # ---------------------- | 
|  | 1678 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
|  | 1679 | ac_fn_c_try_cpp () | 
|  | 1680 | { | 
|  | 1681 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1682 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 1683 | case "(($ac_try" in | 
|  | 1684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1685 | *) ac_try_echo=$ac_try;; | 
|  | 1686 | esac | 
|  | 1687 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1688 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1689 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
|  | 1690 | ac_status=$? | 
|  | 1691 | if test -s conftest.err; then | 
|  | 1692 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1693 | cat conftest.er1 >&5 | 
|  | 1694 | mv -f conftest.er1 conftest.err | 
|  | 1695 | fi | 
|  | 1696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1697 | test $ac_status = 0; } > conftest.i && { | 
|  | 1698 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
|  | 1699 | test ! -s conftest.err | 
|  | 1700 | }; then : | 
|  | 1701 | ac_retval=0 | 
|  | 1702 | else | 
|  | 1703 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1704 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1705 |  | 
|  | 1706 | ac_retval=1 | 
|  | 1707 | fi | 
|  | 1708 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
|  | 1709 | as_fn_set_status $ac_retval | 
|  | 1710 |  | 
|  | 1711 | } # ac_fn_c_try_cpp | 
|  | 1712 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1713 | # ac_fn_c_try_link LINENO | 
|  | 1714 | # ----------------------- | 
|  | 1715 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
|  | 1716 | ac_fn_c_try_link () | 
|  | 1717 | { | 
|  | 1718 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1719 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 1720 | if { { ac_try="$ac_link" | 
|  | 1721 | case "(($ac_try" in | 
|  | 1722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1723 | *) ac_try_echo=$ac_try;; | 
|  | 1724 | esac | 
|  | 1725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1726 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1727 | (eval "$ac_link") 2>conftest.err | 
|  | 1728 | ac_status=$? | 
|  | 1729 | if test -s conftest.err; then | 
|  | 1730 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1731 | cat conftest.er1 >&5 | 
|  | 1732 | mv -f conftest.er1 conftest.err | 
|  | 1733 | fi | 
|  | 1734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1735 | test $ac_status = 0; } && { | 
|  | 1736 | test -z "$ac_c_werror_flag" || | 
|  | 1737 | test ! -s conftest.err | 
|  | 1738 | } && test -s conftest$ac_exeext && { | 
|  | 1739 | test "$cross_compiling" = yes || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1740 | test -x conftest$ac_exeext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1741 | }; then : | 
|  | 1742 | ac_retval=0 | 
|  | 1743 | else | 
|  | 1744 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1745 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1746 |  | 
|  | 1747 | ac_retval=1 | 
|  | 1748 | fi | 
|  | 1749 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
|  | 1750 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
|  | 1751 | # interfere with the next link command; also delete a directory that is | 
|  | 1752 | # left behind by Apple's compiler.  We do this before executing the actions. | 
|  | 1753 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1754 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1755 | as_fn_set_status $ac_retval | 
|  | 1756 |  | 
|  | 1757 | } # ac_fn_c_try_link | 
|  | 1758 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1759 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
|  | 1760 | # ------------------------------------------------------- | 
|  | 1761 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
|  | 1762 | # the include files in INCLUDES and setting the cache variable VAR | 
|  | 1763 | # accordingly. | 
|  | 1764 | ac_fn_c_check_header_mongrel () | 
|  | 1765 | { | 
|  | 1766 | 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] | 1767 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1769 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1770 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1771 | $as_echo_n "(cached) " >&6 | 
|  | 1772 | fi | 
|  | 1773 | eval ac_res=\$$3 | 
|  | 1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1775 | $as_echo "$ac_res" >&6; } | 
|  | 1776 | else | 
|  | 1777 | # Is the header compilable? | 
|  | 1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
|  | 1779 | $as_echo_n "checking $2 usability... " >&6; } | 
|  | 1780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1781 | /* end confdefs.h.  */ | 
|  | 1782 | $4 | 
|  | 1783 | #include <$2> | 
|  | 1784 | _ACEOF | 
|  | 1785 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1786 | ac_header_compiler=yes | 
|  | 1787 | else | 
|  | 1788 | ac_header_compiler=no | 
|  | 1789 | fi | 
|  | 1790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
|  | 1792 | $as_echo "$ac_header_compiler" >&6; } | 
|  | 1793 |  | 
|  | 1794 | # Is the header present? | 
|  | 1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
|  | 1796 | $as_echo_n "checking $2 presence... " >&6; } | 
|  | 1797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1798 | /* end confdefs.h.  */ | 
|  | 1799 | #include <$2> | 
|  | 1800 | _ACEOF | 
|  | 1801 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 1802 | ac_header_preproc=yes | 
|  | 1803 | else | 
|  | 1804 | ac_header_preproc=no | 
|  | 1805 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1806 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
|  | 1808 | $as_echo "$ac_header_preproc" >&6; } | 
|  | 1809 |  | 
|  | 1810 | # So?  What about this header? | 
|  | 1811 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
|  | 1812 | yes:no: ) | 
|  | 1813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 1814 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1816 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 1817 | ;; | 
|  | 1818 | no:yes:* ) | 
|  | 1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
|  | 1820 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
|  | 1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
|  | 1822 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
|  | 1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
|  | 1824 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
|  | 1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 1826 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1828 | $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] | 1829 | ( $as_echo "## --------------------------------------- ## | 
|  | 1830 | ## Report this to https://bugs.python.org/ ## | 
|  | 1831 | ## --------------------------------------- ##" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1832 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 1833 | ;; | 
|  | 1834 | esac | 
|  | 1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1836 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1837 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1838 | $as_echo_n "(cached) " >&6 | 
|  | 1839 | else | 
|  | 1840 | eval "$3=\$ac_header_compiler" | 
|  | 1841 | fi | 
|  | 1842 | eval ac_res=\$$3 | 
|  | 1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1844 | $as_echo "$ac_res" >&6; } | 
|  | 1845 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1846 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1847 |  | 
|  | 1848 | } # ac_fn_c_check_header_mongrel | 
|  | 1849 |  | 
|  | 1850 | # ac_fn_c_try_run LINENO | 
|  | 1851 | # ---------------------- | 
|  | 1852 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
|  | 1853 | # that executables *can* be run. | 
|  | 1854 | ac_fn_c_try_run () | 
|  | 1855 | { | 
|  | 1856 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1857 | if { { ac_try="$ac_link" | 
|  | 1858 | case "(($ac_try" in | 
|  | 1859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1860 | *) ac_try_echo=$ac_try;; | 
|  | 1861 | esac | 
|  | 1862 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1863 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1864 | (eval "$ac_link") 2>&5 | 
|  | 1865 | ac_status=$? | 
|  | 1866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1867 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
|  | 1868 | { { case "(($ac_try" in | 
|  | 1869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1870 | *) ac_try_echo=$ac_try;; | 
|  | 1871 | esac | 
|  | 1872 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1873 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1874 | (eval "$ac_try") 2>&5 | 
|  | 1875 | ac_status=$? | 
|  | 1876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1877 | test $ac_status = 0; }; }; then : | 
|  | 1878 | ac_retval=0 | 
|  | 1879 | else | 
|  | 1880 | $as_echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 1881 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1882 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1883 |  | 
|  | 1884 | ac_retval=$ac_status | 
|  | 1885 | fi | 
|  | 1886 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1887 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1888 | as_fn_set_status $ac_retval | 
|  | 1889 |  | 
|  | 1890 | } # ac_fn_c_try_run | 
|  | 1891 |  | 
|  | 1892 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
|  | 1893 | # ------------------------------------------------------- | 
|  | 1894 | # Tests whether HEADER exists and can be compiled using the include files in | 
|  | 1895 | # INCLUDES, setting the cache variable VAR accordingly. | 
|  | 1896 | ac_fn_c_check_header_compile () | 
|  | 1897 | { | 
|  | 1898 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1900 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1901 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1902 | $as_echo_n "(cached) " >&6 | 
|  | 1903 | else | 
|  | 1904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1905 | /* end confdefs.h.  */ | 
|  | 1906 | $4 | 
|  | 1907 | #include <$2> | 
|  | 1908 | _ACEOF | 
|  | 1909 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1910 | eval "$3=yes" | 
|  | 1911 | else | 
|  | 1912 | eval "$3=no" | 
|  | 1913 | fi | 
|  | 1914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1915 | fi | 
|  | 1916 | eval ac_res=\$$3 | 
|  | 1917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1918 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1919 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1920 |  | 
|  | 1921 | } # ac_fn_c_check_header_compile | 
|  | 1922 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1923 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
|  | 1924 | # ------------------------------------------- | 
|  | 1925 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
|  | 1926 | # variable VAR accordingly. | 
|  | 1927 | ac_fn_c_check_type () | 
|  | 1928 | { | 
|  | 1929 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1931 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1932 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1933 | $as_echo_n "(cached) " >&6 | 
|  | 1934 | else | 
|  | 1935 | eval "$3=no" | 
|  | 1936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1937 | /* end confdefs.h.  */ | 
|  | 1938 | $4 | 
|  | 1939 | int | 
|  | 1940 | main () | 
|  | 1941 | { | 
|  | 1942 | if (sizeof ($2)) | 
|  | 1943 | return 0; | 
|  | 1944 | ; | 
|  | 1945 | return 0; | 
|  | 1946 | } | 
|  | 1947 | _ACEOF | 
|  | 1948 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1950 | /* end confdefs.h.  */ | 
|  | 1951 | $4 | 
|  | 1952 | int | 
|  | 1953 | main () | 
|  | 1954 | { | 
|  | 1955 | if (sizeof (($2))) | 
|  | 1956 | return 0; | 
|  | 1957 | ; | 
|  | 1958 | return 0; | 
|  | 1959 | } | 
|  | 1960 | _ACEOF | 
|  | 1961 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1962 |  | 
|  | 1963 | else | 
|  | 1964 | eval "$3=yes" | 
|  | 1965 | fi | 
|  | 1966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1967 | fi | 
|  | 1968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1969 | fi | 
|  | 1970 | eval ac_res=\$$3 | 
|  | 1971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1972 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1973 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1974 |  | 
|  | 1975 | } # ac_fn_c_check_type | 
|  | 1976 |  | 
|  | 1977 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
|  | 1978 | # ------------------------------------ | 
|  | 1979 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
|  | 1980 | # accordingly. | 
|  | 1981 | ac_fn_c_find_uintX_t () | 
|  | 1982 | { | 
|  | 1983 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
|  | 1985 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1986 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1987 | $as_echo_n "(cached) " >&6 | 
|  | 1988 | else | 
|  | 1989 | eval "$3=no" | 
|  | 1990 | # Order is important - never check a type that is potentially smaller | 
|  | 1991 | # than half of the expected target width. | 
|  | 1992 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
|  | 1993 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
|  | 1994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1995 | /* end confdefs.h.  */ | 
|  | 1996 | $ac_includes_default | 
|  | 1997 | int | 
|  | 1998 | main () | 
|  | 1999 | { | 
|  | 2000 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2001 | test_array [0] = 0; | 
|  | 2002 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2003 |  | 
|  | 2004 | ; | 
|  | 2005 | return 0; | 
|  | 2006 | } | 
|  | 2007 | _ACEOF | 
|  | 2008 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2009 | case $ac_type in #( | 
|  | 2010 | uint$2_t) : | 
|  | 2011 | eval "$3=yes" ;; #( | 
|  | 2012 | *) : | 
|  | 2013 | eval "$3=\$ac_type" ;; | 
|  | 2014 | esac | 
|  | 2015 | fi | 
|  | 2016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2017 | if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2018 |  | 
|  | 2019 | else | 
|  | 2020 | break | 
|  | 2021 | fi | 
|  | 2022 | done | 
|  | 2023 | fi | 
|  | 2024 | eval ac_res=\$$3 | 
|  | 2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2026 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2027 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2028 |  | 
|  | 2029 | } # ac_fn_c_find_uintX_t | 
|  | 2030 |  | 
|  | 2031 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
|  | 2032 | # ----------------------------------- | 
|  | 2033 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
|  | 2034 | # accordingly. | 
|  | 2035 | ac_fn_c_find_intX_t () | 
|  | 2036 | { | 
|  | 2037 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
|  | 2039 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2040 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2041 | $as_echo_n "(cached) " >&6 | 
|  | 2042 | else | 
|  | 2043 | eval "$3=no" | 
|  | 2044 | # Order is important - never check a type that is potentially smaller | 
|  | 2045 | # than half of the expected target width. | 
|  | 2046 | for ac_type in int$2_t 'int' 'long int' \ | 
|  | 2047 | 'long long int' 'short int' 'signed char'; do | 
|  | 2048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2049 | /* end confdefs.h.  */ | 
|  | 2050 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2051 | enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2052 | int | 
|  | 2053 | main () | 
|  | 2054 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2055 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2056 | test_array [0] = 0; | 
|  | 2057 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2058 |  | 
|  | 2059 | ; | 
|  | 2060 | return 0; | 
|  | 2061 | } | 
|  | 2062 | _ACEOF | 
|  | 2063 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2065 | /* end confdefs.h.  */ | 
|  | 2066 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2067 | enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2068 | int | 
|  | 2069 | main () | 
|  | 2070 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2071 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2072 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2073 | test_array [0] = 0; | 
|  | 2074 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2075 |  | 
|  | 2076 | ; | 
|  | 2077 | return 0; | 
|  | 2078 | } | 
|  | 2079 | _ACEOF | 
|  | 2080 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2081 |  | 
|  | 2082 | else | 
|  | 2083 | case $ac_type in #( | 
|  | 2084 | int$2_t) : | 
|  | 2085 | eval "$3=yes" ;; #( | 
|  | 2086 | *) : | 
|  | 2087 | eval "$3=\$ac_type" ;; | 
|  | 2088 | esac | 
|  | 2089 | fi | 
|  | 2090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2091 | fi | 
|  | 2092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2093 | if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2094 |  | 
|  | 2095 | else | 
|  | 2096 | break | 
|  | 2097 | fi | 
|  | 2098 | done | 
|  | 2099 | fi | 
|  | 2100 | eval ac_res=\$$3 | 
|  | 2101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2102 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2103 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2104 |  | 
|  | 2105 | } # ac_fn_c_find_intX_t | 
|  | 2106 |  | 
|  | 2107 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
|  | 2108 | # -------------------------------------------- | 
|  | 2109 | # Tries to find the compile-time value of EXPR in a program that includes | 
|  | 2110 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
|  | 2111 | # computed | 
|  | 2112 | ac_fn_c_compute_int () | 
|  | 2113 | { | 
|  | 2114 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2115 | if test "$cross_compiling" = yes; then | 
|  | 2116 | # Depending upon the size, compute the lo and hi bounds. | 
|  | 2117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2118 | /* end confdefs.h.  */ | 
|  | 2119 | $4 | 
|  | 2120 | int | 
|  | 2121 | main () | 
|  | 2122 | { | 
|  | 2123 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2124 | test_array [0] = 0; | 
|  | 2125 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2126 |  | 
|  | 2127 | ; | 
|  | 2128 | return 0; | 
|  | 2129 | } | 
|  | 2130 | _ACEOF | 
|  | 2131 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2132 | ac_lo=0 ac_mid=0 | 
|  | 2133 | while :; do | 
|  | 2134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2135 | /* end confdefs.h.  */ | 
|  | 2136 | $4 | 
|  | 2137 | int | 
|  | 2138 | main () | 
|  | 2139 | { | 
|  | 2140 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2141 | test_array [0] = 0; | 
|  | 2142 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2143 |  | 
|  | 2144 | ; | 
|  | 2145 | return 0; | 
|  | 2146 | } | 
|  | 2147 | _ACEOF | 
|  | 2148 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2149 | ac_hi=$ac_mid; break | 
|  | 2150 | else | 
|  | 2151 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
|  | 2152 | if test $ac_lo -le $ac_mid; then | 
|  | 2153 | ac_lo= ac_hi= | 
|  | 2154 | break | 
|  | 2155 | fi | 
|  | 2156 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
|  | 2157 | fi | 
|  | 2158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2159 | done | 
|  | 2160 | else | 
|  | 2161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2162 | /* end confdefs.h.  */ | 
|  | 2163 | $4 | 
|  | 2164 | int | 
|  | 2165 | main () | 
|  | 2166 | { | 
|  | 2167 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2168 | test_array [0] = 0; | 
|  | 2169 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2170 |  | 
|  | 2171 | ; | 
|  | 2172 | return 0; | 
|  | 2173 | } | 
|  | 2174 | _ACEOF | 
|  | 2175 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2176 | ac_hi=-1 ac_mid=-1 | 
|  | 2177 | while :; do | 
|  | 2178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2179 | /* end confdefs.h.  */ | 
|  | 2180 | $4 | 
|  | 2181 | int | 
|  | 2182 | main () | 
|  | 2183 | { | 
|  | 2184 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2185 | test_array [0] = 0; | 
|  | 2186 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2187 |  | 
|  | 2188 | ; | 
|  | 2189 | return 0; | 
|  | 2190 | } | 
|  | 2191 | _ACEOF | 
|  | 2192 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2193 | ac_lo=$ac_mid; break | 
|  | 2194 | else | 
|  | 2195 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
|  | 2196 | if test $ac_mid -le $ac_hi; then | 
|  | 2197 | ac_lo= ac_hi= | 
|  | 2198 | break | 
|  | 2199 | fi | 
|  | 2200 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
|  | 2201 | fi | 
|  | 2202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2203 | done | 
|  | 2204 | else | 
|  | 2205 | ac_lo= ac_hi= | 
|  | 2206 | fi | 
|  | 2207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2208 | fi | 
|  | 2209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2210 | # Binary search between lo and hi bounds. | 
|  | 2211 | while test "x$ac_lo" != "x$ac_hi"; do | 
|  | 2212 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
|  | 2213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2214 | /* end confdefs.h.  */ | 
|  | 2215 | $4 | 
|  | 2216 | int | 
|  | 2217 | main () | 
|  | 2218 | { | 
|  | 2219 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2220 | test_array [0] = 0; | 
|  | 2221 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2222 |  | 
|  | 2223 | ; | 
|  | 2224 | return 0; | 
|  | 2225 | } | 
|  | 2226 | _ACEOF | 
|  | 2227 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2228 | ac_hi=$ac_mid | 
|  | 2229 | else | 
|  | 2230 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
|  | 2231 | fi | 
|  | 2232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2233 | done | 
|  | 2234 | case $ac_lo in #(( | 
|  | 2235 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
|  | 2236 | '') ac_retval=1 ;; | 
|  | 2237 | esac | 
|  | 2238 | else | 
|  | 2239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2240 | /* end confdefs.h.  */ | 
|  | 2241 | $4 | 
|  | 2242 | static long int longval () { return $2; } | 
|  | 2243 | static unsigned long int ulongval () { return $2; } | 
|  | 2244 | #include <stdio.h> | 
|  | 2245 | #include <stdlib.h> | 
|  | 2246 | int | 
|  | 2247 | main () | 
|  | 2248 | { | 
|  | 2249 |  | 
|  | 2250 | FILE *f = fopen ("conftest.val", "w"); | 
|  | 2251 | if (! f) | 
|  | 2252 | return 1; | 
|  | 2253 | if (($2) < 0) | 
|  | 2254 | { | 
|  | 2255 | long int i = longval (); | 
|  | 2256 | if (i != ($2)) | 
|  | 2257 | return 1; | 
|  | 2258 | fprintf (f, "%ld", i); | 
|  | 2259 | } | 
|  | 2260 | else | 
|  | 2261 | { | 
|  | 2262 | unsigned long int i = ulongval (); | 
|  | 2263 | if (i != ($2)) | 
|  | 2264 | return 1; | 
|  | 2265 | fprintf (f, "%lu", i); | 
|  | 2266 | } | 
|  | 2267 | /* Do not output a trailing newline, as this causes \r\n confusion | 
|  | 2268 | on some platforms.  */ | 
|  | 2269 | return ferror (f) || fclose (f) != 0; | 
|  | 2270 |  | 
|  | 2271 | ; | 
|  | 2272 | return 0; | 
|  | 2273 | } | 
|  | 2274 | _ACEOF | 
|  | 2275 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 2276 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
|  | 2277 | else | 
|  | 2278 | ac_retval=1 | 
|  | 2279 | fi | 
|  | 2280 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 2281 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 2282 | rm -f conftest.val | 
|  | 2283 |  | 
|  | 2284 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2285 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2286 | as_fn_set_status $ac_retval | 
|  | 2287 |  | 
|  | 2288 | } # ac_fn_c_compute_int | 
|  | 2289 |  | 
|  | 2290 | # ac_fn_c_check_func LINENO FUNC VAR | 
|  | 2291 | # ---------------------------------- | 
|  | 2292 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
|  | 2293 | ac_fn_c_check_func () | 
|  | 2294 | { | 
|  | 2295 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2297 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2298 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2299 | $as_echo_n "(cached) " >&6 | 
|  | 2300 | else | 
|  | 2301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2302 | /* end confdefs.h.  */ | 
|  | 2303 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
|  | 2304 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 2305 | #define $2 innocuous_$2 | 
|  | 2306 |  | 
|  | 2307 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 2308 | which can conflict with char $2 (); below. | 
|  | 2309 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 2310 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 2311 |  | 
|  | 2312 | #ifdef __STDC__ | 
|  | 2313 | # include <limits.h> | 
|  | 2314 | #else | 
|  | 2315 | # include <assert.h> | 
|  | 2316 | #endif | 
|  | 2317 |  | 
|  | 2318 | #undef $2 | 
|  | 2319 |  | 
|  | 2320 | /* Override any GCC internal prototype to avoid an error. | 
|  | 2321 | Use char because int might match the return type of a GCC | 
|  | 2322 | builtin and then its argument prototype would still apply.  */ | 
|  | 2323 | #ifdef __cplusplus | 
|  | 2324 | extern "C" | 
|  | 2325 | #endif | 
|  | 2326 | char $2 (); | 
|  | 2327 | /* The GNU C library defines this for functions which it implements | 
|  | 2328 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 2329 | something starting with __ and the normal name is an alias.  */ | 
|  | 2330 | #if defined __stub_$2 || defined __stub___$2 | 
|  | 2331 | choke me | 
|  | 2332 | #endif | 
|  | 2333 |  | 
|  | 2334 | int | 
|  | 2335 | main () | 
|  | 2336 | { | 
|  | 2337 | return $2 (); | 
|  | 2338 | ; | 
|  | 2339 | return 0; | 
|  | 2340 | } | 
|  | 2341 | _ACEOF | 
|  | 2342 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 2343 | eval "$3=yes" | 
|  | 2344 | else | 
|  | 2345 | eval "$3=no" | 
|  | 2346 | fi | 
|  | 2347 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 2348 | conftest$ac_exeext conftest.$ac_ext | 
|  | 2349 | fi | 
|  | 2350 | eval ac_res=\$$3 | 
|  | 2351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2352 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2353 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2354 |  | 
|  | 2355 | } # ac_fn_c_check_func | 
|  | 2356 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2357 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
|  | 2358 | # --------------------------------------------- | 
|  | 2359 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
|  | 2360 | # accordingly. | 
|  | 2361 | ac_fn_c_check_decl () | 
|  | 2362 | { | 
|  | 2363 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2364 | as_decl_name=`echo $2|sed 's/ *(.*//'` | 
|  | 2365 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
|  | 2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
|  | 2367 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
|  | 2368 | if eval \${$3+:} false; then : | 
|  | 2369 | $as_echo_n "(cached) " >&6 | 
|  | 2370 | else | 
|  | 2371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2372 | /* end confdefs.h.  */ | 
|  | 2373 | $4 | 
|  | 2374 | int | 
|  | 2375 | main () | 
|  | 2376 | { | 
|  | 2377 | #ifndef $as_decl_name | 
|  | 2378 | #ifdef __cplusplus | 
|  | 2379 | (void) $as_decl_use; | 
|  | 2380 | #else | 
|  | 2381 | (void) $as_decl_name; | 
|  | 2382 | #endif | 
|  | 2383 | #endif | 
|  | 2384 |  | 
|  | 2385 | ; | 
|  | 2386 | return 0; | 
|  | 2387 | } | 
|  | 2388 | _ACEOF | 
|  | 2389 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2390 | eval "$3=yes" | 
|  | 2391 | else | 
|  | 2392 | eval "$3=no" | 
|  | 2393 | fi | 
|  | 2394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2395 | fi | 
|  | 2396 | eval ac_res=\$$3 | 
|  | 2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2398 | $as_echo "$ac_res" >&6; } | 
|  | 2399 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
|  | 2400 |  | 
|  | 2401 | } # ac_fn_c_check_decl | 
|  | 2402 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2403 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
|  | 2404 | # ---------------------------------------------------- | 
|  | 2405 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
|  | 2406 | # INCLUDES, setting cache variable VAR accordingly. | 
|  | 2407 | ac_fn_c_check_member () | 
|  | 2408 | { | 
|  | 2409 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
|  | 2411 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2412 | if eval \${$4+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2413 | $as_echo_n "(cached) " >&6 | 
|  | 2414 | else | 
|  | 2415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2416 | /* end confdefs.h.  */ | 
|  | 2417 | $5 | 
|  | 2418 | int | 
|  | 2419 | main () | 
|  | 2420 | { | 
|  | 2421 | static $2 ac_aggr; | 
|  | 2422 | if (ac_aggr.$3) | 
|  | 2423 | return 0; | 
|  | 2424 | ; | 
|  | 2425 | return 0; | 
|  | 2426 | } | 
|  | 2427 | _ACEOF | 
|  | 2428 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2429 | eval "$4=yes" | 
|  | 2430 | else | 
|  | 2431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2432 | /* end confdefs.h.  */ | 
|  | 2433 | $5 | 
|  | 2434 | int | 
|  | 2435 | main () | 
|  | 2436 | { | 
|  | 2437 | static $2 ac_aggr; | 
|  | 2438 | if (sizeof ac_aggr.$3) | 
|  | 2439 | return 0; | 
|  | 2440 | ; | 
|  | 2441 | return 0; | 
|  | 2442 | } | 
|  | 2443 | _ACEOF | 
|  | 2444 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2445 | eval "$4=yes" | 
|  | 2446 | else | 
|  | 2447 | eval "$4=no" | 
|  | 2448 | fi | 
|  | 2449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2450 | fi | 
|  | 2451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2452 | fi | 
|  | 2453 | eval ac_res=\$$4 | 
|  | 2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2455 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2456 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2457 |  | 
|  | 2458 | } # ac_fn_c_check_member | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2459 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2460 | This file contains any messages produced by compilers while | 
|  | 2461 | running configure, to aid debugging if configure makes a mistake. | 
|  | 2462 |  | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 2463 | It was created by python $as_me 3.6, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2464 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2465 |  | 
|  | 2466 | $ $0 $@ | 
|  | 2467 |  | 
|  | 2468 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2469 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | { | 
|  | 2471 | cat <<_ASUNAME | 
|  | 2472 | ## --------- ## | 
|  | 2473 | ## Platform. ## | 
|  | 2474 | ## --------- ## | 
|  | 2475 |  | 
|  | 2476 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 2477 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 2478 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 2479 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 2480 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 2481 |  | 
|  | 2482 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 2483 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 2484 |  | 
|  | 2485 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 2486 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 2487 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2488 | /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] | 2489 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 2490 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 2491 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 2492 |  | 
|  | 2493 | _ASUNAME | 
|  | 2494 |  | 
|  | 2495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2496 | for as_dir in $PATH | 
|  | 2497 | do | 
|  | 2498 | IFS=$as_save_IFS | 
|  | 2499 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2500 | $as_echo "PATH: $as_dir" | 
|  | 2501 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2502 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 |  | 
|  | 2504 | } >&5 | 
|  | 2505 |  | 
|  | 2506 | cat >&5 <<_ACEOF | 
|  | 2507 |  | 
|  | 2508 |  | 
|  | 2509 | ## ----------- ## | 
|  | 2510 | ## Core tests. ## | 
|  | 2511 | ## ----------- ## | 
|  | 2512 |  | 
|  | 2513 | _ACEOF | 
|  | 2514 |  | 
|  | 2515 |  | 
|  | 2516 | # Keep a trace of the command line. | 
|  | 2517 | # 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] | 2518 | # 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] | 2519 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2520 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2522 | ac_configure_args0= | 
|  | 2523 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2524 | ac_must_keep_next=false | 
|  | 2525 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2526 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2527 | for ac_arg | 
|  | 2528 | do | 
|  | 2529 | case $ac_arg in | 
|  | 2530 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 2531 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 2532 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 2533 | continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2534 | *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2535 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2536 | esac | 
|  | 2537 | case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2538 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2539 | 2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2540 | as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2541 | if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2542 | ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2543 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2544 | case $ac_arg in | 
|  | 2545 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 2546 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 2547 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 2548 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 2549 | case "$ac_configure_args0 " in | 
|  | 2550 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 2551 | esac | 
|  | 2552 | ;; | 
|  | 2553 | -* ) ac_must_keep_next=true ;; | 
|  | 2554 | esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2555 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2556 | as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2557 | ;; | 
|  | 2558 | esac | 
|  | 2559 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2560 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2561 | { ac_configure_args0=; unset ac_configure_args0;} | 
|  | 2562 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2563 |  | 
|  | 2564 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 2565 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 2566 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2567 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
|  | 2568 | # 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] | 2569 | trap 'exit_status=$? | 
|  | 2570 | # Save into config.log some information that might help in debugging. | 
|  | 2571 | { | 
|  | 2572 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2573 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2574 | $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2575 | ## Cache variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2576 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2577 | echo | 
|  | 2578 | # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2579 | ( | 
|  | 2580 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
|  | 2581 | eval ac_val=\$$ac_var | 
|  | 2582 | case $ac_val in #( | 
|  | 2583 | *${as_nl}*) | 
|  | 2584 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2585 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 2586 | $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] | 2587 | esac | 
|  | 2588 | case $ac_var in #( | 
|  | 2589 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2590 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 2591 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2592 | esac ;; | 
|  | 2593 | esac | 
|  | 2594 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2595 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2596 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
|  | 2597 | *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2598 | sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2599 | "s/'\''/'\''\\\\'\'''\''/g; | 
|  | 2600 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
|  | 2601 | ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2602 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2603 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2604 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2605 | esac | | 
|  | 2606 | sort | 
|  | 2607 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2608 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2609 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2610 | $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2611 | ## Output variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2612 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2613 | echo | 
|  | 2614 | for ac_var in $ac_subst_vars | 
|  | 2615 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2616 | eval ac_val=\$$ac_var | 
|  | 2617 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2618 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2619 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2620 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2621 | done | sort | 
|  | 2622 | echo | 
|  | 2623 |  | 
|  | 2624 | if test -n "$ac_subst_files"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2625 | $as_echo "## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2626 | ## File substitutions. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2627 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2628 | echo | 
|  | 2629 | for ac_var in $ac_subst_files | 
|  | 2630 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2631 | eval ac_val=\$$ac_var | 
|  | 2632 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2633 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2634 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2635 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2636 | done | sort | 
|  | 2637 | echo | 
|  | 2638 | fi | 
|  | 2639 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2640 | if test -s confdefs.h; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2641 | $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2642 | ## confdefs.h. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2643 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2644 | echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2645 | cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2646 | echo | 
|  | 2647 | fi | 
|  | 2648 | test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2649 | $as_echo "$as_me: caught signal $ac_signal" | 
|  | 2650 | $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2651 | } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2652 | rm -f core *.core core.conftest.* && | 
|  | 2653 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2654 | exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2655 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2656 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2657 | 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] | 2658 | done | 
|  | 2659 | ac_signal=0 | 
|  | 2660 |  | 
|  | 2661 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2662 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2663 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2664 | $as_echo "/* confdefs.h */" > confdefs.h | 
|  | 2665 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2666 | # Predefined preprocessor variables. | 
|  | 2667 |  | 
|  | 2668 | cat >>confdefs.h <<_ACEOF | 
|  | 2669 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 2670 | _ACEOF | 
|  | 2671 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2672 | cat >>confdefs.h <<_ACEOF | 
|  | 2673 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 2674 | _ACEOF | 
|  | 2675 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2676 | cat >>confdefs.h <<_ACEOF | 
|  | 2677 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 2678 | _ACEOF | 
|  | 2679 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2680 | cat >>confdefs.h <<_ACEOF | 
|  | 2681 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 2682 | _ACEOF | 
|  | 2683 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2684 | cat >>confdefs.h <<_ACEOF | 
|  | 2685 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 2686 | _ACEOF | 
|  | 2687 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2688 | cat >>confdefs.h <<_ACEOF | 
|  | 2689 | #define PACKAGE_URL "$PACKAGE_URL" | 
|  | 2690 | _ACEOF | 
|  | 2691 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2692 |  | 
|  | 2693 | # 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] | 2694 | # Prefer an explicitly selected file to automatically selected ones. | 
|  | 2695 | ac_site_file1=NONE | 
|  | 2696 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2697 | if test -n "$CONFIG_SITE"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2698 | # We do not want a PATH search for config.site. | 
|  | 2699 | case $CONFIG_SITE in #(( | 
|  | 2700 | -*)  ac_site_file1=./$CONFIG_SITE;; | 
|  | 2701 | */*) ac_site_file1=$CONFIG_SITE;; | 
|  | 2702 | *)   ac_site_file1=./$CONFIG_SITE;; | 
|  | 2703 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2704 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2705 | ac_site_file1=$prefix/share/config.site | 
|  | 2706 | ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2707 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2708 | ac_site_file1=$ac_default_prefix/share/config.site | 
|  | 2709 | ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2710 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2711 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2712 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2713 | test "x$ac_site_file" = xNONE && continue | 
|  | 2714 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
|  | 2715 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
|  | 2716 | $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] | 2717 | sed 's/^/| /' "$ac_site_file" >&5 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2718 | . "$ac_site_file" \ | 
|  | 2719 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2720 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2721 | as_fn_error $? "failed to load site script $ac_site_file | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2722 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2723 | fi | 
|  | 2724 | done | 
|  | 2725 |  | 
|  | 2726 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2727 | # Some versions of bash will fail to source /dev/null (special files | 
|  | 2728 | # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
|  | 2729 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
|  | 2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
|  | 2731 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2732 | case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2733 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 2734 | *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2735 | esac | 
|  | 2736 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2737 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
|  | 2739 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2740 | >$cache_file | 
|  | 2741 | fi | 
|  | 2742 |  | 
|  | 2743 | # Check that the precious variables saved in the cache have kept the same | 
|  | 2744 | # value. | 
|  | 2745 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2746 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2747 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 2748 | eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2749 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
|  | 2750 | eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2751 | case $ac_old_set,$ac_new_set in | 
|  | 2752 | set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 2754 | $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] | 2755 | ac_cache_corrupted=: ;; | 
|  | 2756 | ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 2758 | $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] | 2759 | ac_cache_corrupted=: ;; | 
|  | 2760 | ,);; | 
|  | 2761 | *) | 
|  | 2762 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2763 | # differences in whitespace do not lead to failure. | 
|  | 2764 | ac_old_val_w=`echo x $ac_old_val` | 
|  | 2765 | ac_new_val_w=`echo x $ac_new_val` | 
|  | 2766 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
|  | 2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
|  | 2768 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 2769 | ac_cache_corrupted=: | 
|  | 2770 | else | 
|  | 2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
|  | 2772 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
|  | 2773 | eval $ac_var=\$ac_old_val | 
|  | 2774 | fi | 
|  | 2775 | { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
|  | 2776 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
|  | 2777 | { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
|  | 2778 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2779 | fi;; | 
|  | 2780 | esac | 
|  | 2781 | # Pass precious variables to config.status. | 
|  | 2782 | if test "$ac_new_set" = set; then | 
|  | 2783 | case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2784 | *\'*) 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] | 2785 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 2786 | esac | 
|  | 2787 | case " $ac_configure_args " in | 
|  | 2788 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2789 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2790 | esac | 
|  | 2791 | fi | 
|  | 2792 | done | 
|  | 2793 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
|  | 2797 | $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] | 2798 | 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] | 2799 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2800 | ## -------------------- ## | 
|  | 2801 | ## Main body of script. ## | 
|  | 2802 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2803 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2804 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2805 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2809 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2810 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2811 |  | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2812 |  | 
| Trent Nelson | 5595ab5 | 2012-10-17 04:47:31 -0400 | [diff] [blame] | 2813 | if test "$abs_srcdir" != "$abs_builddir"; then | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2814 | # If we're building out-of-tree, we need to make sure the following | 
|  | 2815 | # resources get picked up before their $srcdir counterparts. | 
|  | 2816 | #   Objects/ -> typeslots.inc | 
|  | 2817 | #   Include/ -> Python-ast.h, graminit.h | 
|  | 2818 | #   Python/  -> importlib.h | 
|  | 2819 | # (A side effect of this is that these resources will automatically be | 
|  | 2820 | #  regenerated when building out-of-tree, regardless of whether or not | 
|  | 2821 | #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
|  | 2822 | #  off.) | 
|  | 2823 | BASECPPFLAGS="-IObjects -IInclude -IPython" | 
|  | 2824 | else | 
|  | 2825 | BASECPPFLAGS="" | 
|  | 2826 | fi | 
|  | 2827 |  | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2828 |  | 
|  | 2829 |  | 
|  | 2830 |  | 
|  | 2831 |  | 
| Antoine Pitrou | d3b2aef | 2011-07-27 01:22:41 +0200 | [diff] [blame] | 2832 | if test -e $srcdir/.hg/dirstate | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2833 | then | 
|  | 2834 | # Extract the first word of "hg", so it can be a program name with args. | 
|  | 2835 | set dummy hg; ac_word=$2 | 
|  | 2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 2837 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2838 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2839 | $as_echo_n "(cached) " >&6 | 
|  | 2840 | else | 
|  | 2841 | if test -n "$HAS_HG"; then | 
|  | 2842 | ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
|  | 2843 | else | 
|  | 2844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2845 | for as_dir in $PATH | 
|  | 2846 | do | 
|  | 2847 | IFS=$as_save_IFS | 
|  | 2848 | test -z "$as_dir" && as_dir=. | 
|  | 2849 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2850 | 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] | 2851 | ac_cv_prog_HAS_HG="found" | 
|  | 2852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2853 | break 2 | 
|  | 2854 | fi | 
|  | 2855 | done | 
|  | 2856 | done | 
|  | 2857 | IFS=$as_save_IFS | 
|  | 2858 |  | 
|  | 2859 | test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
|  | 2860 | fi | 
|  | 2861 | fi | 
|  | 2862 | HAS_HG=$ac_cv_prog_HAS_HG | 
|  | 2863 | if test -n "$HAS_HG"; then | 
|  | 2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
|  | 2865 | $as_echo "$HAS_HG" >&6; } | 
|  | 2866 | else | 
|  | 2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 2868 | $as_echo "no" >&6; } | 
|  | 2869 | fi | 
|  | 2870 |  | 
|  | 2871 |  | 
|  | 2872 | else | 
|  | 2873 | HAS_HG=no-repository | 
|  | 2874 | fi | 
|  | 2875 | if test $HAS_HG = found | 
|  | 2876 | then | 
|  | 2877 | HGVERSION="hg id -i \$(srcdir)" | 
|  | 2878 | HGTAG="hg id -t \$(srcdir)" | 
|  | 2879 | HGBRANCH="hg id -b \$(srcdir)" | 
|  | 2880 | else | 
|  | 2881 | HGVERSION="" | 
|  | 2882 | HGTAG="" | 
|  | 2883 | HGBRANCH="" | 
|  | 2884 | fi | 
|  | 2885 |  | 
|  | 2886 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2887 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2888 |  | 
|  | 2889 |  | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2890 | ac_aux_dir= | 
|  | 2891 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
|  | 2892 | if test -f "$ac_dir/install-sh"; then | 
|  | 2893 | ac_aux_dir=$ac_dir | 
|  | 2894 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 2895 | break | 
|  | 2896 | elif test -f "$ac_dir/install.sh"; then | 
|  | 2897 | ac_aux_dir=$ac_dir | 
|  | 2898 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 2899 | break | 
|  | 2900 | elif test -f "$ac_dir/shtool"; then | 
|  | 2901 | ac_aux_dir=$ac_dir | 
|  | 2902 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 2903 | break | 
|  | 2904 | fi | 
|  | 2905 | done | 
|  | 2906 | if test -z "$ac_aux_dir"; then | 
|  | 2907 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
|  | 2908 | fi | 
|  | 2909 |  | 
|  | 2910 | # These three variables are undocumented and unsupported, | 
|  | 2911 | # and are intended to be withdrawn in a future Autoconf release. | 
|  | 2912 | # They can cause serious problems if a builder's source tree is in a directory | 
|  | 2913 | # whose full name contains unusual characters. | 
|  | 2914 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
|  | 2915 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
|  | 2916 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
|  | 2917 |  | 
|  | 2918 |  | 
|  | 2919 | # Make sure we can run config.sub. | 
|  | 2920 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
|  | 2921 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
|  | 2922 |  | 
|  | 2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
|  | 2924 | $as_echo_n "checking build system type... " >&6; } | 
|  | 2925 | if ${ac_cv_build+:} false; then : | 
|  | 2926 | $as_echo_n "(cached) " >&6 | 
|  | 2927 | else | 
|  | 2928 | ac_build_alias=$build_alias | 
|  | 2929 | test "x$ac_build_alias" = x && | 
|  | 2930 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
|  | 2931 | test "x$ac_build_alias" = x && | 
|  | 2932 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
|  | 2933 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
|  | 2934 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
|  | 2935 |  | 
|  | 2936 | fi | 
|  | 2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
|  | 2938 | $as_echo "$ac_cv_build" >&6; } | 
|  | 2939 | case $ac_cv_build in | 
|  | 2940 | *-*-*) ;; | 
|  | 2941 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
|  | 2942 | esac | 
|  | 2943 | build=$ac_cv_build | 
|  | 2944 | ac_save_IFS=$IFS; IFS='-' | 
|  | 2945 | set x $ac_cv_build | 
|  | 2946 | shift | 
|  | 2947 | build_cpu=$1 | 
|  | 2948 | build_vendor=$2 | 
|  | 2949 | shift; shift | 
|  | 2950 | # Remember, the first character of IFS is used to create $*, | 
|  | 2951 | # except with old shells: | 
|  | 2952 | build_os=$* | 
|  | 2953 | IFS=$ac_save_IFS | 
|  | 2954 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
|  | 2955 |  | 
|  | 2956 |  | 
|  | 2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
|  | 2958 | $as_echo_n "checking host system type... " >&6; } | 
|  | 2959 | if ${ac_cv_host+:} false; then : | 
|  | 2960 | $as_echo_n "(cached) " >&6 | 
|  | 2961 | else | 
|  | 2962 | if test "x$host_alias" = x; then | 
|  | 2963 | ac_cv_host=$ac_cv_build | 
|  | 2964 | else | 
|  | 2965 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
|  | 2966 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
|  | 2967 | fi | 
|  | 2968 |  | 
|  | 2969 | fi | 
|  | 2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
|  | 2971 | $as_echo "$ac_cv_host" >&6; } | 
|  | 2972 | case $ac_cv_host in | 
|  | 2973 | *-*-*) ;; | 
|  | 2974 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
|  | 2975 | esac | 
|  | 2976 | host=$ac_cv_host | 
|  | 2977 | ac_save_IFS=$IFS; IFS='-' | 
|  | 2978 | set x $ac_cv_host | 
|  | 2979 | shift | 
|  | 2980 | host_cpu=$1 | 
|  | 2981 | host_vendor=$2 | 
|  | 2982 | shift; shift | 
|  | 2983 | # Remember, the first character of IFS is used to create $*, | 
|  | 2984 | # except with old shells: | 
|  | 2985 | host_os=$* | 
|  | 2986 | IFS=$ac_save_IFS | 
|  | 2987 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
|  | 2988 |  | 
|  | 2989 |  | 
|  | 2990 |  | 
| doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2991 |  | 
|  | 2992 |  | 
| Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2993 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile | 
|  | 2994 | rm -f pybuilddir.txt | 
|  | 2995 |  | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2996 | for ac_prog in python$PACKAGE_VERSION python3 python | 
|  | 2997 | do | 
|  | 2998 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 2999 | set dummy $ac_prog; ac_word=$2 | 
|  | 3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3001 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 3002 | if ${ac_cv_prog_PYTHON_FOR_GEN+:} false; then : | 
|  | 3003 | $as_echo_n "(cached) " >&6 | 
|  | 3004 | else | 
|  | 3005 | if test -n "$PYTHON_FOR_GEN"; then | 
|  | 3006 | ac_cv_prog_PYTHON_FOR_GEN="$PYTHON_FOR_GEN" # Let the user override the test. | 
|  | 3007 | else | 
|  | 3008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3009 | for as_dir in $PATH | 
|  | 3010 | do | 
|  | 3011 | IFS=$as_save_IFS | 
|  | 3012 | test -z "$as_dir" && as_dir=. | 
|  | 3013 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3014 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 3015 | ac_cv_prog_PYTHON_FOR_GEN="$ac_prog" | 
|  | 3016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3017 | break 2 | 
|  | 3018 | fi | 
|  | 3019 | done | 
|  | 3020 | done | 
|  | 3021 | IFS=$as_save_IFS | 
|  | 3022 |  | 
|  | 3023 | fi | 
|  | 3024 | fi | 
|  | 3025 | PYTHON_FOR_GEN=$ac_cv_prog_PYTHON_FOR_GEN | 
|  | 3026 | if test -n "$PYTHON_FOR_GEN"; then | 
|  | 3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_GEN" >&5 | 
|  | 3028 | $as_echo "$PYTHON_FOR_GEN" >&6; } | 
|  | 3029 | else | 
|  | 3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3031 | $as_echo "no" >&6; } | 
|  | 3032 | fi | 
|  | 3033 |  | 
|  | 3034 |  | 
|  | 3035 | test -n "$PYTHON_FOR_GEN" && break | 
|  | 3036 | done | 
|  | 3037 | test -n "$PYTHON_FOR_GEN" || PYTHON_FOR_GEN="not-found" | 
|  | 3038 |  | 
|  | 3039 | if test "$PYTHON_FOR_GEN" = not-found; then | 
|  | 3040 | PYTHON_FOR_GEN='@echo "Cannot generate $@, python not found !" && \ | 
|  | 3041 | echo "To skip re-generation of $@ run <make touch> or <make -t $@>." && \ | 
|  | 3042 | echo "Otherwise, set python in PATH and run configure or run <make PYTHON_FOR_GEN=python>." && false &&' | 
|  | 3043 | fi | 
|  | 3044 |  | 
|  | 3045 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3046 | if test "$cross_compiling" = yes; then | 
|  | 3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
|  | 3048 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
|  | 3049 | if test -z "$PYTHON_FOR_BUILD"; then | 
|  | 3050 | for interp in python$PACKAGE_VERSION python3 python; do | 
|  | 3051 | which $interp >/dev/null 2>&1 || continue | 
| Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 3052 | 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] | 3053 | break | 
|  | 3054 | fi | 
|  | 3055 | interp= | 
|  | 3056 | done | 
|  | 3057 | if test x$interp = x; then | 
|  | 3058 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
|  | 3059 | fi | 
|  | 3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
|  | 3061 | $as_echo "$interp" >&6; } | 
| doko@python.org | 244b687 | 2013-01-26 12:08:25 +0100 | [diff] [blame] | 3062 | 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:$(srcdir)/Lib/$(PLATDIR) '$interp | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3063 | fi | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 3064 | # Used to comment out stuff for rebuilding generated files | 
|  | 3065 | GENERATED_COMMENT='#' | 
| Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 3066 | elif test "$cross_compiling" = maybe; then | 
|  | 3067 | 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] | 3068 | else | 
|  | 3069 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 3070 | GENERATED_COMMENT='' | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3071 | fi | 
|  | 3072 |  | 
|  | 3073 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3074 |  | 
| Martin Panter | eac67be | 2016-07-28 01:28:27 +0000 | [diff] [blame] | 3075 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 3076 | if test "$prefix" != "/"; then | 
|  | 3077 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
|  | 3078 | fi | 
|  | 3079 |  | 
|  | 3080 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3081 |  | 
|  | 3082 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 3083 | # We don't use PACKAGE_ variables, and they cause conflicts | 
|  | 3084 | # with other autoconf-based packages that include Python.h | 
|  | 3085 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
|  | 3086 | rm confdefs.h | 
|  | 3087 | mv confdefs.h.new confdefs.h | 
|  | 3088 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 3089 |  | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 3090 | VERSION=3.6 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 3091 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 3092 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3093 |  | 
|  | 3094 | SOVERSION=1.0 | 
|  | 3095 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3096 | # The later defininition of _XOPEN_SOURCE disables certain features | 
|  | 3097 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
|  | 3098 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3099 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3100 |  | 
|  | 3101 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3102 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 3103 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
|  | 3104 | # them. | 
|  | 3105 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3106 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3107 |  | 
|  | 3108 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3109 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 3110 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
|  | 3111 | # them. | 
|  | 3112 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3113 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3114 |  | 
|  | 3115 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3116 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 3117 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
|  | 3118 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3119 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3120 |  | 
|  | 3121 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3122 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 3123 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
|  | 3124 | # them. | 
|  | 3125 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3126 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3127 |  | 
|  | 3128 |  | 
|  | 3129 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3130 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3131 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3132 | # Arguments passed to configure. | 
|  | 3133 |  | 
|  | 3134 | CONFIG_ARGS="$ac_configure_args" | 
|  | 3135 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
|  | 3137 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3138 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3139 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3140 | enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3141 | case $enableval in | 
|  | 3142 | yes) | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3143 | # Locate the best usable SDK, see Mac/README.txt for more | 
|  | 3144 | # information | 
|  | 3145 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3146 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3147 | then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3148 | enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
|  | 3149 | if test ! -d "${enableval}" | 
|  | 3150 | then | 
|  | 3151 | enableval=/ | 
|  | 3152 | fi | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3153 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3154 | ;; | 
|  | 3155 | esac | 
|  | 3156 | case $enableval in | 
|  | 3157 | no) | 
|  | 3158 | UNIVERSALSDK= | 
|  | 3159 | enable_universalsdk= | 
|  | 3160 | ;; | 
|  | 3161 | *) | 
|  | 3162 | UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3163 | if test ! -d "${UNIVERSALSDK}" | 
|  | 3164 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3165 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3166 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3167 | ;; | 
|  | 3168 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3169 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3170 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3171 | else | 
|  | 3172 |  | 
|  | 3173 | UNIVERSALSDK= | 
|  | 3174 | enable_universalsdk= | 
|  | 3175 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3176 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3177 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3178 | if test -n "${UNIVERSALSDK}" | 
|  | 3179 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
|  | 3181 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3182 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3184 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3185 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3186 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3187 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3188 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3189 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3190 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3191 | # For backward compatibility reasons we prefer to select '32-bit' if available, | 
|  | 3192 | # otherwise use 'intel' | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3193 | UNIVERSAL_ARCHS="32-bit" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3194 | if test "`uname -s`" = "Darwin" | 
|  | 3195 | then | 
|  | 3196 | if test -n "${UNIVERSALSDK}" | 
|  | 3197 | then | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3198 | 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] | 3199 | then | 
|  | 3200 | UNIVERSAL_ARCHS="intel" | 
|  | 3201 | fi | 
|  | 3202 | fi | 
|  | 3203 | fi | 
|  | 3204 |  | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3205 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
|  | 3207 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3208 |  | 
|  | 3209 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3210 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3211 | withval=$with_universal_archs; | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3212 | UNIVERSAL_ARCHS="$withval" | 
|  | 3213 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3214 | fi | 
|  | 3215 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3216 | if test -n "${UNIVERSALSDK}" | 
|  | 3217 | then | 
|  | 3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | 
|  | 3219 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | 
|  | 3220 | else | 
|  | 3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3222 | $as_echo "no" >&6; } | 
|  | 3223 | fi | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3224 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3225 |  | 
|  | 3226 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3227 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3228 | withval=$with_framework_name; | 
|  | 3229 | PYTHONFRAMEWORK=${withval} | 
|  | 3230 | PYTHONFRAMEWORKDIR=${withval}.framework | 
|  | 3231 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
|  | 3232 |  | 
|  | 3233 | else | 
|  | 3234 |  | 
|  | 3235 | PYTHONFRAMEWORK=Python | 
|  | 3236 | PYTHONFRAMEWORKDIR=Python.framework | 
|  | 3237 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
|  | 3238 |  | 
|  | 3239 | fi | 
|  | 3240 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3241 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3242 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3243 | enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3244 | case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3245 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3246 | enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3247 | esac | 
|  | 3248 | case $enableval in | 
|  | 3249 | no) | 
|  | 3250 | PYTHONFRAMEWORK= | 
|  | 3251 | PYTHONFRAMEWORKDIR=no-framework | 
|  | 3252 | PYTHONFRAMEWORKPREFIX= | 
|  | 3253 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3254 | FRAMEWORKINSTALLFIRST= | 
|  | 3255 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3256 | FRAMEWORKALTINSTALLFIRST= | 
|  | 3257 | FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3258 | FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3259 | if test "x${prefix}" = "xNONE"; then | 
|  | 3260 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 3261 | else | 
|  | 3262 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3263 | fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3264 | enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3265 | ;; | 
|  | 3266 | *) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3267 | PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3268 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3269 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3270 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3271 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
|  | 3272 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3273 | FRAMEWORKPYTHONW="frameworkpythonw" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3274 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3275 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3276 | if test "x${prefix}" = "xNONE" ; then | 
|  | 3277 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3278 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3279 | else | 
|  | 3280 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3281 | fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3282 |  | 
|  | 3283 | case "${enableval}" in | 
|  | 3284 | /System*) | 
|  | 3285 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3286 | if test "${prefix}" = "NONE" ; then | 
|  | 3287 | # See below | 
|  | 3288 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
|  | 3289 | fi | 
|  | 3290 | ;; | 
|  | 3291 |  | 
|  | 3292 | /Library*) | 
|  | 3293 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3294 | ;; | 
|  | 3295 |  | 
|  | 3296 | */Library/Frameworks) | 
|  | 3297 | MDIR="`dirname "${enableval}"`" | 
|  | 3298 | MDIR="`dirname "${MDIR}"`" | 
|  | 3299 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
|  | 3300 |  | 
|  | 3301 | if test "${prefix}" = "NONE"; then | 
|  | 3302 | # User hasn't specified the | 
|  | 3303 | # --prefix option, but wants to install | 
|  | 3304 | # the framework in a non-default location, | 
|  | 3305 | # ensure that the compatibility links get | 
|  | 3306 | # installed relative to that prefix as well | 
|  | 3307 | # instead of in /usr/local. | 
|  | 3308 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
|  | 3309 | fi | 
|  | 3310 | ;; | 
|  | 3311 |  | 
|  | 3312 | *) | 
|  | 3313 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3314 | ;; | 
|  | 3315 | esac | 
|  | 3316 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3317 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3318 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3319 | # Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3320 | # files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3321 | ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3322 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3323 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3324 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3325 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
|  | 3326 |  | 
|  | 3327 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
|  | 3328 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3329 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3330 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3331 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3332 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3333 | PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3334 | PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3335 | PYTHONFRAMEWORKPREFIX= | 
|  | 3336 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3337 | FRAMEWORKINSTALLFIRST= | 
|  | 3338 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3339 | FRAMEWORKALTINSTALLFIRST= | 
|  | 3340 | FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3341 | FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3342 | if test "x${prefix}" = "xNONE" ; then | 
|  | 3343 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 3344 | else | 
|  | 3345 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3346 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3347 | enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3348 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3349 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3350 | fi | 
|  | 3351 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3352 |  | 
|  | 3353 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3354 |  | 
|  | 3355 |  | 
|  | 3356 |  | 
|  | 3357 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3358 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3359 |  | 
|  | 3360 |  | 
|  | 3361 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3362 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3363 |  | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3364 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3365 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3366 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3367 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3368 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3369 | # Set name for machine-dependent library files | 
|  | 3370 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
|  | 3372 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3373 | if test -z "$MACHDEP" | 
|  | 3374 | then | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3375 | # avoid using uname for cross builds | 
|  | 3376 | if test "$cross_compiling" = yes; then | 
| doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3377 | # ac_sys_system and ac_sys_release are used for setting | 
|  | 3378 | # a lot of different things including 'define_xopen_source' | 
|  | 3379 | # in the case statement below. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3380 | case "$host" in | 
|  | 3381 | *-*-linux*) | 
|  | 3382 | ac_sys_system=Linux | 
|  | 3383 | ;; | 
|  | 3384 | *-*-cygwin*) | 
|  | 3385 | ac_sys_system=Cygwin | 
|  | 3386 | ;; | 
|  | 3387 | *) | 
|  | 3388 | # for now, limit cross builds to known configurations | 
|  | 3389 | MACHDEP="unknown" | 
|  | 3390 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
|  | 3391 | esac | 
|  | 3392 | ac_sys_release= | 
|  | 3393 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3394 | ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3395 | if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3396 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3397 | ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3398 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3399 | ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3400 | fi | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3401 | fi | 
|  | 3402 | ac_md_system=`echo $ac_sys_system | | 
|  | 3403 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
|  | 3404 | ac_md_release=`echo $ac_sys_release | | 
|  | 3405 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
|  | 3406 | MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3407 |  | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3408 | case $MACHDEP in | 
| Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3409 | linux*) MACHDEP="linux";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3410 | cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3411 | darwin*) MACHDEP="darwin";; | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 3412 | irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3413 | '')	MACHDEP="unknown";; | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3414 | esac | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3415 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3416 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3417 |  | 
|  | 3418 | if test "$cross_compiling" = yes; then | 
|  | 3419 | case "$host" in | 
|  | 3420 | *-*-linux*) | 
|  | 3421 | case "$host_cpu" in | 
|  | 3422 | arm*) | 
|  | 3423 | _host_cpu=arm | 
|  | 3424 | ;; | 
|  | 3425 | *) | 
|  | 3426 | _host_cpu=$host_cpu | 
|  | 3427 | esac | 
|  | 3428 | ;; | 
|  | 3429 | *-*-cygwin*) | 
|  | 3430 | _host_cpu= | 
|  | 3431 | ;; | 
|  | 3432 | *) | 
|  | 3433 | # for now, limit cross builds to known configurations | 
|  | 3434 | MACHDEP="unknown" | 
|  | 3435 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
|  | 3436 | esac | 
|  | 3437 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
|  | 3438 | fi | 
|  | 3439 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3440 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
|  | 3441 | # disable features if it is defined, without any means to access these | 
|  | 3442 | # features as extensions. For these systems, we skip the definition of | 
|  | 3443 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
|  | 3444 | # some feature, make sure there is no alternative way to access this | 
|  | 3445 | # feature. Also, when using wildcards, make sure you have verified the | 
|  | 3446 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
|  | 3447 | # wildcard, and that the wildcard does not include future systems | 
|  | 3448 | # (which may remove their limitations). | 
|  | 3449 | case $ac_sys_system/$ac_sys_release in | 
|  | 3450 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
|  | 3451 | # 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] | 3452 | # 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] | 3453 | # In addition, Stefan Krah confirms that issue #1244610 exists through | 
|  | 3454 | # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3455 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3456 | define_xopen_source=no | 
|  | 3457 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3458 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3459 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3460 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3461 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3462 |  | 
|  | 3463 | ;; | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3464 | OpenBSD/*) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3465 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3466 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3467 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3468 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3469 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3470 |  | 
|  | 3471 | ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3472 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
|  | 3473 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
|  | 3474 | # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3475 | 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] | 3476 | define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3477 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
|  | 3478 | # request to enable features supported by the standard as a request | 
|  | 3479 | # to disable features not supported by the standard.  The best way | 
|  | 3480 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
|  | 3481 | # entirely and define __EXTENSIONS__ instead. | 
|  | 3482 | SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3483 | define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3484 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
|  | 3485 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3486 | # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3487 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3488 | define_xopen_source=no;; | 
|  | 3489 | # 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] | 3490 | # 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] | 3491 | SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3492 | define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3493 | # On FreeBSD 4, the math functions C89 does not cover are never defined | 
|  | 3494 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
|  | 3495 | FreeBSD/4.*) | 
|  | 3496 | define_xopen_source=no;; | 
|  | 3497 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
|  | 3498 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
|  | 3499 | # identifies itself as Darwin/7.* | 
|  | 3500 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3501 | # disables platform specific features beyond repair. | 
|  | 3502 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3503 | # has no effect, don't bother defining them | 
|  | 3504 | Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3505 | define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3506 | Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3507 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3508 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
|  | 3509 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
|  | 3510 | # 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] | 3511 | AIX/4) | 
|  | 3512 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3513 | AIX/5) | 
|  | 3514 | if test `uname -r` -eq 1; then | 
|  | 3515 | define_xopen_source=no | 
|  | 3516 | fi | 
|  | 3517 | ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3518 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
|  | 3519 | # defining NI_NUMERICHOST. | 
|  | 3520 | QNX/6.3.2) | 
|  | 3521 | define_xopen_source=no | 
|  | 3522 | ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3523 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3524 | esac | 
|  | 3525 |  | 
|  | 3526 | if test $define_xopen_source = yes | 
|  | 3527 | then | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3528 | # X/Open 7, incorporating POSIX.1-2008 | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3529 |  | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3530 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3531 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3532 |  | 
|  | 3533 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
|  | 3534 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
|  | 3535 | # several APIs are not declared. Since this is also needed in some | 
|  | 3536 | # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3537 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3538 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3539 |  | 
|  | 3540 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3541 |  | 
| Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3542 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3543 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3544 | fi | 
|  | 3545 |  | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3546 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE | 
|  | 3547 | case $ac_sys_system in | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3548 | hp*|HP*) | 
|  | 3549 | define_stdc_a1=yes;; | 
|  | 3550 | *) | 
|  | 3551 | define_stdc_a1=no;; | 
|  | 3552 | esac | 
|  | 3553 |  | 
|  | 3554 | if test $define_stdc_a1 = yes | 
|  | 3555 | then | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3556 |  | 
|  | 3557 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | 
|  | 3558 |  | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3559 | fi | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3560 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3561 | # | 
|  | 3562 | # SGI compilers allow the specification of the both the ABI and the | 
|  | 3563 | # ISA on the command line.  Depending on the values of these switches, | 
| Martin Panter | 46f5072 | 2016-05-26 05:35:26 +0000 | [diff] [blame] | 3564 | # different and often incompatible code will be generated. | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3565 | # | 
|  | 3566 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
|  | 3567 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
|  | 3568 | # variable is also adjusted. | 
|  | 3569 | # | 
|  | 3570 |  | 
|  | 3571 | if test ! -z "$SGI_ABI" | 
|  | 3572 | then | 
|  | 3573 | CC="cc $SGI_ABI" | 
|  | 3574 | LDFLAGS="$SGI_ABI $LDFLAGS" | 
|  | 3575 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
|  | 3576 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
|  | 3578 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3579 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3580 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
|  | 3581 | # it may influence the way we can build extensions, so distutils | 
|  | 3582 | # needs to check it | 
|  | 3583 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3584 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3585 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3586 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3587 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3588 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3589 |  | 
|  | 3590 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
|  | 3591 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
|  | 3592 | # just to get things to compile and link.  Users are free to override OPT | 
|  | 3593 | # when running configure or make.  The build should not break if they do. | 
|  | 3594 | # BASECFLAGS should generally not be messed with, however. | 
|  | 3595 |  | 
|  | 3596 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
|  | 3597 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
|  | 3599 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3600 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3601 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3602 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3603 | withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3604 | case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3605 | no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3606 | without_gcc=yes;; | 
|  | 3607 | yes)	CC=gcc | 
|  | 3608 | without_gcc=no;; | 
|  | 3609 | *)	CC=$withval | 
|  | 3610 | without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3611 | esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3612 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3613 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3614 | case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3615 | AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3616 | without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3617 | *)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3618 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3619 | fi | 
|  | 3620 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
|  | 3622 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3623 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 3624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 | 
|  | 3625 | $as_echo_n "checking for --with-icc... " >&6; } | 
|  | 3626 |  | 
|  | 3627 | # Check whether --with-icc was given. | 
|  | 3628 | if test "${with_icc+set}" = set; then : | 
|  | 3629 | withval=$with_icc; | 
|  | 3630 | case $withval in | 
|  | 3631 | no)	CC=${CC:-cc} | 
|  | 3632 | with_icc=no;; | 
|  | 3633 | yes)	CC=icc | 
|  | 3634 | CXX=icpc | 
|  | 3635 | with_icc=yes;; | 
|  | 3636 | *)	CC=$withval | 
|  | 3637 | with_icc=$withval;; | 
|  | 3638 | esac | 
|  | 3639 | else | 
|  | 3640 |  | 
|  | 3641 | with_icc=no | 
|  | 3642 | fi | 
|  | 3643 |  | 
|  | 3644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 | 
|  | 3645 | $as_echo "$with_icc" >&6; } | 
|  | 3646 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3647 | # If the user switches compilers, we can't believe the cache | 
|  | 3648 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
|  | 3649 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3650 | as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3651 | (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] | 3652 | fi | 
|  | 3653 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3654 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
|  | 3655 | # when the compiler supports them, but we don't always want -O2, and | 
|  | 3656 | # we set -g later. | 
|  | 3657 | if test -z "$CFLAGS"; then | 
|  | 3658 | CFLAGS= | 
|  | 3659 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3660 |  | 
|  | 3661 | if test "$ac_sys_system" = "Darwin" | 
|  | 3662 | then | 
|  | 3663 | # Compiler selection on MacOSX is more complicated than | 
|  | 3664 | # AC_PROG_CC can handle, see Mac/README.txt for more | 
|  | 3665 | # information | 
|  | 3666 | if test -z "${CC}" | 
|  | 3667 | then | 
|  | 3668 | found_gcc= | 
|  | 3669 | found_clang= | 
|  | 3670 | as_save_IFS=$IFS; IFS=: | 
|  | 3671 | for as_dir in $PATH | 
|  | 3672 | do | 
|  | 3673 | IFS=$as_save_IFS | 
|  | 3674 | if test -x $as_dir/gcc; then | 
|  | 3675 | if test -z "${found_gcc}"; then | 
|  | 3676 | found_gcc=$as_dir/gcc | 
|  | 3677 | fi | 
|  | 3678 | fi | 
|  | 3679 | if test -x $as_dir/clang; then | 
|  | 3680 | if test -z "${found_clang}"; then | 
|  | 3681 | found_clang=$as_dir/clang | 
|  | 3682 | fi | 
|  | 3683 | fi | 
|  | 3684 | done | 
|  | 3685 | IFS=$as_save_IFS | 
|  | 3686 |  | 
|  | 3687 | if test -n "$found_gcc" -a -n "$found_clang" | 
|  | 3688 | then | 
|  | 3689 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" | 
|  | 3690 | then | 
|  | 3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | 
|  | 3692 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | 
|  | 3693 | CC="$found_clang" | 
|  | 3694 | CXX="$found_clang++" | 
|  | 3695 | fi | 
|  | 3696 |  | 
|  | 3697 |  | 
|  | 3698 | elif test -z "$found_gcc" -a -n "$found_clang" | 
|  | 3699 | then | 
|  | 3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | 
|  | 3701 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | 
|  | 3702 | CC="$found_clang" | 
|  | 3703 | CXX="$found_clang++" | 
|  | 3704 |  | 
|  | 3705 | elif test -z "$found_gcc" -a -z "$found_clang" | 
|  | 3706 | then | 
|  | 3707 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | 
|  | 3708 | if test -n "${found_clang}" | 
|  | 3709 | then | 
|  | 3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | 
|  | 3711 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | 
|  | 3712 | CC="${found_clang}" | 
|  | 3713 | CXX="`/usr/bin/xcrun -find clang++`" | 
|  | 3714 |  | 
|  | 3715 | # else: use default behaviour | 
|  | 3716 | fi | 
|  | 3717 | fi | 
|  | 3718 | fi | 
|  | 3719 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3720 | ac_ext=c | 
|  | 3721 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3725 | if test -n "$ac_tool_prefix"; then | 
|  | 3726 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 3727 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3729 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3730 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3731 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3732 | else | 
|  | 3733 | if test -n "$CC"; then | 
|  | 3734 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3735 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3737 | for as_dir in $PATH | 
|  | 3738 | do | 
|  | 3739 | IFS=$as_save_IFS | 
|  | 3740 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3741 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3742 | 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] | 3743 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3744 | $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] | 3745 | break 2 | 
|  | 3746 | fi | 
|  | 3747 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3748 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3749 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3750 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3751 | fi | 
|  | 3752 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3753 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3754 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3756 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3757 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3759 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3760 | fi | 
|  | 3761 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3762 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3763 | fi | 
|  | 3764 | if test -z "$ac_cv_prog_CC"; then | 
|  | 3765 | ac_ct_CC=$CC | 
|  | 3766 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 3767 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3769 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3770 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3771 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3772 | else | 
|  | 3773 | if test -n "$ac_ct_CC"; then | 
|  | 3774 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3775 | else | 
|  | 3776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3777 | for as_dir in $PATH | 
|  | 3778 | do | 
|  | 3779 | IFS=$as_save_IFS | 
|  | 3780 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3781 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3782 | 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] | 3783 | ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3784 | $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] | 3785 | break 2 | 
|  | 3786 | fi | 
|  | 3787 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3788 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3789 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3790 |  | 
|  | 3791 | fi | 
|  | 3792 | fi | 
|  | 3793 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3794 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3796 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3797 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3799 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3800 | fi | 
|  | 3801 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3802 | if test "x$ac_ct_CC" = x; then | 
|  | 3803 | CC="" | 
|  | 3804 | else | 
|  | 3805 | case $cross_compiling:$ac_tool_warned in | 
|  | 3806 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3808 | $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] | 3809 | ac_tool_warned=yes ;; | 
|  | 3810 | esac | 
|  | 3811 | CC=$ac_ct_CC | 
|  | 3812 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3813 | else | 
|  | 3814 | CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3815 | fi | 
|  | 3816 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3817 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3818 | if test -n "$ac_tool_prefix"; then | 
|  | 3819 | # 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] | 3820 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3822 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3823 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3824 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3825 | else | 
|  | 3826 | if test -n "$CC"; then | 
|  | 3827 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3828 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3830 | for as_dir in $PATH | 
|  | 3831 | do | 
|  | 3832 | IFS=$as_save_IFS | 
|  | 3833 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3834 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3835 | 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] | 3836 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3837 | $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] | 3838 | break 2 | 
|  | 3839 | fi | 
|  | 3840 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3841 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3842 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3843 |  | 
|  | 3844 | fi | 
|  | 3845 | fi | 
|  | 3846 | CC=$ac_cv_prog_CC | 
|  | 3847 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3849 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3850 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3852 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3853 | fi | 
|  | 3854 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3855 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3856 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3857 | fi | 
|  | 3858 | if test -z "$CC"; then | 
|  | 3859 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 3860 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3862 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3863 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3864 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3865 | else | 
|  | 3866 | if test -n "$CC"; then | 
|  | 3867 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3868 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3869 | ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3871 | for as_dir in $PATH | 
|  | 3872 | do | 
|  | 3873 | IFS=$as_save_IFS | 
|  | 3874 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3875 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3876 | 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] | 3877 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 3878 | ac_prog_rejected=yes | 
|  | 3879 | continue | 
|  | 3880 | fi | 
|  | 3881 | ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3882 | $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] | 3883 | break 2 | 
|  | 3884 | fi | 
|  | 3885 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3886 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3887 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3888 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3889 | if test $ac_prog_rejected = yes; then | 
|  | 3890 | # We found a bogon in the path, so make sure we never use it. | 
|  | 3891 | set dummy $ac_cv_prog_CC | 
|  | 3892 | shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3893 | if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3894 | # We chose a different compiler from the bogus one. | 
|  | 3895 | # However, it has the same basename, so the bogon will be chosen | 
|  | 3896 | # first if we set CC to just the basename; use the full file name. | 
|  | 3897 | shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3898 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3899 | fi | 
|  | 3900 | fi | 
|  | 3901 | fi | 
|  | 3902 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3903 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3904 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3906 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3907 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3909 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3910 | fi | 
|  | 3911 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3912 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3913 | fi | 
|  | 3914 | if test -z "$CC"; then | 
|  | 3915 | if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3916 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3917 | do | 
|  | 3918 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 3919 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3921 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3922 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3923 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3924 | else | 
|  | 3925 | if test -n "$CC"; then | 
|  | 3926 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3927 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3929 | for as_dir in $PATH | 
|  | 3930 | do | 
|  | 3931 | IFS=$as_save_IFS | 
|  | 3932 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3933 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3934 | 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] | 3935 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3936 | $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] | 3937 | break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3938 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3939 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3940 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3941 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3942 |  | 
|  | 3943 | fi | 
|  | 3944 | fi | 
|  | 3945 | CC=$ac_cv_prog_CC | 
|  | 3946 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3948 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3949 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3951 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3952 | fi | 
|  | 3953 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3954 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3955 | test -n "$CC" && break | 
|  | 3956 | done | 
|  | 3957 | fi | 
|  | 3958 | if test -z "$CC"; then | 
|  | 3959 | ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3960 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3961 | do | 
|  | 3962 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3963 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3965 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3966 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3967 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3968 | else | 
|  | 3969 | if test -n "$ac_ct_CC"; then | 
|  | 3970 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3971 | else | 
|  | 3972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3973 | for as_dir in $PATH | 
|  | 3974 | do | 
|  | 3975 | IFS=$as_save_IFS | 
|  | 3976 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3977 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3978 | 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] | 3979 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3980 | $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] | 3981 | break 2 | 
|  | 3982 | fi | 
|  | 3983 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3984 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3985 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3986 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3987 | fi | 
|  | 3988 | fi | 
|  | 3989 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3990 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3992 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3993 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3995 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3996 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3997 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3998 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3999 | test -n "$ac_ct_CC" && break | 
|  | 4000 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4001 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4002 | if test "x$ac_ct_CC" = x; then | 
|  | 4003 | CC="" | 
|  | 4004 | else | 
|  | 4005 | case $cross_compiling:$ac_tool_warned in | 
|  | 4006 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4008 | $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] | 4009 | ac_tool_warned=yes ;; | 
|  | 4010 | esac | 
|  | 4011 | CC=$ac_ct_CC | 
|  | 4012 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4013 | fi | 
|  | 4014 |  | 
|  | 4015 | fi | 
|  | 4016 |  | 
|  | 4017 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4018 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4019 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4020 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4021 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4022 |  | 
|  | 4023 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4024 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
|  | 4025 | set X $ac_compile | 
|  | 4026 | ac_compiler=$2 | 
|  | 4027 | for ac_option in --version -v -V -qversion; do | 
|  | 4028 | { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4029 | case "(($ac_try" in | 
|  | 4030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4031 | *) ac_try_echo=$ac_try;; | 
|  | 4032 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4033 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4034 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4035 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4036 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4037 | if test -s conftest.err; then | 
|  | 4038 | sed '10a\ | 
|  | 4039 | ... rest of stderr output deleted ... | 
|  | 4040 | 10q' conftest.err >conftest.er1 | 
|  | 4041 | cat conftest.er1 >&5 | 
|  | 4042 | fi | 
|  | 4043 | rm -f conftest.er1 conftest.err | 
|  | 4044 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4045 | test $ac_status = 0; } | 
|  | 4046 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4047 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4049 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4050 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4051 | int | 
|  | 4052 | main () | 
|  | 4053 | { | 
|  | 4054 |  | 
|  | 4055 | ; | 
|  | 4056 | return 0; | 
|  | 4057 | } | 
|  | 4058 | _ACEOF | 
|  | 4059 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4060 | 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] | 4061 | # Try to create an executable without -o first, disregard a.out. | 
|  | 4062 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 4063 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
|  | 4065 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
|  | 4066 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 4067 |  | 
|  | 4068 | # The possible output files: | 
|  | 4069 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
|  | 4070 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4071 | ac_rmfiles= | 
|  | 4072 | for ac_file in $ac_files | 
|  | 4073 | do | 
|  | 4074 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4075 | *.$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] | 4076 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
|  | 4077 | esac | 
|  | 4078 | done | 
|  | 4079 | rm -f $ac_rmfiles | 
|  | 4080 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4081 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4082 | case "(($ac_try" in | 
|  | 4083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4084 | *) ac_try_echo=$ac_try;; | 
|  | 4085 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4086 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4087 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4088 | (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4089 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4090 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4091 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4092 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
|  | 4093 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
|  | 4094 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
|  | 4095 | # so that the user can short-circuit this test for compilers unknown to | 
|  | 4096 | # Autoconf. | 
|  | 4097 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4098 | do | 
|  | 4099 | test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4100 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4101 | *.$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] | 4102 | ;; | 
|  | 4103 | [ab].out ) | 
|  | 4104 | # We found the default executable, but exeext='' is most | 
|  | 4105 | # certainly right. | 
|  | 4106 | break;; | 
|  | 4107 | *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4108 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4109 | then :; else | 
|  | 4110 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 4111 | fi | 
|  | 4112 | # We set ac_cv_exeext here because the later test for it is not | 
|  | 4113 | # safe: cross compilers may not add the suffix if given an `-o' | 
|  | 4114 | # argument, so we may need to know it at that point already. | 
|  | 4115 | # Even if this section looks crufty: it has the advantage of | 
|  | 4116 | # actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4117 | break;; | 
|  | 4118 | * ) | 
|  | 4119 | break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4120 | esac | 
|  | 4121 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4122 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 4123 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4124 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4125 | ac_file='' | 
|  | 4126 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4127 | if test -z "$ac_file"; then : | 
|  | 4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4129 | $as_echo "no" >&6; } | 
|  | 4130 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4131 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4132 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4133 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4134 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4135 | as_fn_error 77 "C compiler cannot create executables | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4136 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4137 | else | 
|  | 4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 4139 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4140 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
|  | 4142 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
|  | 4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
|  | 4144 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4145 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4146 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4147 | 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] | 4148 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
|  | 4150 | $as_echo_n "checking for suffix of executables... " >&6; } | 
|  | 4151 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4152 | case "(($ac_try" in | 
|  | 4153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4154 | *) ac_try_echo=$ac_try;; | 
|  | 4155 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4156 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4157 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4158 | (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4159 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4160 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4161 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4162 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 4163 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 4164 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 4165 | # `rm'. | 
|  | 4166 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 4167 | test -f "$ac_file" || continue | 
|  | 4168 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4169 | *.$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] | 4170 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 4171 | break;; | 
|  | 4172 | * ) break;; | 
|  | 4173 | esac | 
|  | 4174 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4175 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4176 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4177 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4178 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4179 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4180 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4181 | rm -f conftest conftest$ac_cv_exeext | 
|  | 4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
|  | 4183 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4184 |  | 
|  | 4185 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4186 | EXEEXT=$ac_cv_exeext | 
|  | 4187 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4189 | /* end confdefs.h.  */ | 
|  | 4190 | #include <stdio.h> | 
|  | 4191 | int | 
|  | 4192 | main () | 
|  | 4193 | { | 
|  | 4194 | FILE *f = fopen ("conftest.out", "w"); | 
|  | 4195 | return ferror (f) || fclose (f) != 0; | 
|  | 4196 |  | 
|  | 4197 | ; | 
|  | 4198 | return 0; | 
|  | 4199 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4200 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4201 | ac_clean_files="$ac_clean_files conftest.out" | 
|  | 4202 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 4203 | # the compiler is broken, or we cross compile. | 
|  | 4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
|  | 4205 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
|  | 4206 | if test "$cross_compiling" != yes; then | 
|  | 4207 | { { ac_try="$ac_link" | 
|  | 4208 | case "(($ac_try" in | 
|  | 4209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4210 | *) ac_try_echo=$ac_try;; | 
|  | 4211 | esac | 
|  | 4212 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4213 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4214 | (eval "$ac_link") 2>&5 | 
|  | 4215 | ac_status=$? | 
|  | 4216 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4217 | test $ac_status = 0; } | 
|  | 4218 | if { ac_try='./conftest$ac_cv_exeext' | 
|  | 4219 | { { case "(($ac_try" in | 
|  | 4220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4221 | *) ac_try_echo=$ac_try;; | 
|  | 4222 | esac | 
|  | 4223 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4224 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4225 | (eval "$ac_try") 2>&5 | 
|  | 4226 | ac_status=$? | 
|  | 4227 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4228 | test $ac_status = 0; }; }; then | 
|  | 4229 | cross_compiling=no | 
|  | 4230 | else | 
|  | 4231 | if test "$cross_compiling" = maybe; then | 
|  | 4232 | cross_compiling=yes | 
|  | 4233 | else | 
|  | 4234 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4235 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4236 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4237 | If you meant to cross compile, use \`--host'. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4238 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4239 | fi | 
|  | 4240 | fi | 
|  | 4241 | fi | 
|  | 4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
|  | 4243 | $as_echo "$cross_compiling" >&6; } | 
|  | 4244 |  | 
|  | 4245 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
|  | 4246 | ac_clean_files=$ac_clean_files_save | 
|  | 4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
|  | 4248 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4249 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4250 | $as_echo_n "(cached) " >&6 | 
|  | 4251 | else | 
|  | 4252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4253 | /* end confdefs.h.  */ | 
|  | 4254 |  | 
|  | 4255 | int | 
|  | 4256 | main () | 
|  | 4257 | { | 
|  | 4258 |  | 
|  | 4259 | ; | 
|  | 4260 | return 0; | 
|  | 4261 | } | 
|  | 4262 | _ACEOF | 
|  | 4263 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4264 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4265 | case "(($ac_try" in | 
|  | 4266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4267 | *) ac_try_echo=$ac_try;; | 
|  | 4268 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4269 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4270 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4271 | (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4272 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4273 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4274 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4275 | for ac_file in conftest.o conftest.obj conftest.*; do | 
|  | 4276 | test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4277 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4278 | *.$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] | 4279 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 4280 | break;; | 
|  | 4281 | esac | 
|  | 4282 | done | 
|  | 4283 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4284 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4285 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4286 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4287 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4288 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4289 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4290 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4291 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4292 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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}: result: $ac_cv_objext" >&5 | 
|  | 4295 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4296 | OBJEXT=$ac_cv_objext | 
|  | 4297 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
|  | 4299 | $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] | 4300 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4301 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4302 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4304 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4305 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4306 | int | 
|  | 4307 | main () | 
|  | 4308 | { | 
|  | 4309 | #ifndef __GNUC__ | 
|  | 4310 | choke me | 
|  | 4311 | #endif | 
|  | 4312 |  | 
|  | 4313 | ; | 
|  | 4314 | return 0; | 
|  | 4315 | } | 
|  | 4316 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4317 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4318 | ac_compiler_gnu=yes | 
|  | 4319 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4320 | ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4321 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4322 | 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] | 4323 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 4324 |  | 
|  | 4325 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 4327 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
|  | 4328 | if test $ac_compiler_gnu = yes; then | 
|  | 4329 | GCC=yes | 
|  | 4330 | else | 
|  | 4331 | GCC= | 
|  | 4332 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4333 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 4334 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
|  | 4336 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4337 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4338 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4339 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4340 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 4341 | ac_c_werror_flag=yes | 
|  | 4342 | ac_cv_prog_cc_g=no | 
|  | 4343 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4345 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4346 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4347 | int | 
|  | 4348 | main () | 
|  | 4349 | { | 
|  | 4350 |  | 
|  | 4351 | ; | 
|  | 4352 | return 0; | 
|  | 4353 | } | 
|  | 4354 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4355 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4356 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4357 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4358 | CFLAGS="" | 
|  | 4359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4360 | /* end confdefs.h.  */ | 
|  | 4361 |  | 
|  | 4362 | int | 
|  | 4363 | main () | 
|  | 4364 | { | 
|  | 4365 |  | 
|  | 4366 | ; | 
|  | 4367 | return 0; | 
|  | 4368 | } | 
|  | 4369 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4370 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4371 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4372 | else | 
|  | 4373 | ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4374 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4376 | /* end confdefs.h.  */ | 
|  | 4377 |  | 
|  | 4378 | int | 
|  | 4379 | main () | 
|  | 4380 | { | 
|  | 4381 |  | 
|  | 4382 | ; | 
|  | 4383 | return 0; | 
|  | 4384 | } | 
|  | 4385 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4386 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4387 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4388 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4390 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4392 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4394 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 4395 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
|  | 4397 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4398 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4399 | CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4400 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 4401 | if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4402 | CFLAGS="-g -O2" | 
|  | 4403 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4404 | CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4405 | fi | 
|  | 4406 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4407 | if test "$GCC" = yes; then | 
|  | 4408 | CFLAGS="-O2" | 
|  | 4409 | else | 
|  | 4410 | CFLAGS= | 
|  | 4411 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4412 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
|  | 4414 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4415 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4416 | $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4417 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4418 | ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4419 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4421 | /* end confdefs.h.  */ | 
|  | 4422 | #include <stdarg.h> | 
|  | 4423 | #include <stdio.h> | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4424 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4425 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 4426 | struct buf { int x; }; | 
|  | 4427 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 4428 | static char *e (p, i) | 
|  | 4429 | char **p; | 
|  | 4430 | int i; | 
|  | 4431 | { | 
|  | 4432 | return p[i]; | 
|  | 4433 | } | 
|  | 4434 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 4435 | { | 
|  | 4436 | char *s; | 
|  | 4437 | va_list v; | 
|  | 4438 | va_start (v,p); | 
|  | 4439 | s = g (p, va_arg (v,int)); | 
|  | 4440 | va_end (v); | 
|  | 4441 | return s; | 
|  | 4442 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4443 |  | 
|  | 4444 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 4445 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 4446 | These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4447 | 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] | 4448 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 4449 | 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] | 4450 | that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4451 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 4452 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4453 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 4454 | inside strings and character constants.  */ | 
|  | 4455 | #define FOO(x) 'x' | 
|  | 4456 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 4457 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4458 | int test (int i, double x); | 
|  | 4459 | struct s1 {int (*f) (int a);}; | 
|  | 4460 | struct s2 {int (*f) (double a);}; | 
|  | 4461 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 4462 | int argc; | 
|  | 4463 | char **argv; | 
|  | 4464 | int | 
|  | 4465 | main () | 
|  | 4466 | { | 
|  | 4467 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 4468 | ; | 
|  | 4469 | return 0; | 
|  | 4470 | } | 
|  | 4471 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4472 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 4473 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4474 | do | 
|  | 4475 | CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4476 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4477 | ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4478 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4479 | rm -f core conftest.err conftest.$ac_objext | 
|  | 4480 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4481 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4482 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4483 | CC=$ac_save_CC | 
|  | 4484 |  | 
|  | 4485 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4486 | # AC_CACHE_VAL | 
|  | 4487 | case "x$ac_cv_prog_cc_c89" in | 
|  | 4488 | x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 4490 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4491 | xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 4493 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4494 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4495 | CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
|  | 4497 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4498 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4499 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4500 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4501 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4502 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4503 | ac_ext=c | 
|  | 4504 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4508 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4509 | ac_ext=c | 
|  | 4510 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
|  | 4515 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
|  | 4516 | # On Suns, sometimes $CPP names a directory. | 
|  | 4517 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 4518 | CPP= | 
|  | 4519 | fi | 
|  | 4520 | if test -z "$CPP"; then | 
|  | 4521 | if ${ac_cv_prog_CPP+:} false; then : | 
|  | 4522 | $as_echo_n "(cached) " >&6 | 
|  | 4523 | else | 
|  | 4524 | # Double quotes because CPP needs to be expanded | 
|  | 4525 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 4526 | do | 
|  | 4527 | ac_preproc_ok=false | 
|  | 4528 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4529 | do | 
|  | 4530 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4531 | # with a fresh cross-compiler works. | 
|  | 4532 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4533 | # <limits.h> exists even on freestanding compilers. | 
|  | 4534 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4535 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 4536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4537 | /* end confdefs.h.  */ | 
|  | 4538 | #ifdef __STDC__ | 
|  | 4539 | # include <limits.h> | 
|  | 4540 | #else | 
|  | 4541 | # include <assert.h> | 
|  | 4542 | #endif | 
|  | 4543 | Syntax error | 
|  | 4544 | _ACEOF | 
|  | 4545 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4546 |  | 
|  | 4547 | else | 
|  | 4548 | # Broken: fails on valid input. | 
|  | 4549 | continue | 
|  | 4550 | fi | 
|  | 4551 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4552 |  | 
|  | 4553 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 4554 | # can be detected and how. | 
|  | 4555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4556 | /* end confdefs.h.  */ | 
|  | 4557 | #include <ac_nonexistent.h> | 
|  | 4558 | _ACEOF | 
|  | 4559 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4560 | # Broken: success on invalid input. | 
|  | 4561 | continue | 
|  | 4562 | else | 
|  | 4563 | # Passes both tests. | 
|  | 4564 | ac_preproc_ok=: | 
|  | 4565 | break | 
|  | 4566 | fi | 
|  | 4567 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4568 |  | 
|  | 4569 | done | 
|  | 4570 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4571 | rm -f conftest.i conftest.err conftest.$ac_ext | 
|  | 4572 | if $ac_preproc_ok; then : | 
|  | 4573 | break | 
|  | 4574 | fi | 
|  | 4575 |  | 
|  | 4576 | done | 
|  | 4577 | ac_cv_prog_CPP=$CPP | 
|  | 4578 |  | 
|  | 4579 | fi | 
|  | 4580 | CPP=$ac_cv_prog_CPP | 
|  | 4581 | else | 
|  | 4582 | ac_cv_prog_CPP=$CPP | 
|  | 4583 | fi | 
|  | 4584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
|  | 4585 | $as_echo "$CPP" >&6; } | 
|  | 4586 | ac_preproc_ok=false | 
|  | 4587 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4588 | do | 
|  | 4589 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4590 | # with a fresh cross-compiler works. | 
|  | 4591 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4592 | # <limits.h> exists even on freestanding compilers. | 
|  | 4593 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4594 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 4595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4596 | /* end confdefs.h.  */ | 
|  | 4597 | #ifdef __STDC__ | 
|  | 4598 | # include <limits.h> | 
|  | 4599 | #else | 
|  | 4600 | # include <assert.h> | 
|  | 4601 | #endif | 
|  | 4602 | Syntax error | 
|  | 4603 | _ACEOF | 
|  | 4604 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4605 |  | 
|  | 4606 | else | 
|  | 4607 | # Broken: fails on valid input. | 
|  | 4608 | continue | 
|  | 4609 | fi | 
|  | 4610 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4611 |  | 
|  | 4612 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 4613 | # can be detected and how. | 
|  | 4614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4615 | /* end confdefs.h.  */ | 
|  | 4616 | #include <ac_nonexistent.h> | 
|  | 4617 | _ACEOF | 
|  | 4618 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4619 | # Broken: success on invalid input. | 
|  | 4620 | continue | 
|  | 4621 | else | 
|  | 4622 | # Passes both tests. | 
|  | 4623 | ac_preproc_ok=: | 
|  | 4624 | break | 
|  | 4625 | fi | 
|  | 4626 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4627 |  | 
|  | 4628 | done | 
|  | 4629 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4630 | rm -f conftest.i conftest.err conftest.$ac_ext | 
|  | 4631 | if $ac_preproc_ok; then : | 
|  | 4632 |  | 
|  | 4633 | else | 
|  | 4634 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4635 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 4636 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
|  | 4637 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 4638 | fi | 
|  | 4639 |  | 
|  | 4640 | ac_ext=c | 
|  | 4641 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4645 |  | 
|  | 4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
|  | 4647 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
|  | 4648 | if ${ac_cv_path_GREP+:} false; then : | 
|  | 4649 | $as_echo_n "(cached) " >&6 | 
|  | 4650 | else | 
|  | 4651 | if test -z "$GREP"; then | 
|  | 4652 | ac_path_GREP_found=false | 
|  | 4653 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4655 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4656 | do | 
|  | 4657 | IFS=$as_save_IFS | 
|  | 4658 | test -z "$as_dir" && as_dir=. | 
|  | 4659 | for ac_prog in grep ggrep; do | 
|  | 4660 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4661 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4662 | as_fn_executable_p "$ac_path_GREP" || continue | 
|  | 4663 | # Check for GNU ac_path_GREP and select it if it is found. | 
|  | 4664 | # Check for GNU $ac_path_GREP | 
|  | 4665 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 4666 | *GNU*) | 
|  | 4667 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 4668 | *) | 
|  | 4669 | ac_count=0 | 
|  | 4670 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 4671 | while : | 
|  | 4672 | do | 
|  | 4673 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4674 | mv "conftest.tmp" "conftest.in" | 
|  | 4675 | cp "conftest.in" "conftest.nl" | 
|  | 4676 | $as_echo 'GREP' >> "conftest.nl" | 
|  | 4677 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4678 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 4679 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 4680 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
|  | 4681 | # Best one so far, save it but keep looking for a better one | 
|  | 4682 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 4683 | ac_path_GREP_max=$ac_count | 
|  | 4684 | fi | 
|  | 4685 | # 10*(2^10) chars as input seems more than enough | 
|  | 4686 | test $ac_count -gt 10 && break | 
|  | 4687 | done | 
|  | 4688 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4689 | esac | 
|  | 4690 |  | 
|  | 4691 | $ac_path_GREP_found && break 3 | 
|  | 4692 | done | 
|  | 4693 | done | 
|  | 4694 | done | 
|  | 4695 | IFS=$as_save_IFS | 
|  | 4696 | if test -z "$ac_cv_path_GREP"; then | 
|  | 4697 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
|  | 4698 | fi | 
|  | 4699 | else | 
|  | 4700 | ac_cv_path_GREP=$GREP | 
|  | 4701 | fi | 
|  | 4702 |  | 
|  | 4703 | fi | 
|  | 4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
|  | 4705 | $as_echo "$ac_cv_path_GREP" >&6; } | 
|  | 4706 | GREP="$ac_cv_path_GREP" | 
|  | 4707 |  | 
|  | 4708 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4709 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4710 |  | 
|  | 4711 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
|  | 4713 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4714 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4715 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4716 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4717 | withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4718 |  | 
|  | 4719 | case $withval in | 
|  | 4720 | no)	with_cxx_main=no | 
|  | 4721 | MAINCC='$(CC)';; | 
|  | 4722 | yes)	with_cxx_main=yes | 
|  | 4723 | MAINCC='$(CXX)';; | 
|  | 4724 | *)	with_cxx_main=yes | 
|  | 4725 | MAINCC=$withval | 
|  | 4726 | if test -z "$CXX" | 
|  | 4727 | then | 
|  | 4728 | CXX=$withval | 
|  | 4729 | fi;; | 
|  | 4730 | esac | 
|  | 4731 | else | 
|  | 4732 |  | 
|  | 4733 | with_cxx_main=no | 
|  | 4734 | MAINCC='$(CC)' | 
|  | 4735 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4736 | fi | 
|  | 4737 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
|  | 4739 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4740 |  | 
|  | 4741 | preset_cxx="$CXX" | 
|  | 4742 | if test -z "$CXX" | 
|  | 4743 | then | 
|  | 4744 | case "$CC" in | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4745 | gcc)    if test -n "$ac_tool_prefix"; then | 
|  | 4746 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
|  | 4747 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
|  | 4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4749 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4750 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4751 | $as_echo_n "(cached) " >&6 | 
|  | 4752 | else | 
|  | 4753 | case $CXX in | 
|  | 4754 | [\\/]* | ?:[\\/]*) | 
|  | 4755 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4756 | ;; | 
|  | 4757 | *) | 
|  | 4758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4759 | for as_dir in notfound | 
|  | 4760 | do | 
|  | 4761 | IFS=$as_save_IFS | 
|  | 4762 | test -z "$as_dir" && as_dir=. | 
|  | 4763 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4764 | 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] | 4765 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4767 | break 2 | 
|  | 4768 | fi | 
|  | 4769 | done | 
|  | 4770 | done | 
|  | 4771 | IFS=$as_save_IFS | 
|  | 4772 |  | 
|  | 4773 | ;; | 
|  | 4774 | esac | 
|  | 4775 | fi | 
|  | 4776 | CXX=$ac_cv_path_CXX | 
|  | 4777 | if test -n "$CXX"; then | 
|  | 4778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4779 | $as_echo "$CXX" >&6; } | 
|  | 4780 | else | 
|  | 4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4782 | $as_echo "no" >&6; } | 
|  | 4783 | fi | 
|  | 4784 |  | 
|  | 4785 |  | 
|  | 4786 | fi | 
|  | 4787 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4788 | ac_pt_CXX=$CXX | 
|  | 4789 | # 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] | 4790 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4792 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4793 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 4794 | $as_echo_n "(cached) " >&6 | 
|  | 4795 | else | 
|  | 4796 | case $ac_pt_CXX in | 
|  | 4797 | [\\/]* | ?:[\\/]*) | 
|  | 4798 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 4799 | ;; | 
|  | 4800 | *) | 
|  | 4801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4802 | for as_dir in notfound | 
|  | 4803 | do | 
|  | 4804 | IFS=$as_save_IFS | 
|  | 4805 | test -z "$as_dir" && as_dir=. | 
|  | 4806 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4807 | 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] | 4808 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4810 | break 2 | 
|  | 4811 | fi | 
|  | 4812 | done | 
|  | 4813 | done | 
|  | 4814 | IFS=$as_save_IFS | 
|  | 4815 |  | 
|  | 4816 | ;; | 
|  | 4817 | esac | 
|  | 4818 | fi | 
|  | 4819 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4820 | if test -n "$ac_pt_CXX"; then | 
|  | 4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4822 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 4823 | else | 
|  | 4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4825 | $as_echo "no" >&6; } | 
|  | 4826 | fi | 
|  | 4827 |  | 
|  | 4828 | if test "x$ac_pt_CXX" = x; then | 
|  | 4829 | CXX="g++" | 
|  | 4830 | else | 
|  | 4831 | case $cross_compiling:$ac_tool_warned in | 
|  | 4832 | yes:) | 
|  | 4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4834 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4835 | ac_tool_warned=yes ;; | 
|  | 4836 | esac | 
|  | 4837 | CXX=$ac_pt_CXX | 
|  | 4838 | fi | 
|  | 4839 | else | 
|  | 4840 | CXX="$ac_cv_path_CXX" | 
|  | 4841 | fi | 
|  | 4842 | ;; | 
|  | 4843 | cc)     if test -n "$ac_tool_prefix"; then | 
|  | 4844 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
|  | 4845 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
|  | 4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4847 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4848 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4849 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4850 | else | 
|  | 4851 | case $CXX in | 
|  | 4852 | [\\/]* | ?:[\\/]*) | 
|  | 4853 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4854 | ;; | 
|  | 4855 | *) | 
|  | 4856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4857 | for as_dir in notfound | 
|  | 4858 | do | 
|  | 4859 | IFS=$as_save_IFS | 
|  | 4860 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4861 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4862 | 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] | 4863 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4864 | $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] | 4865 | break 2 | 
|  | 4866 | fi | 
|  | 4867 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4868 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4869 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4870 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4871 | ;; | 
|  | 4872 | esac | 
|  | 4873 | fi | 
|  | 4874 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4875 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4877 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4878 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4880 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4881 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4882 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4883 |  | 
|  | 4884 | fi | 
|  | 4885 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4886 | ac_pt_CXX=$CXX | 
|  | 4887 | # 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] | 4888 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4890 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4891 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4892 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4893 | else | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4894 | case $ac_pt_CXX in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4895 | [\\/]* | ?:[\\/]*) | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4896 | 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] | 4897 | ;; | 
|  | 4898 | *) | 
|  | 4899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4900 | for as_dir in notfound | 
|  | 4901 | do | 
|  | 4902 | IFS=$as_save_IFS | 
|  | 4903 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4904 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4905 | 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] | 4906 | 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] | 4907 | $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] | 4908 | break 2 | 
|  | 4909 | fi | 
|  | 4910 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4911 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4912 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4913 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4914 | ;; | 
|  | 4915 | esac | 
|  | 4916 | fi | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4917 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4918 | if test -n "$ac_pt_CXX"; then | 
|  | 4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4920 | $as_echo "$ac_pt_CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4921 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4923 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4924 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4925 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4926 | if test "x$ac_pt_CXX" = x; then | 
|  | 4927 | CXX="c++" | 
|  | 4928 | else | 
|  | 4929 | case $cross_compiling:$ac_tool_warned in | 
|  | 4930 | yes:) | 
|  | 4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4932 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4933 | ac_tool_warned=yes ;; | 
|  | 4934 | esac | 
|  | 4935 | CXX=$ac_pt_CXX | 
|  | 4936 | fi | 
|  | 4937 | else | 
|  | 4938 | CXX="$ac_cv_path_CXX" | 
|  | 4939 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4940 | ;; | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4941 | clang|*/clang)     if test -n "$ac_tool_prefix"; then | 
|  | 4942 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | 
|  | 4943 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4945 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4946 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4947 | $as_echo_n "(cached) " >&6 | 
|  | 4948 | else | 
|  | 4949 | case $CXX in | 
|  | 4950 | [\\/]* | ?:[\\/]*) | 
|  | 4951 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4952 | ;; | 
|  | 4953 | *) | 
|  | 4954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4955 | for as_dir in notfound | 
|  | 4956 | do | 
|  | 4957 | IFS=$as_save_IFS | 
|  | 4958 | test -z "$as_dir" && as_dir=. | 
|  | 4959 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4960 | 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] | 4961 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4963 | break 2 | 
|  | 4964 | fi | 
|  | 4965 | done | 
|  | 4966 | done | 
|  | 4967 | IFS=$as_save_IFS | 
|  | 4968 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4969 | ;; | 
|  | 4970 | esac | 
|  | 4971 | fi | 
|  | 4972 | CXX=$ac_cv_path_CXX | 
|  | 4973 | if test -n "$CXX"; then | 
|  | 4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4975 | $as_echo "$CXX" >&6; } | 
|  | 4976 | else | 
|  | 4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4978 | $as_echo "no" >&6; } | 
|  | 4979 | fi | 
|  | 4980 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4981 |  | 
|  | 4982 | fi | 
|  | 4983 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4984 | ac_pt_CXX=$CXX | 
|  | 4985 | # Extract the first word of "clang++", so it can be a program name with args. | 
|  | 4986 | set dummy clang++; ac_word=$2 | 
|  | 4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4988 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4989 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 4990 | $as_echo_n "(cached) " >&6 | 
|  | 4991 | else | 
|  | 4992 | case $ac_pt_CXX in | 
|  | 4993 | [\\/]* | ?:[\\/]*) | 
|  | 4994 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 4995 | ;; | 
|  | 4996 | *) | 
|  | 4997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4998 | for as_dir in notfound | 
|  | 4999 | do | 
|  | 5000 | IFS=$as_save_IFS | 
|  | 5001 | test -z "$as_dir" && as_dir=. | 
|  | 5002 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5003 | 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] | 5004 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5006 | break 2 | 
|  | 5007 | fi | 
|  | 5008 | done | 
|  | 5009 | done | 
|  | 5010 | IFS=$as_save_IFS | 
|  | 5011 |  | 
|  | 5012 | ;; | 
|  | 5013 | esac | 
|  | 5014 | fi | 
|  | 5015 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 5016 | if test -n "$ac_pt_CXX"; then | 
|  | 5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 5018 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 5019 | else | 
|  | 5020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5021 | $as_echo "no" >&6; } | 
|  | 5022 | fi | 
|  | 5023 |  | 
|  | 5024 | if test "x$ac_pt_CXX" = x; then | 
|  | 5025 | CXX="clang++" | 
|  | 5026 | else | 
|  | 5027 | case $cross_compiling:$ac_tool_warned in | 
|  | 5028 | yes:) | 
|  | 5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5030 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5031 | ac_tool_warned=yes ;; | 
|  | 5032 | esac | 
|  | 5033 | CXX=$ac_pt_CXX | 
|  | 5034 | fi | 
|  | 5035 | else | 
|  | 5036 | CXX="$ac_cv_path_CXX" | 
|  | 5037 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 5038 | ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5039 | icc|*/icc)         if test -n "$ac_tool_prefix"; then | 
|  | 5040 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | 
|  | 5041 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | 
|  | 5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5043 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5044 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 5045 | $as_echo_n "(cached) " >&6 | 
|  | 5046 | else | 
|  | 5047 | case $CXX in | 
|  | 5048 | [\\/]* | ?:[\\/]*) | 
|  | 5049 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 5050 | ;; | 
|  | 5051 | *) | 
|  | 5052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5053 | for as_dir in notfound | 
|  | 5054 | do | 
|  | 5055 | IFS=$as_save_IFS | 
|  | 5056 | test -z "$as_dir" && as_dir=. | 
|  | 5057 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5058 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5059 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5061 | break 2 | 
|  | 5062 | fi | 
|  | 5063 | done | 
|  | 5064 | done | 
|  | 5065 | IFS=$as_save_IFS | 
|  | 5066 |  | 
|  | 5067 | ;; | 
|  | 5068 | esac | 
|  | 5069 | fi | 
|  | 5070 | CXX=$ac_cv_path_CXX | 
|  | 5071 | if test -n "$CXX"; then | 
|  | 5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 5073 | $as_echo "$CXX" >&6; } | 
|  | 5074 | else | 
|  | 5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5076 | $as_echo "no" >&6; } | 
|  | 5077 | fi | 
|  | 5078 |  | 
|  | 5079 |  | 
|  | 5080 | fi | 
|  | 5081 | if test -z "$ac_cv_path_CXX"; then | 
|  | 5082 | ac_pt_CXX=$CXX | 
|  | 5083 | # Extract the first word of "icpc", so it can be a program name with args. | 
|  | 5084 | set dummy icpc; ac_word=$2 | 
|  | 5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5086 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5087 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 5088 | $as_echo_n "(cached) " >&6 | 
|  | 5089 | else | 
|  | 5090 | case $ac_pt_CXX in | 
|  | 5091 | [\\/]* | ?:[\\/]*) | 
|  | 5092 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 5093 | ;; | 
|  | 5094 | *) | 
|  | 5095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5096 | for as_dir in notfound | 
|  | 5097 | do | 
|  | 5098 | IFS=$as_save_IFS | 
|  | 5099 | test -z "$as_dir" && as_dir=. | 
|  | 5100 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5101 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5102 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5104 | break 2 | 
|  | 5105 | fi | 
|  | 5106 | done | 
|  | 5107 | done | 
|  | 5108 | IFS=$as_save_IFS | 
|  | 5109 |  | 
|  | 5110 | ;; | 
|  | 5111 | esac | 
|  | 5112 | fi | 
|  | 5113 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 5114 | if test -n "$ac_pt_CXX"; then | 
|  | 5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 5116 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 5117 | else | 
|  | 5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5119 | $as_echo "no" >&6; } | 
|  | 5120 | fi | 
|  | 5121 |  | 
|  | 5122 | if test "x$ac_pt_CXX" = x; then | 
|  | 5123 | CXX="icpc" | 
|  | 5124 | else | 
|  | 5125 | case $cross_compiling:$ac_tool_warned in | 
|  | 5126 | yes:) | 
|  | 5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5128 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5129 | ac_tool_warned=yes ;; | 
|  | 5130 | esac | 
|  | 5131 | CXX=$ac_pt_CXX | 
|  | 5132 | fi | 
|  | 5133 | else | 
|  | 5134 | CXX="$ac_cv_path_CXX" | 
|  | 5135 | fi | 
|  | 5136 | ;; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5137 | esac | 
|  | 5138 | if test "$CXX" = "notfound" | 
|  | 5139 | then | 
|  | 5140 | CXX="" | 
|  | 5141 | fi | 
|  | 5142 | fi | 
|  | 5143 | if test -z "$CXX" | 
|  | 5144 | then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5145 | if test -n "$ac_tool_prefix"; then | 
|  | 5146 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 5147 | do | 
|  | 5148 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 5149 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5151 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5152 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5153 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5154 | else | 
|  | 5155 | if test -n "$CXX"; then | 
|  | 5156 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 5157 | else | 
|  | 5158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5159 | for as_dir in $PATH | 
|  | 5160 | do | 
|  | 5161 | IFS=$as_save_IFS | 
|  | 5162 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5163 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5164 | 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] | 5165 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5166 | $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] | 5167 | break 2 | 
|  | 5168 | fi | 
|  | 5169 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5170 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5171 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5172 |  | 
|  | 5173 | fi | 
|  | 5174 | fi | 
|  | 5175 | CXX=$ac_cv_prog_CXX | 
|  | 5176 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 5178 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5179 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5181 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5182 | fi | 
|  | 5183 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5184 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5185 | test -n "$CXX" && break | 
|  | 5186 | done | 
|  | 5187 | fi | 
|  | 5188 | if test -z "$CXX"; then | 
|  | 5189 | ac_ct_CXX=$CXX | 
|  | 5190 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 5191 | do | 
|  | 5192 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 5193 | set dummy $ac_prog; ac_word=$2 | 
|  | 5194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5195 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5196 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
|  | 5197 | $as_echo_n "(cached) " >&6 | 
|  | 5198 | else | 
|  | 5199 | if test -n "$ac_ct_CXX"; then | 
|  | 5200 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 5201 | else | 
|  | 5202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5203 | for as_dir in $PATH | 
|  | 5204 | do | 
|  | 5205 | IFS=$as_save_IFS | 
|  | 5206 | test -z "$as_dir" && as_dir=. | 
|  | 5207 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5208 | 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] | 5209 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
|  | 5210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5211 | break 2 | 
|  | 5212 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5213 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5214 | done | 
|  | 5215 | IFS=$as_save_IFS | 
|  | 5216 |  | 
|  | 5217 | fi | 
|  | 5218 | fi | 
|  | 5219 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 5220 | if test -n "$ac_ct_CXX"; then | 
|  | 5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
|  | 5222 | $as_echo "$ac_ct_CXX" >&6; } | 
|  | 5223 | else | 
|  | 5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5225 | $as_echo "no" >&6; } | 
|  | 5226 | fi | 
|  | 5227 |  | 
|  | 5228 |  | 
|  | 5229 | test -n "$ac_ct_CXX" && break | 
|  | 5230 | done | 
|  | 5231 |  | 
|  | 5232 | if test "x$ac_ct_CXX" = x; then | 
|  | 5233 | CXX="notfound" | 
|  | 5234 | else | 
|  | 5235 | case $cross_compiling:$ac_tool_warned in | 
|  | 5236 | yes:) | 
|  | 5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5238 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5239 | ac_tool_warned=yes ;; | 
|  | 5240 | esac | 
|  | 5241 | CXX=$ac_ct_CXX | 
|  | 5242 | fi | 
|  | 5243 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5244 |  | 
|  | 5245 | if test "$CXX" = "notfound" | 
|  | 5246 | then | 
|  | 5247 | CXX="" | 
|  | 5248 | fi | 
|  | 5249 | fi | 
|  | 5250 | if test "$preset_cxx" != "$CXX" | 
|  | 5251 | then | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5253 |  | 
|  | 5254 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 5255 | If this is not intended, then set CXX on the configure command line. | 
|  | 5256 | " >&5 | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5257 | $as_echo "$as_me: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5258 |  | 
|  | 5259 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 5260 | 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] | 5261 | " >&6;} | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5262 | fi | 
|  | 5263 |  | 
|  | 5264 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5265 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
|  | 5266 |  | 
|  | 5267 |  | 
|  | 5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 | 
|  | 5269 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | 
|  | 5270 | cat >> conftest.c <<EOF | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5271 | #undef bfin | 
|  | 5272 | #undef cris | 
|  | 5273 | #undef fr30 | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5274 | #undef linux | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5275 | #undef hppa | 
|  | 5276 | #undef hpux | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5277 | #undef i386 | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5278 | #undef mips | 
| doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5279 | #undef powerpc | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5280 | #undef sparc | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5281 | #undef unix | 
| doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5282 | #if defined(__ANDROID__) | 
|  | 5283 | # if defined(__x86_64__) && defined(__LP64__) | 
|  | 5284 | x86_64-linux-android | 
|  | 5285 | # elif defined(__i386__) | 
|  | 5286 | i686-linux-android | 
|  | 5287 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
|  | 5288 | #  if defined(__ILP32__) | 
|  | 5289 | aarch64_ilp32-linux-android | 
|  | 5290 | #  else | 
|  | 5291 | aarch64-linux-android | 
|  | 5292 | #  endif | 
|  | 5293 | # elif defined(__ARM_EABI__) && defined(__ARMEL__) | 
|  | 5294 | arm-linux-androideabi | 
|  | 5295 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
|  | 5296 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5297 | mipsel-linux-android | 
|  | 5298 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5299 | mips64el-linux-android | 
|  | 5300 | #  else | 
|  | 5301 | #   error unknown platform triplet | 
|  | 5302 | #  endif | 
|  | 5303 | # else | 
|  | 5304 | #   error unknown platform triplet | 
|  | 5305 | # endif | 
|  | 5306 | #elif defined(__linux__) | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5307 | # if defined(__x86_64__) && defined(__LP64__) | 
|  | 5308 | x86_64-linux-gnu | 
|  | 5309 | # elif defined(__x86_64__) && defined(__ILP32__) | 
|  | 5310 | x86_64-linux-gnux32 | 
|  | 5311 | # elif defined(__i386__) | 
|  | 5312 | i386-linux-gnu | 
|  | 5313 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
|  | 5314 | #  if defined(__ILP32__) | 
|  | 5315 | aarch64_ilp32-linux-gnu | 
|  | 5316 | #  else | 
|  | 5317 | aarch64-linux-gnu | 
|  | 5318 | #  endif | 
|  | 5319 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | 
|  | 5320 | #  if defined(__ILP32__) | 
|  | 5321 | aarch64_be_ilp32-linux-gnu | 
|  | 5322 | #  else | 
|  | 5323 | aarch64_be-linux-gnu | 
|  | 5324 | #  endif | 
|  | 5325 | # elif defined(__alpha__) | 
|  | 5326 | alpha-linux-gnu | 
|  | 5327 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | 
|  | 5328 | #  if defined(__ARMEL__) | 
|  | 5329 | arm-linux-gnueabihf | 
|  | 5330 | #  else | 
|  | 5331 | armeb-linux-gnueabihf | 
|  | 5332 | #  endif | 
|  | 5333 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | 
|  | 5334 | #  if defined(__ARMEL__) | 
|  | 5335 | arm-linux-gnueabi | 
|  | 5336 | #  else | 
|  | 5337 | armeb-linux-gnueabi | 
|  | 5338 | #  endif | 
|  | 5339 | # elif defined(__hppa__) | 
|  | 5340 | hppa-linux-gnu | 
|  | 5341 | # elif defined(__ia64__) | 
|  | 5342 | ia64-linux-gnu | 
|  | 5343 | # elif defined(__m68k__) && !defined(__mcoldfire__) | 
|  | 5344 | m68k-linux-gnu | 
|  | 5345 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
|  | 5346 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5347 | mipsel-linux-gnu | 
|  | 5348 | #  elif _MIPS_SIM == _ABIN32 | 
|  | 5349 | mips64el-linux-gnuabin32 | 
|  | 5350 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5351 | mips64el-linux-gnuabi64 | 
|  | 5352 | #  else | 
|  | 5353 | #   error unknown platform triplet | 
|  | 5354 | #  endif | 
|  | 5355 | # elif defined(__mips_hard_float) | 
|  | 5356 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5357 | mips-linux-gnu | 
|  | 5358 | #  elif _MIPS_SIM == _ABIN32 | 
|  | 5359 | mips64-linux-gnuabin32 | 
|  | 5360 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5361 | mips64-linux-gnuabi64 | 
|  | 5362 | #  else | 
|  | 5363 | #   error unknown platform triplet | 
|  | 5364 | #  endif | 
|  | 5365 | # elif defined(__or1k__) | 
|  | 5366 | or1k-linux-gnu | 
|  | 5367 | # elif defined(__powerpc__) && defined(__SPE__) | 
|  | 5368 | powerpc-linux-gnuspe | 
|  | 5369 | # elif defined(__powerpc64__) | 
|  | 5370 | #  if defined(__LITTLE_ENDIAN__) | 
|  | 5371 | powerpc64le-linux-gnu | 
|  | 5372 | #  else | 
|  | 5373 | powerpc64-linux-gnu | 
|  | 5374 | #  endif | 
|  | 5375 | # elif defined(__powerpc__) | 
|  | 5376 | powerpc-linux-gnu | 
|  | 5377 | # elif defined(__s390x__) | 
|  | 5378 | s390x-linux-gnu | 
|  | 5379 | # elif defined(__s390__) | 
|  | 5380 | s390-linux-gnu | 
|  | 5381 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | 
|  | 5382 | sh4-linux-gnu | 
|  | 5383 | # elif defined(__sparc__) && defined(__arch64__) | 
|  | 5384 | sparc64-linux-gnu | 
|  | 5385 | # elif defined(__sparc__) | 
|  | 5386 | sparc-linux-gnu | 
|  | 5387 | # else | 
|  | 5388 | #   error unknown platform triplet | 
|  | 5389 | # endif | 
|  | 5390 | #elif defined(__FreeBSD_kernel__) | 
|  | 5391 | # if defined(__LP64__) | 
|  | 5392 | x86_64-kfreebsd-gnu | 
|  | 5393 | # elif defined(__i386__) | 
|  | 5394 | i386-kfreebsd-gnu | 
|  | 5395 | # else | 
|  | 5396 | #   error unknown platform triplet | 
|  | 5397 | # endif | 
|  | 5398 | #elif defined(__gnu_hurd__) | 
|  | 5399 | i386-gnu | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5400 | #elif defined(__APPLE__) | 
|  | 5401 | darwin | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5402 | #else | 
|  | 5403 | # error unknown platform triplet | 
|  | 5404 | #endif | 
|  | 5405 |  | 
|  | 5406 | EOF | 
|  | 5407 |  | 
| Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5408 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5409 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' 	'` | 
|  | 5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 | 
|  | 5411 | $as_echo "$PLATFORM_TRIPLET" >&6; } | 
|  | 5412 | else | 
|  | 5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 5414 | $as_echo "none" >&6; } | 
|  | 5415 | fi | 
|  | 5416 | rm -f conftest.c conftest.out | 
|  | 5417 |  | 
|  | 5418 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then | 
|  | 5419 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | 
|  | 5420 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | 
|  | 5421 | fi | 
| doko@ubuntu.com | 75b1cb1 | 2016-08-29 20:03:25 +0200 | [diff] [blame] | 5422 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then | 
|  | 5423 | MULTIARCH=$PLATFORM_TRIPLET | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5424 | fi | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5425 | if test x$PLATFORM_TRIPLET = x; then | 
|  | 5426 | PLATDIR=plat-$MACHDEP | 
|  | 5427 | else | 
|  | 5428 | PLATDIR=plat-$PLATFORM_TRIPLET | 
|  | 5429 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5430 |  | 
|  | 5431 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5432 | if test x$MULTIARCH != x; then | 
|  | 5433 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" | 
|  | 5434 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5435 |  | 
|  | 5436 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
|  | 5438 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
|  | 5439 | save_LDFLAGS="$LDFLAGS" | 
|  | 5440 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5441 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5443 | /* end confdefs.h.  */ | 
|  | 5444 |  | 
|  | 5445 | int | 
|  | 5446 | main () | 
|  | 5447 | { | 
|  | 5448 |  | 
|  | 5449 | ; | 
|  | 5450 | return 0; | 
|  | 5451 | } | 
|  | 5452 | _ACEOF | 
|  | 5453 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 5454 | NO_AS_NEEDED="-Wl,--no-as-needed" | 
|  | 5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5456 | $as_echo "yes" >&6; } | 
|  | 5457 | else | 
|  | 5458 | NO_AS_NEEDED="" | 
|  | 5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5460 | $as_echo "no" >&6; } | 
|  | 5461 | fi | 
|  | 5462 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 5463 | conftest$ac_exeext conftest.$ac_ext | 
|  | 5464 | LDFLAGS="$save_LDFLAGS" | 
|  | 5465 |  | 
|  | 5466 |  | 
|  | 5467 |  | 
|  | 5468 | # checks for UNIX variants that set C preprocessor variables | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5469 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
|  | 5471 | $as_echo_n "checking for egrep... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5472 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5473 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5474 | else | 
|  | 5475 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 5476 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 5477 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5478 | if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5479 | ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5480 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 5481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5482 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 5483 | do | 
|  | 5484 | IFS=$as_save_IFS | 
|  | 5485 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5486 | for ac_prog in egrep; do | 
|  | 5487 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5488 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5489 | as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5490 | # 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] | 5491 | # Check for GNU $ac_path_EGREP | 
|  | 5492 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 5493 | *GNU*) | 
|  | 5494 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 5495 | *) | 
|  | 5496 | ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5497 | $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5498 | while : | 
|  | 5499 | do | 
|  | 5500 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 5501 | mv "conftest.tmp" "conftest.in" | 
|  | 5502 | cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5503 | $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5504 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 5505 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5506 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5507 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 5508 | # Best one so far, save it but keep looking for a better one | 
|  | 5509 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 5510 | ac_path_EGREP_max=$ac_count | 
|  | 5511 | fi | 
|  | 5512 | # 10*(2^10) chars as input seems more than enough | 
|  | 5513 | test $ac_count -gt 10 && break | 
|  | 5514 | done | 
|  | 5515 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 5516 | esac | 
|  | 5517 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5518 | $ac_path_EGREP_found && break 3 | 
|  | 5519 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5520 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5521 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5522 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5523 | if test -z "$ac_cv_path_EGREP"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5524 | 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] | 5525 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5526 | else | 
|  | 5527 | ac_cv_path_EGREP=$EGREP | 
|  | 5528 | fi | 
|  | 5529 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5530 | fi | 
|  | 5531 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
|  | 5533 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5534 | EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5535 |  | 
|  | 5536 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 5538 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5539 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5540 | $as_echo_n "(cached) " >&6 | 
|  | 5541 | else | 
|  | 5542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5543 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5544 | #include <stdlib.h> | 
|  | 5545 | #include <stdarg.h> | 
|  | 5546 | #include <string.h> | 
|  | 5547 | #include <float.h> | 
|  | 5548 |  | 
|  | 5549 | int | 
|  | 5550 | main () | 
|  | 5551 | { | 
|  | 5552 |  | 
|  | 5553 | ; | 
|  | 5554 | return 0; | 
|  | 5555 | } | 
|  | 5556 | _ACEOF | 
|  | 5557 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5558 | ac_cv_header_stdc=yes | 
|  | 5559 | else | 
|  | 5560 | ac_cv_header_stdc=no | 
|  | 5561 | fi | 
|  | 5562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5563 |  | 
|  | 5564 | if test $ac_cv_header_stdc = yes; then | 
|  | 5565 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 5566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5567 | /* end confdefs.h.  */ | 
|  | 5568 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5569 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5570 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5571 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5572 | $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5573 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5574 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5575 | ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5576 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5577 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5578 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5579 | fi | 
|  | 5580 |  | 
|  | 5581 | if test $ac_cv_header_stdc = yes; then | 
|  | 5582 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 5583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5584 | /* end confdefs.h.  */ | 
|  | 5585 | #include <stdlib.h> | 
|  | 5586 |  | 
|  | 5587 | _ACEOF | 
|  | 5588 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 5589 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 5590 |  | 
|  | 5591 | else | 
|  | 5592 | ac_cv_header_stdc=no | 
|  | 5593 | fi | 
|  | 5594 | rm -f conftest* | 
|  | 5595 |  | 
|  | 5596 | fi | 
|  | 5597 |  | 
|  | 5598 | if test $ac_cv_header_stdc = yes; then | 
|  | 5599 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 5600 | if test "$cross_compiling" = yes; then : | 
|  | 5601 | : | 
|  | 5602 | else | 
|  | 5603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5604 | /* end confdefs.h.  */ | 
|  | 5605 | #include <ctype.h> | 
|  | 5606 | #include <stdlib.h> | 
|  | 5607 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 5608 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 5609 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 5610 | #else | 
|  | 5611 | # define ISLOWER(c) \ | 
|  | 5612 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 5613 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 5614 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 5615 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 5616 | #endif | 
|  | 5617 |  | 
|  | 5618 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 5619 | int | 
|  | 5620 | main () | 
|  | 5621 | { | 
|  | 5622 | int i; | 
|  | 5623 | for (i = 0; i < 256; i++) | 
|  | 5624 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 5625 | || toupper (i) != TOUPPER (i)) | 
|  | 5626 | return 2; | 
|  | 5627 | return 0; | 
|  | 5628 | } | 
|  | 5629 | _ACEOF | 
|  | 5630 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 5631 |  | 
|  | 5632 | else | 
|  | 5633 | ac_cv_header_stdc=no | 
|  | 5634 | fi | 
|  | 5635 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5636 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 5637 | fi | 
|  | 5638 |  | 
|  | 5639 | fi | 
|  | 5640 | fi | 
|  | 5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 5642 | $as_echo "$ac_cv_header_stdc" >&6; } | 
|  | 5643 | if test $ac_cv_header_stdc = yes; then | 
|  | 5644 |  | 
|  | 5645 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
|  | 5646 |  | 
|  | 5647 | fi | 
|  | 5648 |  | 
|  | 5649 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 5650 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 5651 | inttypes.h stdint.h unistd.h | 
|  | 5652 | do : | 
|  | 5653 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 5654 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 5655 | " | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5656 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5657 | cat >>confdefs.h <<_ACEOF | 
|  | 5658 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 5659 | _ACEOF | 
|  | 5660 |  | 
|  | 5661 | fi | 
|  | 5662 |  | 
|  | 5663 | done | 
|  | 5664 |  | 
|  | 5665 |  | 
|  | 5666 |  | 
|  | 5667 | 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] | 5668 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5669 | MINIX=yes | 
|  | 5670 | else | 
|  | 5671 | MINIX= | 
|  | 5672 | fi | 
|  | 5673 |  | 
|  | 5674 |  | 
|  | 5675 | if test "$MINIX" = yes; then | 
|  | 5676 |  | 
|  | 5677 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
|  | 5678 |  | 
|  | 5679 |  | 
|  | 5680 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
|  | 5681 |  | 
|  | 5682 |  | 
|  | 5683 | $as_echo "#define _MINIX 1" >>confdefs.h | 
|  | 5684 |  | 
|  | 5685 | fi | 
|  | 5686 |  | 
|  | 5687 |  | 
|  | 5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
|  | 5689 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5690 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5691 | $as_echo_n "(cached) " >&6 | 
|  | 5692 | else | 
|  | 5693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5694 | /* end confdefs.h.  */ | 
|  | 5695 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5696 | #         define __EXTENSIONS__ 1 | 
|  | 5697 | $ac_includes_default | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5698 | int | 
|  | 5699 | main () | 
|  | 5700 | { | 
|  | 5701 |  | 
|  | 5702 | ; | 
|  | 5703 | return 0; | 
|  | 5704 | } | 
|  | 5705 | _ACEOF | 
|  | 5706 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5707 | ac_cv_safe_to_define___extensions__=yes | 
|  | 5708 | else | 
|  | 5709 | ac_cv_safe_to_define___extensions__=no | 
|  | 5710 | fi | 
|  | 5711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5712 | fi | 
|  | 5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
|  | 5714 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
|  | 5715 | test $ac_cv_safe_to_define___extensions__ = yes && | 
|  | 5716 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
|  | 5717 |  | 
|  | 5718 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
|  | 5719 |  | 
|  | 5720 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
|  | 5721 |  | 
|  | 5722 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
|  | 5723 |  | 
|  | 5724 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
|  | 5725 |  | 
|  | 5726 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5727 |  | 
| Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 | 
|  | 5729 | $as_echo_n "checking for the Android API level... " >&6; } | 
|  | 5730 | cat >> conftest.c <<EOF | 
|  | 5731 | #ifdef __ANDROID__ | 
|  | 5732 | #include <android/api-level.h> | 
|  | 5733 | __ANDROID_API__ | 
|  | 5734 | #else | 
|  | 5735 | #error not Android | 
|  | 5736 | #endif | 
|  | 5737 | EOF | 
|  | 5738 |  | 
|  | 5739 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
|  | 5740 | ANDROID_API_LEVEL=`grep -v '^#' conftest.out | grep -v '^ *$'` | 
|  | 5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 | 
|  | 5742 | $as_echo "$ANDROID_API_LEVEL" >&6; } | 
|  | 5743 |  | 
|  | 5744 | cat >>confdefs.h <<_ACEOF | 
|  | 5745 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL | 
|  | 5746 | _ACEOF | 
|  | 5747 |  | 
|  | 5748 | else | 
|  | 5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 | 
|  | 5750 | $as_echo "not Android" >&6; } | 
|  | 5751 | fi | 
|  | 5752 | rm -f conftest.c conftest.out | 
|  | 5753 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5754 | # Check for unsupported systems | 
|  | 5755 | case $ac_sys_system/$ac_sys_release in | 
|  | 5756 | atheos*|Linux*/1*) | 
|  | 5757 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
|  | 5758 | echo See README for details. | 
|  | 5759 | exit 1;; | 
|  | 5760 | esac | 
|  | 5761 |  | 
|  | 5762 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
|  | 5764 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5765 |  | 
|  | 5766 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5767 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5768 | withval=$with_suffix; | 
|  | 5769 | case $withval in | 
|  | 5770 | no)	EXEEXT=;; | 
|  | 5771 | yes)	EXEEXT=.exe;; | 
|  | 5772 | *)	EXEEXT=$withval;; | 
|  | 5773 | esac | 
|  | 5774 | fi | 
|  | 5775 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
|  | 5777 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5778 |  | 
|  | 5779 | # Test whether we're running on a non-case-sensitive system, in which | 
|  | 5780 | # case we give a warning if no ext is given | 
|  | 5781 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
|  | 5783 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5784 | if test ! -d CaseSensitiveTestDir; then | 
|  | 5785 | mkdir CaseSensitiveTestDir | 
|  | 5786 | fi | 
|  | 5787 |  | 
|  | 5788 | if test -d casesensitivetestdir | 
|  | 5789 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5791 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5792 | BUILDEXEEXT=.exe | 
|  | 5793 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5795 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5796 | BUILDEXEEXT=$EXEEXT | 
|  | 5797 | fi | 
|  | 5798 | rmdir CaseSensitiveTestDir | 
|  | 5799 |  | 
|  | 5800 | case $MACHDEP in | 
|  | 5801 | bsdos*) | 
|  | 5802 | case $CC in | 
|  | 5803 | gcc) CC="$CC -D_HAVE_BSDI";; | 
|  | 5804 | esac;; | 
|  | 5805 | esac | 
|  | 5806 |  | 
|  | 5807 | case $ac_sys_system in | 
|  | 5808 | hp*|HP*) | 
|  | 5809 | case $CC in | 
|  | 5810 | cc|*/cc) CC="$CC -Ae";; | 
|  | 5811 | esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5812 | esac | 
|  | 5813 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5814 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
|  | 5816 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5817 | if test -z "$LIBRARY" | 
|  | 5818 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5819 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5820 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
|  | 5822 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5823 |  | 
|  | 5824 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
|  | 5825 | # name of the library into which to insert object files). BLDLIBRARY is also | 
|  | 5826 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
|  | 5827 | # is blank as the main program is not linked directly against LDLIBRARY. | 
|  | 5828 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
|  | 5829 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
|  | 5830 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
|  | 5831 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
|  | 5832 | # | 
|  | 5833 | # RUNSHARED is used to run shared python without installed libraries | 
|  | 5834 | # | 
|  | 5835 | # INSTSONAME is the name of the shared library that will be use to install | 
|  | 5836 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5837 | # | 
|  | 5838 | # LDVERSION is the shared library version number, normally the Python version | 
|  | 5839 | # with the ABI build flags appended. | 
|  | 5840 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5841 |  | 
|  | 5842 |  | 
|  | 5843 |  | 
|  | 5844 |  | 
|  | 5845 |  | 
|  | 5846 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5847 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5848 | LDLIBRARY="$LIBRARY" | 
|  | 5849 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 5850 | INSTSONAME='$(LDLIBRARY)' | 
|  | 5851 | DLLLIBRARY='' | 
|  | 5852 | LDLIBRARYDIR='' | 
|  | 5853 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5854 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5855 |  | 
|  | 5856 | # LINKCC is the command that links the python executable -- default is $(CC). | 
|  | 5857 | # If CXX is set, and if it is needed to link a main function that was | 
|  | 5858 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
|  | 5859 | # python might then depend on the C++ runtime | 
|  | 5860 | # This is altered for AIX in order to build the export list before | 
|  | 5861 | # linking. | 
|  | 5862 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
|  | 5864 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5865 | if test -z "$LINKCC" | 
|  | 5866 | then | 
|  | 5867 | LINKCC='$(PURIFY) $(MAINCC)' | 
|  | 5868 | case $ac_sys_system in | 
|  | 5869 | AIX*) | 
|  | 5870 | exp_extra="\"\"" | 
|  | 5871 | if test $ac_sys_release -ge 5 -o \ | 
|  | 5872 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
|  | 5873 | exp_extra="." | 
|  | 5874 | fi | 
|  | 5875 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5876 | QNX*) | 
|  | 5877 | # qcc must be used because the other compilers do not | 
|  | 5878 | # support -N. | 
|  | 5879 | LINKCC=qcc;; | 
|  | 5880 | esac | 
|  | 5881 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
|  | 5883 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5884 |  | 
|  | 5885 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
|  | 5886 | # make sure we default having it set to "no": this is used by | 
|  | 5887 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
|  | 5888 | # to linker command lines, and failing to detect GNU ld simply results | 
|  | 5889 | # in the same bahaviour as before. | 
|  | 5890 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
|  | 5892 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5893 | ac_prog=ld | 
|  | 5894 | if test "$GCC" = yes; then | 
|  | 5895 | ac_prog=`$CC -print-prog-name=ld` | 
|  | 5896 | fi | 
|  | 5897 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
|  | 5898 | *GNU*) | 
|  | 5899 | GNULD=yes;; | 
|  | 5900 | *) | 
|  | 5901 | GNULD=no;; | 
|  | 5902 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
|  | 5904 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5905 |  | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
|  | 5907 | $as_echo_n "checking for inline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5908 | if ${ac_cv_c_inline+:} false; then : | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5909 | $as_echo_n "(cached) " >&6 | 
|  | 5910 | else | 
|  | 5911 | ac_cv_c_inline=no | 
|  | 5912 | for ac_kw in inline __inline__ __inline; do | 
|  | 5913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5914 | /* end confdefs.h.  */ | 
|  | 5915 | #ifndef __cplusplus | 
|  | 5916 | typedef int foo_t; | 
|  | 5917 | static $ac_kw foo_t static_foo () {return 0; } | 
|  | 5918 | $ac_kw foo_t foo () {return 0; } | 
|  | 5919 | #endif | 
|  | 5920 |  | 
|  | 5921 | _ACEOF | 
|  | 5922 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5923 | ac_cv_c_inline=$ac_kw | 
|  | 5924 | fi | 
|  | 5925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5926 | test "$ac_cv_c_inline" != no && break | 
|  | 5927 | done | 
|  | 5928 |  | 
|  | 5929 | fi | 
|  | 5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
|  | 5931 | $as_echo "$ac_cv_c_inline" >&6; } | 
|  | 5932 |  | 
|  | 5933 | case $ac_cv_c_inline in | 
|  | 5934 | inline | yes) ;; | 
|  | 5935 | *) | 
|  | 5936 | case $ac_cv_c_inline in | 
|  | 5937 | no) ac_val=;; | 
|  | 5938 | *) ac_val=$ac_cv_c_inline;; | 
|  | 5939 | esac | 
|  | 5940 | cat >>confdefs.h <<_ACEOF | 
|  | 5941 | #ifndef __cplusplus | 
|  | 5942 | #define inline $ac_val | 
|  | 5943 | #endif | 
|  | 5944 | _ACEOF | 
|  | 5945 | ;; | 
|  | 5946 | esac | 
|  | 5947 |  | 
|  | 5948 | if test "$ac_cv_c_inline" != no ; then | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 5949 |  | 
|  | 5950 | $as_echo "#define USE_INLINE 1" >>confdefs.h | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5951 |  | 
|  | 5952 |  | 
|  | 5953 | fi | 
|  | 5954 |  | 
|  | 5955 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
|  | 5957 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5958 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5959 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5960 | enableval=$enable_shared; | 
|  | 5961 | fi | 
|  | 5962 |  | 
|  | 5963 |  | 
|  | 5964 | if test -z "$enable_shared" | 
|  | 5965 | then | 
|  | 5966 | case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5967 | CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5968 | enable_shared="yes";; | 
|  | 5969 | *) | 
|  | 5970 | enable_shared="no";; | 
|  | 5971 | esac | 
|  | 5972 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
|  | 5974 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5975 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
|  | 5977 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5978 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5979 | if test "${enable_profiling+set}" = set; then : | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5980 | enableval=$enable_profiling; | 
|  | 5981 | fi | 
|  | 5982 |  | 
|  | 5983 | if test "x$enable_profiling" = xyes; then | 
|  | 5984 | ac_save_cc="$CC" | 
| Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5985 | CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5987 | /* end confdefs.h.  */ | 
|  | 5988 | int main() { return 0; } | 
|  | 5989 | _ACEOF | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5990 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 5991 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5992 | else | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5993 | enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5994 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5995 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 5996 | conftest$ac_exeext conftest.$ac_ext | 
|  | 5997 | CC="$ac_save_cc" | 
|  | 5998 | else | 
|  | 5999 | enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6000 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 6001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
|  | 6002 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6003 |  | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 6004 | if test "x$enable_profiling" = xyes; then | 
|  | 6005 | BASECFLAGS="-pg $BASECFLAGS" | 
|  | 6006 | LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6007 | fi | 
|  | 6008 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
|  | 6010 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6011 |  | 
|  | 6012 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
|  | 6013 | # library that we build, but we do not want to link against it (we | 
|  | 6014 | # will find it with a -framework option). For this reason there is an | 
|  | 6015 | # extra variable BLDLIBRARY against which Python and the extension | 
|  | 6016 | # modules are linked, BLDLIBRARY. This is normally the same as | 
|  | 6017 | # LDLIBRARY, but empty for MacOSX framework builds. | 
|  | 6018 | if test "$enable_framework" | 
|  | 6019 | then | 
|  | 6020 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6021 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6022 | BLDLIBRARY='' | 
|  | 6023 | else | 
|  | 6024 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 6025 | fi | 
|  | 6026 |  | 
|  | 6027 | # Other platforms follow | 
|  | 6028 | if test $enable_shared = "yes"; then | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 6029 | PY_ENABLE_SHARED=1 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6030 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6031 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6032 |  | 
|  | 6033 | case $ac_sys_system in | 
|  | 6034 | CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6035 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
|  | 6036 | DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6037 | ;; | 
|  | 6038 | SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6039 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 6040 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6041 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6042 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6043 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 6044 | then | 
|  | 6045 | PY3LIBRARY=libpython3.so | 
|  | 6046 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6047 | ;; | 
| Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 6048 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6049 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 6050 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6051 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6052 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6053 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 6054 | then | 
|  | 6055 | PY3LIBRARY=libpython3.so | 
|  | 6056 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6057 | ;; | 
|  | 6058 | hp*|HP*) | 
|  | 6059 | case `uname -m` in | 
|  | 6060 | ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6061 | LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6062 | ;; | 
|  | 6063 | *) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6064 | LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6065 | ;; | 
|  | 6066 | esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6067 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6068 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6069 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6070 | Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6071 | LDLIBRARY='libpython$(LDVERSION).dylib' | 
|  | 6072 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6073 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6074 | ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6075 | AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6076 | LDLIBRARY='libpython$(LDVERSION).so' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6077 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6078 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6079 |  | 
|  | 6080 | esac | 
|  | 6081 | else # shared is disabled | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 6082 | PY_ENABLE_SHARED=0 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6083 | case $ac_sys_system in | 
|  | 6084 | CYGWIN*) | 
|  | 6085 | BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6086 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6087 | ;; | 
|  | 6088 | esac | 
|  | 6089 | fi | 
|  | 6090 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 6091 | if test "$cross_compiling" = yes; then | 
|  | 6092 | RUNSHARED= | 
|  | 6093 | fi | 
|  | 6094 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
|  | 6096 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6097 |  | 
|  | 6098 | if test -n "$ac_tool_prefix"; then | 
|  | 6099 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 6100 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6102 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6103 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6104 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6105 | else | 
|  | 6106 | if test -n "$RANLIB"; then | 
|  | 6107 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 6108 | else | 
|  | 6109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6110 | for as_dir in $PATH | 
|  | 6111 | do | 
|  | 6112 | IFS=$as_save_IFS | 
|  | 6113 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6114 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6115 | 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] | 6116 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6117 | $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] | 6118 | break 2 | 
|  | 6119 | fi | 
|  | 6120 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6121 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6122 | IFS=$as_save_IFS | 
|  | 6123 |  | 
|  | 6124 | fi | 
|  | 6125 | fi | 
|  | 6126 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 6127 | if test -n "$RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
|  | 6129 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6130 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6132 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6133 | fi | 
|  | 6134 |  | 
|  | 6135 |  | 
|  | 6136 | fi | 
|  | 6137 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 6138 | ac_ct_RANLIB=$RANLIB | 
|  | 6139 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 6140 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6142 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6143 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6144 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6145 | else | 
|  | 6146 | if test -n "$ac_ct_RANLIB"; then | 
|  | 6147 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 6148 | else | 
|  | 6149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6150 | for as_dir in $PATH | 
|  | 6151 | do | 
|  | 6152 | IFS=$as_save_IFS | 
|  | 6153 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6154 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6155 | 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] | 6156 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6157 | $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] | 6158 | break 2 | 
|  | 6159 | fi | 
|  | 6160 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6161 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6162 | IFS=$as_save_IFS | 
|  | 6163 |  | 
|  | 6164 | fi | 
|  | 6165 | fi | 
|  | 6166 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 6167 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
|  | 6169 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6170 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6172 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6173 | fi | 
|  | 6174 |  | 
|  | 6175 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 6176 | RANLIB=":" | 
|  | 6177 | else | 
|  | 6178 | case $cross_compiling:$ac_tool_warned in | 
|  | 6179 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6181 | $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] | 6182 | ac_tool_warned=yes ;; | 
|  | 6183 | esac | 
|  | 6184 | RANLIB=$ac_ct_RANLIB | 
|  | 6185 | fi | 
|  | 6186 | else | 
|  | 6187 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 6188 | fi | 
|  | 6189 |  | 
|  | 6190 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6191 | if test -n "$ac_tool_prefix"; then | 
|  | 6192 | for ac_prog in ar aal | 
|  | 6193 | do | 
|  | 6194 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 6195 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6197 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6198 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6199 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6200 | else | 
|  | 6201 | if test -n "$AR"; then | 
|  | 6202 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 6203 | else | 
|  | 6204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6205 | for as_dir in $PATH | 
|  | 6206 | do | 
|  | 6207 | IFS=$as_save_IFS | 
|  | 6208 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6209 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6210 | 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] | 6211 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6212 | $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] | 6213 | break 2 | 
|  | 6214 | fi | 
|  | 6215 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6216 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6217 | IFS=$as_save_IFS | 
|  | 6218 |  | 
|  | 6219 | fi | 
|  | 6220 | fi | 
|  | 6221 | AR=$ac_cv_prog_AR | 
|  | 6222 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
|  | 6224 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6225 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6227 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6228 | fi | 
|  | 6229 |  | 
|  | 6230 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6231 | test -n "$AR" && break | 
|  | 6232 | done | 
|  | 6233 | fi | 
|  | 6234 | if test -z "$AR"; then | 
|  | 6235 | ac_ct_AR=$AR | 
|  | 6236 | for ac_prog in ar aal | 
|  | 6237 | do | 
|  | 6238 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6239 | set dummy $ac_prog; ac_word=$2 | 
|  | 6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6241 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6242 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
|  | 6243 | $as_echo_n "(cached) " >&6 | 
|  | 6244 | else | 
|  | 6245 | if test -n "$ac_ct_AR"; then | 
|  | 6246 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 6247 | else | 
|  | 6248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6249 | for as_dir in $PATH | 
|  | 6250 | do | 
|  | 6251 | IFS=$as_save_IFS | 
|  | 6252 | test -z "$as_dir" && as_dir=. | 
|  | 6253 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 6254 | 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] | 6255 | ac_cv_prog_ac_ct_AR="$ac_prog" | 
|  | 6256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6257 | break 2 | 
|  | 6258 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6259 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6260 | done | 
|  | 6261 | IFS=$as_save_IFS | 
|  | 6262 |  | 
|  | 6263 | fi | 
|  | 6264 | fi | 
|  | 6265 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 6266 | if test -n "$ac_ct_AR"; then | 
|  | 6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
|  | 6268 | $as_echo "$ac_ct_AR" >&6; } | 
|  | 6269 | else | 
|  | 6270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6271 | $as_echo "no" >&6; } | 
|  | 6272 | fi | 
|  | 6273 |  | 
|  | 6274 |  | 
|  | 6275 | test -n "$ac_ct_AR" && break | 
|  | 6276 | done | 
|  | 6277 |  | 
|  | 6278 | if test "x$ac_ct_AR" = x; then | 
|  | 6279 | AR="ar" | 
|  | 6280 | else | 
|  | 6281 | case $cross_compiling:$ac_tool_warned in | 
|  | 6282 | yes:) | 
|  | 6283 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6284 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 6285 | ac_tool_warned=yes ;; | 
|  | 6286 | esac | 
|  | 6287 | AR=$ac_ct_AR | 
|  | 6288 | fi | 
|  | 6289 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6290 |  | 
|  | 6291 |  | 
|  | 6292 | # tweak ARFLAGS only if the user didn't set it on the command line | 
|  | 6293 |  | 
|  | 6294 | if test -z "$ARFLAGS" | 
|  | 6295 | then | 
|  | 6296 | ARFLAGS="rc" | 
|  | 6297 | fi | 
|  | 6298 |  | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6299 | if test -n "$ac_tool_prefix"; then | 
|  | 6300 | for ac_prog in readelf | 
|  | 6301 | do | 
|  | 6302 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 6303 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 6304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6305 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6306 | if ${ac_cv_prog_READELF+:} false; then : | 
|  | 6307 | $as_echo_n "(cached) " >&6 | 
|  | 6308 | else | 
|  | 6309 | if test -n "$READELF"; then | 
|  | 6310 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | 
|  | 6311 | else | 
|  | 6312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6313 | for as_dir in $PATH | 
|  | 6314 | do | 
|  | 6315 | IFS=$as_save_IFS | 
|  | 6316 | test -z "$as_dir" && as_dir=. | 
|  | 6317 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6318 | 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] | 6319 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" | 
|  | 6320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6321 | break 2 | 
|  | 6322 | fi | 
|  | 6323 | done | 
|  | 6324 | done | 
|  | 6325 | IFS=$as_save_IFS | 
|  | 6326 |  | 
|  | 6327 | fi | 
|  | 6328 | fi | 
|  | 6329 | READELF=$ac_cv_prog_READELF | 
|  | 6330 | if test -n "$READELF"; then | 
|  | 6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | 
|  | 6332 | $as_echo "$READELF" >&6; } | 
|  | 6333 | else | 
|  | 6334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6335 | $as_echo "no" >&6; } | 
|  | 6336 | fi | 
|  | 6337 |  | 
|  | 6338 |  | 
|  | 6339 | test -n "$READELF" && break | 
|  | 6340 | done | 
|  | 6341 | fi | 
|  | 6342 | if test -z "$READELF"; then | 
|  | 6343 | ac_ct_READELF=$READELF | 
|  | 6344 | for ac_prog in readelf | 
|  | 6345 | do | 
|  | 6346 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6347 | set dummy $ac_prog; ac_word=$2 | 
|  | 6348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6349 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6350 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | 
|  | 6351 | $as_echo_n "(cached) " >&6 | 
|  | 6352 | else | 
|  | 6353 | if test -n "$ac_ct_READELF"; then | 
|  | 6354 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | 
|  | 6355 | else | 
|  | 6356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6357 | for as_dir in $PATH | 
|  | 6358 | do | 
|  | 6359 | IFS=$as_save_IFS | 
|  | 6360 | test -z "$as_dir" && as_dir=. | 
|  | 6361 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6362 | 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] | 6363 | ac_cv_prog_ac_ct_READELF="$ac_prog" | 
|  | 6364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6365 | break 2 | 
|  | 6366 | fi | 
|  | 6367 | done | 
|  | 6368 | done | 
|  | 6369 | IFS=$as_save_IFS | 
|  | 6370 |  | 
|  | 6371 | fi | 
|  | 6372 | fi | 
|  | 6373 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | 
|  | 6374 | if test -n "$ac_ct_READELF"; then | 
|  | 6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | 
|  | 6376 | $as_echo "$ac_ct_READELF" >&6; } | 
|  | 6377 | else | 
|  | 6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6379 | $as_echo "no" >&6; } | 
|  | 6380 | fi | 
|  | 6381 |  | 
|  | 6382 |  | 
|  | 6383 | test -n "$ac_ct_READELF" && break | 
|  | 6384 | done | 
|  | 6385 |  | 
|  | 6386 | if test "x$ac_ct_READELF" = x; then | 
|  | 6387 | READELF=":" | 
|  | 6388 | else | 
|  | 6389 | case $cross_compiling:$ac_tool_warned in | 
|  | 6390 | yes:) | 
|  | 6391 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6392 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 6393 | ac_tool_warned=yes ;; | 
|  | 6394 | esac | 
|  | 6395 | READELF=$ac_ct_READELF | 
|  | 6396 | fi | 
|  | 6397 | fi | 
|  | 6398 |  | 
|  | 6399 | if test "$cross_compiling" = yes; then | 
|  | 6400 | case "$READELF" in | 
|  | 6401 | readelf|:) | 
|  | 6402 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | 
|  | 6403 | ;; | 
|  | 6404 | esac | 
|  | 6405 | fi | 
|  | 6406 |  | 
|  | 6407 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6408 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6409 | case $MACHDEP in | 
|  | 6410 | bsdos*|hp*|HP*) | 
|  | 6411 | # install -d does not work on BSDI or HP-UX | 
|  | 6412 | if test -z "$INSTALL" | 
|  | 6413 | then | 
|  | 6414 | INSTALL="${srcdir}/install-sh -c" | 
|  | 6415 | fi | 
|  | 6416 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6417 | # Find a good install program.  We prefer a C program (faster), | 
|  | 6418 | # so one script is as good as another.  But avoid the broken or | 
|  | 6419 | # incompatible versions: | 
|  | 6420 | # SysV /etc/install, /usr/sbin/install | 
|  | 6421 | # SunOS /usr/etc/install | 
|  | 6422 | # IRIX /sbin/install | 
|  | 6423 | # AIX /bin/install | 
|  | 6424 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 6425 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 6426 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 6427 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 6428 | # OS/2's system install, which has a completely different semantic | 
|  | 6429 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6430 | # Reject install programs that cannot install multiple files. | 
|  | 6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
|  | 6432 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6433 | if test -z "$INSTALL"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6434 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6435 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6436 | else | 
|  | 6437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6438 | for as_dir in $PATH | 
|  | 6439 | do | 
|  | 6440 | IFS=$as_save_IFS | 
|  | 6441 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6442 | # Account for people who put trailing slashes in PATH elements. | 
|  | 6443 | case $as_dir/ in #(( | 
|  | 6444 | ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6445 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6446 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6447 | /usr/ucb/* ) ;; | 
|  | 6448 | *) | 
|  | 6449 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 6450 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 6451 | # by default. | 
|  | 6452 | for ac_prog in ginstall scoinst install; do | 
|  | 6453 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6454 | 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] | 6455 | if test $ac_prog = install && | 
|  | 6456 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6457 | # AIX install.  It has an incompatible calling convention. | 
|  | 6458 | : | 
|  | 6459 | elif test $ac_prog = install && | 
|  | 6460 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6461 | # program-specific install script used by HP pwplus--don't use. | 
|  | 6462 | : | 
|  | 6463 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6464 | rm -rf conftest.one conftest.two conftest.dir | 
|  | 6465 | echo one > conftest.one | 
|  | 6466 | echo two > conftest.two | 
|  | 6467 | mkdir conftest.dir | 
|  | 6468 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
|  | 6469 | test -s conftest.one && test -s conftest.two && | 
|  | 6470 | test -s conftest.dir/conftest.one && | 
|  | 6471 | test -s conftest.dir/conftest.two | 
|  | 6472 | then | 
|  | 6473 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 6474 | break 3 | 
|  | 6475 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6476 | fi | 
|  | 6477 | fi | 
|  | 6478 | done | 
|  | 6479 | done | 
|  | 6480 | ;; | 
|  | 6481 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6482 |  | 
|  | 6483 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6484 | IFS=$as_save_IFS | 
|  | 6485 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6486 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6487 |  | 
|  | 6488 | fi | 
|  | 6489 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 6490 | INSTALL=$ac_cv_path_install | 
|  | 6491 | else | 
|  | 6492 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 6493 | # value for INSTALL within a source directory, because that will | 
|  | 6494 | # break other packages using the cache if that directory is | 
|  | 6495 | # removed, or if the value is a relative name. | 
|  | 6496 | INSTALL=$ac_install_sh | 
|  | 6497 | fi | 
|  | 6498 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
|  | 6500 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6501 |  | 
|  | 6502 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 6503 | # It thinks the first close brace ends the variable substitution. | 
|  | 6504 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 6505 |  | 
|  | 6506 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 6507 |  | 
|  | 6508 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 6509 |  | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
|  | 6511 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
|  | 6512 | if test -z "$MKDIR_P"; then | 
|  | 6513 | if ${ac_cv_path_mkdir+:} false; then : | 
|  | 6514 | $as_echo_n "(cached) " >&6 | 
|  | 6515 | else | 
|  | 6516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6517 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
|  | 6518 | do | 
|  | 6519 | IFS=$as_save_IFS | 
|  | 6520 | test -z "$as_dir" && as_dir=. | 
|  | 6521 | for ac_prog in mkdir gmkdir; do | 
|  | 6522 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6523 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6524 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
|  | 6525 | 'mkdir (GNU coreutils) '* | \ | 
|  | 6526 | 'mkdir (coreutils) '* | \ | 
|  | 6527 | 'mkdir (fileutils) '4.1*) | 
|  | 6528 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
|  | 6529 | break 3;; | 
|  | 6530 | esac | 
|  | 6531 | done | 
|  | 6532 | done | 
|  | 6533 | done | 
|  | 6534 | IFS=$as_save_IFS | 
|  | 6535 |  | 
|  | 6536 | fi | 
|  | 6537 |  | 
|  | 6538 | test -d ./--version && rmdir ./--version | 
|  | 6539 | if test "${ac_cv_path_mkdir+set}" = set; then | 
|  | 6540 | MKDIR_P="$ac_cv_path_mkdir -p" | 
|  | 6541 | else | 
|  | 6542 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 6543 | # value for MKDIR_P within a source directory, because that will | 
|  | 6544 | # break other packages using the cache if that directory is | 
|  | 6545 | # removed, or if the value is a relative name. | 
|  | 6546 | MKDIR_P="$ac_install_sh -d" | 
|  | 6547 | fi | 
|  | 6548 | fi | 
|  | 6549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
|  | 6550 | $as_echo "$MKDIR_P" >&6; } | 
|  | 6551 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6552 |  | 
|  | 6553 | # Not every filesystem supports hard links | 
|  | 6554 |  | 
|  | 6555 | if test -z "$LN" ; then | 
|  | 6556 | case $ac_sys_system in | 
|  | 6557 | CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6558 | *) LN=ln;; | 
|  | 6559 | esac | 
|  | 6560 | fi | 
|  | 6561 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6562 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6563 |  | 
|  | 6564 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6565 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6566 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
|  | 6568 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6569 |  | 
|  | 6570 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6571 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6572 | withval=$with_pydebug; | 
|  | 6573 | if test "$withval" != no | 
|  | 6574 | then | 
|  | 6575 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6576 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6577 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6579 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6580 | Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6581 | ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6582 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6583 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6584 | fi | 
|  | 6585 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6587 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6588 | fi | 
|  | 6589 |  | 
|  | 6590 |  | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6591 | # Enable LTO flags | 
|  | 6592 |  | 
|  | 6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 | 
|  | 6594 | $as_echo_n "checking for --with-lto... " >&6; } | 
|  | 6595 |  | 
|  | 6596 | # Check whether --with-lto was given. | 
|  | 6597 | if test "${with_lto+set}" = set; then : | 
|  | 6598 | withval=$with_lto; | 
|  | 6599 | if test "$withval" != no | 
|  | 6600 | then | 
|  | 6601 | Py_LTO='true' | 
|  | 6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6603 | $as_echo "yes" >&6; }; | 
|  | 6604 | else | 
|  | 6605 | Py_LTO='false' | 
|  | 6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6607 | $as_echo "no" >&6; }; | 
|  | 6608 | fi | 
|  | 6609 | else | 
|  | 6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6611 | $as_echo "no" >&6; } | 
|  | 6612 | fi | 
|  | 6613 |  | 
|  | 6614 | if test "$Py_LTO" = 'true' ; then | 
|  | 6615 | case $CC in | 
|  | 6616 | *clang*) | 
|  | 6617 | # Any changes made here should be reflected in the GCC+Darwin case below | 
|  | 6618 | LTOFLAGS="-flto" | 
|  | 6619 | ;; | 
|  | 6620 | *gcc*) | 
|  | 6621 | case $ac_sys_system in | 
|  | 6622 | Darwin*) | 
|  | 6623 | LTOFLAGS="-flto" | 
|  | 6624 | ;; | 
|  | 6625 | *) | 
|  | 6626 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | 
|  | 6627 | ;; | 
|  | 6628 | esac | 
|  | 6629 | ;; | 
|  | 6630 | esac | 
|  | 6631 | fi | 
|  | 6632 |  | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6633 | # Enable PGO flags. | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6634 |  | 
|  | 6635 |  | 
|  | 6636 |  | 
|  | 6637 |  | 
|  | 6638 |  | 
|  | 6639 |  | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6640 | # Extract the first word of "llvm-profdata", so it can be a program name with args. | 
|  | 6641 | set dummy llvm-profdata; ac_word=$2 | 
|  | 6642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6643 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6644 | if ${ac_cv_prog_LLVM_PROF_FOUND+:} false; then : | 
|  | 6645 | $as_echo_n "(cached) " >&6 | 
|  | 6646 | else | 
|  | 6647 | if test -n "$LLVM_PROF_FOUND"; then | 
|  | 6648 | ac_cv_prog_LLVM_PROF_FOUND="$LLVM_PROF_FOUND" # Let the user override the test. | 
|  | 6649 | else | 
|  | 6650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6651 | for as_dir in $PATH | 
|  | 6652 | do | 
|  | 6653 | IFS=$as_save_IFS | 
|  | 6654 | test -z "$as_dir" && as_dir=. | 
|  | 6655 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 6657 | ac_cv_prog_LLVM_PROF_FOUND="found" | 
|  | 6658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6659 | break 2 | 
|  | 6660 | fi | 
|  | 6661 | done | 
|  | 6662 | done | 
|  | 6663 | IFS=$as_save_IFS | 
|  | 6664 |  | 
|  | 6665 | test -z "$ac_cv_prog_LLVM_PROF_FOUND" && ac_cv_prog_LLVM_PROF_FOUND="not-found" | 
|  | 6666 | fi | 
|  | 6667 | fi | 
|  | 6668 | LLVM_PROF_FOUND=$ac_cv_prog_LLVM_PROF_FOUND | 
|  | 6669 | if test -n "$LLVM_PROF_FOUND"; then | 
|  | 6670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROF_FOUND" >&5 | 
|  | 6671 | $as_echo "$LLVM_PROF_FOUND" >&6; } | 
|  | 6672 | else | 
|  | 6673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6674 | $as_echo "no" >&6; } | 
|  | 6675 | fi | 
|  | 6676 |  | 
|  | 6677 |  | 
|  | 6678 | LLVM_PROF_ERR=no | 
|  | 6679 | case $CC in | 
|  | 6680 | *clang*) | 
|  | 6681 | # Any changes made here should be reflected in the GCC+Darwin case below | 
|  | 6682 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
|  | 6683 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
|  | 6684 | LLVM_PROF_MERGER="llvm-profdata merge -output=code.profclangd *.profclangr" | 
|  | 6685 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
|  | 6686 | if test $LLVM_PROF_FOUND = not-found | 
|  | 6687 | then | 
|  | 6688 | LLVM_PROF_ERR=yes | 
|  | 6689 | fi | 
|  | 6690 | ;; | 
|  | 6691 | *gcc*) | 
|  | 6692 | case $ac_sys_system in | 
|  | 6693 | Darwin*) | 
|  | 6694 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
|  | 6695 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
|  | 6696 | LLVM_PROF_MERGER="llvm-profdata merge -output=code.profclangd *.profclangr" | 
|  | 6697 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
|  | 6698 | if test $LLVM_PROF_FOUND = not-found | 
|  | 6699 | then | 
|  | 6700 | LLVM_PROF_ERR=yes | 
|  | 6701 | fi | 
|  | 6702 | ;; | 
|  | 6703 | *) | 
|  | 6704 | PGO_PROF_GEN_FLAG="-fprofile-generate" | 
|  | 6705 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | 
|  | 6706 | LLVM_PROF_MERGER="true" | 
|  | 6707 | LLVM_PROF_FILE="" | 
|  | 6708 | ;; | 
|  | 6709 | esac | 
|  | 6710 | ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6711 | *icc*) | 
|  | 6712 | PGO_PROF_GEN_FLAG="-prof-gen" | 
|  | 6713 | PGO_PROF_USE_FLAG="-prof-use" | 
|  | 6714 | LLVM_PROF_MERGER="true" | 
|  | 6715 | LLVM_PROF_FILE="" | 
|  | 6716 | ;; | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6717 | esac | 
|  | 6718 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6719 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
|  | 6720 | # merged with this chunk of code? | 
|  | 6721 |  | 
|  | 6722 | # Optimizer/debugger flags | 
|  | 6723 | # ------------------------ | 
|  | 6724 | # (The following bit of code is complicated enough - please keep things | 
|  | 6725 | # indented properly.  Just pretend you're editing Python code. ;-) | 
|  | 6726 |  | 
|  | 6727 | # There are two parallel sets of case statements below, one that checks to | 
|  | 6728 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
|  | 6729 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
|  | 6730 | # user set OPT. | 
|  | 6731 |  | 
|  | 6732 | # tweak OPT based on compiler and platform, only if the user didn't set | 
|  | 6733 | # it on the command line | 
|  | 6734 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6735 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6736 | then | 
|  | 6737 | case $GCC in | 
|  | 6738 | yes) | 
|  | 6739 | if test "$CC" != 'g++' ; then | 
|  | 6740 | STRICT_PROTO="-Wstrict-prototypes" | 
|  | 6741 | fi | 
|  | 6742 | # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
|  | 6743 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
|  | 6744 | WRAP="-fwrapv" | 
|  | 6745 | fi | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6746 |  | 
|  | 6747 | # Clang also needs -fwrapv | 
| Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6748 | case $CC in | 
|  | 6749 | *clang*) WRAP="-fwrapv" | 
|  | 6750 | ;; | 
|  | 6751 | esac | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6752 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6753 | case $ac_cv_prog_cc_g in | 
|  | 6754 | yes) | 
|  | 6755 | if test "$Py_DEBUG" = 'true' ; then | 
|  | 6756 | # Optimization messes up debuggers, so turn it off for | 
|  | 6757 | # debug builds. | 
| Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6758 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then | 
|  | 6759 | OPT="-g -Og -Wall $STRICT_PROTO" | 
|  | 6760 | else | 
|  | 6761 | OPT="-g -O0 -Wall $STRICT_PROTO" | 
|  | 6762 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6763 | else | 
|  | 6764 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
|  | 6765 | fi | 
|  | 6766 | ;; | 
|  | 6767 | *) | 
|  | 6768 | OPT="-O3 -Wall $STRICT_PROTO" | 
|  | 6769 | ;; | 
|  | 6770 | esac | 
|  | 6771 | case $ac_sys_system in | 
|  | 6772 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
|  | 6773 | ;; | 
|  | 6774 | esac | 
|  | 6775 | ;; | 
|  | 6776 |  | 
|  | 6777 | *) | 
|  | 6778 | OPT="-O" | 
|  | 6779 | ;; | 
|  | 6780 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6781 | fi | 
|  | 6782 |  | 
|  | 6783 |  | 
|  | 6784 |  | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6785 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6786 | # The -arch flags for universal builds on OSX | 
|  | 6787 | UNIVERSAL_ARCH_FLAGS= | 
|  | 6788 |  | 
|  | 6789 |  | 
|  | 6790 | # tweak BASECFLAGS based on compiler and platform | 
|  | 6791 | case $GCC in | 
|  | 6792 | yes) | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6793 | # Python doesn't violate C99 aliasing rules, but older versions of | 
|  | 6794 | # GCC produce warnings for legal Python code.  Enable | 
|  | 6795 | # -fno-strict-aliasing on versions of GCC that support but produce | 
|  | 6796 | # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
|  | 6798 | $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] | 6799 | ac_save_cc="$CC" | 
|  | 6800 | CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6801 | save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6802 | if ${ac_cv_no_strict_aliasing+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6803 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6804 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6806 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6807 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6808 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6809 | int | 
|  | 6810 | main () | 
|  | 6811 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6812 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6813 | ; | 
|  | 6814 | return 0; | 
|  | 6815 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6816 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6817 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6818 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6819 |  | 
|  | 6820 | CC="$ac_save_cc -fstrict-aliasing" | 
|  | 6821 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
|  | 6822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6823 | /* end confdefs.h.  */ | 
|  | 6824 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6825 | void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6826 | int | 
|  | 6827 | main () | 
|  | 6828 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6829 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6830 | ; | 
|  | 6831 | return 0; | 
|  | 6832 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6833 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6834 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6835 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6836 |  | 
|  | 6837 | ac_cv_no_strict_aliasing=no | 
|  | 6838 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6839 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6840 |  | 
|  | 6841 | ac_cv_no_strict_aliasing=yes | 
|  | 6842 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6843 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6845 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6846 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6847 |  | 
|  | 6848 | ac_cv_no_strict_aliasing=no | 
|  | 6849 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6850 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6852 | fi | 
|  | 6853 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6854 | CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6855 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
|  | 6857 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6858 | if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6859 | then | 
|  | 6860 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
|  | 6861 | fi | 
|  | 6862 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6863 | # ICC doesn't recognize the option, but only emits a warning | 
|  | 6864 | ## XXX does it emit an unused result warning and can it be disabled? | 
|  | 6865 | case "$CC" in | 
|  | 6866 | *icc*) | 
|  | 6867 | ac_cv_disable_unused_result_warning=no | 
|  | 6868 | ;; | 
|  | 6869 | *) | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 | 
|  | 6871 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | 
|  | 6872 | ac_save_cc="$CC" | 
|  | 6873 | CC="$CC -Wunused-result -Werror" | 
|  | 6874 | save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6875 | if ${ac_cv_disable_unused_result_warning+:} false; then : | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6876 | $as_echo_n "(cached) " >&6 | 
|  | 6877 | else | 
|  | 6878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6879 | /* end confdefs.h.  */ | 
|  | 6880 |  | 
|  | 6881 |  | 
|  | 6882 | int | 
|  | 6883 | main () | 
|  | 6884 | { | 
|  | 6885 |  | 
|  | 6886 | ; | 
|  | 6887 | return 0; | 
|  | 6888 | } | 
|  | 6889 |  | 
|  | 6890 | _ACEOF | 
|  | 6891 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 6892 |  | 
|  | 6893 | ac_cv_disable_unused_result_warning=yes | 
|  | 6894 |  | 
|  | 6895 | else | 
|  | 6896 |  | 
|  | 6897 | ac_cv_disable_unused_result_warning=no | 
|  | 6898 |  | 
|  | 6899 | fi | 
|  | 6900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6901 | fi | 
|  | 6902 |  | 
|  | 6903 | CFLAGS="$save_CFLAGS" | 
|  | 6904 | CC="$ac_save_cc" | 
|  | 6905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | 
|  | 6906 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6907 | ;; | 
|  | 6908 | esac | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6909 |  | 
|  | 6910 | if test $ac_cv_disable_unused_result_warning = yes | 
|  | 6911 | then | 
|  | 6912 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" | 
|  | 6913 | fi | 
|  | 6914 |  | 
| Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=declaration-after-statement" >&5 | 
|  | 6916 | $as_echo_n "checking for -Werror=declaration-after-statement... " >&6; } | 
|  | 6917 | ac_save_cc="$CC" | 
|  | 6918 | CC="$CC -Werror=declaration-after-statement" | 
|  | 6919 | save_CFLAGS="$CFLAGS" | 
|  | 6920 | if ${ac_cv_declaration_after_statement_warning+:} false; then : | 
|  | 6921 | $as_echo_n "(cached) " >&6 | 
|  | 6922 | else | 
|  | 6923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6924 | /* end confdefs.h.  */ | 
|  | 6925 |  | 
|  | 6926 |  | 
|  | 6927 | int | 
|  | 6928 | main () | 
|  | 6929 | { | 
|  | 6930 |  | 
|  | 6931 | ; | 
|  | 6932 | return 0; | 
|  | 6933 | } | 
|  | 6934 |  | 
|  | 6935 | _ACEOF | 
|  | 6936 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 6937 |  | 
|  | 6938 | ac_cv_declaration_after_statement_warning=yes | 
|  | 6939 |  | 
|  | 6940 | else | 
|  | 6941 |  | 
|  | 6942 | ac_cv_declaration_after_statement_warning=no | 
|  | 6943 |  | 
|  | 6944 | fi | 
|  | 6945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6946 | fi | 
|  | 6947 |  | 
|  | 6948 | CFLAGS="$save_CFLAGS" | 
|  | 6949 | CC="$ac_save_cc" | 
|  | 6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declaration_after_statement_warning" >&5 | 
|  | 6951 | $as_echo "$ac_cv_declaration_after_statement_warning" >&6; } | 
|  | 6952 |  | 
|  | 6953 | if test $ac_cv_declaration_after_statement_warning = yes | 
|  | 6954 | then | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6955 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=declaration-after-statement" | 
| Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 6956 | fi | 
|  | 6957 |  | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 | 
|  | 6959 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | 
|  | 6960 | ac_save_cc="$CC" | 
|  | 6961 | CC="$CC -Wsign-compare" | 
|  | 6962 | save_CFLAGS="$CFLAGS" | 
|  | 6963 | if ${ac_cv_enable_sign_compare_warning+:} false; then : | 
|  | 6964 | $as_echo_n "(cached) " >&6 | 
|  | 6965 | else | 
|  | 6966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6967 | /* end confdefs.h.  */ | 
|  | 6968 |  | 
|  | 6969 |  | 
|  | 6970 | int | 
|  | 6971 | main () | 
|  | 6972 | { | 
|  | 6973 |  | 
|  | 6974 | ; | 
|  | 6975 | return 0; | 
|  | 6976 | } | 
|  | 6977 |  | 
|  | 6978 | _ACEOF | 
|  | 6979 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 6980 |  | 
|  | 6981 | ac_cv_enable_sign_compare_warning=yes | 
|  | 6982 |  | 
|  | 6983 | else | 
|  | 6984 |  | 
|  | 6985 | ac_cv_enable_sign_compare_warning=no | 
|  | 6986 |  | 
|  | 6987 | fi | 
|  | 6988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6989 | fi | 
|  | 6990 |  | 
|  | 6991 | CFLAGS="$save_CFLAGS" | 
|  | 6992 | CC="$ac_save_cc" | 
|  | 6993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 | 
|  | 6994 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | 
|  | 6995 |  | 
|  | 6996 | if test $ac_cv_enable_sign_compare_warning = yes | 
|  | 6997 | then | 
|  | 6998 | BASECFLAGS="$BASECFLAGS -Wsign-compare" | 
|  | 6999 | fi | 
|  | 7000 |  | 
|  | 7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 | 
|  | 7002 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | 
|  | 7003 | ac_save_cc="$CC" | 
|  | 7004 | CC="$CC -Wunreachable-code" | 
|  | 7005 | save_CFLAGS="$CFLAGS" | 
|  | 7006 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : | 
|  | 7007 | $as_echo_n "(cached) " >&6 | 
|  | 7008 | else | 
|  | 7009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7010 | /* end confdefs.h.  */ | 
|  | 7011 |  | 
|  | 7012 |  | 
|  | 7013 | int | 
|  | 7014 | main () | 
|  | 7015 | { | 
|  | 7016 |  | 
|  | 7017 | ; | 
|  | 7018 | return 0; | 
|  | 7019 | } | 
|  | 7020 |  | 
|  | 7021 | _ACEOF | 
|  | 7022 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7023 |  | 
|  | 7024 | ac_cv_enable_unreachable_code_warning=yes | 
|  | 7025 |  | 
|  | 7026 | else | 
|  | 7027 |  | 
|  | 7028 | ac_cv_enable_unreachable_code_warning=no | 
|  | 7029 |  | 
|  | 7030 | fi | 
|  | 7031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7032 | fi | 
|  | 7033 |  | 
|  | 7034 | CFLAGS="$save_CFLAGS" | 
|  | 7035 | CC="$ac_save_cc" | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7036 |  | 
|  | 7037 | # Don't enable unreachable code warning in debug mode, since it usually | 
|  | 7038 | # results in non-standard code paths. | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7039 | # Issue #24324: Unfortunately, the unreachable code warning does not work | 
|  | 7040 | # correctly on gcc and has been silently removed from the compiler. | 
|  | 7041 | # It is supported on clang but on OS X systems gcc may be an alias | 
|  | 7042 | # for clang.  Try to determine if the compiler is not really gcc and, | 
|  | 7043 | # if so, only then enable the warning. | 
|  | 7044 | if test $ac_cv_enable_unreachable_code_warning = yes && \ | 
|  | 7045 | test "$Py_DEBUG" != "true" && \ | 
|  | 7046 | 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] | 7047 | then | 
|  | 7048 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7049 | else | 
|  | 7050 | ac_cv_enable_unreachable_code_warning=no | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7051 | fi | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 | 
|  | 7053 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7054 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7055 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
|  | 7056 | # support.  Without this, treatment of subnormals doesn't follow | 
|  | 7057 | # the standard. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 7058 | case $host in | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7059 | alpha*) | 
|  | 7060 | BASECFLAGS="$BASECFLAGS -mieee" | 
|  | 7061 | ;; | 
|  | 7062 | esac | 
|  | 7063 |  | 
|  | 7064 | case $ac_sys_system in | 
|  | 7065 | SCO_SV*) | 
|  | 7066 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
|  | 7067 | ;; | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7068 |  | 
|  | 7069 | # is there any other compiler on Darwin besides gcc? | 
|  | 7070 | Darwin*) | 
|  | 7071 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
|  | 7072 | # used to be here, but non-Apple gcc doesn't accept them. | 
|  | 7073 | if test "${CC}" = gcc | 
|  | 7074 | then | 
|  | 7075 | { $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] | 7076 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7077 | case "${UNIVERSALSDK}" in | 
|  | 7078 | */MacOSX10.4u.sdk) | 
|  | 7079 | # Build using 10.4 SDK, force usage of gcc when the | 
|  | 7080 | # compiler is gcc, otherwise the user will get very | 
|  | 7081 | # confusing error messages when building on OSX 10.6 | 
|  | 7082 | CC=gcc-4.0 | 
|  | 7083 | CPP=cpp-4.0 | 
|  | 7084 | ;; | 
|  | 7085 | esac | 
|  | 7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7087 | $as_echo "$CC" >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7088 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7089 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7090 | if test "${enable_universalsdk}" | 
|  | 7091 | then | 
|  | 7092 | case "$UNIVERSAL_ARCHS" in | 
|  | 7093 | 32-bit) | 
|  | 7094 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
|  | 7095 | LIPO_32BIT_FLAGS="" | 
|  | 7096 | ARCH_RUN_32BIT="" | 
|  | 7097 | ;; | 
|  | 7098 | 64-bit) | 
|  | 7099 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
|  | 7100 | LIPO_32BIT_FLAGS="" | 
|  | 7101 | ARCH_RUN_32BIT="true" | 
|  | 7102 | ;; | 
|  | 7103 | all) | 
|  | 7104 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
|  | 7105 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
|  | 7106 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
|  | 7107 | ;; | 
|  | 7108 | intel) | 
|  | 7109 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
|  | 7110 | LIPO_32BIT_FLAGS="-extract i386" | 
|  | 7111 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
|  | 7112 | ;; | 
|  | 7113 | intel-32) | 
|  | 7114 | UNIVERSAL_ARCH_FLAGS="-arch i386" | 
|  | 7115 | LIPO_32BIT_FLAGS="" | 
|  | 7116 | ARCH_RUN_32BIT="" | 
|  | 7117 | ;; | 
|  | 7118 | 3-way) | 
|  | 7119 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
|  | 7120 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
|  | 7121 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
|  | 7122 | ;; | 
|  | 7123 | *) | 
|  | 7124 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
|  | 7125 | ;; | 
|  | 7126 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7127 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7128 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
|  | 7129 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
|  | 7130 | if test "${UNIVERSALSDK}" != "/" | 
|  | 7131 | then | 
|  | 7132 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
|  | 7133 | fi | 
|  | 7134 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7135 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7136 | # Calculate an appropriate deployment target for this build: | 
|  | 7137 | # The deployment target value is used explicitly to enable certain | 
|  | 7138 | # features are enabled (such as builtin libedit support for readline) | 
| Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 7139 | # 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] | 7140 | # component of the string returned by distutils.get_platform(). | 
|  | 7141 | # | 
|  | 7142 | # Use the value from: | 
|  | 7143 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | 
|  | 7144 | # 2. the operating system version of the build machine if >= 10.6 | 
|  | 7145 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests | 
|  | 7146 | #       below to pick either 10.3, 10.4, or 10.5 as the target. | 
|  | 7147 | # 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] | 7148 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 | 
|  | 7150 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7151 | cur_target_major=`sw_vers -productVersion | \ | 
|  | 7152 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
|  | 7153 | cur_target_minor=`sw_vers -productVersion | \ | 
|  | 7154 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
|  | 7155 | cur_target="${cur_target_major}.${cur_target_minor}" | 
|  | 7156 | if test ${cur_target_major} -eq 10 && \ | 
|  | 7157 | test ${cur_target_minor} -ge 3 && \ | 
|  | 7158 | test ${cur_target_minor} -le 5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7159 | then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7160 | # OS X 10.3 through 10.5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7161 | cur_target=10.3 | 
|  | 7162 | if test ${enable_universalsdk} | 
|  | 7163 | then | 
|  | 7164 | case "$UNIVERSAL_ARCHS" in | 
|  | 7165 | all|3-way|intel|64-bit) | 
|  | 7166 | # These configurations were first supported in 10.5 | 
|  | 7167 | cur_target='10.5' | 
|  | 7168 | ;; | 
|  | 7169 | esac | 
|  | 7170 | else | 
|  | 7171 | if test `/usr/bin/arch` = "i386" | 
|  | 7172 | then | 
|  | 7173 | # 10.4 was the first release to support Intel archs | 
|  | 7174 | cur_target="10.4" | 
|  | 7175 | fi | 
|  | 7176 | fi | 
|  | 7177 | fi | 
|  | 7178 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7179 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7180 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
|  | 7181 | # environment with a value that is the same as what we'll use | 
|  | 7182 | # in the Makefile to ensure that we'll get the same compiler | 
|  | 7183 | # environment during configure and build time. | 
|  | 7184 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
|  | 7185 | export MACOSX_DEPLOYMENT_TARGET | 
|  | 7186 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
|  | 7187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | 
|  | 7188 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7189 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7190 | # end of Darwin* tests | 
|  | 7191 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7192 | esac | 
|  | 7193 | ;; | 
|  | 7194 |  | 
|  | 7195 | *) | 
|  | 7196 | case $ac_sys_system in | 
|  | 7197 | OpenUNIX*|UnixWare*) | 
|  | 7198 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
|  | 7199 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7200 | SCO_SV*) | 
|  | 7201 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
|  | 7202 | ;; | 
|  | 7203 | esac | 
|  | 7204 | ;; | 
|  | 7205 | esac | 
|  | 7206 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7207 | # ICC needs -fp-model strict or floats behave badly | 
|  | 7208 | case "$CC" in | 
|  | 7209 | *icc*) | 
|  | 7210 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" | 
|  | 7211 | ;; | 
|  | 7212 | esac | 
|  | 7213 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7214 | if test "$Py_DEBUG" = 'true'; then | 
|  | 7215 | : | 
|  | 7216 | else | 
|  | 7217 | OPT="-DNDEBUG $OPT" | 
|  | 7218 | fi | 
|  | 7219 |  | 
|  | 7220 | if test "$ac_arch_flags" | 
|  | 7221 | then | 
|  | 7222 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
|  | 7223 | fi | 
|  | 7224 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7225 | # On some compilers, pthreads are available without further options | 
|  | 7226 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
|  | 7227 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
|  | 7228 | # So we have to see first whether pthreads are available without | 
|  | 7229 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
|  | 7231 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7232 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7233 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7234 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7235 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7236 | ac_cv_pthread_is_default=no | 
|  | 7237 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7239 | /* end confdefs.h.  */ | 
|  | 7240 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7241 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7242 | #include <pthread.h> | 
|  | 7243 |  | 
|  | 7244 | void* routine(void* p){return NULL;} | 
|  | 7245 |  | 
|  | 7246 | int main(){ | 
|  | 7247 | pthread_t p; | 
|  | 7248 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7249 | return 1; | 
|  | 7250 | (void)pthread_detach(p); | 
|  | 7251 | return 0; | 
|  | 7252 | } | 
|  | 7253 |  | 
|  | 7254 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7255 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7256 |  | 
|  | 7257 | ac_cv_pthread_is_default=yes | 
|  | 7258 | ac_cv_kthread=no | 
|  | 7259 | ac_cv_pthread=no | 
|  | 7260 |  | 
|  | 7261 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7262 | ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7263 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7264 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7265 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7266 | fi | 
|  | 7267 |  | 
|  | 7268 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7269 | fi | 
|  | 7270 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
|  | 7272 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7273 |  | 
|  | 7274 |  | 
|  | 7275 | if test $ac_cv_pthread_is_default = yes | 
|  | 7276 | then | 
|  | 7277 | ac_cv_kpthread=no | 
|  | 7278 | else | 
|  | 7279 | # -Kpthread, if available, provides the right #defines | 
|  | 7280 | # and linker options to make pthread_create available | 
|  | 7281 | # Some compilers won't report that they do not support -Kpthread, | 
|  | 7282 | # so we need to run a program to see whether it really made the | 
|  | 7283 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
|  | 7285 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7286 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7287 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7288 | else | 
|  | 7289 | ac_save_cc="$CC" | 
|  | 7290 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7291 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7292 | ac_cv_kpthread=no | 
|  | 7293 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7295 | /* end confdefs.h.  */ | 
|  | 7296 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7297 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7298 | #include <pthread.h> | 
|  | 7299 |  | 
|  | 7300 | void* routine(void* p){return NULL;} | 
|  | 7301 |  | 
|  | 7302 | int main(){ | 
|  | 7303 | pthread_t p; | 
|  | 7304 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7305 | return 1; | 
|  | 7306 | (void)pthread_detach(p); | 
|  | 7307 | return 0; | 
|  | 7308 | } | 
|  | 7309 |  | 
|  | 7310 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7311 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7312 | ac_cv_kpthread=yes | 
|  | 7313 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7314 | ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7315 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7316 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7317 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7318 | fi | 
|  | 7319 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7320 | CC="$ac_save_cc" | 
|  | 7321 | fi | 
|  | 7322 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
|  | 7324 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7325 | fi | 
|  | 7326 |  | 
|  | 7327 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
|  | 7328 | then | 
|  | 7329 | # -Kthread, if available, provides the right #defines | 
|  | 7330 | # and linker options to make pthread_create available | 
|  | 7331 | # Some compilers won't report that they do not support -Kthread, | 
|  | 7332 | # so we need to run a program to see whether it really made the | 
|  | 7333 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
|  | 7335 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7336 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7337 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7338 | else | 
|  | 7339 | ac_save_cc="$CC" | 
|  | 7340 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7341 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7342 | ac_cv_kthread=no | 
|  | 7343 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7345 | /* end confdefs.h.  */ | 
|  | 7346 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7347 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7348 | #include <pthread.h> | 
|  | 7349 |  | 
|  | 7350 | void* routine(void* p){return NULL;} | 
|  | 7351 |  | 
|  | 7352 | int main(){ | 
|  | 7353 | pthread_t p; | 
|  | 7354 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7355 | return 1; | 
|  | 7356 | (void)pthread_detach(p); | 
|  | 7357 | return 0; | 
|  | 7358 | } | 
|  | 7359 |  | 
|  | 7360 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7361 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7362 | ac_cv_kthread=yes | 
|  | 7363 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7364 | ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7365 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7366 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7367 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7368 | fi | 
|  | 7369 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7370 | CC="$ac_save_cc" | 
|  | 7371 | fi | 
|  | 7372 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
|  | 7374 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7375 | fi | 
|  | 7376 |  | 
|  | 7377 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
|  | 7378 | then | 
|  | 7379 | # -pthread, if available, provides the right #defines | 
|  | 7380 | # and linker options to make pthread_create available | 
|  | 7381 | # Some compilers won't report that they do not support -pthread, | 
|  | 7382 | # so we need to run a program to see whether it really made the | 
|  | 7383 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
|  | 7385 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7386 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7387 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7388 | else | 
|  | 7389 | ac_save_cc="$CC" | 
|  | 7390 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7391 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7392 | ac_cv_pthread=no | 
|  | 7393 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7395 | /* end confdefs.h.  */ | 
|  | 7396 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7397 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7398 | #include <pthread.h> | 
|  | 7399 |  | 
|  | 7400 | void* routine(void* p){return NULL;} | 
|  | 7401 |  | 
|  | 7402 | int main(){ | 
|  | 7403 | pthread_t p; | 
|  | 7404 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7405 | return 1; | 
|  | 7406 | (void)pthread_detach(p); | 
|  | 7407 | return 0; | 
|  | 7408 | } | 
|  | 7409 |  | 
|  | 7410 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7411 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7412 | ac_cv_pthread=yes | 
|  | 7413 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7414 | ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7415 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7416 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7417 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7418 | fi | 
|  | 7419 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7420 | CC="$ac_save_cc" | 
|  | 7421 | fi | 
|  | 7422 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
|  | 7424 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7425 | fi | 
|  | 7426 |  | 
|  | 7427 | # If we have set a CC compiler flag for thread support then | 
|  | 7428 | # check if it works for CXX, too. | 
|  | 7429 | ac_cv_cxx_thread=no | 
|  | 7430 | if test ! -z "$CXX" | 
|  | 7431 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
|  | 7433 | $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] | 7434 | ac_save_cxx="$CXX" | 
|  | 7435 |  | 
|  | 7436 | if test "$ac_cv_kpthread" = "yes" | 
|  | 7437 | then | 
|  | 7438 | CXX="$CXX -Kpthread" | 
|  | 7439 | ac_cv_cxx_thread=yes | 
|  | 7440 | elif test "$ac_cv_kthread" = "yes" | 
|  | 7441 | then | 
|  | 7442 | CXX="$CXX -Kthread" | 
|  | 7443 | ac_cv_cxx_thread=yes | 
|  | 7444 | elif test "$ac_cv_pthread" = "yes" | 
|  | 7445 | then | 
|  | 7446 | CXX="$CXX -pthread" | 
|  | 7447 | ac_cv_cxx_thread=yes | 
|  | 7448 | fi | 
|  | 7449 |  | 
|  | 7450 | if test $ac_cv_cxx_thread = yes | 
|  | 7451 | then | 
|  | 7452 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
|  | 7453 | $CXX -c conftest.$ac_ext 2>&5 | 
|  | 7454 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
|  | 7455 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
|  | 7456 | then | 
|  | 7457 | ac_cv_cxx_thread=yes | 
|  | 7458 | else | 
|  | 7459 | ac_cv_cxx_thread=no | 
|  | 7460 | fi | 
|  | 7461 | rm -fr conftest* | 
|  | 7462 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
|  | 7464 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7465 | fi | 
|  | 7466 | CXX="$ac_save_cxx" | 
|  | 7467 |  | 
|  | 7468 |  | 
|  | 7469 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 7471 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7472 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7473 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7474 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7476 | /* end confdefs.h.  */ | 
|  | 7477 | #include <stdlib.h> | 
|  | 7478 | #include <stdarg.h> | 
|  | 7479 | #include <string.h> | 
|  | 7480 | #include <float.h> | 
|  | 7481 |  | 
|  | 7482 | int | 
|  | 7483 | main () | 
|  | 7484 | { | 
|  | 7485 |  | 
|  | 7486 | ; | 
|  | 7487 | return 0; | 
|  | 7488 | } | 
|  | 7489 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7490 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7491 | ac_cv_header_stdc=yes | 
|  | 7492 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7493 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7494 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7496 |  | 
|  | 7497 | if test $ac_cv_header_stdc = yes; then | 
|  | 7498 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7500 | /* end confdefs.h.  */ | 
|  | 7501 | #include <string.h> | 
|  | 7502 |  | 
|  | 7503 | _ACEOF | 
|  | 7504 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7505 | $EGREP "memchr" >/dev/null 2>&1; then : | 
|  | 7506 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7507 | else | 
|  | 7508 | ac_cv_header_stdc=no | 
|  | 7509 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7510 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7511 |  | 
|  | 7512 | fi | 
|  | 7513 |  | 
|  | 7514 | if test $ac_cv_header_stdc = yes; then | 
|  | 7515 | # 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] | 7516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7517 | /* end confdefs.h.  */ | 
|  | 7518 | #include <stdlib.h> | 
|  | 7519 |  | 
|  | 7520 | _ACEOF | 
|  | 7521 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7522 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 7523 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7524 | else | 
|  | 7525 | ac_cv_header_stdc=no | 
|  | 7526 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7527 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7528 |  | 
|  | 7529 | fi | 
|  | 7530 |  | 
|  | 7531 | if test $ac_cv_header_stdc = yes; then | 
|  | 7532 | # /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] | 7533 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7534 | : | 
|  | 7535 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7537 | /* end confdefs.h.  */ | 
|  | 7538 | #include <ctype.h> | 
|  | 7539 | #include <stdlib.h> | 
|  | 7540 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 7541 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 7542 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 7543 | #else | 
|  | 7544 | # define ISLOWER(c) \ | 
|  | 7545 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 7546 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 7547 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 7548 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 7549 | #endif | 
|  | 7550 |  | 
|  | 7551 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 7552 | int | 
|  | 7553 | main () | 
|  | 7554 | { | 
|  | 7555 | int i; | 
|  | 7556 | for (i = 0; i < 256; i++) | 
|  | 7557 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 7558 | || toupper (i) != TOUPPER (i)) | 
|  | 7559 | return 2; | 
|  | 7560 | return 0; | 
|  | 7561 | } | 
|  | 7562 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7563 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 7564 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7565 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7566 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7567 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7568 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7569 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7570 | fi | 
|  | 7571 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7572 | fi | 
|  | 7573 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 7575 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7576 | if test $ac_cv_header_stdc = yes; then | 
|  | 7577 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7578 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7579 |  | 
|  | 7580 | fi | 
|  | 7581 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7582 | 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] | 7583 | fcntl.h grp.h \ | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7584 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ | 
| Benjamin Peterson | 94b580d | 2011-08-02 17:30:04 -0500 | [diff] [blame] | 7585 | sched.h shadow.h signal.h stdint.h stropts.h termios.h \ | 
| Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 7586 | unistd.h utime.h \ | 
| Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7587 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ | 
| Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 7588 | 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] | 7589 | 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] | 7590 | 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] | 7591 | 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] | 7592 | 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] | 7593 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 7594 | bluetooth/bluetooth.h 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] | 7595 | sys/endian.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7596 | do : | 
|  | 7597 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 7598 | 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] | 7599 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7600 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7601 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7602 | _ACEOF | 
|  | 7603 |  | 
|  | 7604 | fi | 
|  | 7605 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7606 | done | 
|  | 7607 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7608 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7609 | 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] | 7610 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 7611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
|  | 7612 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7613 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7614 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7615 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7617 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7618 | #include <sys/types.h> | 
|  | 7619 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7620 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7621 | int | 
|  | 7622 | main () | 
|  | 7623 | { | 
|  | 7624 | if ((DIR *) 0) | 
|  | 7625 | return 0; | 
|  | 7626 | ; | 
|  | 7627 | return 0; | 
|  | 7628 | } | 
|  | 7629 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7630 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7631 | eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7632 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7633 | eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7634 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7636 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7637 | eval ac_res=\$$as_ac_Header | 
|  | 7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 7639 | $as_echo "$ac_res" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7640 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7641 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7642 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7643 | _ACEOF | 
|  | 7644 |  | 
|  | 7645 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7646 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7647 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7648 | done | 
|  | 7649 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 7650 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 7652 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7653 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7654 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7655 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7656 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7658 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7659 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7660 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7661 | Use char because int might match the return type of a GCC | 
|  | 7662 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7663 | #ifdef __cplusplus | 
|  | 7664 | extern "C" | 
|  | 7665 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7666 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7667 | int | 
|  | 7668 | main () | 
|  | 7669 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7670 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7671 | ; | 
|  | 7672 | return 0; | 
|  | 7673 | } | 
|  | 7674 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7675 | for ac_lib in '' dir; do | 
|  | 7676 | if test -z "$ac_lib"; then | 
|  | 7677 | ac_res="none required" | 
|  | 7678 | else | 
|  | 7679 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7680 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7681 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7682 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7683 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7684 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7685 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7686 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7687 | if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7688 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7689 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7690 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7691 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7692 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7693 | else | 
|  | 7694 | ac_cv_search_opendir=no | 
|  | 7695 | fi | 
|  | 7696 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7697 | LIBS=$ac_func_search_save_LIBS | 
|  | 7698 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 7700 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7701 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7702 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7703 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7704 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7705 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7706 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7707 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 7709 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7710 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7711 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7712 | else | 
|  | 7713 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7715 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7716 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7717 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7718 | Use char because int might match the return type of a GCC | 
|  | 7719 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7720 | #ifdef __cplusplus | 
|  | 7721 | extern "C" | 
|  | 7722 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7723 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7724 | int | 
|  | 7725 | main () | 
|  | 7726 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7727 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7728 | ; | 
|  | 7729 | return 0; | 
|  | 7730 | } | 
|  | 7731 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7732 | for ac_lib in '' x; do | 
|  | 7733 | if test -z "$ac_lib"; then | 
|  | 7734 | ac_res="none required" | 
|  | 7735 | else | 
|  | 7736 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7737 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7738 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7739 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7740 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7741 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7742 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7743 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7744 | if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7745 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7746 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7747 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7748 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7749 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7750 | else | 
|  | 7751 | ac_cv_search_opendir=no | 
|  | 7752 | fi | 
|  | 7753 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7754 | LIBS=$ac_func_search_save_LIBS | 
|  | 7755 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 7757 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7758 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7759 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7760 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7761 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7762 | fi | 
|  | 7763 |  | 
|  | 7764 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7765 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
|  | 7767 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7768 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7769 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7770 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7772 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7773 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7774 | int | 
|  | 7775 | main () | 
|  | 7776 | { | 
|  | 7777 | return makedev(0, 0); | 
|  | 7778 | ; | 
|  | 7779 | return 0; | 
|  | 7780 | } | 
|  | 7781 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7782 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7783 | ac_cv_header_sys_types_h_makedev=yes | 
|  | 7784 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7785 | ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7786 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7787 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7788 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7789 |  | 
|  | 7790 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
|  | 7792 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7793 |  | 
|  | 7794 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7795 | 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] | 7796 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7797 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7798 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7799 |  | 
|  | 7800 | fi | 
|  | 7801 |  | 
|  | 7802 |  | 
|  | 7803 |  | 
|  | 7804 | if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7805 | 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] | 7806 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7807 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7808 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7809 |  | 
|  | 7810 | fi | 
|  | 7811 |  | 
|  | 7812 |  | 
|  | 7813 | fi | 
|  | 7814 | fi | 
|  | 7815 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7816 |  | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7817 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. | 
|  | 7818 | for ac_header in net/if.h | 
|  | 7819 | do : | 
|  | 7820 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | 
|  | 7821 | #ifdef STDC_HEADERS | 
|  | 7822 | # include <stdlib.h> | 
|  | 7823 | # include <stddef.h> | 
|  | 7824 | #else | 
|  | 7825 | # ifdef HAVE_STDLIB_H | 
|  | 7826 | #  include <stdlib.h> | 
|  | 7827 | # endif | 
|  | 7828 | #endif | 
|  | 7829 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 7830 | # include <sys/socket.h> | 
|  | 7831 | #endif | 
|  | 7832 |  | 
|  | 7833 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7834 | if test "x$ac_cv_header_net_if_h" = xyes; then : | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7835 | cat >>confdefs.h <<_ACEOF | 
|  | 7836 | #define HAVE_NET_IF_H 1 | 
|  | 7837 | _ACEOF | 
|  | 7838 |  | 
|  | 7839 | fi | 
|  | 7840 |  | 
|  | 7841 | done | 
|  | 7842 |  | 
|  | 7843 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7844 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7845 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7846 | do : | 
|  | 7847 | 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] | 7848 | #ifdef HAVE_ASM_TYPES_H | 
|  | 7849 | #include <asm/types.h> | 
|  | 7850 | #endif | 
|  | 7851 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 7852 | #include <sys/socket.h> | 
|  | 7853 | #endif | 
|  | 7854 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7855 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7856 | 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] | 7857 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7858 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7859 | _ACEOF | 
|  | 7860 |  | 
|  | 7861 | fi | 
|  | 7862 |  | 
|  | 7863 | done | 
|  | 7864 |  | 
|  | 7865 |  | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 7866 | # 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] | 7867 | 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] | 7868 | do : | 
|  | 7869 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 7870 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | 
|  | 7871 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 7872 | #include <sys/socket.h> | 
|  | 7873 | #endif | 
|  | 7874 |  | 
|  | 7875 | " | 
|  | 7876 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
|  | 7877 | cat >>confdefs.h <<_ACEOF | 
|  | 7878 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 7879 | _ACEOF | 
|  | 7880 |  | 
|  | 7881 | fi | 
|  | 7882 |  | 
|  | 7883 | done | 
|  | 7884 |  | 
|  | 7885 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7886 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7887 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
|  | 7889 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
|  | 7890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7891 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7892 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7893 |  | 
|  | 7894 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7895 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7896 | $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7897 | was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7898 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7899 |  | 
|  | 7900 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7901 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7902 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7903 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7904 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7905 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7906 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 7908 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7909 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
|  | 7911 | $as_echo_n "checking for makedev... " >&6; } | 
|  | 7912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7913 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7914 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 7915 | #if defined(MAJOR_IN_MKDEV) | 
|  | 7916 | #include <sys/mkdev.h> | 
|  | 7917 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 7918 | #include <sys/sysmacros.h> | 
|  | 7919 | #else | 
|  | 7920 | #include <sys/types.h> | 
|  | 7921 | #endif | 
|  | 7922 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7923 | int | 
|  | 7924 | main () | 
|  | 7925 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 7926 |  | 
|  | 7927 | makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7928 | ; | 
|  | 7929 | return 0; | 
|  | 7930 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7931 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7932 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7933 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7934 | ac_cv_has_makedev=yes | 
|  | 7935 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7936 | ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7937 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7938 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7939 | conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
|  | 7941 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7942 | if test "$ac_cv_has_makedev" = "yes"; then | 
|  | 7943 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7944 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7945 |  | 
|  | 7946 | fi | 
|  | 7947 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 7948 | # byte swapping | 
|  | 7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | 
|  | 7950 | $as_echo_n "checking for le64toh... " >&6; } | 
|  | 7951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7952 | /* end confdefs.h.  */ | 
|  | 7953 |  | 
|  | 7954 | #ifdef HAVE_ENDIAN_H | 
|  | 7955 | #include <endian.h> | 
|  | 7956 | #elif defined(HAVE_SYS_ENDIAN_H) | 
|  | 7957 | #include <sys/endian.h> | 
|  | 7958 | #endif | 
|  | 7959 |  | 
|  | 7960 | int | 
|  | 7961 | main () | 
|  | 7962 | { | 
|  | 7963 |  | 
|  | 7964 | le64toh(1) | 
|  | 7965 | ; | 
|  | 7966 | return 0; | 
|  | 7967 | } | 
|  | 7968 |  | 
|  | 7969 | _ACEOF | 
|  | 7970 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 7971 | ac_cv_has_le64toh=yes | 
|  | 7972 | else | 
|  | 7973 | ac_cv_has_le64toh=no | 
|  | 7974 | fi | 
|  | 7975 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7976 | conftest$ac_exeext conftest.$ac_ext | 
|  | 7977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | 
|  | 7978 | $as_echo "$ac_cv_has_le64toh" >&6; } | 
|  | 7979 | if test "$ac_cv_has_le64toh" = "yes"; then | 
|  | 7980 |  | 
|  | 7981 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | 
|  | 7982 |  | 
|  | 7983 | fi | 
|  | 7984 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7985 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
|  | 7986 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
|  | 7987 | # defined, but the compiler does not support pragma redefine_extname, | 
|  | 7988 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
|  | 7989 | # structures (such as rlimit64) without declaring them. As a | 
|  | 7990 | # work-around, disable LFS on such configurations | 
|  | 7991 |  | 
|  | 7992 | use_lfs=yes | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
|  | 7994 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
|  | 7995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7996 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7997 |  | 
|  | 7998 | #define _LARGEFILE_SOURCE 1 | 
|  | 7999 | #define _FILE_OFFSET_BITS 64 | 
|  | 8000 | #include <sys/resource.h> | 
|  | 8001 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8002 | int | 
|  | 8003 | main () | 
|  | 8004 | { | 
|  | 8005 | struct rlimit foo; | 
|  | 8006 | ; | 
|  | 8007 | return 0; | 
|  | 8008 | } | 
|  | 8009 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8010 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8011 | sol_lfs_bug=no | 
|  | 8012 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8013 | sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8014 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
|  | 8017 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8018 | if test "$sol_lfs_bug" = "yes"; then | 
|  | 8019 | use_lfs=no | 
|  | 8020 | fi | 
|  | 8021 |  | 
| doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 8022 | # Don't use largefile support for GNU/Hurd | 
|  | 8023 | case $ac_sys_system in GNU*) | 
|  | 8024 | use_lfs=no | 
|  | 8025 | esac | 
|  | 8026 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8027 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8028 | # Two defines needed to enable largefile support on various platforms | 
|  | 8029 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8030 | case $ac_sys_system/$ac_sys_release in | 
|  | 8031 | AIX*) | 
|  | 8032 |  | 
|  | 8033 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
|  | 8034 |  | 
|  | 8035 | ;; | 
|  | 8036 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8037 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8038 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8039 |  | 
|  | 8040 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8041 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8042 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8043 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8044 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8045 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
|  | 8046 | cat >> confdefs.h <<\EOF | 
|  | 8047 | #if defined(SCO_DS) | 
|  | 8048 | #undef _OFF_T | 
|  | 8049 | #endif | 
|  | 8050 | EOF | 
|  | 8051 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8052 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8053 | 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] | 8054 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8055 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8056 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8057 |  | 
|  | 8058 | cat >>confdefs.h <<_ACEOF | 
|  | 8059 | #define mode_t int | 
|  | 8060 | _ACEOF | 
|  | 8061 |  | 
|  | 8062 | fi | 
|  | 8063 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8064 | 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] | 8065 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8066 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8067 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8068 |  | 
|  | 8069 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8070 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8071 | _ACEOF | 
|  | 8072 |  | 
|  | 8073 | fi | 
|  | 8074 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8075 | 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] | 8076 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8077 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8078 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8079 |  | 
|  | 8080 | cat >>confdefs.h <<_ACEOF | 
|  | 8081 | #define pid_t int | 
|  | 8082 | _ACEOF | 
|  | 8083 |  | 
|  | 8084 | fi | 
|  | 8085 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8086 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8087 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 8088 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8089 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8090 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8091 | 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] | 8092 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8093 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8094 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8095 |  | 
|  | 8096 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8097 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8098 | _ACEOF | 
|  | 8099 |  | 
|  | 8100 | fi | 
|  | 8101 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
|  | 8103 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8104 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8105 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8106 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8108 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8109 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8110 |  | 
|  | 8111 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8112 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8113 | $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8114 | ac_cv_type_uid_t=yes | 
|  | 8115 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8116 | ac_cv_type_uid_t=no | 
|  | 8117 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8118 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8119 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8120 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
|  | 8122 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8123 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8124 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8125 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8126 |  | 
|  | 8127 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8128 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8129 |  | 
|  | 8130 | fi | 
|  | 8131 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8132 |  | 
|  | 8133 | # There are two separate checks for each of the exact-width integer types we | 
|  | 8134 | # need.  First we check whether the type is available using the usual | 
|  | 8135 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> | 
|  | 8136 | # and <stdint.h> where available).  We then also use the special type checks of | 
|  | 8137 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available | 
|  | 8138 | # directly, #define's uint32_t to be a suitable type. | 
|  | 8139 |  | 
|  | 8140 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | 
|  | 8141 | if test "x$ac_cv_type_uint32_t" = xyes; then : | 
|  | 8142 |  | 
|  | 8143 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h | 
|  | 8144 |  | 
|  | 8145 | fi | 
|  | 8146 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8147 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
|  | 8148 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8149 | no|yes) ;; #( | 
|  | 8150 | *) | 
|  | 8151 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8152 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8153 |  | 
|  | 8154 |  | 
|  | 8155 | cat >>confdefs.h <<_ACEOF | 
|  | 8156 | #define uint32_t $ac_cv_c_uint32_t | 
|  | 8157 | _ACEOF | 
|  | 8158 | ;; | 
|  | 8159 | esac | 
|  | 8160 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8161 |  | 
|  | 8162 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" | 
|  | 8163 | if test "x$ac_cv_type_uint64_t" = xyes; then : | 
|  | 8164 |  | 
|  | 8165 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h | 
|  | 8166 |  | 
|  | 8167 | fi | 
|  | 8168 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8169 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
|  | 8170 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8171 | no|yes) ;; #( | 
|  | 8172 | *) | 
|  | 8173 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8174 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8175 |  | 
|  | 8176 |  | 
|  | 8177 | cat >>confdefs.h <<_ACEOF | 
|  | 8178 | #define uint64_t $ac_cv_c_uint64_t | 
|  | 8179 | _ACEOF | 
|  | 8180 | ;; | 
|  | 8181 | esac | 
|  | 8182 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8183 |  | 
|  | 8184 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" | 
|  | 8185 | if test "x$ac_cv_type_int32_t" = xyes; then : | 
|  | 8186 |  | 
|  | 8187 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h | 
|  | 8188 |  | 
|  | 8189 | fi | 
|  | 8190 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8191 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
|  | 8192 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8193 | no|yes) ;; #( | 
|  | 8194 | *) | 
|  | 8195 |  | 
|  | 8196 | cat >>confdefs.h <<_ACEOF | 
|  | 8197 | #define int32_t $ac_cv_c_int32_t | 
|  | 8198 | _ACEOF | 
|  | 8199 | ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8200 | esac | 
|  | 8201 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8202 |  | 
|  | 8203 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" | 
|  | 8204 | if test "x$ac_cv_type_int64_t" = xyes; then : | 
|  | 8205 |  | 
|  | 8206 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | 
|  | 8207 |  | 
|  | 8208 | fi | 
|  | 8209 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8210 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
|  | 8211 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8212 | no|yes) ;; #( | 
|  | 8213 | *) | 
|  | 8214 |  | 
|  | 8215 | cat >>confdefs.h <<_ACEOF | 
|  | 8216 | #define int64_t $ac_cv_c_int64_t | 
|  | 8217 | _ACEOF | 
|  | 8218 | ;; | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 8219 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8220 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8221 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8222 | 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] | 8223 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8224 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8225 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8226 |  | 
|  | 8227 | fi | 
|  | 8228 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8229 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" | 
|  | 8230 | if test "x$ac_cv_type___uint128_t" = xyes; then : | 
|  | 8231 |  | 
|  | 8232 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | 
|  | 8233 |  | 
|  | 8234 | fi | 
|  | 8235 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8236 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8237 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8238 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8239 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8240 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8241 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8242 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
|  | 8244 | $as_echo_n "checking size of int... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8245 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8246 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8247 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8248 | 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] | 8249 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8250 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8251 | if test "$ac_cv_type_int" = yes; then | 
|  | 8252 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8253 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8254 | as_fn_error 77 "cannot compute sizeof (int) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8255 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8256 | else | 
|  | 8257 | ac_cv_sizeof_int=0 | 
|  | 8258 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8259 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8260 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8261 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
|  | 8263 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8264 |  | 
|  | 8265 |  | 
|  | 8266 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8267 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8268 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8269 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8270 |  | 
|  | 8271 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8272 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8273 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8274 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8275 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
|  | 8277 | $as_echo_n "checking size of long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8278 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8279 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8280 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8281 | 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] | 8282 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8283 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8284 | if test "$ac_cv_type_long" = yes; then | 
|  | 8285 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8286 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8287 | as_fn_error 77 "cannot compute sizeof (long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8288 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8289 | else | 
|  | 8290 | ac_cv_sizeof_long=0 | 
|  | 8291 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8292 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8293 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8294 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
|  | 8296 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8297 |  | 
|  | 8298 |  | 
|  | 8299 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8300 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8301 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8302 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8303 |  | 
|  | 8304 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8305 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8306 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8307 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8308 | # This bug is HP SR number 8606223364. | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
|  | 8310 | $as_echo_n "checking size of long long... " >&6; } | 
|  | 8311 | if ${ac_cv_sizeof_long_long+:} false; then : | 
|  | 8312 | $as_echo_n "(cached) " >&6 | 
|  | 8313 | else | 
|  | 8314 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then : | 
|  | 8315 |  | 
|  | 8316 | else | 
|  | 8317 | if test "$ac_cv_type_long_long" = yes; then | 
|  | 8318 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8319 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 8320 | as_fn_error 77 "cannot compute sizeof (long long) | 
|  | 8321 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 8322 | else | 
|  | 8323 | ac_cv_sizeof_long_long=0 | 
|  | 8324 | fi | 
|  | 8325 | fi | 
|  | 8326 |  | 
|  | 8327 | fi | 
|  | 8328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
|  | 8329 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
|  | 8330 |  | 
|  | 8331 |  | 
|  | 8332 |  | 
|  | 8333 | cat >>confdefs.h <<_ACEOF | 
|  | 8334 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
|  | 8335 | _ACEOF | 
|  | 8336 |  | 
|  | 8337 |  | 
|  | 8338 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8339 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8340 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8341 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
|  | 8343 | $as_echo_n "checking size of void *... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8344 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8345 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8346 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8347 | 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] | 8348 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8349 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8350 | if test "$ac_cv_type_void_p" = yes; then | 
|  | 8351 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8352 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8353 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8354 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8355 | else | 
|  | 8356 | ac_cv_sizeof_void_p=0 | 
|  | 8357 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8358 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8359 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8360 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
|  | 8362 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8363 |  | 
|  | 8364 |  | 
|  | 8365 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8366 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8367 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8369 |  | 
|  | 8370 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8371 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8372 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8373 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8374 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
|  | 8376 | $as_echo_n "checking size of short... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8377 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8378 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8379 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8380 | 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] | 8381 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8382 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8383 | if test "$ac_cv_type_short" = yes; then | 
|  | 8384 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8385 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8386 | as_fn_error 77 "cannot compute sizeof (short) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8387 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8388 | else | 
|  | 8389 | ac_cv_sizeof_short=0 | 
|  | 8390 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8391 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8392 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8393 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
|  | 8395 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8396 |  | 
|  | 8397 |  | 
|  | 8398 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8400 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8401 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8402 |  | 
|  | 8403 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8404 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8405 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8406 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8407 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
|  | 8409 | $as_echo_n "checking size of float... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8410 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8411 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8412 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8413 | 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] | 8414 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8415 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8416 | if test "$ac_cv_type_float" = yes; then | 
|  | 8417 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8418 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8419 | as_fn_error 77 "cannot compute sizeof (float) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8420 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8421 | else | 
|  | 8422 | ac_cv_sizeof_float=0 | 
|  | 8423 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8425 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8426 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
|  | 8428 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8429 |  | 
|  | 8430 |  | 
|  | 8431 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8432 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8433 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8434 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8435 |  | 
|  | 8436 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8437 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8438 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8439 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8440 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
|  | 8442 | $as_echo_n "checking size of double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8443 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8444 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8445 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8446 | 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] | 8447 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8448 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8449 | if test "$ac_cv_type_double" = yes; then | 
|  | 8450 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8451 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8452 | as_fn_error 77 "cannot compute sizeof (double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8453 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8454 | else | 
|  | 8455 | ac_cv_sizeof_double=0 | 
|  | 8456 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8457 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8458 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8459 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
|  | 8461 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8462 |  | 
|  | 8463 |  | 
|  | 8464 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8465 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8466 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8467 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8468 |  | 
|  | 8469 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8470 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8471 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8472 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8473 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
|  | 8475 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8476 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8477 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8478 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8479 | 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] | 8480 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8482 | if test "$ac_cv_type_fpos_t" = yes; then | 
|  | 8483 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8484 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8485 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8486 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8487 | else | 
|  | 8488 | ac_cv_sizeof_fpos_t=0 | 
|  | 8489 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8490 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8491 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8492 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
|  | 8494 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8495 |  | 
|  | 8496 |  | 
|  | 8497 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8498 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8499 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8500 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8501 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8502 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8503 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8504 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8505 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8506 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
|  | 8508 | $as_echo_n "checking size of size_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8509 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8510 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8511 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8512 | 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] | 8513 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8514 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8515 | if test "$ac_cv_type_size_t" = yes; then | 
|  | 8516 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8517 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8518 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8519 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8520 | else | 
|  | 8521 | ac_cv_sizeof_size_t=0 | 
|  | 8522 | fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8523 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8524 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8525 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
|  | 8527 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8528 |  | 
|  | 8529 |  | 
|  | 8530 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8531 | cat >>confdefs.h <<_ACEOF | 
|  | 8532 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
|  | 8533 | _ACEOF | 
|  | 8534 |  | 
|  | 8535 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8536 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8537 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8538 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8539 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
|  | 8541 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8542 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8543 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8544 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8545 | 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] | 8546 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8547 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8548 | if test "$ac_cv_type_pid_t" = yes; then | 
|  | 8549 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8550 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8551 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8552 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8553 | else | 
|  | 8554 | ac_cv_sizeof_pid_t=0 | 
|  | 8555 | fi | 
|  | 8556 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8557 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8558 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
|  | 8560 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8561 |  | 
|  | 8562 |  | 
|  | 8563 |  | 
|  | 8564 | cat >>confdefs.h <<_ACEOF | 
|  | 8565 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
|  | 8566 | _ACEOF | 
|  | 8567 |  | 
|  | 8568 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8569 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
|  | 8571 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8572 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8574 | /* end confdefs.h.  */ | 
|  | 8575 |  | 
|  | 8576 | int | 
|  | 8577 | main () | 
|  | 8578 | { | 
|  | 8579 | long double x; x = (long double)0; | 
|  | 8580 | ; | 
|  | 8581 | return 0; | 
|  | 8582 | } | 
|  | 8583 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8584 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8585 |  | 
|  | 8586 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8587 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8588 |  | 
|  | 8589 | have_long_double=yes | 
|  | 8590 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8591 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
|  | 8594 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8595 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8596 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8597 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8598 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8599 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
|  | 8601 | $as_echo_n "checking size of long double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8602 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8603 | $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8604 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8605 | 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] | 8606 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8607 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8608 | if test "$ac_cv_type_long_double" = yes; then | 
|  | 8609 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8610 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8611 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8612 | See \`config.log' for more details" "$LINENO" 5; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8613 | else | 
|  | 8614 | ac_cv_sizeof_long_double=0 | 
|  | 8615 | fi | 
|  | 8616 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8617 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8618 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
|  | 8620 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8621 |  | 
|  | 8622 |  | 
|  | 8623 |  | 
|  | 8624 | cat >>confdefs.h <<_ACEOF | 
|  | 8625 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
|  | 8626 | _ACEOF | 
|  | 8627 |  | 
|  | 8628 |  | 
|  | 8629 | fi | 
|  | 8630 |  | 
|  | 8631 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
|  | 8633 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8634 | have_c99_bool=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8636 | /* end confdefs.h.  */ | 
|  | 8637 |  | 
|  | 8638 | int | 
|  | 8639 | main () | 
|  | 8640 | { | 
|  | 8641 | _Bool x; x = (_Bool)0; | 
|  | 8642 | ; | 
|  | 8643 | return 0; | 
|  | 8644 | } | 
|  | 8645 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8646 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8647 |  | 
|  | 8648 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8649 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8650 |  | 
|  | 8651 | have_c99_bool=yes | 
|  | 8652 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8653 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
|  | 8656 | $as_echo "$have_c99_bool" >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8657 | if test "$have_c99_bool" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8658 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8659 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8660 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8661 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
|  | 8663 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8664 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8665 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8666 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8667 | 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] | 8668 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8669 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8670 | if test "$ac_cv_type__Bool" = yes; then | 
|  | 8671 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8672 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8673 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8674 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8675 | else | 
|  | 8676 | ac_cv_sizeof__Bool=0 | 
|  | 8677 | fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8678 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8679 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8680 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
|  | 8682 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8683 |  | 
|  | 8684 |  | 
|  | 8685 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8686 | cat >>confdefs.h <<_ACEOF | 
|  | 8687 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
|  | 8688 | _ACEOF | 
|  | 8689 |  | 
|  | 8690 |  | 
|  | 8691 | fi | 
|  | 8692 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8693 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8694 | #include <stdint.h> | 
|  | 8695 | #endif | 
| Antoine Pitrou | 1bf29b7 | 2010-10-10 08:10:16 +0000 | [diff] [blame] | 8696 | #ifdef HAVE_INTTYPES_H | 
|  | 8697 | #include <inttypes.h> | 
|  | 8698 | #endif | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8699 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8700 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8701 |  | 
|  | 8702 | cat >>confdefs.h <<_ACEOF | 
|  | 8703 | #define HAVE_UINTPTR_T 1 | 
|  | 8704 | _ACEOF | 
|  | 8705 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8706 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8707 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8708 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8709 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
|  | 8711 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8712 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8713 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8714 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8715 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8716 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8717 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8718 | if test "$ac_cv_type_uintptr_t" = yes; then | 
|  | 8719 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8720 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8721 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8722 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8723 | else | 
|  | 8724 | ac_cv_sizeof_uintptr_t=0 | 
|  | 8725 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8726 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8727 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8728 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
|  | 8730 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8731 |  | 
|  | 8732 |  | 
|  | 8733 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8734 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8735 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8736 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8737 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8738 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8739 | fi | 
|  | 8740 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8741 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8742 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8743 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8744 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8745 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
|  | 8747 | $as_echo_n "checking size of off_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8748 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8749 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8750 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8751 | 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] | 8752 | #ifdef HAVE_SYS_TYPES_H | 
|  | 8753 | #include <sys/types.h> | 
|  | 8754 | #endif | 
|  | 8755 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8756 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8757 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8758 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8759 | if test "$ac_cv_type_off_t" = yes; then | 
|  | 8760 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8761 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8762 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8763 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8764 | else | 
|  | 8765 | ac_cv_sizeof_off_t=0 | 
|  | 8766 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8767 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8768 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8769 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
|  | 8771 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8772 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8773 |  | 
|  | 8774 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8775 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8776 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8777 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8778 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8779 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8780 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
|  | 8782 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8783 | 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] | 8784 | "$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] | 8785 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8786 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8789 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8790 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8792 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8793 | fi | 
|  | 8794 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8795 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8796 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8797 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8798 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
|  | 8800 | $as_echo_n "checking size of time_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8801 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8802 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8803 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8804 | 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] | 8805 | #ifdef HAVE_SYS_TYPES_H | 
|  | 8806 | #include <sys/types.h> | 
|  | 8807 | #endif | 
|  | 8808 | #ifdef HAVE_TIME_H | 
|  | 8809 | #include <time.h> | 
|  | 8810 | #endif | 
|  | 8811 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8812 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8813 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8814 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8815 | if test "$ac_cv_type_time_t" = yes; then | 
|  | 8816 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8817 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8818 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8819 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8820 | else | 
|  | 8821 | ac_cv_sizeof_time_t=0 | 
|  | 8822 | fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8823 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8824 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8825 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
|  | 8827 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8828 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8829 |  | 
|  | 8830 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8831 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8832 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8833 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8834 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8835 |  | 
|  | 8836 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8837 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8838 | ac_save_cc="$CC" | 
|  | 8839 | if test "$ac_cv_kpthread" = "yes" | 
|  | 8840 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8841 | elif test "$ac_cv_kthread" = "yes" | 
|  | 8842 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8843 | elif test "$ac_cv_pthread" = "yes" | 
|  | 8844 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8845 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8846 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
|  | 8848 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8849 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8851 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8852 |  | 
|  | 8853 | #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8854 | int | 
|  | 8855 | main () | 
|  | 8856 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8857 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8858 | ; | 
|  | 8859 | return 0; | 
|  | 8860 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8861 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8862 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8863 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8864 | have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8865 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
|  | 8868 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8869 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8870 | # 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] | 8871 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8872 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8873 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
|  | 8875 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8876 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8877 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8878 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8879 | 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] | 8880 | #ifdef HAVE_PTHREAD_H | 
|  | 8881 | #include <pthread.h> | 
|  | 8882 | #endif | 
|  | 8883 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8884 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8885 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8886 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8887 | if test "$ac_cv_type_pthread_t" = yes; then | 
|  | 8888 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8889 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8890 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8891 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8892 | else | 
|  | 8893 | ac_cv_sizeof_pthread_t=0 | 
|  | 8894 | fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8895 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8896 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8897 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
|  | 8899 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8900 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8901 |  | 
|  | 8902 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8903 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8904 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8905 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8906 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8907 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8908 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8909 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8910 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8911 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8912 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8913 | Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8914 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
|  | 8915 | ;; | 
|  | 8916 | Darwin/*) | 
|  | 8917 | OTHER_LIBTOOL_OPT="" | 
|  | 8918 | ;; | 
|  | 8919 | esac | 
|  | 8920 |  | 
|  | 8921 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8922 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8923 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8924 | Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8925 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
|  | 8926 | if test "${enable_universalsdk}"; then | 
|  | 8927 | : | 
|  | 8928 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8929 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8930 | fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8931 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8932 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8933 | Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 8934 | gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8935 | if test ${gcc_version} '<' 4.0 | 
|  | 8936 | then | 
|  | 8937 | LIBTOOL_CRUFT="-lcc_dynamic" | 
|  | 8938 | else | 
|  | 8939 | LIBTOOL_CRUFT="" | 
|  | 8940 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8941 | if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8942 | ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8943 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8945 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8946 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8947 | #include <unistd.h> | 
|  | 8948 | int main(int argc, char*argv[]) | 
|  | 8949 | { | 
|  | 8950 | if (sizeof(long) == 4) { | 
|  | 8951 | return 0; | 
|  | 8952 | } else { | 
|  | 8953 | return 1; | 
|  | 8954 | } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8955 | } | 
|  | 8956 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8957 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8958 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8959 | ac_osx_32bit=yes | 
|  | 8960 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8961 | ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8962 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8963 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 8964 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8965 | fi | 
|  | 8966 |  | 
|  | 8967 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8968 | if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8969 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8970 | i386) | 
|  | 8971 | MACOSX_DEFAULT_ARCH="i386" | 
|  | 8972 | ;; | 
|  | 8973 | ppc) | 
|  | 8974 | MACOSX_DEFAULT_ARCH="ppc" | 
|  | 8975 | ;; | 
|  | 8976 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8977 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8978 | ;; | 
|  | 8979 | esac | 
|  | 8980 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8981 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8982 | i386) | 
|  | 8983 | MACOSX_DEFAULT_ARCH="x86_64" | 
|  | 8984 | ;; | 
|  | 8985 | ppc) | 
|  | 8986 | MACOSX_DEFAULT_ARCH="ppc64" | 
|  | 8987 | ;; | 
|  | 8988 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8989 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8990 | ;; | 
|  | 8991 | esac | 
|  | 8992 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8993 | fi | 
|  | 8994 |  | 
|  | 8995 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8996 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8997 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8998 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
|  | 9000 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9001 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9002 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9003 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9004 | # -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9005 | # in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9006 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9007 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9008 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9010 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9011 | if test $enable_shared = "yes" | 
|  | 9012 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9013 | 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] | 9014 | fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9015 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9017 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9018 | fi | 
|  | 9019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
|  | 9021 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9022 | case $ac_sys_system/$ac_sys_release in | 
|  | 9023 | Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9024 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9025 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9026 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
|  | 9028 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9029 | ;; | 
|  | 9030 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9032 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9033 | ;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9034 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9035 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9036 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9037 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9038 |  | 
|  | 9039 |  | 
|  | 9040 |  | 
|  | 9041 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9042 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9043 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9044 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) | 
|  | 9045 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
|  | 9046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | 
|  | 9047 | $as_echo_n "checking the extension of shared libraries... " >&6; } | 
|  | 9048 | if test -z "$SHLIB_SUFFIX"; then | 
|  | 9049 | case $ac_sys_system in | 
|  | 9050 | hp*|HP*) | 
|  | 9051 | case `uname -m` in | 
|  | 9052 | ia64) SHLIB_SUFFIX=.so;; | 
|  | 9053 | *)    SHLIB_SUFFIX=.sl;; | 
|  | 9054 | esac | 
|  | 9055 | ;; | 
|  | 9056 | CYGWIN*)   SHLIB_SUFFIX=.dll;; | 
|  | 9057 | *)	   SHLIB_SUFFIX=.so;; | 
|  | 9058 | esac | 
|  | 9059 | fi | 
|  | 9060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | 
|  | 9061 | $as_echo "$SHLIB_SUFFIX" >&6; } | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9062 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9063 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 9064 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9065 | # (Shared libraries in this instance are shared modules to be loaded into | 
|  | 9066 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
|  | 9068 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9069 | if test -z "$LDSHARED" | 
|  | 9070 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9071 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9072 | AIX*) | 
| Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 9073 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp" | 
| Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 9074 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9075 | ;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9076 | IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9077 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9078 | SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9079 | if test "$GCC" = "yes" ; then | 
|  | 9080 | LDSHARED='$(CC) -shared' | 
|  | 9081 | LDCXXSHARED='$(CXX) -shared' | 
|  | 9082 | else | 
|  | 9083 | LDSHARED='$(CC) -G' | 
|  | 9084 | LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9085 | fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9086 | hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9087 | if test "$GCC" = "yes" ; then | 
|  | 9088 | LDSHARED='$(CC) -shared' | 
|  | 9089 | LDCXXSHARED='$(CXX) -shared' | 
|  | 9090 | else | 
|  | 9091 | LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9092 | fi ;; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9093 | Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9094 | LDSHARED='$(CC) -bundle' | 
|  | 9095 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9096 | if test "$enable_framework" ; then | 
|  | 9097 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9098 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 9099 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9100 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9101 | else | 
|  | 9102 | # No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9103 | LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9104 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9105 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9106 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9107 | LDSHARED='$(CC) -bundle' | 
|  | 9108 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9109 | if test "$enable_framework" ; then | 
|  | 9110 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9111 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 9112 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9113 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9114 | else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9115 | # No framework, use the Python app as bundle-loader | 
|  | 9116 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9117 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9118 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9119 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9120 | Darwin/*) | 
|  | 9121 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
|  | 9122 | # This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9123 |  | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9124 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
|  | 9125 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
|  | 9126 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
|  | 9127 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
|  | 9128 | if test ${dep_target_major} -eq 10 && \ | 
|  | 9129 | test ${dep_target_minor} -le 2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9130 | then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9131 | # building for OS X 10.0 through 10.2 | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9132 | LDSHARED='$(CC) -bundle' | 
|  | 9133 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9134 | if test "$enable_framework" ; then | 
|  | 9135 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9136 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 9137 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9138 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9139 | else | 
|  | 9140 | # No framework, use the Python app as bundle-loader | 
|  | 9141 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
|  | 9142 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9143 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9144 | fi | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9145 | else | 
|  | 9146 | # building for OS X 10.3 and later | 
|  | 9147 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
|  | 9148 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
|  | 9149 | BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9150 | fi | 
|  | 9151 | ;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9152 | Linux*|GNU*|QNX*) | 
|  | 9153 | LDSHARED='$(CC) -shared' | 
|  | 9154 | LDCXXSHARED='$(CXX) -shared';; | 
|  | 9155 | BSD/OS*/4*) | 
|  | 9156 | LDSHARED="gcc -shared" | 
|  | 9157 | LDCXXSHARED="g++ -shared";; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9158 | FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9159 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9160 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9161 | LDSHARED='$(CC) -shared' | 
|  | 9162 | LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9163 | else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9164 | LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9165 | fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9166 | OpenBSD*) | 
|  | 9167 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 9168 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9169 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 9170 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9171 | else | 
|  | 9172 | case `uname -r` in | 
|  | 9173 | [01].* | 2.[0-7] | 2.[0-7].*) | 
|  | 9174 | LDSHARED="ld -Bshareable ${LDFLAGS}" | 
|  | 9175 | ;; | 
|  | 9176 | *) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9177 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 9178 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9179 | ;; | 
|  | 9180 | esac | 
|  | 9181 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9182 | NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9183 | LDSHARED='$(CC) -shared' | 
|  | 9184 | LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9185 | OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9186 | if test "$GCC" = "yes" ; then | 
|  | 9187 | LDSHARED='$(CC) -shared' | 
|  | 9188 | LDCXXSHARED='$(CXX) -shared' | 
|  | 9189 | else | 
|  | 9190 | LDSHARED='$(CC) -G' | 
|  | 9191 | LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9192 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9193 | SCO_SV*) | 
|  | 9194 | LDSHARED='$(CC) -Wl,-G,-Bexport' | 
|  | 9195 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
|  | 9196 | CYGWIN*) | 
|  | 9197 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
|  | 9198 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9199 | *)	LDSHARED="ld";; | 
|  | 9200 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9201 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
|  | 9203 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9204 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9205 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9206 | # 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] | 9207 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
|  | 9209 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9210 | if test -z "$CCSHARED" | 
|  | 9211 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9212 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9213 | SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9214 | then CCSHARED="-fPIC"; | 
|  | 9215 | elif test `uname -p` = sparc; | 
|  | 9216 | then CCSHARED="-xcode=pic32"; | 
|  | 9217 | else CCSHARED="-Kpic"; | 
|  | 9218 | fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9219 | hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9220 | then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9221 | else CCSHARED="+z"; | 
|  | 9222 | fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9223 | Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9224 | BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9225 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9226 | OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9227 | if test "$GCC" = "yes" | 
|  | 9228 | then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9229 | else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9230 | fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9231 | SCO_SV*) | 
|  | 9232 | if test "$GCC" = "yes" | 
|  | 9233 | then CCSHARED="-fPIC" | 
|  | 9234 | else CCSHARED="-Kpic -belf" | 
|  | 9235 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9236 | IRIX*/6*)  case $CC in | 
|  | 9237 | *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9238 | *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9239 | esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9240 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9241 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
|  | 9243 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9244 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9245 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
|  | 9247 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9248 | if test -z "$LINKFORSHARED" | 
|  | 9249 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9250 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9251 | AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9252 | hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9253 | LINKFORSHARED="-Wl,-E -Wl,+s";; | 
|  | 9254 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9255 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9256 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9257 | # -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9258 | Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9259 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 9260 |  | 
|  | 9261 | # Issue #18075: the default maximum stack size (8MBytes) is too | 
|  | 9262 | # small for the default recursion limit. Increase the stack size | 
|  | 9263 | # to ensure that tests don't crash | 
|  | 9264 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | 
|  | 9265 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9266 | if test "$enable_framework" | 
|  | 9267 | then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9268 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9269 | fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9270 | LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9271 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9272 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9273 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9274 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9275 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 9276 | then | 
|  | 9277 | LINKFORSHARED="-Wl,--export-dynamic" | 
|  | 9278 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9279 | SunOS/5*) case $CC in | 
|  | 9280 | *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9281 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9282 | then | 
|  | 9283 | LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9284 | fi;; | 
|  | 9285 | esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9286 | CYGWIN*) | 
|  | 9287 | if test $enable_shared = "no" | 
|  | 9288 | then | 
|  | 9289 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
|  | 9290 | fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9291 | QNX*) | 
|  | 9292 | # -Wl,-E causes the symbols to be added to the dynamic | 
|  | 9293 | # symbol table so that they can be found when a module | 
|  | 9294 | # is loaded.  -N 2048K causes the stack size to be set | 
|  | 9295 | # to 2048 kilobytes so that the stack doesn't overflow | 
|  | 9296 | # when running test_compile.py. | 
|  | 9297 | LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9298 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9299 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
|  | 9301 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9302 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9303 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9304 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
|  | 9306 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9307 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
|  | 9308 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9309 | case $ac_sys_system in | 
|  | 9310 | CYGWIN*) | 
|  | 9311 | # Cygwin needs CCSHARED when building extension DLLs | 
|  | 9312 | # but not when building the interpreter DLL. | 
|  | 9313 | CFLAGSFORSHARED='';; | 
|  | 9314 | *) | 
|  | 9315 | CFLAGSFORSHARED='$(CCSHARED)' | 
|  | 9316 | esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9317 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
|  | 9319 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9320 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9321 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
|  | 9322 | # library (with --enable-shared). | 
|  | 9323 | # 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] | 9324 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
|  | 9325 | # if it is not required, since it creates a dependency of the shared library | 
|  | 9326 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
|  | 9327 | # don't need to link LIBS explicitly. The default should be only changed | 
|  | 9328 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9329 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
|  | 9331 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9332 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9333 | *) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9334 | SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9335 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
|  | 9337 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9338 |  | 
|  | 9339 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9340 | # checks for libraries | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 | 
|  | 9342 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9343 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9344 | $as_echo_n "(cached) " >&6 | 
|  | 9345 | else | 
|  | 9346 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9347 | LIBS="-lsendfile  $LIBS" | 
|  | 9348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9349 | /* end confdefs.h.  */ | 
|  | 9350 |  | 
|  | 9351 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9352 | Use char because int might match the return type of a GCC | 
|  | 9353 | builtin and then its argument prototype would still apply.  */ | 
|  | 9354 | #ifdef __cplusplus | 
|  | 9355 | extern "C" | 
|  | 9356 | #endif | 
|  | 9357 | char sendfile (); | 
|  | 9358 | int | 
|  | 9359 | main () | 
|  | 9360 | { | 
|  | 9361 | return sendfile (); | 
|  | 9362 | ; | 
|  | 9363 | return 0; | 
|  | 9364 | } | 
|  | 9365 | _ACEOF | 
|  | 9366 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 9367 | ac_cv_lib_sendfile_sendfile=yes | 
|  | 9368 | else | 
|  | 9369 | ac_cv_lib_sendfile_sendfile=no | 
|  | 9370 | fi | 
|  | 9371 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9372 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9373 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9374 | fi | 
|  | 9375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | 
|  | 9376 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9377 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9378 | cat >>confdefs.h <<_ACEOF | 
|  | 9379 | #define HAVE_LIBSENDFILE 1 | 
|  | 9380 | _ACEOF | 
|  | 9381 |  | 
|  | 9382 | LIBS="-lsendfile $LIBS" | 
|  | 9383 |  | 
|  | 9384 | fi | 
|  | 9385 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
|  | 9387 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9388 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9389 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9390 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9391 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9392 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9394 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9395 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9396 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9397 | Use char because int might match the return type of a GCC | 
|  | 9398 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9399 | #ifdef __cplusplus | 
|  | 9400 | extern "C" | 
|  | 9401 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9402 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9403 | int | 
|  | 9404 | main () | 
|  | 9405 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9406 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9407 | ; | 
|  | 9408 | return 0; | 
|  | 9409 | } | 
|  | 9410 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9411 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9412 | ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9413 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9414 | ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9415 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9416 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9417 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9418 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9419 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 9421 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9422 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9423 | cat >>confdefs.h <<_ACEOF | 
|  | 9424 | #define HAVE_LIBDL 1 | 
|  | 9425 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9426 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9427 | LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9428 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9429 | fi | 
|  | 9430 | # Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
|  | 9432 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9433 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9434 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9435 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9436 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9437 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9439 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9440 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9441 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9442 | Use char because int might match the return type of a GCC | 
|  | 9443 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9444 | #ifdef __cplusplus | 
|  | 9445 | extern "C" | 
|  | 9446 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9447 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9448 | int | 
|  | 9449 | main () | 
|  | 9450 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9451 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9452 | ; | 
|  | 9453 | return 0; | 
|  | 9454 | } | 
|  | 9455 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9456 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9457 | ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9458 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9459 | ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9460 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9461 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9462 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9463 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9464 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 9466 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9467 | 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] | 9468 | cat >>confdefs.h <<_ACEOF | 
|  | 9469 | #define HAVE_LIBDLD 1 | 
|  | 9470 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9471 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9472 | LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9473 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9474 | fi | 
|  | 9475 | # Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9476 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 9477 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9478 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
|  | 9480 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9481 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9482 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9483 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9484 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9486 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9487 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9488 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9489 | Use char because int might match the return type of a GCC | 
|  | 9490 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9491 | #ifdef __cplusplus | 
|  | 9492 | extern "C" | 
|  | 9493 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9494 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | int | 
|  | 9496 | main () | 
|  | 9497 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9498 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | ; | 
|  | 9500 | return 0; | 
|  | 9501 | } | 
|  | 9502 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9503 | for ac_lib in '' pthread rt posix4; do | 
|  | 9504 | if test -z "$ac_lib"; then | 
|  | 9505 | ac_res="none required" | 
|  | 9506 | else | 
|  | 9507 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9508 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9509 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9510 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9511 | ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9512 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9513 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9514 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9515 | if ${ac_cv_search_sem_init+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9516 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9517 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9518 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9519 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9520 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9521 | else | 
|  | 9522 | ac_cv_search_sem_init=no | 
|  | 9523 | fi | 
|  | 9524 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9525 | LIBS=$ac_func_search_save_LIBS | 
|  | 9526 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
|  | 9528 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9529 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9530 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9531 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9532 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9533 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9534 | # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9535 | # posix4 on Solaris 2.6 | 
|  | 9536 | # pthread (first!) on Linux | 
|  | 9537 | fi | 
|  | 9538 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9539 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
|  | 9541 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9542 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9543 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9544 | else | 
|  | 9545 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9546 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9548 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9549 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9550 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9551 | Use char because int might match the return type of a GCC | 
|  | 9552 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9553 | #ifdef __cplusplus | 
|  | 9554 | extern "C" | 
|  | 9555 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9556 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9557 | int | 
|  | 9558 | main () | 
|  | 9559 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9560 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9561 | ; | 
|  | 9562 | return 0; | 
|  | 9563 | } | 
|  | 9564 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9565 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9566 | ac_cv_lib_intl_textdomain=yes | 
|  | 9567 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9568 | ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9569 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9570 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9571 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9572 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9573 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
|  | 9575 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9576 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9577 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9578 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9579 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 9580 | LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9581 | fi | 
|  | 9582 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9583 |  | 
|  | 9584 | # checks for system dependent C++ extensions support | 
|  | 9585 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9586 | AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
|  | 9587 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
|  | 9588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9589 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9590 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9591 | #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9592 | int | 
|  | 9593 | main () | 
|  | 9594 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9595 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9596 | ; | 
|  | 9597 | return 0; | 
|  | 9598 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9599 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9600 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9601 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9602 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9603 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9604 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9605 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9607 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9608 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9609 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9610 |  | 
|  | 9611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9612 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9613 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9614 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9615 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9616 | conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9617 | *) ;; | 
|  | 9618 | esac | 
|  | 9619 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9620 | # check for systems that require aligned memory access | 
|  | 9621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | 
|  | 9622 | $as_echo_n "checking aligned memory access is required... " >&6; } | 
|  | 9623 | if test "$cross_compiling" = yes; then : | 
|  | 9624 | aligned_required=yes | 
|  | 9625 | else | 
|  | 9626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9627 | /* end confdefs.h.  */ | 
|  | 9628 |  | 
|  | 9629 | int main() | 
|  | 9630 | { | 
|  | 9631 | char s[16]; | 
|  | 9632 | int i, *p1, *p2; | 
|  | 9633 | for (i=0; i < 16; i++) | 
|  | 9634 | s[i] = i; | 
|  | 9635 | p1 = (int*)(s+1); | 
|  | 9636 | p2 = (int*)(s+2); | 
|  | 9637 | if (*p1 == *p2) | 
|  | 9638 | return 1; | 
|  | 9639 | return 0; | 
|  | 9640 | } | 
|  | 9641 |  | 
|  | 9642 | _ACEOF | 
|  | 9643 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 9644 | aligned_required=no | 
|  | 9645 | else | 
|  | 9646 | aligned_required=yes | 
|  | 9647 | fi | 
|  | 9648 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9649 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 9650 | fi | 
|  | 9651 |  | 
|  | 9652 |  | 
|  | 9653 | if test "$aligned_required" = yes ; then | 
|  | 9654 |  | 
|  | 9655 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | 
|  | 9656 |  | 
|  | 9657 | fi | 
|  | 9658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aligned_required" >&5 | 
|  | 9659 | $as_echo "$aligned_required" >&6; } | 
|  | 9660 |  | 
|  | 9661 |  | 
|  | 9662 | # str, bytes and memoryview hash algorithm | 
|  | 9663 |  | 
|  | 9664 |  | 
|  | 9665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | 
|  | 9666 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | 
|  | 9667 |  | 
|  | 9668 | # Check whether --with-hash_algorithm was given. | 
|  | 9669 | if test "${with_hash_algorithm+set}" = set; then : | 
|  | 9670 | withval=$with_hash_algorithm; | 
|  | 9671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9672 | $as_echo "$withval" >&6; } | 
|  | 9673 | case "$withval" in | 
|  | 9674 | siphash24) | 
|  | 9675 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | 
|  | 9676 |  | 
|  | 9677 | ;; | 
|  | 9678 | fnv) | 
|  | 9679 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | 
|  | 9680 |  | 
|  | 9681 | ;; | 
|  | 9682 | *) | 
|  | 9683 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | 
|  | 9684 | ;; | 
|  | 9685 | esac | 
|  | 9686 |  | 
|  | 9687 | else | 
|  | 9688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | 
|  | 9689 | $as_echo "default" >&6; } | 
|  | 9690 | fi | 
|  | 9691 |  | 
|  | 9692 |  | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 | 
|  | 9694 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | 
|  | 9695 |  | 
|  | 9696 | # Check whether --with-address_sanitizer was given. | 
|  | 9697 | if test "${with_address_sanitizer+set}" = set; then : | 
|  | 9698 | withval=$with_address_sanitizer; | 
|  | 9699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9700 | $as_echo "$withval" >&6; } | 
|  | 9701 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" | 
|  | 9702 | LDFLAGS="-fsanitize=address $LDFLAGS" | 
|  | 9703 |  | 
|  | 9704 | else | 
|  | 9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9706 | $as_echo "no" >&6; } | 
|  | 9707 | fi | 
|  | 9708 |  | 
|  | 9709 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9710 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
|  | 9712 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9713 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9714 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9715 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9716 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9717 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9719 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9720 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9721 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9722 | Use char because int might match the return type of a GCC | 
|  | 9723 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9724 | #ifdef __cplusplus | 
|  | 9725 | extern "C" | 
|  | 9726 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9727 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | int | 
|  | 9729 | main () | 
|  | 9730 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9731 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9732 | ; | 
|  | 9733 | return 0; | 
|  | 9734 | } | 
|  | 9735 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9736 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9737 | ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9738 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9739 | ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9740 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9741 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9742 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9743 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9744 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
|  | 9746 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9747 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9748 | LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9749 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9750 | # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
|  | 9752 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9753 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9754 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9755 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9756 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9757 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9759 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9760 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9761 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9762 | Use char because int might match the return type of a GCC | 
|  | 9763 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9764 | #ifdef __cplusplus | 
|  | 9765 | extern "C" | 
|  | 9766 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9767 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9768 | int | 
|  | 9769 | main () | 
|  | 9770 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9771 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9772 | ; | 
|  | 9773 | return 0; | 
|  | 9774 | } | 
|  | 9775 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9776 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9777 | ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9778 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9779 | ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9780 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9781 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9782 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9783 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9784 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
|  | 9786 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9787 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9788 | LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9789 | fi | 
|  | 9790 | # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9791 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
|  | 9793 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9795 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9796 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9797 | withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9799 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9800 | LIBS="$withval $LIBS" | 
|  | 9801 |  | 
|  | 9802 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9804 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9805 | fi | 
|  | 9806 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9807 |  | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 9808 |  | 
|  | 9809 |  | 
|  | 9810 |  | 
|  | 9811 |  | 
|  | 9812 |  | 
|  | 9813 |  | 
|  | 9814 |  | 
|  | 9815 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
|  | 9816 | if test -n "$ac_tool_prefix"; then | 
|  | 9817 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
|  | 9818 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
|  | 9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9820 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 9821 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
|  | 9822 | $as_echo_n "(cached) " >&6 | 
|  | 9823 | else | 
|  | 9824 | case $PKG_CONFIG in | 
|  | 9825 | [\\/]* | ?:[\\/]*) | 
|  | 9826 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
|  | 9827 | ;; | 
|  | 9828 | *) | 
|  | 9829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9830 | for as_dir in $PATH | 
|  | 9831 | do | 
|  | 9832 | IFS=$as_save_IFS | 
|  | 9833 | test -z "$as_dir" && as_dir=. | 
|  | 9834 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 9835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 9836 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
|  | 9837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 9838 | break 2 | 
|  | 9839 | fi | 
|  | 9840 | done | 
|  | 9841 | done | 
|  | 9842 | IFS=$as_save_IFS | 
|  | 9843 |  | 
|  | 9844 | ;; | 
|  | 9845 | esac | 
|  | 9846 | fi | 
|  | 9847 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
|  | 9848 | if test -n "$PKG_CONFIG"; then | 
|  | 9849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
|  | 9850 | $as_echo "$PKG_CONFIG" >&6; } | 
|  | 9851 | else | 
|  | 9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9853 | $as_echo "no" >&6; } | 
|  | 9854 | fi | 
|  | 9855 |  | 
|  | 9856 |  | 
|  | 9857 | fi | 
|  | 9858 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
|  | 9859 | ac_pt_PKG_CONFIG=$PKG_CONFIG | 
|  | 9860 | # Extract the first word of "pkg-config", so it can be a program name with args. | 
|  | 9861 | set dummy pkg-config; ac_word=$2 | 
|  | 9862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9863 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 9864 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
|  | 9865 | $as_echo_n "(cached) " >&6 | 
|  | 9866 | else | 
|  | 9867 | case $ac_pt_PKG_CONFIG in | 
|  | 9868 | [\\/]* | ?:[\\/]*) | 
|  | 9869 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
|  | 9870 | ;; | 
|  | 9871 | *) | 
|  | 9872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9873 | for as_dir in $PATH | 
|  | 9874 | do | 
|  | 9875 | IFS=$as_save_IFS | 
|  | 9876 | test -z "$as_dir" && as_dir=. | 
|  | 9877 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 9878 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 9879 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
|  | 9880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 9881 | break 2 | 
|  | 9882 | fi | 
|  | 9883 | done | 
|  | 9884 | done | 
|  | 9885 | IFS=$as_save_IFS | 
|  | 9886 |  | 
|  | 9887 | ;; | 
|  | 9888 | esac | 
|  | 9889 | fi | 
|  | 9890 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
|  | 9891 | if test -n "$ac_pt_PKG_CONFIG"; then | 
|  | 9892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
|  | 9893 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
|  | 9894 | else | 
|  | 9895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9896 | $as_echo "no" >&6; } | 
|  | 9897 | fi | 
|  | 9898 |  | 
|  | 9899 | if test "x$ac_pt_PKG_CONFIG" = x; then | 
|  | 9900 | PKG_CONFIG="" | 
|  | 9901 | else | 
|  | 9902 | case $cross_compiling:$ac_tool_warned in | 
|  | 9903 | yes:) | 
|  | 9904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 9905 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 9906 | ac_tool_warned=yes ;; | 
|  | 9907 | esac | 
|  | 9908 | PKG_CONFIG=$ac_pt_PKG_CONFIG | 
|  | 9909 | fi | 
|  | 9910 | else | 
|  | 9911 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
|  | 9912 | fi | 
|  | 9913 |  | 
|  | 9914 | fi | 
|  | 9915 | if test -n "$PKG_CONFIG"; then | 
|  | 9916 | _pkg_min_version=0.9.0 | 
|  | 9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
|  | 9918 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
|  | 9919 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
|  | 9920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9921 | $as_echo "yes" >&6; } | 
|  | 9922 | else | 
|  | 9923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9924 | $as_echo "no" >&6; } | 
|  | 9925 | PKG_CONFIG="" | 
|  | 9926 | fi | 
|  | 9927 | fi | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9928 |  | 
|  | 9929 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
|  | 9931 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9932 |  | 
|  | 9933 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9934 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9935 | withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 9936 | else | 
|  | 9937 | with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9938 | fi | 
|  | 9939 |  | 
|  | 9940 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
|  | 9942 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9943 |  | 
|  | 9944 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
|  | 9946 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9947 |  | 
|  | 9948 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9949 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9950 | withval=$with_system_ffi; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 9951 | else | 
|  | 9952 | with_system_ffi="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9953 | fi | 
|  | 9954 |  | 
|  | 9955 |  | 
|  | 9956 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9957 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
|  | 9958 | else | 
|  | 9959 | LIBFFI_INCLUDEDIR="" | 
|  | 9960 | fi | 
|  | 9961 |  | 
|  | 9962 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
|  | 9964 | $as_echo "$with_system_ffi" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9965 |  | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 9966 | # Check for use of the system libmpdec library | 
|  | 9967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | 
|  | 9968 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | 
|  | 9969 |  | 
|  | 9970 | # Check whether --with-system_libmpdec was given. | 
|  | 9971 | if test "${with_system_libmpdec+set}" = set; then : | 
|  | 9972 | withval=$with_system_libmpdec; | 
|  | 9973 | else | 
|  | 9974 | with_system_libmpdec="no" | 
|  | 9975 | fi | 
|  | 9976 |  | 
|  | 9977 |  | 
|  | 9978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | 
|  | 9979 | $as_echo "$with_system_libmpdec" >&6; } | 
|  | 9980 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 9981 | # Check for support for loadable sqlite extensions | 
|  | 9982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
|  | 9983 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
|  | 9984 | # Check whether --enable-loadable-sqlite-extensions was given. | 
|  | 9985 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
|  | 9986 | enableval=$enable_loadable_sqlite_extensions; | 
|  | 9987 | else | 
|  | 9988 | enable_loadable_sqlite_extensions="no" | 
|  | 9989 | fi | 
|  | 9990 |  | 
|  | 9991 |  | 
|  | 9992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
|  | 9993 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
|  | 9994 |  | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 9995 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path | 
|  | 9996 |  | 
|  | 9997 |  | 
|  | 9998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | 
|  | 9999 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | 
|  | 10000 |  | 
|  | 10001 | # Check whether --with-tcltk-includes was given. | 
|  | 10002 | if test "${with_tcltk_includes+set}" = set; then : | 
|  | 10003 | withval=$with_tcltk_includes; | 
|  | 10004 | else | 
|  | 10005 | with_tcltk_includes="default" | 
|  | 10006 | fi | 
|  | 10007 |  | 
|  | 10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | 
|  | 10009 | $as_echo "$with_tcltk_includes" >&6; } | 
|  | 10010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | 
|  | 10011 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | 
|  | 10012 |  | 
|  | 10013 | # Check whether --with-tcltk-libs was given. | 
|  | 10014 | if test "${with_tcltk_libs+set}" = set; then : | 
|  | 10015 | withval=$with_tcltk_libs; | 
|  | 10016 | else | 
|  | 10017 | with_tcltk_libs="default" | 
|  | 10018 | fi | 
|  | 10019 |  | 
|  | 10020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | 
|  | 10021 | $as_echo "$with_tcltk_libs" >&6; } | 
|  | 10022 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | 
|  | 10023 | then | 
|  | 10024 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | 
|  | 10025 | then | 
|  | 10026 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | 
|  | 10027 | fi | 
|  | 10028 | TCLTK_INCLUDES="" | 
|  | 10029 | TCLTK_LIBS="" | 
|  | 10030 | else | 
|  | 10031 | TCLTK_INCLUDES="$with_tcltk_includes" | 
|  | 10032 | TCLTK_LIBS="$with_tcltk_libs" | 
|  | 10033 | fi | 
|  | 10034 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10035 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
|  | 10037 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10038 |  | 
|  | 10039 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10040 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10041 | withval=$with_dbmliborder; | 
|  | 10042 | if test x$with_dbmliborder = xyes | 
|  | 10043 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10044 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10045 | else | 
|  | 10046 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
|  | 10047 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
|  | 10048 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10049 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10050 | fi | 
|  | 10051 | done | 
|  | 10052 | fi | 
|  | 10053 | fi | 
|  | 10054 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
|  | 10056 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10057 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10058 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10059 |  | 
|  | 10060 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
|  | 10062 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10063 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10064 | # Check whether --with-signal-module was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10065 | if test "${with_signal_module+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10066 | withval=$with_signal_module; | 
|  | 10067 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10068 |  | 
|  | 10069 |  | 
|  | 10070 | if test -z "$with_signal_module" | 
|  | 10071 | then with_signal_module="yes" | 
|  | 10072 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
|  | 10074 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10075 |  | 
|  | 10076 | if test "${with_signal_module}" = "yes"; then | 
|  | 10077 | USE_SIGNAL_MODULE="" | 
|  | 10078 | SIGNAL_OBJS="" | 
|  | 10079 | else | 
|  | 10080 | USE_SIGNAL_MODULE="#" | 
|  | 10081 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
|  | 10082 | fi | 
|  | 10083 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10084 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10085 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10086 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10087 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10088 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10089 |  | 
|  | 10090 | # Templates for things AC_DEFINEd more than once. | 
|  | 10091 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10092 |  | 
|  | 10093 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10094 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
|  | 10096 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10097 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10098 | # Check whether --with-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10099 | if test "${with_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10100 | withval=$with_threads; | 
|  | 10101 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10102 |  | 
|  | 10103 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10104 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10105 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10106 | # Check whether --with-thread was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10107 | if test "${with_thread+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10108 | withval=$with_thread; with_threads=$with_thread | 
|  | 10109 | fi | 
|  | 10110 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10111 |  | 
|  | 10112 | if test -z "$with_threads" | 
|  | 10113 | then with_threads="yes" | 
|  | 10114 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
|  | 10116 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10117 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10118 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10119 | if test "$with_threads" = "no" | 
|  | 10120 | then | 
|  | 10121 | USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10122 | elif test "$ac_cv_pthread_is_default" = yes | 
|  | 10123 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10124 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10125 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10126 | # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10127 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10128 |  | 
|  | 10129 | posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10130 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10131 | elif test "$ac_cv_kpthread" = "yes" | 
|  | 10132 | then | 
|  | 10133 | CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10134 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 10135 | CXX="$CXX -Kpthread" | 
|  | 10136 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10137 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10138 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10139 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10140 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10141 | elif test "$ac_cv_kthread" = "yes" | 
|  | 10142 | then | 
|  | 10143 | CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10144 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 10145 | CXX="$CXX -Kthread" | 
|  | 10146 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10147 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10148 |  | 
|  | 10149 | posix_threads=yes | 
|  | 10150 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10151 | elif test "$ac_cv_pthread" = "yes" | 
|  | 10152 | then | 
|  | 10153 | CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10154 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 10155 | CXX="$CXX -pthread" | 
|  | 10156 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10157 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10158 |  | 
|  | 10159 | posix_threads=yes | 
|  | 10160 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10161 | else | 
|  | 10162 | if test ! -z "$with_threads" -a -d "$with_threads" | 
|  | 10163 | then LDFLAGS="$LDFLAGS -L$with_threads" | 
|  | 10164 | fi | 
|  | 10165 | if test ! -z "$withval" -a -d "$withval" | 
|  | 10166 | then LDFLAGS="$LDFLAGS -L$withval" | 
|  | 10167 | fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10168 |  | 
|  | 10169 | # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10170 | # define _POSIX_THREADS in unistd.h. Some apparently don't | 
|  | 10171 | # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
|  | 10173 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
|  | 10174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10175 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10176 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10177 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10178 | #ifdef _POSIX_THREADS | 
|  | 10179 | yes | 
|  | 10180 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10181 |  | 
|  | 10182 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10183 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10184 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10185 | unistd_defines_pthreads=yes | 
|  | 10186 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10187 | unistd_defines_pthreads=no | 
|  | 10188 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10189 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10190 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
|  | 10192 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10193 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10194 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10195 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10196 | # Just looking for pthread_create in libpthread is not enough: | 
|  | 10197 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
|  | 10198 | # So we really have to include pthread.h, and then link. | 
|  | 10199 | _libs=$LIBS | 
|  | 10200 | LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
|  | 10202 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
|  | 10203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10204 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10205 |  | 
|  | 10206 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10207 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10208 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10209 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10210 | int | 
|  | 10211 | main () | 
|  | 10212 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10213 |  | 
|  | 10214 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10215 | ; | 
|  | 10216 | return 0; | 
|  | 10217 | } | 
|  | 10218 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10219 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10220 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10222 | $as_echo "yes" >&6; } | 
|  | 10223 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10224 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +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" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10227 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10228 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10229 | LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10230 | 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] | 10231 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10232 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10233 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10234 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10235 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10236 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10237 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
|  | 10239 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10240 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10241 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10242 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10243 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10244 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10246 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10247 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10248 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10249 | Use char because int might match the return type of a GCC | 
|  | 10250 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 | #ifdef __cplusplus | 
|  | 10252 | extern "C" | 
|  | 10253 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10254 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10255 | int | 
|  | 10256 | main () | 
|  | 10257 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10258 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10259 | ; | 
|  | 10260 | return 0; | 
|  | 10261 | } | 
|  | 10262 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10263 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10264 | ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10265 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10266 | ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10267 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10268 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10269 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10270 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10271 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
|  | 10273 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10274 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10275 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10276 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10277 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10278 | LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10279 | THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10280 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10281 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
|  | 10283 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10284 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10285 | $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10286 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 | ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10288 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10290 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10291 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10292 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10293 | Use char because int might match the return type of a GCC | 
|  | 10294 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10295 | #ifdef __cplusplus | 
|  | 10296 | extern "C" | 
|  | 10297 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10298 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10299 | int | 
|  | 10300 | main () | 
|  | 10301 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10302 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10303 | ; | 
|  | 10304 | return 0; | 
|  | 10305 | } | 
|  | 10306 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10307 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10308 | ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10309 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10310 | ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10311 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10312 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10313 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10314 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10315 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
|  | 10317 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10318 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10319 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10320 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10321 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10322 | LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10323 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10324 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10325 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
|  | 10327 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10328 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10329 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10330 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10331 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10332 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10334 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10335 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10336 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10337 | Use char because int might match the return type of a GCC | 
|  | 10338 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10339 | #ifdef __cplusplus | 
|  | 10340 | extern "C" | 
|  | 10341 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10342 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10343 | int | 
|  | 10344 | main () | 
|  | 10345 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10346 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10347 | ; | 
|  | 10348 | return 0; | 
|  | 10349 | } | 
|  | 10350 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10351 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10352 | ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10353 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10354 | ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10355 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10356 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10357 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10358 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10359 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
|  | 10361 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10362 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10363 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10364 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10365 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10366 | LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10367 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10368 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10369 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
|  | 10371 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10372 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10373 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10374 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10375 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10376 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10378 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10379 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10380 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10381 | Use char because int might match the return type of a GCC | 
|  | 10382 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10383 | #ifdef __cplusplus | 
|  | 10384 | extern "C" | 
|  | 10385 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10386 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10387 | int | 
|  | 10388 | main () | 
|  | 10389 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10390 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10391 | ; | 
|  | 10392 | return 0; | 
|  | 10393 | } | 
|  | 10394 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10395 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10396 | ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10397 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10398 | ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10399 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10400 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10401 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10402 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10403 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
|  | 10405 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10406 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10407 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10408 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10409 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10410 | LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10411 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10412 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10413 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10414 | USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10415 | fi | 
|  | 10416 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10417 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10418 | fi | 
|  | 10419 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10420 | fi | 
|  | 10421 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10422 | fi | 
|  | 10423 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10424 | fi | 
|  | 10425 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10426 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10427 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10428 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10429 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
|  | 10431 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10432 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10433 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10434 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10435 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10436 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10438 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10439 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10440 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10441 | Use char because int might match the return type of a GCC | 
|  | 10442 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10443 | #ifdef __cplusplus | 
|  | 10444 | extern "C" | 
|  | 10445 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10446 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10447 | int | 
|  | 10448 | main () | 
|  | 10449 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10450 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10451 | ; | 
|  | 10452 | return 0; | 
|  | 10453 | } | 
|  | 10454 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10455 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10456 | ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10457 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10458 | ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10459 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10460 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10461 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10462 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10463 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
|  | 10465 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10466 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10467 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10468 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10469 | LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10470 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10471 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10472 | fi | 
|  | 10473 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10474 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 10475 | if test "$posix_threads" != "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
|  | 10477 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10478 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10479 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10480 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10481 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10482 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10484 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10485 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10486 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10487 | Use char because int might match the return type of a GCC | 
|  | 10488 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10489 | #ifdef __cplusplus | 
|  | 10490 | extern "C" | 
|  | 10491 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10492 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10493 | int | 
|  | 10494 | main () | 
|  | 10495 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10496 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10497 | ; | 
|  | 10498 | return 0; | 
|  | 10499 | } | 
|  | 10500 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10501 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10502 | ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10503 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10504 | ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10505 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10506 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10507 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10508 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10509 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
|  | 10511 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10512 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10513 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10514 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10515 | LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10516 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10517 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10518 | fi | 
|  | 10519 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10520 | fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10521 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10522 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10523 | if test "$posix_threads" = "yes"; then | 
|  | 10524 | if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10525 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10526 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10527 |  | 
|  | 10528 | fi | 
|  | 10529 |  | 
|  | 10530 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
|  | 10531 | case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10532 | SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10533 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10534 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10535 | ;; | 
|  | 10536 | SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10537 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10538 |  | 
|  | 10539 | ;; | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10540 | AIX/*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10541 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 10542 |  | 
|  | 10543 | ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10544 | esac | 
|  | 10545 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
|  | 10547 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10548 | if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10549 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10550 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10551 | if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10552 | ac_cv_pthread_system_supported=no | 
|  | 10553 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10555 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10556 |  | 
|  | 10557 | #include <stdio.h> | 
|  | 10558 | #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10559 | void *foo(void *parm) { | 
|  | 10560 | return NULL; | 
|  | 10561 | } | 
|  | 10562 | main() { | 
|  | 10563 | pthread_attr_t attr; | 
|  | 10564 | pthread_t id; | 
|  | 10565 | if (pthread_attr_init(&attr)) exit(-1); | 
|  | 10566 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
|  | 10567 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
|  | 10568 | exit(0); | 
|  | 10569 | } | 
|  | 10570 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10571 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10572 | ac_cv_pthread_system_supported=yes | 
|  | 10573 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10574 | ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10575 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10576 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 10577 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10578 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10579 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10580 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10581 | fi | 
|  | 10582 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
|  | 10584 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10585 | if test "$ac_cv_pthread_system_supported" = "yes"; then | 
|  | 10586 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10587 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10588 |  | 
|  | 10589 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10590 | for ac_func in pthread_sigmask | 
|  | 10591 | do : | 
|  | 10592 | 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] | 10593 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10594 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10595 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10596 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10597 | case $ac_sys_system in | 
|  | 10598 | CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10599 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10600 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10601 |  | 
|  | 10602 | ;; | 
|  | 10603 | esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10604 | fi | 
|  | 10605 | done | 
|  | 10606 |  | 
| Christian Heimes | f77b4b2 | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 10607 | for ac_func in pthread_atfork | 
|  | 10608 | do : | 
|  | 10609 | ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" | 
|  | 10610 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : | 
|  | 10611 | cat >>confdefs.h <<_ACEOF | 
|  | 10612 | #define HAVE_PTHREAD_ATFORK 1 | 
|  | 10613 | _ACEOF | 
|  | 10614 |  | 
|  | 10615 | fi | 
|  | 10616 | done | 
|  | 10617 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10618 | fi | 
|  | 10619 |  | 
|  | 10620 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10621 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10622 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
|  | 10624 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10625 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10626 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10627 | enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10628 | no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10630 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10631 | ipv6=no | 
|  | 10632 | ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10633 | *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10634 | $as_echo "yes" >&6; } | 
|  | 10635 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10636 |  | 
|  | 10637 | ipv6=yes | 
|  | 10638 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10639 | esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10640 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10641 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10643 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10644 | /* AF_INET6 available check */ | 
|  | 10645 | #include <sys/types.h> | 
|  | 10646 | #include <sys/socket.h> | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10647 | int | 
|  | 10648 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10649 | { | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10650 | int domain = AF_INET6; | 
|  | 10651 | ; | 
|  | 10652 | return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10653 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10654 | _ACEOF | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10655 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10656 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10658 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10659 | ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10660 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10661 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10662 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10664 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10665 | ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10666 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10667 | fi | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10669 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10670 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
|  | 10672 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
|  | 10673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10674 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10675 |  | 
|  | 10676 | #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10677 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10678 | int | 
|  | 10679 | main () | 
|  | 10680 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10681 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10682 | x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10683 | ; | 
|  | 10684 | return 0; | 
|  | 10685 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10686 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10687 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10688 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10689 |  | 
|  | 10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10691 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10692 | ipv6=yes | 
|  | 10693 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10694 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10695 |  | 
|  | 10696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10697 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10698 | ipv6=no | 
|  | 10699 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10700 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10701 | 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] | 10702 | fi | 
|  | 10703 |  | 
|  | 10704 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10705 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10706 |  | 
|  | 10707 | fi | 
|  | 10708 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10709 | fi | 
|  | 10710 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10711 |  | 
|  | 10712 | ipv6type=unknown | 
|  | 10713 | ipv6lib=none | 
|  | 10714 | ipv6trylibc=no | 
|  | 10715 |  | 
|  | 10716 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
|  | 10718 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10719 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
|  | 10720 | do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10721 | case $i in | 
|  | 10722 | inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10724 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10725 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10726 | #include <netinet/in.h> | 
|  | 10727 | #ifdef IPV6_INRIA_VERSION | 
|  | 10728 | yes | 
|  | 10729 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10730 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10731 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10732 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10733 | ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10734 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10735 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10736 |  | 
|  | 10737 | ;; | 
|  | 10738 | kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10740 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10741 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10742 | #include <netinet/in.h> | 
|  | 10743 | #ifdef __KAME__ | 
|  | 10744 | yes | 
|  | 10745 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10746 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10747 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10748 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10749 | ipv6type=$i; | 
|  | 10750 | ipv6lib=inet6 | 
|  | 10751 | ipv6libdir=/usr/local/v6/lib | 
|  | 10752 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10753 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10754 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10755 |  | 
|  | 10756 | ;; | 
|  | 10757 | linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10759 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10760 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10761 | #include <features.h> | 
|  | 10762 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
|  | 10763 | yes | 
|  | 10764 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10765 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10766 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10767 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10768 | ipv6type=$i; | 
|  | 10769 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10770 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10771 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10772 |  | 
|  | 10773 | ;; | 
|  | 10774 | linux-inet6) | 
|  | 10775 | if test -d /usr/inet6; then | 
|  | 10776 | ipv6type=$i | 
|  | 10777 | ipv6lib=inet6 | 
|  | 10778 | ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10779 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10780 | fi | 
|  | 10781 | ;; | 
|  | 10782 | solaris) | 
|  | 10783 | if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10784 | if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10785 | ipv6type=$i | 
|  | 10786 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10787 | fi | 
|  | 10788 | fi | 
|  | 10789 | ;; | 
|  | 10790 | toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10792 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10793 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10794 | #include <sys/param.h> | 
|  | 10795 | #ifdef _TOSHIBA_INET6 | 
|  | 10796 | yes | 
|  | 10797 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10798 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10799 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10800 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10801 | ipv6type=$i; | 
|  | 10802 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10803 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10804 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10805 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10806 |  | 
|  | 10807 | ;; | 
|  | 10808 | v6d) | 
| 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 </usr/local/v6/include/sys/v6config.h> | 
|  | 10813 | #ifdef __V6D__ | 
|  | 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 | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10819 | ipv6type=$i; | 
|  | 10820 | ipv6lib=v6; | 
|  | 10821 | ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10822 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10823 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10824 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10825 |  | 
|  | 10826 | ;; | 
|  | 10827 | zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10829 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10830 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10831 | #include <sys/param.h> | 
|  | 10832 | #ifdef _ZETA_MINAMI_INET6 | 
|  | 10833 | yes | 
|  | 10834 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10835 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10836 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10837 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10838 | ipv6type=$i; | 
|  | 10839 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10840 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10841 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10842 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10843 |  | 
|  | 10844 | ;; | 
|  | 10845 | esac | 
|  | 10846 | if test "$ipv6type" != "unknown"; then | 
|  | 10847 | break | 
|  | 10848 | fi | 
|  | 10849 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
|  | 10851 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10852 | fi | 
|  | 10853 |  | 
|  | 10854 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
|  | 10855 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
|  | 10856 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
|  | 10857 | echo "using lib$ipv6lib" | 
|  | 10858 | else | 
|  | 10859 | if test $ipv6trylibc = "yes"; then | 
|  | 10860 | echo "using libc" | 
|  | 10861 | else | 
|  | 10862 | echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
|  | 10863 | echo "You need to fetch lib$ipv6lib.a from appropriate" | 
|  | 10864 | echo 'ipv6 kit and compile beforehand.' | 
|  | 10865 | exit 1 | 
|  | 10866 | fi | 
|  | 10867 | fi | 
|  | 10868 | fi | 
|  | 10869 |  | 
| Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 10870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 | 
|  | 10871 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | 
|  | 10872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 10873 | /* end confdefs.h.  */ | 
|  | 10874 | /* CAN_RAW_FD_FRAMES available check */ | 
|  | 10875 | #include <linux/can/raw.h> | 
|  | 10876 | int | 
|  | 10877 | main () | 
|  | 10878 | { | 
|  | 10879 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | 
|  | 10880 | ; | 
|  | 10881 | return 0; | 
|  | 10882 | } | 
|  | 10883 | _ACEOF | 
|  | 10884 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 10885 |  | 
|  | 10886 |  | 
|  | 10887 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h | 
|  | 10888 |  | 
|  | 10889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10890 | $as_echo "yes" >&6; } | 
|  | 10891 |  | 
|  | 10892 | else | 
|  | 10893 |  | 
|  | 10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10895 | $as_echo "no" >&6; } | 
|  | 10896 |  | 
|  | 10897 | fi | 
|  | 10898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10899 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
|  | 10901 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
|  | 10902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10903 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10904 |  | 
|  | 10905 | #include <Carbon/Carbon.h> | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10906 | int | 
|  | 10907 | main () | 
|  | 10908 | { | 
|  | 10909 | FSIORefNum fRef = 0 | 
|  | 10910 | ; | 
|  | 10911 | return 0; | 
|  | 10912 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10913 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10914 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10915 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10916 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10917 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10918 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10919 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10921 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10922 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10923 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10924 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10926 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10927 |  | 
|  | 10928 | fi | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10930 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10931 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
|  | 10933 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10934 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10935 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10936 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10937 | withval=$with_doc_strings; | 
|  | 10938 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10939 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10940 |  | 
|  | 10941 | if test -z "$with_doc_strings" | 
|  | 10942 | then with_doc_strings="yes" | 
|  | 10943 | fi | 
|  | 10944 | if test "$with_doc_strings" != "no" | 
|  | 10945 | then | 
|  | 10946 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10947 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10948 |  | 
|  | 10949 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
|  | 10951 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10952 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 10953 | # Check if eval loop should use timestamp counter profiling | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
|  | 10955 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10956 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10957 | # Check whether --with-tsc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10958 | if test "${with_tsc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10959 | withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10960 | if test "$withval" != no | 
|  | 10961 | then | 
|  | 10962 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10963 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10964 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10966 | $as_echo "yes" >&6; } | 
|  | 10967 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10968 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10969 | fi | 
|  | 10970 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10972 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10973 | fi | 
|  | 10974 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10975 |  | 
|  | 10976 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
|  | 10978 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10979 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10980 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10981 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10982 | withval=$with_pymalloc; | 
|  | 10983 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10984 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10985 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10986 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 10987 | then | 
|  | 10988 | with_pymalloc="yes" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10989 | fi | 
|  | 10990 | if test "$with_pymalloc" != "no" | 
|  | 10991 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10992 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10993 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10994 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 10995 | ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10996 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
|  | 10998 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10999 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11000 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
|  | 11002 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11003 |  | 
|  | 11004 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11005 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11006 | withval=$with_valgrind; | 
|  | 11007 | else | 
|  | 11008 | with_valgrind=no | 
|  | 11009 | fi | 
|  | 11010 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
|  | 11012 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11013 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11014 | 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] | 11015 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11016 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11017 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11018 |  | 
|  | 11019 | else | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11020 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11021 |  | 
|  | 11022 | fi | 
|  | 11023 |  | 
|  | 11024 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 11025 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11026 | fi | 
|  | 11027 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11028 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11029 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11030 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11031 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11032 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
|  | 11033 | # 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] | 11034 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11035 | do : | 
|  | 11036 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11037 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11038 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11039 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11040 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11041 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11042 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11043 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11044 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11045 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11046 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
|  | 11047 | # loading of modules. | 
|  | 11048 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
|  | 11050 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11051 | if test -z "$DYNLOADFILE" | 
|  | 11052 | then | 
|  | 11053 | case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 11054 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
|  | 11055 | if test "$ac_cv_func_dlopen" = yes | 
|  | 11056 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 11057 | else DYNLOADFILE="dynload_aix.o" | 
|  | 11058 | fi | 
|  | 11059 | ;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11060 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11061 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
|  | 11062 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11063 | *) | 
|  | 11064 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
|  | 11065 | # out any dynamic loading | 
|  | 11066 | if test "$ac_cv_func_dlopen" = yes | 
|  | 11067 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 11068 | else DYNLOADFILE="dynload_stub.o" | 
|  | 11069 | fi | 
|  | 11070 | ;; | 
|  | 11071 | esac | 
|  | 11072 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
|  | 11074 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11075 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
|  | 11076 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11077 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11078 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11079 |  | 
|  | 11080 | fi | 
|  | 11081 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11082 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
|  | 11083 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11084 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
|  | 11086 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11087 | if test -z "$MACHDEP_OBJS" | 
|  | 11088 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11089 | MACHDEP_OBJS=$extra_machdep_objs | 
|  | 11090 | else | 
|  | 11091 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11092 | fi | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11093 | if test -z "$MACHDEP_OBJS"; then | 
|  | 11094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 11095 | $as_echo "none" >&6; } | 
|  | 11096 | else | 
|  | 11097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | 
|  | 11098 | $as_echo "$MACHDEP_OBJS" >&6; } | 
|  | 11099 | fi | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11100 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11101 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 11102 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 11103 | clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11104 | fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ | 
| Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 11105 | futimens futimes gai_strerror getentropy \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11106 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 11107 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 11108 | if_nameindex \ | 
| Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 11109 | initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ | 
|  | 11110 | memrchr mbrtowc mkdirat mkfifo \ | 
| Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 11111 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11112 | posix_fallocate posix_fadvise pread \ | 
| Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 11113 | pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 11114 | select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ | 
| Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 11115 | setgid sethostname \ | 
| Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 11116 | 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] | 11117 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ | 
|  | 11118 | sched_rr_get_interval \ | 
| Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 11119 | sigaction sigaltstack siginterrupt sigpending sigrelse \ | 
|  | 11120 | sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11121 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11122 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ | 
| Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 11123 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11124 | do : | 
|  | 11125 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11126 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11127 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11128 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11129 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11130 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11131 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11132 | fi | 
|  | 11133 | done | 
|  | 11134 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11135 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11136 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> | 
|  | 11137 | #include <dirent.h> | 
|  | 11138 | " | 
|  | 11139 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | 
|  | 11140 |  | 
|  | 11141 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | 
|  | 11142 |  | 
|  | 11143 | fi | 
|  | 11144 |  | 
|  | 11145 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11146 | # For some functions, having a definition is not sufficient, since | 
|  | 11147 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
|  | 11149 | $as_echo_n "checking for chroot... " >&6; } | 
|  | 11150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11151 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11152 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11153 | int | 
|  | 11154 | main () | 
|  | 11155 | { | 
|  | 11156 | void *x=chroot | 
|  | 11157 | ; | 
|  | 11158 | return 0; | 
|  | 11159 | } | 
|  | 11160 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11161 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11162 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11163 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11164 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11166 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11167 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11169 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11170 |  | 
|  | 11171 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
|  | 11174 | $as_echo_n "checking for link... " >&6; } | 
|  | 11175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11176 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11177 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11178 | int | 
|  | 11179 | main () | 
|  | 11180 | { | 
|  | 11181 | void *x=link | 
|  | 11182 | ; | 
|  | 11183 | return 0; | 
|  | 11184 | } | 
|  | 11185 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11186 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11187 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11188 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11189 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11191 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11192 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11194 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11195 |  | 
|  | 11196 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
|  | 11199 | $as_echo_n "checking for symlink... " >&6; } | 
|  | 11200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11201 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11202 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11203 | int | 
|  | 11204 | main () | 
|  | 11205 | { | 
|  | 11206 | void *x=symlink | 
|  | 11207 | ; | 
|  | 11208 | return 0; | 
|  | 11209 | } | 
|  | 11210 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11211 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11212 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11213 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11214 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11216 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11217 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11219 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11220 |  | 
|  | 11221 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
|  | 11224 | $as_echo_n "checking for fchdir... " >&6; } | 
|  | 11225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11226 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11227 | #include <unistd.h> | 
|  | 11228 | int | 
|  | 11229 | main () | 
|  | 11230 | { | 
|  | 11231 | void *x=fchdir | 
|  | 11232 | ; | 
|  | 11233 | return 0; | 
|  | 11234 | } | 
|  | 11235 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11236 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11237 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11238 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11239 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11241 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11242 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11244 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11245 |  | 
|  | 11246 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
|  | 11249 | $as_echo_n "checking for fsync... " >&6; } | 
|  | 11250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11251 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11252 | #include <unistd.h> | 
|  | 11253 | int | 
|  | 11254 | main () | 
|  | 11255 | { | 
|  | 11256 | void *x=fsync | 
|  | 11257 | ; | 
|  | 11258 | return 0; | 
|  | 11259 | } | 
|  | 11260 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11261 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11262 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11263 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11264 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11266 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11267 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11269 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11270 |  | 
|  | 11271 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
|  | 11274 | $as_echo_n "checking for fdatasync... " >&6; } | 
|  | 11275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11276 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11277 | #include <unistd.h> | 
|  | 11278 | int | 
|  | 11279 | main () | 
|  | 11280 | { | 
|  | 11281 | void *x=fdatasync | 
|  | 11282 | ; | 
|  | 11283 | return 0; | 
|  | 11284 | } | 
|  | 11285 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11286 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11287 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11288 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11289 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11291 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11292 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11294 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11295 |  | 
|  | 11296 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
|  | 11299 | $as_echo_n "checking for epoll... " >&6; } | 
|  | 11300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11301 | /* end confdefs.h.  */ | 
|  | 11302 | #include <sys/epoll.h> | 
|  | 11303 | int | 
|  | 11304 | main () | 
|  | 11305 | { | 
|  | 11306 | void *x=epoll_create | 
|  | 11307 | ; | 
|  | 11308 | return 0; | 
|  | 11309 | } | 
|  | 11310 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11311 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11312 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11313 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11314 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11316 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11317 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11319 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11320 |  | 
|  | 11321 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 | 
|  | 11324 | $as_echo_n "checking for epoll_create1... " >&6; } | 
|  | 11325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11326 | /* end confdefs.h.  */ | 
|  | 11327 | #include <sys/epoll.h> | 
|  | 11328 | int | 
|  | 11329 | main () | 
|  | 11330 | { | 
|  | 11331 | void *x=epoll_create1 | 
|  | 11332 | ; | 
|  | 11333 | return 0; | 
|  | 11334 | } | 
|  | 11335 | _ACEOF | 
|  | 11336 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11337 |  | 
|  | 11338 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | 
|  | 11339 |  | 
|  | 11340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11341 | $as_echo "yes" >&6; } | 
|  | 11342 | else | 
|  | 11343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11344 | $as_echo "no" >&6; } | 
|  | 11345 |  | 
|  | 11346 | fi | 
|  | 11347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
|  | 11349 | $as_echo_n "checking for kqueue... " >&6; } | 
|  | 11350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11351 | /* end confdefs.h.  */ | 
|  | 11352 |  | 
|  | 11353 | #include <sys/types.h> | 
|  | 11354 | #include <sys/event.h> | 
|  | 11355 |  | 
|  | 11356 | int | 
|  | 11357 | main () | 
|  | 11358 | { | 
|  | 11359 | int x=kqueue() | 
|  | 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 : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11365 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11366 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +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; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +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; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11373 |  | 
|  | 11374 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 11376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 | 
|  | 11377 | $as_echo_n "checking for prlimit... " >&6; } | 
|  | 11378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11379 | /* end confdefs.h.  */ | 
|  | 11380 |  | 
|  | 11381 | #include <sys/time.h> | 
|  | 11382 | #include <sys/resource.h> | 
|  | 11383 |  | 
|  | 11384 | int | 
|  | 11385 | main () | 
|  | 11386 | { | 
|  | 11387 | void *x=prlimit | 
|  | 11388 | ; | 
|  | 11389 | return 0; | 
|  | 11390 | } | 
|  | 11391 | _ACEOF | 
|  | 11392 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11393 |  | 
|  | 11394 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | 
|  | 11395 |  | 
|  | 11396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11397 | $as_echo "yes" >&6; } | 
|  | 11398 | else | 
|  | 11399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11400 | $as_echo "no" >&6; } | 
|  | 11401 |  | 
|  | 11402 | fi | 
|  | 11403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11404 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11405 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
|  | 11406 | # functions ctermid_r, setgroups in the library, but no prototype | 
|  | 11407 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
|  | 11408 | # address to avoid compiler warnings and potential miscompilations | 
|  | 11409 | # because of the missing prototypes. | 
|  | 11410 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
|  | 11412 | $as_echo_n "checking for ctermid_r... " >&6; } | 
|  | 11413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11414 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11415 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11416 | #include <stdio.h> | 
|  | 11417 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11418 | int | 
|  | 11419 | main () | 
|  | 11420 | { | 
|  | 11421 | void* p = ctermid_r | 
|  | 11422 | ; | 
|  | 11423 | return 0; | 
|  | 11424 | } | 
|  | 11425 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11426 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11427 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11428 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11429 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11431 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11432 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11434 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11435 |  | 
|  | 11436 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11438 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
|  | 11440 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11441 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11442 | $as_echo_n "(cached) " >&6 | 
|  | 11443 | else | 
|  | 11444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11445 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11446 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11447 | int | 
|  | 11448 | main () | 
|  | 11449 | { | 
|  | 11450 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11451 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11452 | ; | 
|  | 11453 | return 0; | 
|  | 11454 | } | 
|  | 11455 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11456 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11457 | ac_cv_flock_decl=yes | 
|  | 11458 | else | 
|  | 11459 | ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11460 |  | 
|  | 11461 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11463 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11464 | fi | 
|  | 11465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
|  | 11466 | $as_echo "$ac_cv_flock_decl" >&6; } | 
|  | 11467 | if test "x${ac_cv_flock_decl}" = xyes; then | 
|  | 11468 | for ac_func in flock | 
|  | 11469 | do : | 
|  | 11470 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11471 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11472 | cat >>confdefs.h <<_ACEOF | 
|  | 11473 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11474 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11475 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11476 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11477 | { $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] | 11478 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11479 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11480 | $as_echo_n "(cached) " >&6 | 
|  | 11481 | else | 
|  | 11482 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11483 | LIBS="-lbsd  $LIBS" | 
|  | 11484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11485 | /* end confdefs.h.  */ | 
|  | 11486 |  | 
|  | 11487 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11488 | Use char because int might match the return type of a GCC | 
|  | 11489 | builtin and then its argument prototype would still apply.  */ | 
|  | 11490 | #ifdef __cplusplus | 
|  | 11491 | extern "C" | 
|  | 11492 | #endif | 
|  | 11493 | char flock (); | 
|  | 11494 | int | 
|  | 11495 | main () | 
|  | 11496 | { | 
|  | 11497 | return flock (); | 
|  | 11498 | ; | 
|  | 11499 | return 0; | 
|  | 11500 | } | 
|  | 11501 | _ACEOF | 
|  | 11502 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 11503 | ac_cv_lib_bsd_flock=yes | 
|  | 11504 | else | 
|  | 11505 | ac_cv_lib_bsd_flock=no | 
|  | 11506 | fi | 
|  | 11507 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11508 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11509 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11510 | fi | 
|  | 11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
|  | 11512 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11513 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11514 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11515 |  | 
|  | 11516 |  | 
|  | 11517 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
|  | 11518 |  | 
|  | 11519 |  | 
|  | 11520 | fi | 
|  | 11521 |  | 
|  | 11522 |  | 
|  | 11523 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11524 | done | 
|  | 11525 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11526 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11527 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
|  | 11529 | $as_echo_n "checking for getpagesize... " >&6; } | 
|  | 11530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11531 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11532 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11533 | #include <unistd.h> | 
|  | 11534 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11535 | int | 
|  | 11536 | main () | 
|  | 11537 | { | 
|  | 11538 | void* p = getpagesize | 
|  | 11539 | ; | 
|  | 11540 | return 0; | 
|  | 11541 | } | 
|  | 11542 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11543 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11544 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11545 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11546 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11548 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11549 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11551 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11552 |  | 
|  | 11553 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11554 | 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] | 11555 |  | 
| Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 11556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
|  | 11557 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
|  | 11558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11559 | /* end confdefs.h.  */ | 
|  | 11560 |  | 
|  | 11561 | #include <stdlib.h> | 
|  | 11562 |  | 
|  | 11563 | int | 
|  | 11564 | main () | 
|  | 11565 | { | 
|  | 11566 | int res = unsetenv("DUMMY") | 
|  | 11567 | ; | 
|  | 11568 | return 0; | 
|  | 11569 | } | 
|  | 11570 | _ACEOF | 
|  | 11571 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11573 | $as_echo "no" >&6; } | 
|  | 11574 | else | 
|  | 11575 |  | 
|  | 11576 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
|  | 11577 |  | 
|  | 11578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11579 | $as_echo "yes" >&6; } | 
|  | 11580 |  | 
|  | 11581 | fi | 
|  | 11582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11583 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11584 | for ac_prog in true | 
|  | 11585 | do | 
|  | 11586 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 11587 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11589 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11590 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11591 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11592 | else | 
|  | 11593 | if test -n "$TRUE"; then | 
|  | 11594 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
|  | 11595 | else | 
|  | 11596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11597 | for as_dir in $PATH | 
|  | 11598 | do | 
|  | 11599 | IFS=$as_save_IFS | 
|  | 11600 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11601 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11602 | 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] | 11603 | ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11604 | $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] | 11605 | break 2 | 
|  | 11606 | fi | 
|  | 11607 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11608 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11609 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11610 |  | 
|  | 11611 | fi | 
|  | 11612 | fi | 
|  | 11613 | TRUE=$ac_cv_prog_TRUE | 
|  | 11614 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
|  | 11616 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11617 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11619 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11620 | fi | 
|  | 11621 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11622 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11623 | test -n "$TRUE" && break | 
|  | 11624 | done | 
|  | 11625 | test -n "$TRUE" || TRUE="/bin/true" | 
|  | 11626 |  | 
|  | 11627 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
|  | 11629 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11630 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11631 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11632 | else | 
|  | 11633 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11634 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11636 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11637 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11638 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11639 | Use char because int might match the return type of a GCC | 
|  | 11640 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11641 | #ifdef __cplusplus | 
|  | 11642 | extern "C" | 
|  | 11643 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11644 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11645 | int | 
|  | 11646 | main () | 
|  | 11647 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11648 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11649 | ; | 
|  | 11650 | return 0; | 
|  | 11651 | } | 
|  | 11652 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11653 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11654 | ac_cv_lib_c_inet_aton=yes | 
|  | 11655 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11656 | ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11657 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11658 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11659 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11660 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11661 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
|  | 11663 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11664 | 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] | 11665 | $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11666 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
|  | 11668 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11669 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11670 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11671 | else | 
|  | 11672 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11673 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11675 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11676 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11677 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11678 | Use char because int might match the return type of a GCC | 
|  | 11679 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11680 | #ifdef __cplusplus | 
|  | 11681 | extern "C" | 
|  | 11682 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11683 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11684 | int | 
|  | 11685 | main () | 
|  | 11686 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11687 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11688 | ; | 
|  | 11689 | return 0; | 
|  | 11690 | } | 
|  | 11691 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11692 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11693 | ac_cv_lib_resolv_inet_aton=yes | 
|  | 11694 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11695 | ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11696 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11697 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11698 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11699 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11700 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
|  | 11702 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11703 | 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] | 11704 | cat >>confdefs.h <<_ACEOF | 
|  | 11705 | #define HAVE_LIBRESOLV 1 | 
|  | 11706 | _ACEOF | 
|  | 11707 |  | 
|  | 11708 | LIBS="-lresolv $LIBS" | 
|  | 11709 |  | 
|  | 11710 | fi | 
|  | 11711 |  | 
|  | 11712 |  | 
|  | 11713 | fi | 
|  | 11714 |  | 
|  | 11715 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11716 | # On Tru64, chflags seems to be present, but calling it will | 
|  | 11717 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
|  | 11719 | $as_echo_n "checking for chflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11720 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11721 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11722 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11723 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11724 | ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11725 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11727 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11728 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11729 | #include <sys/stat.h> | 
|  | 11730 | #include <unistd.h> | 
|  | 11731 | int main(int argc, char*argv[]) | 
|  | 11732 | { | 
|  | 11733 | if(chflags(argv[0], 0) != 0) | 
|  | 11734 | return 1; | 
|  | 11735 | return 0; | 
|  | 11736 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11737 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11738 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11739 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11740 | ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11741 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11742 | ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11743 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11744 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11745 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11746 | fi | 
|  | 11747 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11748 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11749 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
|  | 11751 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11752 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11753 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11754 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11755 | ac_cv_have_chflags="yes" | 
|  | 11756 | else | 
|  | 11757 | ac_cv_have_chflags="no" | 
|  | 11758 | fi | 
|  | 11759 |  | 
|  | 11760 | fi | 
|  | 11761 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11762 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11763 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11764 |  | 
|  | 11765 | fi | 
|  | 11766 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
|  | 11768 | $as_echo_n "checking for lchflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11769 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11770 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11771 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11772 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11773 | ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11774 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11776 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11777 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11778 | #include <sys/stat.h> | 
|  | 11779 | #include <unistd.h> | 
|  | 11780 | int main(int argc, char*argv[]) | 
|  | 11781 | { | 
|  | 11782 | if(lchflags(argv[0], 0) != 0) | 
|  | 11783 | return 1; | 
|  | 11784 | return 0; | 
|  | 11785 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11786 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11787 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11788 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11789 | ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11790 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11791 | ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11792 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11793 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11794 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11795 | fi | 
|  | 11796 |  | 
|  | 11797 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11798 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
|  | 11800 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11801 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11802 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11803 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11804 | ac_cv_have_lchflags="yes" | 
|  | 11805 | else | 
|  | 11806 | ac_cv_have_lchflags="no" | 
|  | 11807 | fi | 
|  | 11808 |  | 
|  | 11809 | fi | 
|  | 11810 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11811 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11812 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11813 |  | 
|  | 11814 | fi | 
|  | 11815 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11816 | case $ac_sys_system/$ac_sys_release in | 
|  | 11817 | Darwin/*) | 
|  | 11818 | _CUR_CFLAGS="${CFLAGS}" | 
|  | 11819 | _CUR_LDFLAGS="${LDFLAGS}" | 
|  | 11820 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
|  | 11821 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
|  | 11822 | ;; | 
|  | 11823 | esac | 
|  | 11824 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
|  | 11826 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11827 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11828 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11829 | else | 
|  | 11830 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11831 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11833 | /* end confdefs.h.  */ | 
|  | 11834 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11835 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11836 | Use char because int might match the return type of a GCC | 
|  | 11837 | builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11838 | #ifdef __cplusplus | 
|  | 11839 | extern "C" | 
|  | 11840 | #endif | 
|  | 11841 | char inflateCopy (); | 
|  | 11842 | int | 
|  | 11843 | main () | 
|  | 11844 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11845 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11846 | ; | 
|  | 11847 | return 0; | 
|  | 11848 | } | 
|  | 11849 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11850 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11851 | ac_cv_lib_z_inflateCopy=yes | 
|  | 11852 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11853 | ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11854 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11855 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11856 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11857 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11858 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
|  | 11860 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11861 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11862 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11863 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11864 |  | 
|  | 11865 | fi | 
|  | 11866 |  | 
|  | 11867 |  | 
|  | 11868 | case $ac_sys_system/$ac_sys_release in | 
|  | 11869 | Darwin/*) | 
|  | 11870 | CFLAGS="${_CUR_CFLAGS}" | 
|  | 11871 | LDFLAGS="${_CUR_LDFLAGS}" | 
|  | 11872 | ;; | 
|  | 11873 | esac | 
|  | 11874 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
|  | 11876 | $as_echo_n "checking for hstrerror... " >&6; } | 
|  | 11877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11878 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11879 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11880 | #include <netdb.h> | 
|  | 11881 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11882 | int | 
|  | 11883 | main () | 
|  | 11884 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11885 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11886 | ; | 
|  | 11887 | return 0; | 
|  | 11888 | } | 
|  | 11889 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11890 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11891 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11892 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11893 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11895 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11896 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11898 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11899 |  | 
|  | 11900 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11901 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11902 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11903 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
|  | 11905 | $as_echo_n "checking for inet_aton... " >&6; } | 
|  | 11906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11907 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11908 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11909 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11910 | #include <sys/socket.h> | 
|  | 11911 | #include <netinet/in.h> | 
|  | 11912 | #include <arpa/inet.h> | 
|  | 11913 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11914 | int | 
|  | 11915 | main () | 
|  | 11916 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11917 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11918 | ; | 
|  | 11919 | return 0; | 
|  | 11920 | } | 
|  | 11921 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11922 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11923 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11924 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11925 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11927 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11928 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11930 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11931 |  | 
|  | 11932 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11933 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11934 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11935 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
|  | 11937 | $as_echo_n "checking for inet_pton... " >&6; } | 
|  | 11938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11939 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11940 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11941 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11942 | #include <sys/socket.h> | 
|  | 11943 | #include <netinet/in.h> | 
|  | 11944 | #include <arpa/inet.h> | 
|  | 11945 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11946 | int | 
|  | 11947 | main () | 
|  | 11948 | { | 
|  | 11949 | void* p = inet_pton | 
|  | 11950 | ; | 
|  | 11951 | return 0; | 
|  | 11952 | } | 
|  | 11953 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11954 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11955 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11956 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11957 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11959 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11960 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11962 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11963 |  | 
|  | 11964 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11965 | 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] | 11966 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11967 | # 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] | 11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
|  | 11969 | $as_echo_n "checking for setgroups... " >&6; } | 
|  | 11970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11971 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11972 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11973 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11974 | #ifdef HAVE_GRP_H | 
|  | 11975 | #include <grp.h> | 
|  | 11976 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11977 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11978 | int | 
|  | 11979 | main () | 
|  | 11980 | { | 
|  | 11981 | void* p = setgroups | 
|  | 11982 | ; | 
|  | 11983 | return 0; | 
|  | 11984 | } | 
|  | 11985 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11986 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11987 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11988 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11989 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11991 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11992 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11994 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11995 |  | 
|  | 11996 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11997 | 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] | 11998 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11999 | # check for openpty and forkpty | 
|  | 12000 |  | 
|  | 12001 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12002 | do : | 
|  | 12003 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12004 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12005 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12006 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12007 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12008 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12009 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
|  | 12011 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12012 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12013 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12014 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12015 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12016 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12018 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12019 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12020 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12021 | Use char because int might match the return type of a GCC | 
|  | 12022 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12023 | #ifdef __cplusplus | 
|  | 12024 | extern "C" | 
|  | 12025 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12026 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12027 | int | 
|  | 12028 | main () | 
|  | 12029 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12030 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12031 | ; | 
|  | 12032 | return 0; | 
|  | 12033 | } | 
|  | 12034 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12035 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12036 | ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12037 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12038 | ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12039 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12040 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12041 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12042 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12043 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
|  | 12045 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12046 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12047 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12048 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12049 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
|  | 12051 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12052 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12053 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12054 | else | 
|  | 12055 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12056 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12058 | /* end confdefs.h.  */ | 
|  | 12059 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12060 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12061 | Use char because int might match the return type of a GCC | 
|  | 12062 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12063 | #ifdef __cplusplus | 
|  | 12064 | extern "C" | 
|  | 12065 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12066 | char openpty (); | 
|  | 12067 | int | 
|  | 12068 | main () | 
|  | 12069 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12070 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12071 | ; | 
|  | 12072 | return 0; | 
|  | 12073 | } | 
|  | 12074 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12075 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12076 | ac_cv_lib_bsd_openpty=yes | 
|  | 12077 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12078 | ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12079 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12080 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12081 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12082 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12083 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
|  | 12085 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12086 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12087 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12088 | LIBS="$LIBS -lbsd" | 
|  | 12089 | fi | 
|  | 12090 |  | 
|  | 12091 |  | 
|  | 12092 | fi | 
|  | 12093 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12094 |  | 
|  | 12095 | fi | 
|  | 12096 | done | 
|  | 12097 |  | 
|  | 12098 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12099 | do : | 
|  | 12100 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12101 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12102 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12103 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12104 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12105 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12106 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
|  | 12108 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12109 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12110 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12111 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12112 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12113 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12115 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12116 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12117 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12118 | Use char because int might match the return type of a GCC | 
|  | 12119 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12120 | #ifdef __cplusplus | 
|  | 12121 | extern "C" | 
|  | 12122 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12123 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12124 | int | 
|  | 12125 | main () | 
|  | 12126 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12127 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12128 | ; | 
|  | 12129 | return 0; | 
|  | 12130 | } | 
|  | 12131 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12132 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12133 | ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12134 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12135 | ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12136 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12137 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12138 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12140 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
|  | 12142 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12143 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12144 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12145 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12146 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
|  | 12148 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12149 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12150 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12151 | else | 
|  | 12152 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12153 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12155 | /* end confdefs.h.  */ | 
|  | 12156 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12157 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12158 | Use char because int might match the return type of a GCC | 
|  | 12159 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12160 | #ifdef __cplusplus | 
|  | 12161 | extern "C" | 
|  | 12162 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12163 | char forkpty (); | 
|  | 12164 | int | 
|  | 12165 | main () | 
|  | 12166 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12167 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12168 | ; | 
|  | 12169 | return 0; | 
|  | 12170 | } | 
|  | 12171 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12172 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12173 | ac_cv_lib_bsd_forkpty=yes | 
|  | 12174 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12175 | ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12176 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12177 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12178 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12179 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12180 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
|  | 12182 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12183 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12184 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12185 | LIBS="$LIBS -lbsd" | 
|  | 12186 | fi | 
|  | 12187 |  | 
|  | 12188 |  | 
|  | 12189 | fi | 
|  | 12190 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12191 |  | 
|  | 12192 | fi | 
|  | 12193 | done | 
|  | 12194 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12195 |  | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12196 | # Stuff for expat. | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12197 | for ac_func in memmove | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12198 | do : | 
|  | 12199 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12200 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12201 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12202 | #define HAVE_MEMMOVE 1 | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12203 | _ACEOF | 
|  | 12204 |  | 
|  | 12205 | fi | 
|  | 12206 | done | 
|  | 12207 |  | 
|  | 12208 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12209 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12210 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12211 | do : | 
|  | 12212 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 12213 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12214 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12215 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12216 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12217 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12218 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12219 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12220 | done | 
|  | 12221 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12222 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12223 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12224 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12225 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12226 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12227 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12228 | case " $LIBOBJS " in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12229 | *" dup2.$ac_objext "* ) ;; | 
|  | 12230 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12231 | ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12232 | esac | 
|  | 12233 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12234 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12235 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12236 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12237 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12238 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
|  | 12239 |  | 
|  | 12240 | else | 
|  | 12241 | case " $LIBOBJS " in | 
|  | 12242 | *" strdup.$ac_objext "* ) ;; | 
|  | 12243 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
|  | 12244 | ;; | 
|  | 12245 | esac | 
|  | 12246 |  | 
|  | 12247 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12248 |  | 
|  | 12249 |  | 
|  | 12250 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12251 | do : | 
|  | 12252 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12253 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12254 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12255 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12256 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12258 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12259 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12260 | int | 
|  | 12261 | main () | 
|  | 12262 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12263 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12264 | ; | 
|  | 12265 | return 0; | 
|  | 12266 | } | 
|  | 12267 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12268 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12269 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12270 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12271 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12272 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12273 | 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] | 12274 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12275 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12276 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12277 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12278 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12279 | do : | 
|  | 12280 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12281 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12282 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12283 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12284 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12286 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12287 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12288 | int | 
|  | 12289 | main () | 
|  | 12290 | { | 
|  | 12291 | setpgrp(0,0); | 
|  | 12292 | ; | 
|  | 12293 | return 0; | 
|  | 12294 | } | 
|  | 12295 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12296 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12297 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12298 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12299 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12300 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12302 |  | 
|  | 12303 | fi | 
|  | 12304 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12305 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12306 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12307 | do : | 
|  | 12308 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12309 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12310 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12311 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12312 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12314 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12315 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12316 | int | 
|  | 12317 | main () | 
|  | 12318 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12319 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12320 | ; | 
|  | 12321 | return 0; | 
|  | 12322 | } | 
|  | 12323 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12324 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12325 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12326 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12327 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12328 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12329 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12330 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12331 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12332 | 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] | 12333 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12334 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12335 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12336 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12337 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12338 | for ac_func in clock_gettime | 
|  | 12339 | do : | 
|  | 12340 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | 
|  | 12341 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | 
|  | 12342 | cat >>confdefs.h <<_ACEOF | 
|  | 12343 | #define HAVE_CLOCK_GETTIME 1 | 
|  | 12344 | _ACEOF | 
|  | 12345 |  | 
|  | 12346 | else | 
|  | 12347 |  | 
|  | 12348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | 
|  | 12349 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | 
|  | 12350 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | 
|  | 12351 | $as_echo_n "(cached) " >&6 | 
|  | 12352 | else | 
|  | 12353 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12354 | LIBS="-lrt  $LIBS" | 
|  | 12355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12356 | /* end confdefs.h.  */ | 
|  | 12357 |  | 
|  | 12358 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12359 | Use char because int might match the return type of a GCC | 
|  | 12360 | builtin and then its argument prototype would still apply.  */ | 
|  | 12361 | #ifdef __cplusplus | 
|  | 12362 | extern "C" | 
|  | 12363 | #endif | 
|  | 12364 | char clock_gettime (); | 
|  | 12365 | int | 
|  | 12366 | main () | 
|  | 12367 | { | 
|  | 12368 | return clock_gettime (); | 
|  | 12369 | ; | 
|  | 12370 | return 0; | 
|  | 12371 | } | 
|  | 12372 | _ACEOF | 
|  | 12373 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12374 | ac_cv_lib_rt_clock_gettime=yes | 
|  | 12375 | else | 
|  | 12376 | ac_cv_lib_rt_clock_gettime=no | 
|  | 12377 | fi | 
|  | 12378 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12379 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12380 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12381 | fi | 
|  | 12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | 
|  | 12383 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | 
|  | 12384 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | 
|  | 12385 |  | 
| Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 12386 | LIBS="$LIBS -lrt" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12387 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 
|  | 12388 |  | 
|  | 12389 |  | 
|  | 12390 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | 
|  | 12391 |  | 
|  | 12392 |  | 
|  | 12393 | fi | 
|  | 12394 |  | 
|  | 12395 |  | 
|  | 12396 | fi | 
|  | 12397 | done | 
|  | 12398 |  | 
|  | 12399 |  | 
|  | 12400 | for ac_func in clock_getres | 
|  | 12401 | do : | 
|  | 12402 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | 
|  | 12403 | if test "x$ac_cv_func_clock_getres" = xyes; then : | 
|  | 12404 | cat >>confdefs.h <<_ACEOF | 
|  | 12405 | #define HAVE_CLOCK_GETRES 1 | 
|  | 12406 | _ACEOF | 
|  | 12407 |  | 
|  | 12408 | else | 
|  | 12409 |  | 
|  | 12410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | 
|  | 12411 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | 
|  | 12412 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | 
|  | 12413 | $as_echo_n "(cached) " >&6 | 
|  | 12414 | else | 
|  | 12415 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12416 | LIBS="-lrt  $LIBS" | 
|  | 12417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12418 | /* end confdefs.h.  */ | 
|  | 12419 |  | 
|  | 12420 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12421 | Use char because int might match the return type of a GCC | 
|  | 12422 | builtin and then its argument prototype would still apply.  */ | 
|  | 12423 | #ifdef __cplusplus | 
|  | 12424 | extern "C" | 
|  | 12425 | #endif | 
|  | 12426 | char clock_getres (); | 
|  | 12427 | int | 
|  | 12428 | main () | 
|  | 12429 | { | 
|  | 12430 | return clock_getres (); | 
|  | 12431 | ; | 
|  | 12432 | return 0; | 
|  | 12433 | } | 
|  | 12434 | _ACEOF | 
|  | 12435 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12436 | ac_cv_lib_rt_clock_getres=yes | 
|  | 12437 | else | 
|  | 12438 | ac_cv_lib_rt_clock_getres=no | 
|  | 12439 | fi | 
|  | 12440 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12441 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12442 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12443 | fi | 
|  | 12444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | 
|  | 12445 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | 
|  | 12446 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | 
|  | 12447 |  | 
|  | 12448 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | 
|  | 12449 |  | 
|  | 12450 |  | 
|  | 12451 | fi | 
|  | 12452 |  | 
|  | 12453 |  | 
|  | 12454 | fi | 
|  | 12455 | done | 
|  | 12456 |  | 
|  | 12457 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
|  | 12459 | $as_echo_n "checking for major... " >&6; } | 
|  | 12460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12461 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12462 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12463 | #if defined(MAJOR_IN_MKDEV) | 
|  | 12464 | #include <sys/mkdev.h> | 
|  | 12465 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 12466 | #include <sys/sysmacros.h> | 
|  | 12467 | #else | 
|  | 12468 | #include <sys/types.h> | 
|  | 12469 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12470 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12471 | int | 
|  | 12472 | main () | 
|  | 12473 | { | 
|  | 12474 |  | 
|  | 12475 | makedev(major(0),minor(0)); | 
|  | 12476 |  | 
|  | 12477 | ; | 
|  | 12478 | return 0; | 
|  | 12479 | } | 
|  | 12480 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12481 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12482 |  | 
|  | 12483 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12484 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12485 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 12487 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12488 |  | 
|  | 12489 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12490 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12492 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12493 |  | 
|  | 12494 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12495 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12496 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12497 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12498 | # 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] | 12499 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
|  | 12501 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
|  | 12502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12503 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12504 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12505 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12506 | #include <sys/socket.h> | 
|  | 12507 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12508 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12509 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12510 | int | 
|  | 12511 | main () | 
|  | 12512 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12513 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12514 | ; | 
|  | 12515 | return 0; | 
|  | 12516 | } | 
|  | 12517 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12518 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12519 | have_getaddrinfo=yes | 
|  | 12520 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12521 | have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12522 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12523 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12524 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
|  | 12526 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12527 | if test $have_getaddrinfo = yes | 
|  | 12528 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
|  | 12530 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12531 | if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12532 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12533 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12534 | if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12535 |  | 
|  | 12536 | if test "${enable_ipv6+set}" = set; then | 
|  | 12537 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
|  | 12538 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12539 | ac_cv_buggy_getaddrinfo=yes | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12540 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12541 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12543 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12544 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 12545 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12546 | #include <sys/types.h> | 
|  | 12547 | #include <netdb.h> | 
|  | 12548 | #include <string.h> | 
|  | 12549 | #include <sys/socket.h> | 
|  | 12550 | #include <netinet/in.h> | 
|  | 12551 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12552 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12553 | { | 
|  | 12554 | int passive, gaierr, inet4 = 0, inet6 = 0; | 
|  | 12555 | struct addrinfo hints, *ai, *aitop; | 
|  | 12556 | char straddr[INET6_ADDRSTRLEN], strport[16]; | 
|  | 12557 |  | 
|  | 12558 | for (passive = 0; passive <= 1; passive++) { | 
|  | 12559 | memset(&hints, 0, sizeof(hints)); | 
|  | 12560 | hints.ai_family = AF_UNSPEC; | 
|  | 12561 | hints.ai_flags = passive ? AI_PASSIVE : 0; | 
|  | 12562 | hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 12563 | hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12564 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
|  | 12565 | (void)gai_strerror(gaierr); | 
|  | 12566 | goto bad; | 
|  | 12567 | } | 
|  | 12568 | for (ai = aitop; ai; ai = ai->ai_next) { | 
|  | 12569 | if (ai->ai_addr == NULL || | 
|  | 12570 | ai->ai_addrlen == 0 || | 
|  | 12571 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
|  | 12572 | straddr, sizeof(straddr), strport, sizeof(strport), | 
|  | 12573 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
|  | 12574 | goto bad; | 
|  | 12575 | } | 
|  | 12576 | switch (ai->ai_family) { | 
|  | 12577 | case AF_INET: | 
|  | 12578 | if (strcmp(strport, "54321") != 0) { | 
|  | 12579 | goto bad; | 
|  | 12580 | } | 
|  | 12581 | if (passive) { | 
|  | 12582 | if (strcmp(straddr, "0.0.0.0") != 0) { | 
|  | 12583 | goto bad; | 
|  | 12584 | } | 
|  | 12585 | } else { | 
|  | 12586 | if (strcmp(straddr, "127.0.0.1") != 0) { | 
|  | 12587 | goto bad; | 
|  | 12588 | } | 
|  | 12589 | } | 
|  | 12590 | inet4++; | 
|  | 12591 | break; | 
|  | 12592 | case AF_INET6: | 
|  | 12593 | if (strcmp(strport, "54321") != 0) { | 
|  | 12594 | goto bad; | 
|  | 12595 | } | 
|  | 12596 | if (passive) { | 
|  | 12597 | if (strcmp(straddr, "::") != 0) { | 
|  | 12598 | goto bad; | 
|  | 12599 | } | 
|  | 12600 | } else { | 
|  | 12601 | if (strcmp(straddr, "::1") != 0) { | 
|  | 12602 | goto bad; | 
|  | 12603 | } | 
|  | 12604 | } | 
|  | 12605 | inet6++; | 
|  | 12606 | break; | 
|  | 12607 | case AF_UNSPEC: | 
|  | 12608 | goto bad; | 
|  | 12609 | break; | 
|  | 12610 | default: | 
|  | 12611 | /* another family support? */ | 
|  | 12612 | break; | 
|  | 12613 | } | 
|  | 12614 | } | 
|  | 12615 | } | 
|  | 12616 |  | 
|  | 12617 | if (!(inet4 == 0 || inet4 == 2)) | 
|  | 12618 | goto bad; | 
|  | 12619 | if (!(inet6 == 0 || inet6 == 2)) | 
|  | 12620 | goto bad; | 
|  | 12621 |  | 
|  | 12622 | if (aitop) | 
|  | 12623 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12624 | return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12625 |  | 
|  | 12626 | bad: | 
|  | 12627 | if (aitop) | 
|  | 12628 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12629 | return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12630 | } | 
|  | 12631 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12632 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12633 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12634 | ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12635 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12636 | ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12637 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12638 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12639 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12640 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12641 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12642 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12643 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12644 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12645 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
|  | 12647 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
|  | 12648 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12649 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12650 | then | 
|  | 12651 | if test $ipv6 = yes | 
|  | 12652 | then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12653 | echo 'Fatal: You must get working getaddrinfo() function.' | 
|  | 12654 | echo '       or you can specify "--disable-ipv6"'. | 
|  | 12655 | exit 1 | 
|  | 12656 | fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12657 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12658 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12659 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12660 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12661 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12662 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12663 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12664 | do : | 
|  | 12665 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12666 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12667 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12668 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12669 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12670 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12671 | fi | 
|  | 12672 | done | 
|  | 12673 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12674 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12675 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 12677 | $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] | 12678 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12679 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12680 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12682 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12683 | #include <sys/types.h> | 
|  | 12684 | #include <sys/time.h> | 
|  | 12685 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12686 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12687 | int | 
|  | 12688 | main () | 
|  | 12689 | { | 
|  | 12690 | if ((struct tm *) 0) | 
|  | 12691 | return 0; | 
|  | 12692 | ; | 
|  | 12693 | return 0; | 
|  | 12694 | } | 
|  | 12695 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12696 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12697 | ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12698 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12699 | ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12700 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12702 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
|  | 12704 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12705 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12706 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12707 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12708 |  | 
|  | 12709 | fi | 
|  | 12710 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 12712 | $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] | 12713 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12714 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12715 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12717 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12718 | #include <sys/types.h> | 
|  | 12719 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12720 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12721 | int | 
|  | 12722 | main () | 
|  | 12723 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12724 | struct tm tm; | 
|  | 12725 | int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12726 | return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12727 | ; | 
|  | 12728 | return 0; | 
|  | 12729 | } | 
|  | 12730 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12731 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12732 | ac_cv_struct_tm=time.h | 
|  | 12733 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12734 | ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12735 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12737 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
|  | 12739 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12740 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12741 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12742 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12743 |  | 
|  | 12744 | fi | 
|  | 12745 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12746 | 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] | 12747 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12748 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12749 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12750 | 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] | 12751 |  | 
|  | 12752 | cat >>confdefs.h <<_ACEOF | 
|  | 12753 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 12754 | _ACEOF | 
|  | 12755 |  | 
|  | 12756 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12757 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12758 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12759 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 12760 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12761 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12762 |  | 
|  | 12763 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12764 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 12765 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12766 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12767 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12768 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12769 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12770 | fi | 
|  | 12771 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12772 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12773 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12774 | _ACEOF | 
|  | 12775 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 12777 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12778 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12779 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12780 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12782 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12783 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12784 | #if !HAVE_DECL_TZNAME | 
|  | 12785 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12786 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12787 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12788 | int | 
|  | 12789 | main () | 
|  | 12790 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12791 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12792 | ; | 
|  | 12793 | return 0; | 
|  | 12794 | } | 
|  | 12795 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12796 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12797 | ac_cv_var_tzname=yes | 
|  | 12798 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12799 | ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12800 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12801 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12802 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12803 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 12805 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12806 | if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12807 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12808 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12809 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12810 | fi | 
|  | 12811 | fi | 
|  | 12812 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12813 | 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] | 12814 | 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] | 12815 |  | 
|  | 12816 | cat >>confdefs.h <<_ACEOF | 
|  | 12817 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
|  | 12818 | _ACEOF | 
|  | 12819 |  | 
|  | 12820 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12821 | fi | 
|  | 12822 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12823 | 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] | 12824 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12825 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12826 | cat >>confdefs.h <<_ACEOF | 
|  | 12827 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
|  | 12828 | _ACEOF | 
|  | 12829 |  | 
|  | 12830 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12831 | fi | 
|  | 12832 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12833 | 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] | 12834 | 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] | 12835 |  | 
|  | 12836 | cat >>confdefs.h <<_ACEOF | 
|  | 12837 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
|  | 12838 | _ACEOF | 
|  | 12839 |  | 
|  | 12840 |  | 
|  | 12841 | fi | 
|  | 12842 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12843 | 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] | 12844 | 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] | 12845 |  | 
|  | 12846 | cat >>confdefs.h <<_ACEOF | 
|  | 12847 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
|  | 12848 | _ACEOF | 
|  | 12849 |  | 
|  | 12850 |  | 
|  | 12851 | fi | 
|  | 12852 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12853 | 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] | 12854 | 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] | 12855 |  | 
|  | 12856 | cat >>confdefs.h <<_ACEOF | 
|  | 12857 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
|  | 12858 | _ACEOF | 
|  | 12859 |  | 
|  | 12860 |  | 
|  | 12861 | fi | 
|  | 12862 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12863 | 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] | 12864 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12865 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12866 | cat >>confdefs.h <<_ACEOF | 
|  | 12867 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
|  | 12868 | _ACEOF | 
|  | 12869 |  | 
|  | 12870 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12871 | fi | 
|  | 12872 |  | 
| Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 12873 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " | 
|  | 12874 | #include <sys/types.h> | 
|  | 12875 | #include <pwd.h> | 
|  | 12876 |  | 
|  | 12877 | " | 
|  | 12878 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | 
|  | 12879 |  | 
|  | 12880 | cat >>confdefs.h <<_ACEOF | 
|  | 12881 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | 
|  | 12882 | _ACEOF | 
|  | 12883 |  | 
|  | 12884 |  | 
|  | 12885 | fi | 
|  | 12886 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " | 
|  | 12887 | #include <sys/types.h> | 
|  | 12888 | #include <pwd.h> | 
|  | 12889 |  | 
|  | 12890 | " | 
|  | 12891 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : | 
|  | 12892 |  | 
|  | 12893 | cat >>confdefs.h <<_ACEOF | 
|  | 12894 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 | 
|  | 12895 | _ACEOF | 
|  | 12896 |  | 
|  | 12897 |  | 
|  | 12898 | fi | 
|  | 12899 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12900 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
|  | 12902 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12903 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12904 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12905 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12906 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12908 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12909 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12910 | int | 
|  | 12911 | main () | 
|  | 12912 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12913 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12914 | ; | 
|  | 12915 | return 0; | 
|  | 12916 | } | 
|  | 12917 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12918 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12919 | ac_cv_header_time_altzone=yes | 
|  | 12920 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12921 | ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12922 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12924 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12925 | fi | 
|  | 12926 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
|  | 12928 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12929 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12930 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12931 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12932 |  | 
|  | 12933 | fi | 
|  | 12934 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12935 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
|  | 12937 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
|  | 12938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12939 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12940 |  | 
|  | 12941 | #include <sys/types.h> | 
|  | 12942 | #include <sys/select.h> | 
|  | 12943 | #include <sys/time.h> | 
|  | 12944 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12945 | int | 
|  | 12946 | main () | 
|  | 12947 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12948 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12949 | ; | 
|  | 12950 | return 0; | 
|  | 12951 | } | 
|  | 12952 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12953 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12954 |  | 
|  | 12955 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12956 | $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] | 12957 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12958 | was_it_defined=yes | 
|  | 12959 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12960 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 12963 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12964 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
|  | 12966 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12967 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12968 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12969 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12971 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12972 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12973 | int | 
|  | 12974 | main () | 
|  | 12975 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12976 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12977 | ; | 
|  | 12978 | return 0; | 
|  | 12979 | } | 
|  | 12980 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12981 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12982 | ac_cv_struct_addrinfo=yes | 
|  | 12983 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12984 | ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12985 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12987 | fi | 
|  | 12988 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
|  | 12990 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12991 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12992 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12993 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12994 |  | 
|  | 12995 | fi | 
|  | 12996 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
|  | 12998 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12999 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13000 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13001 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13003 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13004 |  | 
|  | 13005 | #		include <sys/types.h> | 
|  | 13006 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13007 | int | 
|  | 13008 | main () | 
|  | 13009 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13010 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13011 | ; | 
|  | 13012 | return 0; | 
|  | 13013 | } | 
|  | 13014 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13015 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13016 | ac_cv_struct_sockaddr_storage=yes | 
|  | 13017 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13018 | ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13019 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13021 | fi | 
|  | 13022 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
|  | 13024 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13025 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13026 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13027 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13028 |  | 
|  | 13029 | fi | 
|  | 13030 |  | 
| Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 | 
|  | 13032 | $as_echo_n "checking for sockaddr_alg... " >&6; } | 
|  | 13033 | if ${ac_cv_struct_sockaddr_alg+:} false; then : | 
|  | 13034 | $as_echo_n "(cached) " >&6 | 
|  | 13035 | else | 
|  | 13036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13037 | /* end confdefs.h.  */ | 
|  | 13038 |  | 
|  | 13039 | #		include <sys/types.h> | 
|  | 13040 | #		include <sys/socket.h> | 
|  | 13041 | #		include <linux/if_alg.h> | 
|  | 13042 | int | 
|  | 13043 | main () | 
|  | 13044 | { | 
|  | 13045 | struct sockaddr_alg s | 
|  | 13046 | ; | 
|  | 13047 | return 0; | 
|  | 13048 | } | 
|  | 13049 | _ACEOF | 
|  | 13050 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13051 | ac_cv_struct_sockaddr_alg=yes | 
|  | 13052 | else | 
|  | 13053 | ac_cv_struct_sockaddr_alg=no | 
|  | 13054 | fi | 
|  | 13055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13056 | fi | 
|  | 13057 |  | 
|  | 13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 | 
|  | 13059 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } | 
|  | 13060 | if test $ac_cv_struct_sockaddr_alg = yes; then | 
|  | 13061 |  | 
|  | 13062 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h | 
|  | 13063 |  | 
|  | 13064 | fi | 
|  | 13065 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13066 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13067 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
|  | 13069 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13070 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13071 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13072 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13074 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13075 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | int | 
|  | 13077 | main () | 
|  | 13078 | { | 
|  | 13079 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13080 | test_array [0] = 0; | 
|  | 13081 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13082 |  | 
|  | 13083 | ; | 
|  | 13084 | return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13085 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13086 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13087 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13088 | ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13089 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13090 | ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13091 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13093 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
|  | 13095 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13096 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13097 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13098 |  | 
|  | 13099 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13100 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
|  | 13102 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13103 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13104 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13107 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13108 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13109 | int | 
|  | 13110 | main () | 
|  | 13111 | { | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13112 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13113 | #ifndef __cplusplus | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13114 | /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13115 | typedef int charset[2]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13116 | const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13117 | /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13118 | char const *const *pcpcc; | 
|  | 13119 | char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13120 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 13121 | struct point {int x, y;}; | 
|  | 13122 | static struct point const zero = {0,0}; | 
|  | 13123 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 13124 | It does not let you subtract one const X* pointer from another in | 
|  | 13125 | an arm of an if-expression whose if-part is not a constant | 
|  | 13126 | expression */ | 
|  | 13127 | const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13128 | pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13129 | /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13130 | ++pcpcc; | 
|  | 13131 | ppc = (char**) pcpcc; | 
|  | 13132 | pcpcc = (char const *const *) ppc; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13133 | { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
|  | 13134 | char tx; | 
|  | 13135 | char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13136 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13137 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13138 | *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13139 | if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13140 | } | 
|  | 13141 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|  | 13142 | int x[] = {25, 17}; | 
|  | 13143 | const int *foo = &x[0]; | 
|  | 13144 | ++foo; | 
|  | 13145 | } | 
|  | 13146 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 13147 | typedef const int *iptr; | 
|  | 13148 | iptr p = 0; | 
|  | 13149 | ++p; | 
|  | 13150 | } | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13151 | { /* 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] | 13152 | "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] | 13153 | struct s { int j; const int *ap[3]; } bx; | 
|  | 13154 | struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13155 | } | 
|  | 13156 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 13157 | const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13158 | if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13159 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13160 | return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13161 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13162 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13163 | ; | 
|  | 13164 | return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13165 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13166 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13167 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13168 | ac_cv_c_const=yes | 
|  | 13169 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13170 | ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13171 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13173 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
|  | 13175 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13176 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13177 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13178 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13179 |  | 
|  | 13180 | fi | 
|  | 13181 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13182 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13183 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
|  | 13185 | $as_echo_n "checking for working volatile... " >&6; } | 
|  | 13186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13187 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13188 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13189 | int | 
|  | 13190 | main () | 
|  | 13191 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13192 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13193 | ; | 
|  | 13194 | return 0; | 
|  | 13195 | } | 
|  | 13196 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13197 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13198 | works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13199 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13200 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13201 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13202 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13203 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13204 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13207 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13208 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13209 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
|  | 13211 | $as_echo_n "checking for working signed char... " >&6; } | 
|  | 13212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13213 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13214 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13215 | int | 
|  | 13216 | main () | 
|  | 13217 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13218 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13219 | ; | 
|  | 13220 | return 0; | 
|  | 13221 | } | 
|  | 13222 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13223 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13224 | works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13225 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13226 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13227 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13228 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13229 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13230 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13233 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13234 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13235 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
|  | 13237 | $as_echo_n "checking for prototypes... " >&6; } | 
|  | 13238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13239 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13240 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13241 | int | 
|  | 13242 | main () | 
|  | 13243 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13244 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13245 | ; | 
|  | 13246 | return 0; | 
|  | 13247 | } | 
|  | 13248 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13249 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13250 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13251 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13252 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13253 | have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13254 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
|  | 13257 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13258 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13259 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
|  | 13261 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
|  | 13262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13263 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13264 |  | 
|  | 13265 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13266 | int foo(int x, ...) { | 
|  | 13267 | va_list va; | 
|  | 13268 | va_start(va, x); | 
|  | 13269 | va_arg(va, int); | 
|  | 13270 | va_arg(va, char *); | 
|  | 13271 | va_arg(va, double); | 
|  | 13272 | return 0; | 
|  | 13273 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13274 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13275 | int | 
|  | 13276 | main () | 
|  | 13277 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13278 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13279 | ; | 
|  | 13280 | return 0; | 
|  | 13281 | } | 
|  | 13282 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13283 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13284 |  | 
|  | 13285 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13286 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13287 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13288 | works=yes | 
|  | 13289 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13290 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13293 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13294 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13295 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
|  | 13297 | $as_echo_n "checking for socketpair... " >&6; } | 
|  | 13298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13299 | /* end confdefs.h.  */ | 
|  | 13300 |  | 
|  | 13301 | #include <sys/types.h> | 
|  | 13302 | #include <sys/socket.h> | 
|  | 13303 |  | 
|  | 13304 | int | 
|  | 13305 | main () | 
|  | 13306 | { | 
|  | 13307 | void *x=socketpair | 
|  | 13308 | ; | 
|  | 13309 | return 0; | 
|  | 13310 | } | 
|  | 13311 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13312 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13313 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13314 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13315 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13317 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13318 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13320 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13321 |  | 
|  | 13322 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13323 | 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] | 13324 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13325 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
|  | 13327 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
|  | 13328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13329 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13330 | #include <sys/types.h> | 
|  | 13331 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13332 | int | 
|  | 13333 | main () | 
|  | 13334 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13335 | struct sockaddr x; | 
|  | 13336 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13337 | ; | 
|  | 13338 | return 0; | 
|  | 13339 | } | 
|  | 13340 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13341 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13343 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13344 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13345 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13346 |  | 
|  | 13347 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13349 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13350 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13351 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13352 | 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] | 13353 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13354 | va_list_is_array=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
|  | 13356 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
|  | 13357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13358 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13359 |  | 
|  | 13360 | #ifdef HAVE_STDARG_PROTOTYPES | 
|  | 13361 | #include <stdarg.h> | 
|  | 13362 | #else | 
|  | 13363 | #include <varargs.h> | 
|  | 13364 | #endif | 
|  | 13365 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13366 | int | 
|  | 13367 | main () | 
|  | 13368 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13369 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13370 | ; | 
|  | 13371 | return 0; | 
|  | 13372 | } | 
|  | 13373 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13374 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13375 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13376 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13377 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13378 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13379 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13380 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13381 | va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13382 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13383 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
|  | 13386 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13387 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13388 | # 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] | 13389 |  | 
|  | 13390 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13391 | 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] | 13392 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13393 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13394 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13395 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
|  | 13397 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13398 | OLD_CFLAGS=$CFLAGS | 
|  | 13399 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 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 | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13402 |  | 
|  | 13403 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13404 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13405 | int | 
|  | 13406 | main () | 
|  | 13407 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13408 |  | 
|  | 13409 | char *name; | 
|  | 13410 | struct hostent *he, *res; | 
|  | 13411 | char buffer[2048]; | 
|  | 13412 | int buflen = 2048; | 
|  | 13413 | int h_errnop; | 
|  | 13414 |  | 
|  | 13415 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13416 |  | 
|  | 13417 | ; | 
|  | 13418 | return 0; | 
|  | 13419 | } | 
|  | 13420 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13421 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13422 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13423 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13424 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13425 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13426 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13427 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13429 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13431 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13432 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13434 | $as_echo "no" >&6; } | 
|  | 13435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
|  | 13436 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
|  | 13437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13438 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13439 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13440 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13441 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13442 | int | 
|  | 13443 | main () | 
|  | 13444 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13445 |  | 
|  | 13446 | char *name; | 
|  | 13447 | struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13448 | char buffer[2048]; | 
|  | 13449 | int buflen = 2048; | 
|  | 13450 | int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13451 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13452 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13453 |  | 
|  | 13454 | ; | 
|  | 13455 | return 0; | 
|  | 13456 | } | 
|  | 13457 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13458 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13459 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13460 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13461 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13462 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13463 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13464 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13466 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13467 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13468 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13469 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13471 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
|  | 13473 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
|  | 13474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13475 | /* end confdefs.h.  */ | 
|  | 13476 |  | 
|  | 13477 | #           include <netdb.h> | 
|  | 13478 |  | 
|  | 13479 | int | 
|  | 13480 | main () | 
|  | 13481 | { | 
|  | 13482 |  | 
|  | 13483 | char *name; | 
|  | 13484 | struct hostent *he; | 
|  | 13485 | struct hostent_data data; | 
|  | 13486 |  | 
|  | 13487 | (void) gethostbyname_r(name, he, &data); | 
|  | 13488 |  | 
|  | 13489 | ; | 
|  | 13490 | return 0; | 
|  | 13491 | } | 
|  | 13492 | _ACEOF | 
|  | 13493 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13494 |  | 
|  | 13495 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
|  | 13496 |  | 
|  | 13497 |  | 
|  | 13498 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
|  | 13499 |  | 
|  | 13500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13501 | $as_echo "yes" >&6; } | 
|  | 13502 |  | 
|  | 13503 | else | 
|  | 13504 |  | 
|  | 13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13506 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13507 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13508 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13509 | 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] | 13510 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13511 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13512 | 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] | 13513 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13514 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13516 | CFLAGS=$OLD_CFLAGS | 
|  | 13517 |  | 
|  | 13518 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13519 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13520 | for ac_func in gethostbyname | 
|  | 13521 | do : | 
|  | 13522 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13523 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13524 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13525 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13526 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13527 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13528 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13529 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13530 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13531 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13532 | fi | 
|  | 13533 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13534 |  | 
|  | 13535 |  | 
|  | 13536 |  | 
|  | 13537 |  | 
|  | 13538 |  | 
|  | 13539 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13540 | # checks for system services | 
|  | 13541 | # (none yet) | 
|  | 13542 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13543 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13544 | 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] | 13545 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13546 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13547 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
|  | 13549 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13550 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13551 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13552 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13553 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13554 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13556 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13557 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13558 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13559 | Use char because int might match the return type of a GCC | 
|  | 13560 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13561 | #ifdef __cplusplus | 
|  | 13562 | extern "C" | 
|  | 13563 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13564 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13565 | int | 
|  | 13566 | main () | 
|  | 13567 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13568 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13569 | ; | 
|  | 13570 | return 0; | 
|  | 13571 | } | 
|  | 13572 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13573 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13574 | ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13575 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13576 | ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13577 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13578 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13579 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13580 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13581 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
|  | 13583 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13584 | 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] | 13585 | cat >>confdefs.h <<_ACEOF | 
|  | 13586 | #define HAVE_LIBIEEE 1 | 
|  | 13587 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13588 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13589 | LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13590 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13591 | fi | 
|  | 13592 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13593 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13594 | fi | 
|  | 13595 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13596 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13597 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
|  | 13599 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13600 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13601 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13602 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13603 | withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13604 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13605 | then | 
|  | 13606 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13607 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13608 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13610 | $as_echo "yes" >&6; } | 
|  | 13611 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13612 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13613 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13614 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13616 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13617 | fi | 
|  | 13618 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13619 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13620 | # check for --with-libm=... | 
|  | 13621 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13622 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 13623 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13624 | *) LIBM=-lm | 
|  | 13625 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
|  | 13627 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13628 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13629 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13630 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13631 | withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13632 | if test "$withval" = no | 
|  | 13633 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
|  | 13635 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13636 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13637 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
|  | 13639 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13640 | 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] | 13641 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13642 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
|  | 13644 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13645 | fi | 
|  | 13646 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13647 |  | 
|  | 13648 | # check for --with-libc=... | 
|  | 13649 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
|  | 13651 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13652 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13653 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13654 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13655 | withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13656 | if test "$withval" = no | 
|  | 13657 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
|  | 13659 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13660 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13661 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
|  | 13663 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13664 | 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] | 13665 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13666 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
|  | 13668 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13669 | fi | 
|  | 13670 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13671 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13672 | # ************************************** | 
|  | 13673 | # * Check for gcc x64 inline assembler * | 
|  | 13674 | # ************************************** | 
|  | 13675 |  | 
|  | 13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | 
|  | 13677 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | 
|  | 13678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13679 | /* end confdefs.h.  */ | 
|  | 13680 |  | 
|  | 13681 | int | 
|  | 13682 | main () | 
|  | 13683 | { | 
|  | 13684 |  | 
|  | 13685 | __asm__ __volatile__ ("movq %rcx, %rax"); | 
|  | 13686 |  | 
|  | 13687 | ; | 
|  | 13688 | return 0; | 
|  | 13689 | } | 
|  | 13690 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13691 | if ac_fn_c_try_link "$LINENO"; then : | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13692 | have_gcc_asm_for_x64=yes | 
|  | 13693 | else | 
|  | 13694 | have_gcc_asm_for_x64=no | 
|  | 13695 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13696 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13697 | conftest$ac_exeext conftest.$ac_ext | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 | 
|  | 13699 | $as_echo "$have_gcc_asm_for_x64" >&6; } | 
|  | 13700 | if test "$have_gcc_asm_for_x64" = yes | 
|  | 13701 | then | 
|  | 13702 |  | 
|  | 13703 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | 
|  | 13704 |  | 
|  | 13705 | fi | 
|  | 13706 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13707 | # ************************************************** | 
|  | 13708 | # * Check for various properties of floating point * | 
|  | 13709 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13710 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
|  | 13712 | $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] | 13713 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13714 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13715 | else | 
|  | 13716 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13717 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13718 | ac_cv_little_endian_double=no | 
|  | 13719 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13721 | /* end confdefs.h.  */ | 
|  | 13722 |  | 
|  | 13723 | #include <string.h> | 
|  | 13724 | int main() { | 
|  | 13725 | double x = 9006104071832581.0; | 
|  | 13726 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
|  | 13727 | return 0; | 
|  | 13728 | else | 
|  | 13729 | return 1; | 
|  | 13730 | } | 
|  | 13731 |  | 
|  | 13732 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13733 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13734 | ac_cv_little_endian_double=yes | 
|  | 13735 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13736 | ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13737 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13738 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13739 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13740 | fi | 
|  | 13741 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13742 | fi | 
|  | 13743 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
|  | 13745 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13746 | if test "$ac_cv_little_endian_double" = yes | 
|  | 13747 | then | 
|  | 13748 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13749 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13750 |  | 
|  | 13751 | fi | 
|  | 13752 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
|  | 13754 | $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] | 13755 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13756 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13757 | else | 
|  | 13758 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13759 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13760 | ac_cv_big_endian_double=no | 
|  | 13761 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13763 | /* end confdefs.h.  */ | 
|  | 13764 |  | 
|  | 13765 | #include <string.h> | 
|  | 13766 | int main() { | 
|  | 13767 | double x = 9006104071832581.0; | 
|  | 13768 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
|  | 13769 | return 0; | 
|  | 13770 | else | 
|  | 13771 | return 1; | 
|  | 13772 | } | 
|  | 13773 |  | 
|  | 13774 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13775 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13776 | ac_cv_big_endian_double=yes | 
|  | 13777 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13778 | ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13779 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13780 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13781 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13782 | fi | 
|  | 13783 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13784 | fi | 
|  | 13785 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
|  | 13787 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13788 | if test "$ac_cv_big_endian_double" = yes | 
|  | 13789 | then | 
|  | 13790 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13791 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13792 |  | 
|  | 13793 | fi | 
|  | 13794 |  | 
|  | 13795 | # Some ARM platforms use a mixed-endian representation for doubles. | 
|  | 13796 | # While Python doesn't currently have full support for these platforms | 
|  | 13797 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
|  | 13798 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
|  | 13800 | $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] | 13801 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13802 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13803 | else | 
|  | 13804 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13805 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13806 | ac_cv_mixed_endian_double=no | 
|  | 13807 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13809 | /* end confdefs.h.  */ | 
|  | 13810 |  | 
|  | 13811 | #include <string.h> | 
|  | 13812 | int main() { | 
|  | 13813 | double x = 9006104071832581.0; | 
|  | 13814 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
|  | 13815 | return 0; | 
|  | 13816 | else | 
|  | 13817 | return 1; | 
|  | 13818 | } | 
|  | 13819 |  | 
|  | 13820 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13821 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13822 | ac_cv_mixed_endian_double=yes | 
|  | 13823 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13824 | ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13825 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13826 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13827 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13828 | fi | 
|  | 13829 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13830 | fi | 
|  | 13831 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
|  | 13833 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13834 | if test "$ac_cv_mixed_endian_double" = yes | 
|  | 13835 | then | 
|  | 13836 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13837 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13838 |  | 
|  | 13839 | fi | 
|  | 13840 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13841 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13842 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13843 | # 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] | 13844 | # 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] | 13845 | # 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] | 13846 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13847 |  | 
|  | 13848 | # This inline assembler syntax may also work for suncc and icc, | 
|  | 13849 | # so we try it on all platforms. | 
|  | 13850 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
|  | 13852 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
|  | 13853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13854 | /* end confdefs.h.  */ | 
|  | 13855 |  | 
|  | 13856 | int | 
|  | 13857 | main () | 
|  | 13858 | { | 
|  | 13859 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13860 | unsigned short cw; | 
|  | 13861 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
|  | 13862 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13863 |  | 
|  | 13864 | ; | 
|  | 13865 | return 0; | 
|  | 13866 | } | 
|  | 13867 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13868 | if ac_fn_c_try_link "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13869 | have_gcc_asm_for_x87=yes | 
|  | 13870 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13871 | have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13872 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13873 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13874 | conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
|  | 13876 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13877 | if test "$have_gcc_asm_for_x87" = yes | 
|  | 13878 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13879 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13880 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13881 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13882 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13883 |  | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 | 
|  | 13885 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | 
|  | 13886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13887 | /* end confdefs.h.  */ | 
|  | 13888 |  | 
|  | 13889 | int | 
|  | 13890 | main () | 
|  | 13891 | { | 
|  | 13892 |  | 
|  | 13893 | unsigned int fpcr; | 
|  | 13894 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | 
|  | 13895 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | 
|  | 13896 |  | 
|  | 13897 | ; | 
|  | 13898 | return 0; | 
|  | 13899 | } | 
|  | 13900 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13901 | if ac_fn_c_try_link "$LINENO"; then : | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13902 | have_gcc_asm_for_mc68881=yes | 
|  | 13903 | else | 
|  | 13904 | have_gcc_asm_for_mc68881=no | 
|  | 13905 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13906 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13907 | conftest$ac_exeext conftest.$ac_ext | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 | 
|  | 13909 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | 
|  | 13910 | if test "$have_gcc_asm_for_mc68881" = yes | 
|  | 13911 | then | 
|  | 13912 |  | 
|  | 13913 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h | 
|  | 13914 |  | 
|  | 13915 | fi | 
|  | 13916 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13917 | # Detect whether system arithmetic is subject to x87-style double | 
|  | 13918 | # rounding issues.  The result of this test has little meaning on non | 
|  | 13919 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
|  | 13920 | # mode is round-to-nearest and double rounding issues are present, and | 
|  | 13921 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
|  | 13923 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13924 | # $BASECFLAGS may affect the result | 
|  | 13925 | ac_save_cc="$CC" | 
|  | 13926 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13927 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13928 | ac_cv_x87_double_rounding=no | 
|  | 13929 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13931 | /* end confdefs.h.  */ | 
|  | 13932 |  | 
|  | 13933 | #include <stdlib.h> | 
|  | 13934 | #include <math.h> | 
|  | 13935 | int main() { | 
|  | 13936 | volatile double x, y, z; | 
|  | 13937 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
|  | 13938 | x = 0.99999999999999989; /* 1-2**-53 */ | 
|  | 13939 | y = 1./x; | 
|  | 13940 | if (y != 1.) | 
|  | 13941 | exit(0); | 
|  | 13942 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
|  | 13943 | x = 1e16; | 
|  | 13944 | y = 2.99999; | 
|  | 13945 | z = x + y; | 
|  | 13946 | if (z != 1e16+4.) | 
|  | 13947 | exit(0); | 
|  | 13948 | /* both tests show evidence of double rounding */ | 
|  | 13949 | exit(1); | 
|  | 13950 | } | 
|  | 13951 |  | 
|  | 13952 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13953 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13954 | ac_cv_x87_double_rounding=no | 
|  | 13955 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13956 | ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13957 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13958 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13959 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13960 | fi | 
|  | 13961 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13962 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
|  | 13964 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13965 | if test "$ac_cv_x87_double_rounding" = yes | 
|  | 13966 | then | 
|  | 13967 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13968 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13969 |  | 
|  | 13970 | fi | 
|  | 13971 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13972 | # ************************************ | 
|  | 13973 | # * Check for mathematical functions * | 
|  | 13974 | # ************************************ | 
|  | 13975 |  | 
|  | 13976 | LIBS_SAVE=$LIBS | 
|  | 13977 | LIBS="$LIBS $LIBM" | 
|  | 13978 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13979 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
|  | 13980 | do : | 
|  | 13981 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 13982 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13983 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13984 | cat >>confdefs.h <<_ACEOF | 
|  | 13985 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 13986 | _ACEOF | 
|  | 13987 |  | 
|  | 13988 | fi | 
|  | 13989 | done | 
|  | 13990 |  | 
| Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 13991 | for ac_func in hypot lgamma log1p log2 round tgamma | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13992 | do : | 
|  | 13993 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 13994 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13995 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13996 | cat >>confdefs.h <<_ACEOF | 
|  | 13997 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 13998 | _ACEOF | 
|  | 13999 |  | 
|  | 14000 | fi | 
|  | 14001 | done | 
|  | 14002 |  | 
|  | 14003 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
|  | 14004 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14005 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14006 | ac_have_decl=1 | 
|  | 14007 | else | 
|  | 14008 | ac_have_decl=0 | 
|  | 14009 | fi | 
|  | 14010 |  | 
|  | 14011 | cat >>confdefs.h <<_ACEOF | 
|  | 14012 | #define HAVE_DECL_ISINF $ac_have_decl | 
|  | 14013 | _ACEOF | 
|  | 14014 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
|  | 14015 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14016 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14017 | ac_have_decl=1 | 
|  | 14018 | else | 
|  | 14019 | ac_have_decl=0 | 
|  | 14020 | fi | 
|  | 14021 |  | 
|  | 14022 | cat >>confdefs.h <<_ACEOF | 
|  | 14023 | #define HAVE_DECL_ISNAN $ac_have_decl | 
|  | 14024 | _ACEOF | 
|  | 14025 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
|  | 14026 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14027 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14028 | ac_have_decl=1 | 
|  | 14029 | else | 
|  | 14030 | ac_have_decl=0 | 
|  | 14031 | fi | 
|  | 14032 |  | 
|  | 14033 | cat >>confdefs.h <<_ACEOF | 
|  | 14034 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
|  | 14035 | _ACEOF | 
|  | 14036 |  | 
|  | 14037 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14038 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
|  | 14039 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
|  | 14041 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14042 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14043 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14044 | else | 
|  | 14045 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14046 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14047 | ac_cv_tanh_preserves_zero_sign=no | 
|  | 14048 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14050 | /* end confdefs.h.  */ | 
|  | 14051 |  | 
|  | 14052 | #include <math.h> | 
|  | 14053 | #include <stdlib.h> | 
|  | 14054 | int main() { | 
|  | 14055 | /* return 0 if either negative zeros don't exist | 
|  | 14056 | on this platform or if negative zeros exist | 
|  | 14057 | and tanh(-0.) == -0. */ | 
|  | 14058 | if (atan2(0., -1.) == atan2(-0., -1.) || | 
|  | 14059 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
|  | 14060 | else exit(1); | 
|  | 14061 | } | 
|  | 14062 |  | 
|  | 14063 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14064 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14065 | ac_cv_tanh_preserves_zero_sign=yes | 
|  | 14066 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14067 | ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14068 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14069 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14070 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14071 | fi | 
|  | 14072 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14073 | fi | 
|  | 14074 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
|  | 14076 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14077 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
|  | 14078 | then | 
|  | 14079 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14080 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14081 |  | 
|  | 14082 | fi | 
|  | 14083 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14084 | if test "$ac_cv_func_log1p" = yes | 
|  | 14085 | then | 
|  | 14086 | # On some versions of AIX, log1p(-0.) returns 0. instead of | 
|  | 14087 | # -0.  See issue #9920. | 
|  | 14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
|  | 14089 | $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] | 14090 | if ${ac_cv_log1p_drops_zero_sign+:} false; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14091 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14092 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14093 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14094 | if test "$cross_compiling" = yes; then : | 
|  | 14095 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14096 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14098 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14099 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14100 | #include <math.h> | 
|  | 14101 | #include <stdlib.h> | 
|  | 14102 | int main() { | 
|  | 14103 | /* Fail if the signs of log1p(-0.) and -0. can be | 
|  | 14104 | distinguished. */ | 
|  | 14105 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
|  | 14106 | return 0; | 
|  | 14107 | else | 
|  | 14108 | return 1; | 
|  | 14109 | } | 
|  | 14110 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14111 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14112 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 14113 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14114 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14115 | ac_cv_log1p_drops_zero_sign=yes | 
|  | 14116 | fi | 
|  | 14117 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14118 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14119 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14120 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14121 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14122 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
|  | 14124 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
|  | 14125 | fi | 
|  | 14126 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
|  | 14127 | then | 
|  | 14128 |  | 
|  | 14129 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
|  | 14130 |  | 
|  | 14131 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14132 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14133 | LIBS=$LIBS_SAVE | 
|  | 14134 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14135 | # For multiprocessing module, check that sem_open | 
|  | 14136 | # actually works.  For FreeBSD versions <= 7.2, | 
|  | 14137 | # the kernel module that provides POSIX semaphores | 
|  | 14138 | # isn't loaded by default, so an attempt to call | 
|  | 14139 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
|  | 14141 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14142 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14143 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14144 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14145 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14146 | ac_cv_posix_semaphores_enabled=yes | 
|  | 14147 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14149 | /* end confdefs.h.  */ | 
|  | 14150 |  | 
|  | 14151 | #include <unistd.h> | 
|  | 14152 | #include <fcntl.h> | 
|  | 14153 | #include <stdio.h> | 
|  | 14154 | #include <semaphore.h> | 
|  | 14155 | #include <sys/stat.h> | 
|  | 14156 |  | 
|  | 14157 | int main(void) { | 
|  | 14158 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
|  | 14159 | if (a == SEM_FAILED) { | 
|  | 14160 | perror("sem_open"); | 
|  | 14161 | return 1; | 
|  | 14162 | } | 
|  | 14163 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14164 | sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14165 | return 0; | 
|  | 14166 | } | 
|  | 14167 |  | 
|  | 14168 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14169 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14170 | ac_cv_posix_semaphores_enabled=yes | 
|  | 14171 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14172 | ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14173 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14174 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14175 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14176 | fi | 
|  | 14177 |  | 
|  | 14178 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14179 | fi | 
|  | 14180 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
|  | 14182 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14183 | if test $ac_cv_posix_semaphores_enabled = no | 
|  | 14184 | then | 
|  | 14185 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14186 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14187 |  | 
|  | 14188 | fi | 
|  | 14189 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14190 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
|  | 14192 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14193 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14194 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14195 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14196 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14197 | ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14198 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14200 | /* end confdefs.h.  */ | 
|  | 14201 |  | 
|  | 14202 | #include <unistd.h> | 
|  | 14203 | #include <fcntl.h> | 
|  | 14204 | #include <stdio.h> | 
|  | 14205 | #include <semaphore.h> | 
|  | 14206 | #include <sys/stat.h> | 
|  | 14207 |  | 
|  | 14208 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14209 | 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] | 14210 | int count; | 
|  | 14211 | int res; | 
|  | 14212 | if(a==SEM_FAILED){ | 
|  | 14213 | perror("sem_open"); | 
|  | 14214 | return 1; | 
|  | 14215 |  | 
|  | 14216 | } | 
|  | 14217 | res = sem_getvalue(a, &count); | 
|  | 14218 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14219 | sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14220 | return res==-1 ? 1 : 0; | 
|  | 14221 | } | 
|  | 14222 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14223 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14224 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14225 | ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14226 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14227 | ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14228 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14229 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14230 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14231 | fi | 
|  | 14232 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14233 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14234 | fi | 
|  | 14235 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
|  | 14237 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14238 | if test $ac_cv_broken_sem_getvalue = yes | 
|  | 14239 | then | 
|  | 14240 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14241 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14242 |  | 
|  | 14243 | fi | 
|  | 14244 |  | 
| Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14245 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> | 
|  | 14246 | " | 
|  | 14247 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : | 
|  | 14248 | ac_have_decl=1 | 
|  | 14249 | else | 
|  | 14250 | ac_have_decl=0 | 
|  | 14251 | fi | 
|  | 14252 |  | 
|  | 14253 | cat >>confdefs.h <<_ACEOF | 
|  | 14254 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl | 
|  | 14255 | _ACEOF | 
|  | 14256 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | 
|  | 14257 | " | 
|  | 14258 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | 
|  | 14259 | ac_have_decl=1 | 
|  | 14260 | else | 
|  | 14261 | ac_have_decl=0 | 
|  | 14262 | fi | 
|  | 14263 |  | 
|  | 14264 | cat >>confdefs.h <<_ACEOF | 
|  | 14265 | #define HAVE_DECL_RTLD_NOW $ac_have_decl | 
|  | 14266 | _ACEOF | 
|  | 14267 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> | 
|  | 14268 | " | 
|  | 14269 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : | 
|  | 14270 | ac_have_decl=1 | 
|  | 14271 | else | 
|  | 14272 | ac_have_decl=0 | 
|  | 14273 | fi | 
|  | 14274 |  | 
|  | 14275 | cat >>confdefs.h <<_ACEOF | 
|  | 14276 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl | 
|  | 14277 | _ACEOF | 
|  | 14278 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> | 
|  | 14279 | " | 
|  | 14280 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : | 
|  | 14281 | ac_have_decl=1 | 
|  | 14282 | else | 
|  | 14283 | ac_have_decl=0 | 
|  | 14284 | fi | 
|  | 14285 |  | 
|  | 14286 | cat >>confdefs.h <<_ACEOF | 
|  | 14287 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl | 
|  | 14288 | _ACEOF | 
|  | 14289 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> | 
|  | 14290 | " | 
|  | 14291 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : | 
|  | 14292 | ac_have_decl=1 | 
|  | 14293 | else | 
|  | 14294 | ac_have_decl=0 | 
|  | 14295 | fi | 
|  | 14296 |  | 
|  | 14297 | cat >>confdefs.h <<_ACEOF | 
|  | 14298 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl | 
|  | 14299 | _ACEOF | 
|  | 14300 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> | 
|  | 14301 | " | 
|  | 14302 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : | 
|  | 14303 | ac_have_decl=1 | 
|  | 14304 | else | 
|  | 14305 | ac_have_decl=0 | 
|  | 14306 | fi | 
|  | 14307 |  | 
|  | 14308 | cat >>confdefs.h <<_ACEOF | 
|  | 14309 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl | 
|  | 14310 | _ACEOF | 
|  | 14311 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> | 
|  | 14312 | " | 
|  | 14313 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : | 
|  | 14314 | ac_have_decl=1 | 
|  | 14315 | else | 
|  | 14316 | ac_have_decl=0 | 
|  | 14317 | fi | 
|  | 14318 |  | 
|  | 14319 | cat >>confdefs.h <<_ACEOF | 
|  | 14320 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl | 
|  | 14321 | _ACEOF | 
|  | 14322 |  | 
|  | 14323 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14324 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
|  | 14326 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14327 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14328 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14329 | enableval=$enable_big_digits; case $enable_big_digits in | 
|  | 14330 | yes) | 
|  | 14331 | enable_big_digits=30 ;; | 
|  | 14332 | no) | 
|  | 14333 | enable_big_digits=15 ;; | 
|  | 14334 | 15|30) | 
|  | 14335 | ;; | 
|  | 14336 | *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14337 | 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] | 14338 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
|  | 14340 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14341 |  | 
|  | 14342 | cat >>confdefs.h <<_ACEOF | 
|  | 14343 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
|  | 14344 | _ACEOF | 
|  | 14345 |  | 
|  | 14346 |  | 
|  | 14347 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 14349 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14350 | fi | 
|  | 14351 |  | 
|  | 14352 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14353 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14354 | 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] | 14355 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14356 |  | 
|  | 14357 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14358 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14359 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14360 | wchar_h="yes" | 
|  | 14361 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14362 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14363 | wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14364 |  | 
|  | 14365 | fi | 
|  | 14366 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14367 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14368 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14369 | # determine wchar_t size | 
|  | 14370 | if test "$wchar_h" = yes | 
|  | 14371 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14372 | # 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] | 14373 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 14374 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 14375 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
|  | 14377 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14378 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14379 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14380 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14381 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
|  | 14382 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14383 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14384 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14385 | if test "$ac_cv_type_wchar_t" = yes; then | 
|  | 14386 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 14387 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14388 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14389 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14390 | else | 
|  | 14391 | ac_cv_sizeof_wchar_t=0 | 
|  | 14392 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14393 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14394 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14395 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
|  | 14397 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14398 |  | 
|  | 14399 |  | 
|  | 14400 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14401 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14402 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14404 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14405 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14406 | fi | 
|  | 14407 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
|  | 14409 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14410 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14412 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14413 |  | 
|  | 14414 | #include <tcl.h> | 
|  | 14415 | #if TCL_UTF_MAX != 6 | 
|  | 14416 | # error "NOT UCS4_TCL" | 
|  | 14417 | #endif | 
|  | 14418 | int | 
|  | 14419 | main () | 
|  | 14420 | { | 
|  | 14421 |  | 
|  | 14422 | ; | 
|  | 14423 | return 0; | 
|  | 14424 | } | 
|  | 14425 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14426 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14427 |  | 
|  | 14428 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14429 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14430 |  | 
|  | 14431 | have_ucs4_tcl=yes | 
|  | 14432 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14433 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
|  | 14436 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14437 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14438 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14439 | if test "$wchar_h" = yes | 
|  | 14440 | then | 
|  | 14441 | # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
|  | 14443 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14444 | if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14445 | $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14446 | else | 
|  | 14447 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14448 | if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14449 | ac_cv_wchar_t_signed=yes | 
|  | 14450 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14452 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14453 |  | 
|  | 14454 | #include <wchar.h> | 
|  | 14455 | int main() | 
|  | 14456 | { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14457 | /* Success: exit code 0 */ | 
|  | 14458 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14459 | } | 
|  | 14460 |  | 
|  | 14461 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14462 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14463 | ac_cv_wchar_t_signed=yes | 
|  | 14464 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14465 | ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14466 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14467 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14468 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14469 | fi | 
|  | 14470 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14471 | fi | 
|  | 14472 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
|  | 14474 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14475 | fi | 
|  | 14476 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14477 | # 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] | 14478 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 14479 | -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14480 | then | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14481 | HAVE_USABLE_WCHAR_T="yes" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14482 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14483 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14484 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14485 | else | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14486 | HAVE_USABLE_WCHAR_T="no usable wchar_t found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14487 | fi | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 | 
|  | 14489 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14490 |  | 
|  | 14491 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
|  | 14493 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14494 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14495 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14496 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14497 | ac_cv_c_bigendian=unknown | 
|  | 14498 | # See if we're dealing with a universal compiler. | 
|  | 14499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14500 | /* end confdefs.h.  */ | 
|  | 14501 | #ifndef __APPLE_CC__ | 
|  | 14502 | not a universal capable compiler | 
|  | 14503 | #endif | 
|  | 14504 | typedef int dummy; | 
|  | 14505 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14506 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14507 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14508 |  | 
|  | 14509 | # Check for potential -arch flags.  It is not universal unless | 
|  | 14510 | # there are at least two -arch flags with different values. | 
|  | 14511 | ac_arch= | 
|  | 14512 | ac_prev= | 
|  | 14513 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
|  | 14514 | if test -n "$ac_prev"; then | 
|  | 14515 | case $ac_word in | 
|  | 14516 | i?86 | x86_64 | ppc | ppc64) | 
|  | 14517 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
|  | 14518 | ac_arch=$ac_word | 
|  | 14519 | else | 
|  | 14520 | ac_cv_c_bigendian=universal | 
|  | 14521 | break | 
|  | 14522 | fi | 
|  | 14523 | ;; | 
|  | 14524 | esac | 
|  | 14525 | ac_prev= | 
|  | 14526 | elif test "x$ac_word" = "x-arch"; then | 
|  | 14527 | ac_prev=arch | 
|  | 14528 | fi | 
|  | 14529 | done | 
|  | 14530 | fi | 
|  | 14531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14532 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14533 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 14534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14535 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14536 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14537 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14538 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14539 | int | 
|  | 14540 | main () | 
|  | 14541 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14542 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
|  | 14543 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
|  | 14544 | && LITTLE_ENDIAN) | 
|  | 14545 | bogus endian macros | 
|  | 14546 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14547 |  | 
|  | 14548 | ; | 
|  | 14549 | return 0; | 
|  | 14550 | } | 
|  | 14551 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14552 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14553 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14555 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14556 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14557 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14558 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14559 | int | 
|  | 14560 | main () | 
|  | 14561 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14562 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14563 | not big endian | 
|  | 14564 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14565 |  | 
|  | 14566 | ; | 
|  | 14567 | return 0; | 
|  | 14568 | } | 
|  | 14569 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14570 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14571 | ac_cv_c_bigendian=yes | 
|  | 14572 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14573 | ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14574 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14576 | fi | 
|  | 14577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14578 | fi | 
|  | 14579 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14580 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
|  | 14581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14582 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14583 | #include <limits.h> | 
|  | 14584 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14585 | int | 
|  | 14586 | main () | 
|  | 14587 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14588 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
|  | 14589 | bogus endian macros | 
|  | 14590 | #endif | 
|  | 14591 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14592 | ; | 
|  | 14593 | return 0; | 
|  | 14594 | } | 
|  | 14595 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14596 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14597 | # It does; now see whether it defined to _BIG_ENDIAN or not. | 
|  | 14598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14599 | /* end confdefs.h.  */ | 
|  | 14600 | #include <limits.h> | 
|  | 14601 |  | 
|  | 14602 | int | 
|  | 14603 | main () | 
|  | 14604 | { | 
|  | 14605 | #ifndef _BIG_ENDIAN | 
|  | 14606 | not big endian | 
|  | 14607 | #endif | 
|  | 14608 |  | 
|  | 14609 | ; | 
|  | 14610 | return 0; | 
|  | 14611 | } | 
|  | 14612 | _ACEOF | 
|  | 14613 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14614 | ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14615 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14616 | ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14617 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14619 | fi | 
|  | 14620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14621 | fi | 
|  | 14622 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14623 | # Compile a test program. | 
|  | 14624 | if test "$cross_compiling" = yes; then : | 
|  | 14625 | # Try to guess by grepping values from an object file. | 
|  | 14626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14627 | /* end confdefs.h.  */ | 
|  | 14628 | short int ascii_mm[] = | 
|  | 14629 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 14630 | short int ascii_ii[] = | 
|  | 14631 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 14632 | int use_ascii (int i) { | 
|  | 14633 | return ascii_mm[i] + ascii_ii[i]; | 
|  | 14634 | } | 
|  | 14635 | short int ebcdic_ii[] = | 
|  | 14636 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 14637 | short int ebcdic_mm[] = | 
|  | 14638 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 14639 | int use_ebcdic (int i) { | 
|  | 14640 | return ebcdic_mm[i] + ebcdic_ii[i]; | 
|  | 14641 | } | 
|  | 14642 | extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14643 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14644 | int | 
|  | 14645 | main () | 
|  | 14646 | { | 
|  | 14647 | return use_ascii (foo) == use_ebcdic (foo); | 
|  | 14648 | ; | 
|  | 14649 | return 0; | 
|  | 14650 | } | 
|  | 14651 | _ACEOF | 
|  | 14652 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14653 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
|  | 14654 | ac_cv_c_bigendian=yes | 
|  | 14655 | fi | 
|  | 14656 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 14657 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 14658 | ac_cv_c_bigendian=no | 
|  | 14659 | else | 
|  | 14660 | # finding both strings is unlikely to happen, but who knows? | 
|  | 14661 | ac_cv_c_bigendian=unknown | 
|  | 14662 | fi | 
|  | 14663 | fi | 
|  | 14664 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14665 | 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] | 14666 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14668 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14669 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 | int | 
|  | 14671 | main () | 
|  | 14672 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14673 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14674 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 14675 | union | 
|  | 14676 | { | 
|  | 14677 | long int l; | 
|  | 14678 | char c[sizeof (long int)]; | 
|  | 14679 | } u; | 
|  | 14680 | u.l = 1; | 
|  | 14681 | return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14682 |  | 
|  | 14683 | ; | 
|  | 14684 | return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14685 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14686 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14687 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14688 | ac_cv_c_bigendian=no | 
|  | 14689 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14690 | ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14691 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14692 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14693 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14694 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14695 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14696 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14697 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
|  | 14699 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
|  | 14700 | case $ac_cv_c_bigendian in #( | 
|  | 14701 | yes) | 
|  | 14702 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
|  | 14703 | ;; #( | 
|  | 14704 | no) | 
|  | 14705 | ;; #( | 
|  | 14706 | universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14707 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14708 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14709 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14710 | ;; #( | 
|  | 14711 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14712 | as_fn_error $? "unknown endianness | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14713 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14714 | esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14715 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14716 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14717 | # ABI version string for Python extension modules.  This appears between the | 
|  | 14718 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
|  | 14719 | # from the following attributes which affect the ABI of this Python build (in | 
|  | 14720 | # this order): | 
|  | 14721 | # | 
|  | 14722 | # * The Python implementation (always 'cpython-' for us) | 
|  | 14723 | # * The major and minor version numbers | 
|  | 14724 | # * --with-pydebug (adds a 'd') | 
|  | 14725 | # * --with-pymalloc (adds a 'm') | 
|  | 14726 | # * --with-wide-unicode (adds a 'u') | 
|  | 14727 | # | 
|  | 14728 | # 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] | 14729 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
|  | 14730 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14731 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
|  | 14733 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
|  | 14734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
|  | 14735 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
|  | 14737 | $as_echo_n "checking SOABI... " >&6; } | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 14738 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
|  | 14740 | $as_echo "$SOABI" >&6; } | 
|  | 14741 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14742 |  | 
|  | 14743 | case $ac_sys_system in | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 14744 | Linux*|GNU*|Darwin) | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14745 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; | 
|  | 14746 | *) | 
|  | 14747 | EXT_SUFFIX=${SHLIB_SUFFIX};; | 
|  | 14748 | esac | 
|  | 14749 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
|  | 14751 | $as_echo_n "checking LDVERSION... " >&6; } | 
|  | 14752 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
|  | 14753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
|  | 14754 | $as_echo "$LDVERSION" >&6; } | 
|  | 14755 |  | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14756 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 14757 | if test x$PLATFORM_TRIPLET = x; then | 
|  | 14758 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | 
|  | 14759 | else | 
|  | 14760 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | 
|  | 14761 | fi | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14762 |  | 
|  | 14763 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14764 | # Check whether right shifting a negative integer extends the sign bit | 
|  | 14765 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
|  | 14767 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14768 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14769 | $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14770 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14771 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14772 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14773 | ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14774 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14776 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14777 |  | 
|  | 14778 | int main() | 
|  | 14779 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14780 | exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14781 | } | 
|  | 14782 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14783 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14784 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14785 | ac_cv_rshift_extends_sign=yes | 
|  | 14786 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14787 | ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14788 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14789 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14790 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14791 | fi | 
|  | 14792 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14793 | fi | 
|  | 14794 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
|  | 14796 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14797 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14798 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14799 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14800 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14801 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14802 | fi | 
|  | 14803 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14804 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
|  | 14806 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14807 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14808 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14809 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14810 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14812 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14813 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14814 | int | 
|  | 14815 | main () | 
|  | 14816 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14817 |  | 
|  | 14818 | FILE *f = fopen("/dev/null", "r"); | 
|  | 14819 | flockfile(f); | 
|  | 14820 | getc_unlocked(f); | 
|  | 14821 | funlockfile(f); | 
|  | 14822 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14823 | ; | 
|  | 14824 | return 0; | 
|  | 14825 | } | 
|  | 14826 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14827 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14828 | ac_cv_have_getc_unlocked=yes | 
|  | 14829 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14830 | ac_cv_have_getc_unlocked=no | 
|  | 14831 | fi | 
|  | 14832 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14833 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14834 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14835 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
|  | 14837 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14838 | if test "$ac_cv_have_getc_unlocked" = yes | 
|  | 14839 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14840 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14841 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14842 |  | 
|  | 14843 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14844 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14845 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14846 | # save the value of LIBS so we don't actually link Python with readline | 
|  | 14847 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14848 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14849 | # On some systems we need to link readline to a termcap compatible | 
|  | 14850 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
|  | 14851 | # with setup.py. | 
|  | 14852 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
|  | 14854 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 14855 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14856 | if test -z "$py_libtermcap"; then | 
|  | 14857 | READLINE_LIBS="-lreadline" | 
|  | 14858 | else | 
|  | 14859 | READLINE_LIBS="-lreadline -l$py_libtermcap" | 
|  | 14860 | fi | 
|  | 14861 | LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14863 | /* end confdefs.h.  */ | 
|  | 14864 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14865 | /* Override any GCC internal prototype to avoid an error. | 
|  | 14866 | Use char because int might match the return type of a GCC | 
|  | 14867 | builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14868 | #ifdef __cplusplus | 
|  | 14869 | extern "C" | 
|  | 14870 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14871 | char readline (); | 
|  | 14872 | int | 
|  | 14873 | main () | 
|  | 14874 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14875 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14876 | ; | 
|  | 14877 | return 0; | 
|  | 14878 | } | 
|  | 14879 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14880 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14881 | py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14882 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14883 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14884 | conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14885 | if test $py_cv_lib_readline = yes; then | 
|  | 14886 | break | 
|  | 14887 | fi | 
|  | 14888 | done | 
|  | 14889 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
|  | 14890 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 14891 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 14893 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14894 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
|  | 14896 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14897 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14898 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14899 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14900 | fi | 
|  | 14901 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14902 | # check for readline 2.1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
|  | 14904 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14905 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14906 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14907 | else | 
|  | 14908 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14909 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14911 | /* end confdefs.h.  */ | 
|  | 14912 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14913 | /* Override any GCC internal prototype to avoid an error. | 
|  | 14914 | Use char because int might match the return type of a GCC | 
|  | 14915 | builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14916 | #ifdef __cplusplus | 
|  | 14917 | extern "C" | 
|  | 14918 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14919 | char rl_callback_handler_install (); | 
|  | 14920 | int | 
|  | 14921 | main () | 
|  | 14922 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14923 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14924 | ; | 
|  | 14925 | return 0; | 
|  | 14926 | } | 
|  | 14927 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14928 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14929 | ac_cv_lib_readline_rl_callback_handler_install=yes | 
|  | 14930 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14931 | ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14932 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14933 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14934 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14935 | LIBS=$ac_check_lib_save_LIBS | 
|  | 14936 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
|  | 14938 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14939 | 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] | 14940 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14941 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14942 |  | 
|  | 14943 | fi | 
|  | 14944 |  | 
|  | 14945 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14946 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14948 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14949 | #include <readline/readline.h> | 
|  | 14950 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14951 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14952 | have_readline=yes | 
|  | 14953 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14954 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14955 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14956 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14957 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14958 | if test $have_readline = yes | 
|  | 14959 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14961 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14962 | #include <readline/readline.h> | 
|  | 14963 |  | 
|  | 14964 | _ACEOF | 
|  | 14965 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14966 | $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] | 14967 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14968 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14969 |  | 
|  | 14970 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14971 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14972 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14974 | /* end confdefs.h.  */ | 
|  | 14975 | #include <readline/readline.h> | 
|  | 14976 |  | 
|  | 14977 | _ACEOF | 
|  | 14978 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14979 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14980 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14981 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14982 |  | 
|  | 14983 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14984 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14985 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14986 | fi | 
|  | 14987 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14988 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
|  | 14990 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14991 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14992 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14993 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14994 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14995 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14997 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14998 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14999 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15000 | Use char because int might match the return type of a GCC | 
|  | 15001 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15002 | #ifdef __cplusplus | 
|  | 15003 | extern "C" | 
|  | 15004 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15005 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15006 | int | 
|  | 15007 | main () | 
|  | 15008 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15009 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15010 | ; | 
|  | 15011 | return 0; | 
|  | 15012 | } | 
|  | 15013 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15014 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15015 | ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15016 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15017 | ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15018 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15019 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15020 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15021 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15022 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
|  | 15024 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15025 | 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] | 15026 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15027 | $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] | 15028 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15029 | fi | 
|  | 15030 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15031 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15032 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
|  | 15034 | $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] | 15035 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15036 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15037 | else | 
|  | 15038 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15039 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15041 | /* end confdefs.h.  */ | 
|  | 15042 |  | 
|  | 15043 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15044 | Use char because int might match the return type of a GCC | 
|  | 15045 | builtin and then its argument prototype would still apply.  */ | 
|  | 15046 | #ifdef __cplusplus | 
|  | 15047 | extern "C" | 
|  | 15048 | #endif | 
|  | 15049 | char rl_completion_display_matches_hook (); | 
|  | 15050 | int | 
|  | 15051 | main () | 
|  | 15052 | { | 
|  | 15053 | return rl_completion_display_matches_hook (); | 
|  | 15054 | ; | 
|  | 15055 | return 0; | 
|  | 15056 | } | 
|  | 15057 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15058 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15059 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
|  | 15060 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15061 | ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15062 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15063 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15064 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15065 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15066 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
|  | 15068 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15069 | 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] | 15070 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15071 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15072 |  | 
|  | 15073 | fi | 
|  | 15074 |  | 
|  | 15075 |  | 
| Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15076 | # also in 4.0, but not in editline | 
|  | 15077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | 
|  | 15078 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | 
|  | 15079 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | 
|  | 15080 | $as_echo_n "(cached) " >&6 | 
|  | 15081 | else | 
|  | 15082 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15083 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
|  | 15084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15085 | /* end confdefs.h.  */ | 
|  | 15086 |  | 
|  | 15087 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15088 | Use char because int might match the return type of a GCC | 
|  | 15089 | builtin and then its argument prototype would still apply.  */ | 
|  | 15090 | #ifdef __cplusplus | 
|  | 15091 | extern "C" | 
|  | 15092 | #endif | 
|  | 15093 | char rl_resize_terminal (); | 
|  | 15094 | int | 
|  | 15095 | main () | 
|  | 15096 | { | 
|  | 15097 | return rl_resize_terminal (); | 
|  | 15098 | ; | 
|  | 15099 | return 0; | 
|  | 15100 | } | 
|  | 15101 | _ACEOF | 
|  | 15102 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 15103 | ac_cv_lib_readline_rl_resize_terminal=yes | 
|  | 15104 | else | 
|  | 15105 | ac_cv_lib_readline_rl_resize_terminal=no | 
|  | 15106 | fi | 
|  | 15107 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15108 | conftest$ac_exeext conftest.$ac_ext | 
|  | 15109 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15110 | fi | 
|  | 15111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | 
|  | 15112 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | 
|  | 15113 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | 
|  | 15114 |  | 
|  | 15115 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | 
|  | 15116 |  | 
|  | 15117 | fi | 
|  | 15118 |  | 
|  | 15119 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15120 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
|  | 15122 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15123 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15124 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15125 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15126 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15127 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15129 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15130 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15131 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15132 | Use char because int might match the return type of a GCC | 
|  | 15133 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15134 | #ifdef __cplusplus | 
|  | 15135 | extern "C" | 
|  | 15136 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15137 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15138 | int | 
|  | 15139 | main () | 
|  | 15140 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15141 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15142 | ; | 
|  | 15143 | return 0; | 
|  | 15144 | } | 
|  | 15145 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15146 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15147 | ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15148 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15149 | ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15150 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15151 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15152 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15153 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15154 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
|  | 15156 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15157 | 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] | 15158 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15159 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15160 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15161 | fi | 
|  | 15162 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15163 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15164 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15166 | /* end confdefs.h.  */ | 
|  | 15167 | #include <readline/readline.h> | 
|  | 15168 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15169 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15170 | have_readline=yes | 
|  | 15171 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15172 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15173 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15174 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15175 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15176 | if test $have_readline = yes | 
|  | 15177 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15179 | /* end confdefs.h.  */ | 
|  | 15180 | #include <readline/readline.h> | 
|  | 15181 |  | 
|  | 15182 | _ACEOF | 
|  | 15183 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15184 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15185 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15186 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15187 |  | 
|  | 15188 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15189 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15190 |  | 
|  | 15191 | fi | 
|  | 15192 |  | 
| Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 | 
|  | 15194 | $as_echo_n "checking for append_history in -lreadline... " >&6; } | 
|  | 15195 | if ${ac_cv_lib_readline_append_history+:} false; then : | 
|  | 15196 | $as_echo_n "(cached) " >&6 | 
|  | 15197 | else | 
|  | 15198 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15199 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
|  | 15200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15201 | /* end confdefs.h.  */ | 
|  | 15202 |  | 
|  | 15203 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15204 | Use char because int might match the return type of a GCC | 
|  | 15205 | builtin and then its argument prototype would still apply.  */ | 
|  | 15206 | #ifdef __cplusplus | 
|  | 15207 | extern "C" | 
|  | 15208 | #endif | 
|  | 15209 | char append_history (); | 
|  | 15210 | int | 
|  | 15211 | main () | 
|  | 15212 | { | 
|  | 15213 | return append_history (); | 
|  | 15214 | ; | 
|  | 15215 | return 0; | 
|  | 15216 | } | 
|  | 15217 | _ACEOF | 
|  | 15218 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 15219 | ac_cv_lib_readline_append_history=yes | 
|  | 15220 | else | 
|  | 15221 | ac_cv_lib_readline_append_history=no | 
|  | 15222 | fi | 
|  | 15223 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15224 | conftest$ac_exeext conftest.$ac_ext | 
|  | 15225 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15226 | fi | 
|  | 15227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 | 
|  | 15228 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } | 
|  | 15229 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : | 
|  | 15230 |  | 
|  | 15231 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h | 
|  | 15232 |  | 
|  | 15233 | fi | 
|  | 15234 |  | 
|  | 15235 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15236 | # End of readline checks: restore LIBS | 
|  | 15237 | LIBS=$LIBS_no_readline | 
|  | 15238 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
|  | 15240 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15241 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15242 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15243 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15244 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15245 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15246 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15247 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15249 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15250 |  | 
|  | 15251 | int main() | 
|  | 15252 | { | 
|  | 15253 | int val1 = nice(1); | 
|  | 15254 | if (val1 != -1 && val1 == nice(2)) | 
|  | 15255 | exit(0); | 
|  | 15256 | exit(1); | 
|  | 15257 | } | 
|  | 15258 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15259 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15260 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15261 | ac_cv_broken_nice=yes | 
|  | 15262 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15263 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15264 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15265 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15266 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15267 | fi | 
|  | 15268 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15269 | fi | 
|  | 15270 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
|  | 15272 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15273 | if test "$ac_cv_broken_nice" = yes | 
|  | 15274 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15275 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15276 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15277 |  | 
|  | 15278 | fi | 
|  | 15279 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
|  | 15281 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15282 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15283 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15284 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15285 | if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15286 | ac_cv_broken_poll=no | 
|  | 15287 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15289 | /* end confdefs.h.  */ | 
|  | 15290 |  | 
|  | 15291 | #include <poll.h> | 
|  | 15292 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15293 | int main() | 
|  | 15294 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15295 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15296 | int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15297 |  | 
|  | 15298 | close (42); | 
|  | 15299 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15300 | poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15301 | if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15302 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15303 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15304 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15305 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15306 | return 1; | 
|  | 15307 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15308 |  | 
|  | 15309 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15310 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15311 | ac_cv_broken_poll=yes | 
|  | 15312 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15313 | ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15314 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15315 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15316 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15317 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15318 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15319 | fi | 
|  | 15320 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
|  | 15322 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15323 | if test "$ac_cv_broken_poll" = yes | 
|  | 15324 | then | 
|  | 15325 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15326 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15327 |  | 
|  | 15328 | fi | 
|  | 15329 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15330 | # 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] | 15331 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
|  | 15332 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15333 | 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] | 15334 | #include <$ac_cv_struct_tm> | 
|  | 15335 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15336 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15337 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15338 |  | 
|  | 15339 | cat >>confdefs.h <<_ACEOF | 
|  | 15340 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 15341 | _ACEOF | 
|  | 15342 |  | 
|  | 15343 |  | 
|  | 15344 | fi | 
|  | 15345 |  | 
|  | 15346 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 15347 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15348 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15349 |  | 
|  | 15350 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15351 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 15352 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15353 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15354 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15355 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15356 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15357 | fi | 
|  | 15358 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15359 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15360 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15361 | _ACEOF | 
|  | 15362 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 15364 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15365 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15366 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15367 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15369 | /* end confdefs.h.  */ | 
|  | 15370 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15371 | #if !HAVE_DECL_TZNAME | 
|  | 15372 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15373 | #endif | 
|  | 15374 |  | 
|  | 15375 | int | 
|  | 15376 | main () | 
|  | 15377 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15378 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15379 | ; | 
|  | 15380 | return 0; | 
|  | 15381 | } | 
|  | 15382 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15383 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15384 | ac_cv_var_tzname=yes | 
|  | 15385 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15386 | ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15387 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15388 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15389 | conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15390 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 15392 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15393 | if test $ac_cv_var_tzname = yes; then | 
|  | 15394 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15395 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15396 |  | 
|  | 15397 | fi | 
|  | 15398 | fi | 
|  | 15399 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15400 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15401 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
|  | 15403 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15404 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15405 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15406 | else | 
|  | 15407 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15408 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15409 | ac_cv_working_tzset=no | 
|  | 15410 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15412 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15413 |  | 
|  | 15414 | #include <stdlib.h> | 
|  | 15415 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15416 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15417 |  | 
|  | 15418 | #if HAVE_TZNAME | 
|  | 15419 | extern char *tzname[]; | 
|  | 15420 | #endif | 
|  | 15421 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15422 | int main() | 
|  | 15423 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15424 | /* Note that we need to ensure that not only does tzset(3) | 
|  | 15425 | do 'something' with localtime, but it works as documented | 
|  | 15426 | 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] | 15427 | This includes making sure that tzname is set properly if | 
|  | 15428 | tm->tm_zone does not exist since it is the alternative way | 
|  | 15429 | of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15430 |  | 
|  | 15431 | Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15432 | after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15433 | */ | 
|  | 15434 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15435 | time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15436 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
|  | 15437 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15438 | putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15439 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15440 | if (localtime(&groundhogday)->tm_hour != 0) | 
|  | 15441 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15442 | #if HAVE_TZNAME | 
|  | 15443 | /* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
|  | 15444 | if (strcmp(tzname[0], "UTC") || | 
|  | 15445 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
|  | 15446 | exit(1); | 
|  | 15447 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15448 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15449 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15450 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15451 | if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15452 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15453 | #if HAVE_TZNAME | 
|  | 15454 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
|  | 15455 | exit(1); | 
|  | 15456 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15457 |  | 
|  | 15458 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
|  | 15459 | tzset(); | 
|  | 15460 | if (localtime(&groundhogday)->tm_hour != 11) | 
|  | 15461 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15462 | #if HAVE_TZNAME | 
|  | 15463 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
|  | 15464 | exit(1); | 
|  | 15465 | #endif | 
|  | 15466 |  | 
|  | 15467 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15468 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
|  | 15469 | exit(1); | 
|  | 15470 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
|  | 15471 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15472 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15473 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15474 | exit(0); | 
|  | 15475 | } | 
|  | 15476 |  | 
|  | 15477 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15478 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15479 | ac_cv_working_tzset=yes | 
|  | 15480 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15481 | ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15482 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15483 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15484 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15485 | fi | 
|  | 15486 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15487 | fi | 
|  | 15488 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
|  | 15490 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15491 | if test "$ac_cv_working_tzset" = yes | 
|  | 15492 | then | 
|  | 15493 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15494 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15495 |  | 
|  | 15496 | fi | 
|  | 15497 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15498 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
|  | 15500 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15501 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15502 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15503 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15505 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15506 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15507 | int | 
|  | 15508 | main () | 
|  | 15509 | { | 
|  | 15510 |  | 
|  | 15511 | struct stat st; | 
|  | 15512 | st.st_mtim.tv_nsec = 1; | 
|  | 15513 |  | 
|  | 15514 | ; | 
|  | 15515 | return 0; | 
|  | 15516 | } | 
|  | 15517 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15518 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15519 | ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15520 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15521 | ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15522 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15524 | fi | 
|  | 15525 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
|  | 15527 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15528 | if test "$ac_cv_stat_tv_nsec" = yes | 
|  | 15529 | then | 
|  | 15530 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15531 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15532 |  | 
|  | 15533 | fi | 
|  | 15534 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15535 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
|  | 15537 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15538 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15539 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15540 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15542 | /* end confdefs.h.  */ | 
|  | 15543 | #include <sys/stat.h> | 
|  | 15544 | int | 
|  | 15545 | main () | 
|  | 15546 | { | 
|  | 15547 |  | 
|  | 15548 | struct stat st; | 
|  | 15549 | st.st_mtimespec.tv_nsec = 1; | 
|  | 15550 |  | 
|  | 15551 | ; | 
|  | 15552 | return 0; | 
|  | 15553 | } | 
|  | 15554 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15555 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15556 | ac_cv_stat_tv_nsec2=yes | 
|  | 15557 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15558 | ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15559 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15561 | fi | 
|  | 15562 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
|  | 15564 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15565 | if test "$ac_cv_stat_tv_nsec2" = yes | 
|  | 15566 | then | 
|  | 15567 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15568 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15569 |  | 
|  | 15570 | fi | 
|  | 15571 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15572 | # first curses header check | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15573 | ac_save_cppflags="$CPPFLAGS" | 
|  | 15574 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15575 |  | 
|  | 15576 | for ac_header in curses.h ncurses.h | 
|  | 15577 | do : | 
|  | 15578 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15579 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
|  | 15580 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
|  | 15581 | cat >>confdefs.h <<_ACEOF | 
|  | 15582 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 15583 | _ACEOF | 
|  | 15584 |  | 
|  | 15585 | fi | 
|  | 15586 |  | 
|  | 15587 | done | 
|  | 15588 |  | 
|  | 15589 |  | 
|  | 15590 | # On Solaris, term.h requires curses.h | 
|  | 15591 | for ac_header in term.h | 
|  | 15592 | do : | 
|  | 15593 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
|  | 15594 | #ifdef HAVE_CURSES_H | 
|  | 15595 | #include <curses.h> | 
|  | 15596 | #endif | 
|  | 15597 |  | 
|  | 15598 | " | 
|  | 15599 | if test "x$ac_cv_header_term_h" = xyes; then : | 
|  | 15600 | cat >>confdefs.h <<_ACEOF | 
|  | 15601 | #define HAVE_TERM_H 1 | 
|  | 15602 | _ACEOF | 
|  | 15603 |  | 
|  | 15604 | fi | 
|  | 15605 |  | 
|  | 15606 | done | 
|  | 15607 |  | 
|  | 15608 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15609 | # 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] | 15610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
|  | 15611 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15612 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15613 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15614 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15616 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15617 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15618 | int | 
|  | 15619 | main () | 
|  | 15620 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15621 |  | 
|  | 15622 | int rtn; | 
|  | 15623 | rtn = mvwdelch(0,0,0); | 
|  | 15624 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15625 | ; | 
|  | 15626 | return 0; | 
|  | 15627 | } | 
|  | 15628 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15629 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15630 | ac_cv_mvwdelch_is_expression=yes | 
|  | 15631 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15632 | ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15633 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15635 | fi | 
|  | 15636 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
|  | 15638 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15639 |  | 
|  | 15640 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
|  | 15641 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15642 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15643 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15644 |  | 
|  | 15645 | fi | 
|  | 15646 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
|  | 15648 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15649 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15650 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15651 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15653 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15654 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15655 | int | 
|  | 15656 | main () | 
|  | 15657 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15658 |  | 
|  | 15659 | WINDOW *w; | 
|  | 15660 | w->_flags = 0; | 
|  | 15661 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15662 | ; | 
|  | 15663 | return 0; | 
|  | 15664 | } | 
|  | 15665 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15666 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15667 | ac_cv_window_has_flags=yes | 
|  | 15668 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15669 | ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15670 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15672 | fi | 
|  | 15673 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
|  | 15675 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15676 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15677 |  | 
|  | 15678 | if test "$ac_cv_window_has_flags" = yes | 
|  | 15679 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15680 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15681 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15682 |  | 
|  | 15683 | fi | 
|  | 15684 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
|  | 15686 | $as_echo_n "checking for is_term_resized... " >&6; } | 
|  | 15687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15688 | /* end confdefs.h.  */ | 
|  | 15689 | #include <curses.h> | 
|  | 15690 | int | 
|  | 15691 | main () | 
|  | 15692 | { | 
|  | 15693 | void *x=is_term_resized | 
|  | 15694 | ; | 
|  | 15695 | return 0; | 
|  | 15696 | } | 
|  | 15697 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15698 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15699 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15700 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15701 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15703 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15704 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15706 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15707 |  | 
|  | 15708 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15710 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
|  | 15712 | $as_echo_n "checking for resize_term... " >&6; } | 
|  | 15713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15714 | /* end confdefs.h.  */ | 
|  | 15715 | #include <curses.h> | 
|  | 15716 | int | 
|  | 15717 | main () | 
|  | 15718 | { | 
|  | 15719 | void *x=resize_term | 
|  | 15720 | ; | 
|  | 15721 | return 0; | 
|  | 15722 | } | 
|  | 15723 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15724 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15725 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15726 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15727 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15729 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15730 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15732 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15733 |  | 
|  | 15734 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15736 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
|  | 15738 | $as_echo_n "checking for resizeterm... " >&6; } | 
|  | 15739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15740 | /* end confdefs.h.  */ | 
|  | 15741 | #include <curses.h> | 
|  | 15742 | int | 
|  | 15743 | main () | 
|  | 15744 | { | 
|  | 15745 | void *x=resizeterm | 
|  | 15746 | ; | 
|  | 15747 | return 0; | 
|  | 15748 | } | 
|  | 15749 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15750 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15751 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15752 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15753 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15755 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15756 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15758 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15759 |  | 
|  | 15760 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15762 | # last curses configure check | 
|  | 15763 | CPPFLAGS=$ac_save_cppflags | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15764 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
|  | 15766 | $as_echo "$as_me: checking for device files" >&6;} | 
|  | 15767 |  | 
|  | 15768 | if test "x$cross_compiling" = xyes; then | 
|  | 15769 | if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
|  | 15770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 15771 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
|  | 15772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
|  | 15773 | $as_echo "not set" >&6; } | 
|  | 15774 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
|  | 15775 | fi | 
|  | 15776 | if test "${ac_cv_file__dev_ptc+set}" != set; then | 
|  | 15777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 15778 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
|  | 15779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
|  | 15780 | $as_echo "not set" >&6; } | 
|  | 15781 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
|  | 15782 | fi | 
|  | 15783 | fi | 
|  | 15784 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 15786 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15787 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
|  | 15788 | $as_echo_n "(cached) " >&6 | 
|  | 15789 | else | 
|  | 15790 | test "$cross_compiling" = yes && | 
|  | 15791 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
|  | 15792 | if test -r "/dev/ptmx"; then | 
|  | 15793 | ac_cv_file__dev_ptmx=yes | 
|  | 15794 | else | 
|  | 15795 | ac_cv_file__dev_ptmx=no | 
|  | 15796 | fi | 
|  | 15797 | fi | 
|  | 15798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
|  | 15799 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
|  | 15800 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15801 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15802 | fi | 
|  | 15803 |  | 
|  | 15804 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15805 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15806 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15807 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15808 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 15810 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15811 | if ${ac_cv_file__dev_ptc+:} false; then : | 
|  | 15812 | $as_echo_n "(cached) " >&6 | 
|  | 15813 | else | 
|  | 15814 | test "$cross_compiling" = yes && | 
|  | 15815 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
|  | 15816 | if test -r "/dev/ptc"; then | 
|  | 15817 | ac_cv_file__dev_ptc=yes | 
|  | 15818 | else | 
|  | 15819 | ac_cv_file__dev_ptc=no | 
|  | 15820 | fi | 
|  | 15821 | fi | 
|  | 15822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
|  | 15823 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
|  | 15824 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15825 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15826 | fi | 
|  | 15827 |  | 
|  | 15828 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15829 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15830 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15831 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15832 | fi | 
|  | 15833 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15835 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15836 | if ${ac_cv_have_long_long_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15837 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15838 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15839 | if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 15840 | ac_cv_have_long_long_format="cross -- assuming no" | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15841 | if test x$GCC = xyes; then | 
|  | 15842 | save_CFLAGS=$CFLAGS | 
|  | 15843 | CFLAGS="$CFLAGS -Werror -Wformat" | 
|  | 15844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 15845 | /* end confdefs.h.  */ | 
|  | 15846 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15847 | #include <stdio.h> | 
|  | 15848 | #include <stddef.h> | 
| Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 15849 |  | 
|  | 15850 | int | 
|  | 15851 | main () | 
|  | 15852 | { | 
|  | 15853 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15854 | char *buffer; | 
|  | 15855 | sprintf(buffer, "%lld", (long long)123); | 
|  | 15856 | sprintf(buffer, "%lld", (long long)-123); | 
|  | 15857 | sprintf(buffer, "%llu", (unsigned long long)123); | 
| Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 15858 |  | 
|  | 15859 | ; | 
|  | 15860 | return 0; | 
|  | 15861 | } | 
|  | 15862 | _ACEOF | 
|  | 15863 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 15864 | ac_cv_have_long_long_format=yes | 
|  | 15865 |  | 
|  | 15866 | fi | 
|  | 15867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15868 | CFLAGS=$save_CFLAGS | 
|  | 15869 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15870 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15872 | /* end confdefs.h.  */ | 
|  | 15873 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15874 | #include <stdio.h> | 
|  | 15875 | #include <stddef.h> | 
|  | 15876 | #include <string.h> | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15877 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15878 | #ifdef HAVE_SYS_TYPES_H | 
|  | 15879 | #include <sys/types.h> | 
|  | 15880 | #endif | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15881 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15882 | int main() | 
|  | 15883 | { | 
|  | 15884 | char buffer[256]; | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15885 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15886 | if (sprintf(buffer, "%lld", (long long)123) < 0) | 
|  | 15887 | return 1; | 
|  | 15888 | if (strcmp(buffer, "123")) | 
|  | 15889 | return 1; | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15890 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15891 | if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
|  | 15892 | return 1; | 
|  | 15893 | if (strcmp(buffer, "-123")) | 
|  | 15894 | return 1; | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15895 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15896 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
|  | 15897 | return 1; | 
|  | 15898 | if (strcmp(buffer, "123")) | 
|  | 15899 | return 1; | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15900 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15901 | return 0; | 
|  | 15902 | } | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15903 |  | 
|  | 15904 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15905 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15906 | ac_cv_have_long_long_format=yes | 
|  | 15907 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15908 | ac_cv_have_long_long_format=no | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15909 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15910 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15911 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15912 | fi | 
|  | 15913 |  | 
|  | 15914 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15915 | fi | 
|  | 15916 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15918 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15919 |  | 
| Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 15920 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15921 | then | 
|  | 15922 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15923 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15924 |  | 
|  | 15925 | fi | 
|  | 15926 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 15927 | if test $ac_sys_system = Darwin | 
|  | 15928 | then | 
|  | 15929 | LIBS="$LIBS -framework CoreFoundation" | 
|  | 15930 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15931 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
|  | 15933 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15934 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15935 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15936 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15937 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15938 | ac_cv_have_size_t_format="cross -- assuming yes" | 
|  | 15939 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15940 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15942 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15943 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15944 | #include <stdio.h> | 
|  | 15945 | #include <stddef.h> | 
|  | 15946 | #include <string.h> | 
|  | 15947 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15948 | #ifdef HAVE_SYS_TYPES_H | 
|  | 15949 | #include <sys/types.h> | 
|  | 15950 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15951 |  | 
|  | 15952 | #ifdef HAVE_SSIZE_T | 
|  | 15953 | typedef ssize_t Py_ssize_t; | 
|  | 15954 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
|  | 15955 | typedef long Py_ssize_t; | 
|  | 15956 | #else | 
|  | 15957 | typedef int Py_ssize_t; | 
|  | 15958 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15959 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15960 | int main() | 
|  | 15961 | { | 
|  | 15962 | char buffer[256]; | 
|  | 15963 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15964 | if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
|  | 15965 | return 1; | 
|  | 15966 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15967 | if (strcmp(buffer, "123")) | 
|  | 15968 | return 1; | 
|  | 15969 |  | 
|  | 15970 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
|  | 15971 | return 1; | 
|  | 15972 |  | 
|  | 15973 | if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15974 | return 1; | 
|  | 15975 |  | 
|  | 15976 | return 0; | 
|  | 15977 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15978 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15979 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15980 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15981 | ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15982 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15983 | ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15984 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15985 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15986 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 15987 | fi | 
|  | 15988 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15989 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
|  | 15991 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15992 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15993 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15994 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15995 |  | 
|  | 15996 | fi | 
|  | 15997 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15998 | 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] | 15999 | #ifdef HAVE_SYS_TYPES_H | 
|  | 16000 | #include <sys/types.h> | 
|  | 16001 | #endif | 
|  | 16002 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 16003 | #include <sys/socket.h> | 
|  | 16004 | #endif | 
|  | 16005 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16006 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16007 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16008 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16009 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16010 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16011 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16012 |  | 
|  | 16013 | fi | 
|  | 16014 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16015 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
|  | 16017 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16018 | if ${ac_cv_broken_mbstowcs+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16019 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16020 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16021 | if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16022 | ac_cv_broken_mbstowcs=no | 
|  | 16023 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16025 | /* end confdefs.h.  */ | 
|  | 16026 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 16027 | #include <stdio.h> | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16028 | #include<stdlib.h> | 
|  | 16029 | int main() { | 
|  | 16030 | size_t len = -1; | 
|  | 16031 | const char *str = "text"; | 
|  | 16032 | len = mbstowcs(NULL, str, 0); | 
|  | 16033 | return (len != 4); | 
|  | 16034 | } | 
|  | 16035 |  | 
|  | 16036 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16037 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16038 | ac_cv_broken_mbstowcs=no | 
|  | 16039 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16040 | ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16041 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16042 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16043 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16044 | fi | 
|  | 16045 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16046 | fi | 
|  | 16047 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
|  | 16049 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16050 | if test "$ac_cv_broken_mbstowcs" = yes | 
|  | 16051 | then | 
|  | 16052 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16053 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16054 |  | 
|  | 16055 | fi | 
|  | 16056 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16057 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
|  | 16059 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16060 |  | 
|  | 16061 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16062 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16063 | withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16064 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16065 | then | 
|  | 16066 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16067 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16068 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 16070 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16071 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16072 | if test "$withval" = no | 
|  | 16073 | then | 
|  | 16074 |  | 
|  | 16075 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
|  | 16076 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 16078 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16079 | fi | 
|  | 16080 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16081 | else | 
|  | 16082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 16083 | $as_echo "no value specified" >&6; } | 
|  | 16084 | fi | 
|  | 16085 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16086 |  | 
| Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
|  | 16088 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
|  | 16089 | if ${ac_cv_computed_gotos+:} false; then : | 
|  | 16090 | $as_echo_n "(cached) " >&6 | 
|  | 16091 | else | 
|  | 16092 | if test "$cross_compiling" = yes; then : | 
|  | 16093 | if test "${with_computed_gotos+set}" = set; then | 
|  | 16094 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | 
|  | 16095 | else | 
|  | 16096 | ac_cv_computed_gotos=no | 
|  | 16097 | fi | 
|  | 16098 | else | 
|  | 16099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16100 | /* end confdefs.h.  */ | 
|  | 16101 |  | 
|  | 16102 | int main(int argc, char **argv) | 
|  | 16103 | { | 
|  | 16104 | static void *targets[1] = { &&LABEL1 }; | 
|  | 16105 | goto LABEL2; | 
|  | 16106 | LABEL1: | 
|  | 16107 | return 0; | 
|  | 16108 | LABEL2: | 
|  | 16109 | goto *targets[0]; | 
|  | 16110 | return 1; | 
|  | 16111 | } | 
|  | 16112 |  | 
|  | 16113 | _ACEOF | 
|  | 16114 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16115 | ac_cv_computed_gotos=yes | 
|  | 16116 | else | 
|  | 16117 | ac_cv_computed_gotos=no | 
|  | 16118 | fi | 
|  | 16119 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16120 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16121 | fi | 
|  | 16122 |  | 
|  | 16123 | fi | 
|  | 16124 |  | 
|  | 16125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
|  | 16126 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
|  | 16127 | case "$ac_cv_computed_gotos" in yes*) | 
|  | 16128 |  | 
|  | 16129 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
|  | 16130 |  | 
|  | 16131 | esac | 
|  | 16132 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 16133 | case $ac_sys_system in | 
|  | 16134 | AIX*) | 
|  | 16135 |  | 
|  | 16136 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
|  | 16137 | ;; | 
|  | 16138 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16139 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16140 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 16141 |  | 
|  | 16142 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16143 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
|  | 16144 | do | 
|  | 16145 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
|  | 16146 | done | 
|  | 16147 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16148 |  | 
| Ned Deily | 0db50cf | 2014-07-25 12:41:31 -0700 | [diff] [blame] | 16149 | SRCDIRS="Parser Grammar Objects Python Modules Mac Programs" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
|  | 16151 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16152 | for dir in $SRCDIRS; do | 
|  | 16153 | if test ! -d $dir; then | 
|  | 16154 | mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16155 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16156 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
|  | 16158 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16159 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16160 | # Availability of -O2: | 
|  | 16161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | 
|  | 16162 | $as_echo_n "checking for -O2... " >&6; } | 
|  | 16163 | saved_cflags="$CFLAGS" | 
|  | 16164 | CFLAGS="-O2" | 
|  | 16165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16166 | /* end confdefs.h.  */ | 
|  | 16167 |  | 
|  | 16168 | int | 
|  | 16169 | main () | 
|  | 16170 | { | 
|  | 16171 |  | 
|  | 16172 |  | 
|  | 16173 | ; | 
|  | 16174 | return 0; | 
|  | 16175 | } | 
|  | 16176 | _ACEOF | 
|  | 16177 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 16178 | have_O2=yes | 
|  | 16179 | else | 
|  | 16180 | have_O2=no | 
|  | 16181 | fi | 
|  | 16182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | 
|  | 16184 | $as_echo "$have_O2" >&6; } | 
|  | 16185 | CFLAGS="$saved_cflags" | 
|  | 16186 |  | 
|  | 16187 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | 
|  | 16188 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | 
|  | 16189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | 
|  | 16190 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | 
|  | 16191 | saved_cflags="$CFLAGS" | 
|  | 16192 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | 
|  | 16193 | if test "$have_O2" = no; then | 
|  | 16194 | CFLAGS="" | 
|  | 16195 | fi | 
|  | 16196 | if test "$cross_compiling" = yes; then : | 
|  | 16197 | have_glibc_memmove_bug=undefined | 
|  | 16198 | else | 
|  | 16199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16200 | /* end confdefs.h.  */ | 
|  | 16201 |  | 
|  | 16202 | #include <stdio.h> | 
|  | 16203 | #include <stdlib.h> | 
|  | 16204 | #include <string.h> | 
|  | 16205 | void foo(void *p, void *q) { memmove(p, q, 19); } | 
|  | 16206 | int main() { | 
|  | 16207 | char a[32] = "123456789000000000"; | 
|  | 16208 | foo(&a[9], a); | 
|  | 16209 | if (strcmp(a, "123456789123456789000000000") != 0) | 
|  | 16210 | return 1; | 
|  | 16211 | foo(a, &a[9]); | 
|  | 16212 | if (strcmp(a, "123456789000000000") != 0) | 
|  | 16213 | return 1; | 
|  | 16214 | return 0; | 
|  | 16215 | } | 
|  | 16216 |  | 
|  | 16217 | _ACEOF | 
|  | 16218 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16219 | have_glibc_memmove_bug=no | 
|  | 16220 | else | 
|  | 16221 | have_glibc_memmove_bug=yes | 
|  | 16222 | fi | 
|  | 16223 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16224 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16225 | fi | 
|  | 16226 |  | 
|  | 16227 | CFLAGS="$saved_cflags" | 
|  | 16228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | 
|  | 16229 | $as_echo "$have_glibc_memmove_bug" >&6; } | 
|  | 16230 | if test "$have_glibc_memmove_bug" = yes; then | 
|  | 16231 |  | 
|  | 16232 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | 
|  | 16233 |  | 
|  | 16234 | fi | 
|  | 16235 |  | 
|  | 16236 | if test "$have_gcc_asm_for_x87" = yes; then | 
|  | 16237 | # Some versions of gcc miscompile inline asm: | 
|  | 16238 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | 
|  | 16239 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | 
|  | 16240 | case $CC in | 
|  | 16241 | *gcc*) | 
|  | 16242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | 
|  | 16243 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | 
|  | 16244 | saved_cflags="$CFLAGS" | 
|  | 16245 | CFLAGS="-O2" | 
|  | 16246 | if test "$cross_compiling" = yes; then : | 
|  | 16247 | have_ipa_pure_const_bug=undefined | 
|  | 16248 | else | 
|  | 16249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16250 | /* end confdefs.h.  */ | 
|  | 16251 |  | 
|  | 16252 | __attribute__((noinline)) int | 
|  | 16253 | foo(int *p) { | 
|  | 16254 | int r; | 
|  | 16255 | asm ( "movl \$6, (%1)\n\t" | 
|  | 16256 | "xorl %0, %0\n\t" | 
|  | 16257 | : "=r" (r) : "r" (p) : "memory" | 
|  | 16258 | ); | 
|  | 16259 | return r; | 
|  | 16260 | } | 
|  | 16261 | int main() { | 
|  | 16262 | int p = 8; | 
|  | 16263 | if ((foo(&p) ? : p) != 6) | 
|  | 16264 | return 1; | 
|  | 16265 | return 0; | 
|  | 16266 | } | 
|  | 16267 |  | 
|  | 16268 | _ACEOF | 
|  | 16269 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16270 | have_ipa_pure_const_bug=no | 
|  | 16271 | else | 
|  | 16272 | have_ipa_pure_const_bug=yes | 
|  | 16273 | fi | 
|  | 16274 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16275 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16276 | fi | 
|  | 16277 |  | 
|  | 16278 | CFLAGS="$saved_cflags" | 
|  | 16279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | 
|  | 16280 | $as_echo "$have_ipa_pure_const_bug" >&6; } | 
|  | 16281 | if test "$have_ipa_pure_const_bug" = yes; then | 
|  | 16282 |  | 
|  | 16283 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | 
|  | 16284 |  | 
|  | 16285 | fi | 
|  | 16286 | ;; | 
|  | 16287 | esac | 
|  | 16288 | fi | 
|  | 16289 |  | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16290 | # Check for stdatomic.h | 
|  | 16291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 | 
|  | 16292 | $as_echo_n "checking for stdatomic.h... " >&6; } | 
|  | 16293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16294 | /* end confdefs.h.  */ | 
|  | 16295 |  | 
|  | 16296 |  | 
|  | 16297 | #include <stdatomic.h> | 
| Victor Stinner | 923e06f | 2015-01-14 16:01:46 +0100 | [diff] [blame] | 16298 | atomic_int value = ATOMIC_VAR_INIT(1); | 
|  | 16299 | _Atomic void *py_atomic_address = (void*) &value; | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16300 | int main() { | 
|  | 16301 | int loaded_value = atomic_load(&value); | 
|  | 16302 | return 0; | 
|  | 16303 | } | 
|  | 16304 |  | 
|  | 16305 |  | 
|  | 16306 | _ACEOF | 
|  | 16307 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16308 | have_stdatomic_h=yes | 
|  | 16309 | else | 
|  | 16310 | have_stdatomic_h=no | 
|  | 16311 | fi | 
|  | 16312 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16313 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16314 |  | 
|  | 16315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 | 
|  | 16316 | $as_echo "$have_stdatomic_h" >&6; } | 
|  | 16317 |  | 
|  | 16318 | if test "$have_stdatomic_h" = yes; then | 
|  | 16319 |  | 
|  | 16320 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h | 
|  | 16321 |  | 
|  | 16322 | fi | 
|  | 16323 |  | 
|  | 16324 | # Check for GCC >= 4.7 __atomic builtins | 
|  | 16325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 | 
|  | 16326 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } | 
|  | 16327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16328 | /* end confdefs.h.  */ | 
|  | 16329 |  | 
|  | 16330 |  | 
|  | 16331 | volatile int val = 1; | 
|  | 16332 | int main() { | 
|  | 16333 | __atomic_load_n(&val, __ATOMIC_SEQ_CST); | 
|  | 16334 | return 0; | 
|  | 16335 | } | 
|  | 16336 |  | 
|  | 16337 |  | 
|  | 16338 | _ACEOF | 
|  | 16339 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16340 | have_builtin_atomic=yes | 
|  | 16341 | else | 
|  | 16342 | have_builtin_atomic=no | 
|  | 16343 | fi | 
|  | 16344 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16345 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16346 |  | 
|  | 16347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 | 
|  | 16348 | $as_echo "$have_builtin_atomic" >&6; } | 
|  | 16349 |  | 
|  | 16350 | if test "$have_builtin_atomic" = yes; then | 
|  | 16351 |  | 
|  | 16352 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h | 
|  | 16353 |  | 
|  | 16354 | fi | 
|  | 16355 |  | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 16356 | # ensurepip option | 
|  | 16357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | 
|  | 16358 | $as_echo_n "checking for ensurepip... " >&6; } | 
|  | 16359 |  | 
|  | 16360 | # Check whether --with-ensurepip was given. | 
|  | 16361 | if test "${with_ensurepip+set}" = set; then : | 
|  | 16362 | withval=$with_ensurepip; | 
|  | 16363 | else | 
|  | 16364 | with_ensurepip=upgrade | 
|  | 16365 | fi | 
|  | 16366 |  | 
|  | 16367 | case $with_ensurepip in #( | 
|  | 16368 | yes|upgrade) : | 
|  | 16369 | ENSUREPIP=upgrade ;; #( | 
|  | 16370 | install) : | 
|  | 16371 | ENSUREPIP=install ;; #( | 
|  | 16372 | no) : | 
|  | 16373 | ENSUREPIP=no ;; #( | 
|  | 16374 | *) : | 
|  | 16375 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | 
|  | 16376 | esac | 
|  | 16377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | 
|  | 16378 | $as_echo "$ENSUREPIP" >&6; } | 
|  | 16379 |  | 
|  | 16380 |  | 
| Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 16381 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined | 
|  | 16382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 | 
|  | 16383 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | 
|  | 16384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16385 | /* end confdefs.h.  */ | 
|  | 16386 |  | 
|  | 16387 |  | 
|  | 16388 | #include <dirent.h> | 
|  | 16389 |  | 
|  | 16390 | int main() { | 
|  | 16391 | struct dirent entry; | 
|  | 16392 | return entry.d_type == DT_UNKNOWN; | 
|  | 16393 | } | 
|  | 16394 |  | 
|  | 16395 |  | 
|  | 16396 | _ACEOF | 
|  | 16397 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16398 | have_dirent_d_type=yes | 
|  | 16399 | else | 
|  | 16400 | have_dirent_d_type=no | 
|  | 16401 | fi | 
|  | 16402 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16403 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 | 
|  | 16405 | $as_echo "$have_dirent_d_type" >&6; } | 
|  | 16406 |  | 
|  | 16407 | if test "$have_dirent_d_type" = yes; then | 
|  | 16408 |  | 
|  | 16409 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h | 
|  | 16410 |  | 
|  | 16411 | fi | 
|  | 16412 |  | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16413 | # check if the Linux getrandom() syscall is available | 
|  | 16414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 | 
|  | 16415 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | 
|  | 16416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16417 | /* end confdefs.h.  */ | 
|  | 16418 |  | 
|  | 16419 |  | 
| Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 16420 | #include <unistd.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16421 | #include <sys/syscall.h> | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16422 | #include <linux/random.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16423 |  | 
|  | 16424 | int main() { | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16425 | char buffer[1]; | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16426 | const size_t buflen = sizeof(buffer); | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16427 | const int flags = GRND_NONBLOCK; | 
|  | 16428 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16429 | (void)syscall(SYS_getrandom, buffer, buflen, flags); | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16430 | return 0; | 
|  | 16431 | } | 
|  | 16432 |  | 
|  | 16433 |  | 
|  | 16434 | _ACEOF | 
|  | 16435 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16436 | have_getrandom_syscall=yes | 
|  | 16437 | else | 
|  | 16438 | have_getrandom_syscall=no | 
|  | 16439 | fi | 
|  | 16440 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16441 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 | 
|  | 16443 | $as_echo "$have_getrandom_syscall" >&6; } | 
|  | 16444 |  | 
|  | 16445 | if test "$have_getrandom_syscall" = yes; then | 
|  | 16446 |  | 
|  | 16447 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h | 
|  | 16448 |  | 
|  | 16449 | fi | 
|  | 16450 |  | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16451 | # check if the getrandom() function is available | 
|  | 16452 | # the test was written for the Solaris function of <sys/random.h> | 
|  | 16453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 | 
|  | 16454 | $as_echo_n "checking for the getrandom() function... " >&6; } | 
|  | 16455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16456 | /* end confdefs.h.  */ | 
|  | 16457 |  | 
|  | 16458 |  | 
|  | 16459 | #include <sys/random.h> | 
|  | 16460 |  | 
|  | 16461 | int main() { | 
|  | 16462 | char buffer[1]; | 
|  | 16463 | const size_t buflen = sizeof(buffer); | 
|  | 16464 | const int flags = 0; | 
|  | 16465 | /* ignore the result, Python checks for ENOSYS at runtime */ | 
|  | 16466 | (void)getrandom(buffer, buflen, flags); | 
|  | 16467 | return 0; | 
|  | 16468 | } | 
|  | 16469 |  | 
|  | 16470 |  | 
|  | 16471 | _ACEOF | 
|  | 16472 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16473 | have_getrandom=yes | 
|  | 16474 | else | 
|  | 16475 | have_getrandom=no | 
|  | 16476 | fi | 
|  | 16477 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16478 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 | 
|  | 16480 | $as_echo "$have_getrandom" >&6; } | 
|  | 16481 |  | 
|  | 16482 | if test "$have_getrandom" = yes; then | 
|  | 16483 |  | 
|  | 16484 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h | 
|  | 16485 |  | 
|  | 16486 | fi | 
|  | 16487 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16488 | # generate output files | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 16489 | 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] | 16490 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16491 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
|  | 16492 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16493 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16494 | # This file is a shell script that caches the results of configure | 
|  | 16495 | # 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] | 16496 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 16497 | # It is not useful on other systems.  If it contains results you don't | 
|  | 16498 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16499 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16500 | # config.status only pays attention to the cache file if you give it | 
|  | 16501 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16502 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16503 | # `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] | 16504 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 16505 | # following values. | 
|  | 16506 |  | 
|  | 16507 | _ACEOF | 
|  | 16508 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16509 | # The following way of writing the cache mishandles newlines in values, | 
|  | 16510 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16511 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16512 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 16513 | # 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] | 16514 | ( | 
|  | 16515 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 16516 | eval ac_val=\$$ac_var | 
|  | 16517 | case $ac_val in #( | 
|  | 16518 | *${as_nl}*) | 
|  | 16519 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16520 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 16521 | $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] | 16522 | esac | 
|  | 16523 | case $ac_var in #( | 
|  | 16524 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16525 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 16526 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16527 | esac ;; | 
|  | 16528 | esac | 
|  | 16529 | done | 
|  | 16530 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16531 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16532 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 16533 | *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16534 | # `set' does not quote correctly, so add quotes: double-quote | 
|  | 16535 | # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16536 | sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16537 | "s/'/'\\\\''/g; | 
|  | 16538 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16539 | ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16540 | *) | 
|  | 16541 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16542 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16543 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16544 | esac | | 
|  | 16545 | sort | 
|  | 16546 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16547 | sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16548 | /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16549 | t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16550 | :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16551 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 16552 | t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16553 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 16554 | :end' >>confcache | 
|  | 16555 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 16556 | if test -w "$cache_file"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16557 | if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16558 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
|  | 16559 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16560 | if test ! -f "$cache_file" || test -h "$cache_file"; then | 
|  | 16561 | cat confcache >"$cache_file" | 
|  | 16562 | else | 
|  | 16563 | case $cache_file in #( | 
|  | 16564 | */* | ?:*) | 
|  | 16565 | mv -f confcache "$cache_file"$$ && | 
|  | 16566 | mv -f "$cache_file"$$ "$cache_file" ;; #( | 
|  | 16567 | *) | 
|  | 16568 | mv -f confcache "$cache_file" ;; | 
|  | 16569 | esac | 
|  | 16570 | fi | 
|  | 16571 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16572 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16573 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
|  | 16574 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16575 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16576 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16577 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16578 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16579 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 16580 | # Let make expand exec_prefix. | 
|  | 16581 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16582 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16583 | DEFS=-DHAVE_CONFIG_H | 
|  | 16584 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16585 | ac_libobjs= | 
|  | 16586 | ac_ltlibobjs= | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16587 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16588 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 16589 | # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16590 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16591 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16592 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 16593 | #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16594 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 16595 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16596 | done | 
|  | 16597 | LIBOBJS=$ac_libobjs | 
|  | 16598 |  | 
|  | 16599 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 16600 |  | 
|  | 16601 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16602 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16603 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16604 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16605 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16606 | ac_clean_files_save=$ac_clean_files | 
|  | 16607 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16608 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
|  | 16609 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 16610 | as_write_fail=0 | 
|  | 16611 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16612 | #! $SHELL | 
|  | 16613 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16614 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16615 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16616 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16617 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16618 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16619 | ac_cs_recheck=false | 
|  | 16620 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16621 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16622 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 16623 | export SHELL | 
|  | 16624 | _ASEOF | 
|  | 16625 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
|  | 16626 | ## -------------------- ## | 
|  | 16627 | ## M4sh Initialization. ## | 
|  | 16628 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16629 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16630 | # Be more Bourne compatible | 
|  | 16631 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16632 | 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] | 16633 | emulate sh | 
|  | 16634 | NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16635 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16636 | # is contrary to our usage.  Disable this feature. | 
|  | 16637 | alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16638 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16639 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16640 | case `(set -o) 2>/dev/null` in #( | 
|  | 16641 | *posix*) : | 
|  | 16642 | set -o posix ;; #( | 
|  | 16643 | *) : | 
|  | 16644 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16645 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16646 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16647 |  | 
|  | 16648 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16649 | as_nl=' | 
|  | 16650 | ' | 
|  | 16651 | export as_nl | 
|  | 16652 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 16653 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 16654 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 16655 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 16656 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 16657 | # but without wasting forks for bash or zsh. | 
|  | 16658 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 16659 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 16660 | as_echo='print -r --' | 
|  | 16661 | as_echo_n='print -rn --' | 
|  | 16662 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 16663 | as_echo='printf %s\n' | 
|  | 16664 | as_echo_n='printf %s' | 
|  | 16665 | else | 
|  | 16666 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 16667 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 16668 | as_echo_n='/usr/ucb/echo -n' | 
|  | 16669 | else | 
|  | 16670 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 16671 | as_echo_n_body='eval | 
|  | 16672 | arg=$1; | 
|  | 16673 | case $arg in #( | 
|  | 16674 | *"$as_nl"*) | 
|  | 16675 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 16676 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 16677 | esac; | 
|  | 16678 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 16679 | ' | 
|  | 16680 | export as_echo_n_body | 
|  | 16681 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 16682 | fi | 
|  | 16683 | export as_echo_body | 
|  | 16684 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 16685 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16686 |  | 
|  | 16687 | # The user is always right. | 
|  | 16688 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16689 | PATH_SEPARATOR=: | 
|  | 16690 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 16691 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 16692 | PATH_SEPARATOR=';' | 
|  | 16693 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16694 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16695 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16696 |  | 
|  | 16697 | # IFS | 
|  | 16698 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 16699 | # there to prevent editors from complaining about space-tab. | 
|  | 16700 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 16701 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16702 | IFS=" ""	$as_nl" | 
|  | 16703 |  | 
|  | 16704 | # 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] | 16705 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16706 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16707 | *[\\/]* ) as_myself=$0 ;; | 
|  | 16708 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16709 | for as_dir in $PATH | 
|  | 16710 | do | 
|  | 16711 | IFS=$as_save_IFS | 
|  | 16712 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16713 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 16714 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16715 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16716 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16717 | ;; | 
|  | 16718 | esac | 
|  | 16719 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 16720 | # in which case we are not to be found in the path. | 
|  | 16721 | if test "x$as_myself" = x; then | 
|  | 16722 | as_myself=$0 | 
|  | 16723 | fi | 
|  | 16724 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16725 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 16726 | exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16727 | fi | 
|  | 16728 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16729 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 16730 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 16731 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 16732 | # trigger a bug in pdksh 5.2.14. | 
|  | 16733 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 16734 | do eval test x\${$as_var+set} = xset \ | 
|  | 16735 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16736 | done | 
|  | 16737 | PS1='$ ' | 
|  | 16738 | PS2='> ' | 
|  | 16739 | PS4='+ ' | 
|  | 16740 |  | 
|  | 16741 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16742 | LC_ALL=C | 
|  | 16743 | export LC_ALL | 
|  | 16744 | LANGUAGE=C | 
|  | 16745 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16746 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16747 | # CDPATH. | 
|  | 16748 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 16749 |  | 
|  | 16750 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16751 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 16752 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16753 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 16754 | # 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] | 16755 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16756 | as_fn_error () | 
|  | 16757 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16758 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 16759 | if test "$4"; then | 
|  | 16760 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 16761 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16762 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16763 | $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16764 | as_fn_exit $as_status | 
|  | 16765 | } # as_fn_error | 
|  | 16766 |  | 
|  | 16767 |  | 
|  | 16768 | # as_fn_set_status STATUS | 
|  | 16769 | # ----------------------- | 
|  | 16770 | # Set $? to STATUS, without forking. | 
|  | 16771 | as_fn_set_status () | 
|  | 16772 | { | 
|  | 16773 | return $1 | 
|  | 16774 | } # as_fn_set_status | 
|  | 16775 |  | 
|  | 16776 | # as_fn_exit STATUS | 
|  | 16777 | # ----------------- | 
|  | 16778 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 16779 | as_fn_exit () | 
|  | 16780 | { | 
|  | 16781 | set +e | 
|  | 16782 | as_fn_set_status $1 | 
|  | 16783 | exit $1 | 
|  | 16784 | } # as_fn_exit | 
|  | 16785 |  | 
|  | 16786 | # as_fn_unset VAR | 
|  | 16787 | # --------------- | 
|  | 16788 | # Portably unset VAR. | 
|  | 16789 | as_fn_unset () | 
|  | 16790 | { | 
|  | 16791 | { eval $1=; unset $1;} | 
|  | 16792 | } | 
|  | 16793 | as_unset=as_fn_unset | 
|  | 16794 | # as_fn_append VAR VALUE | 
|  | 16795 | # ---------------------- | 
|  | 16796 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 16797 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 16798 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 16799 | # implementations. | 
|  | 16800 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 16801 | eval 'as_fn_append () | 
|  | 16802 | { | 
|  | 16803 | eval $1+=\$2 | 
|  | 16804 | }' | 
|  | 16805 | else | 
|  | 16806 | as_fn_append () | 
|  | 16807 | { | 
|  | 16808 | eval $1=\$$1\$2 | 
|  | 16809 | } | 
|  | 16810 | fi # as_fn_append | 
|  | 16811 |  | 
|  | 16812 | # as_fn_arith ARG... | 
|  | 16813 | # ------------------ | 
|  | 16814 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 16815 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 16816 | # must be portable across $(()) and expr. | 
|  | 16817 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 16818 | eval 'as_fn_arith () | 
|  | 16819 | { | 
|  | 16820 | as_val=$(( $* )) | 
|  | 16821 | }' | 
|  | 16822 | else | 
|  | 16823 | as_fn_arith () | 
|  | 16824 | { | 
|  | 16825 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 16826 | } | 
|  | 16827 | fi # as_fn_arith | 
|  | 16828 |  | 
|  | 16829 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16830 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 16831 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 16832 | as_expr=expr | 
|  | 16833 | else | 
|  | 16834 | as_expr=false | 
|  | 16835 | fi | 
|  | 16836 |  | 
|  | 16837 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 16838 | as_basename=basename | 
|  | 16839 | else | 
|  | 16840 | as_basename=false | 
|  | 16841 | fi | 
|  | 16842 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16843 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 16844 | as_dirname=dirname | 
|  | 16845 | else | 
|  | 16846 | as_dirname=false | 
|  | 16847 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16848 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16849 | as_me=`$as_basename -- "$0" || | 
|  | 16850 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 16851 | X"$0" : 'X\(//\)$' \| \ | 
|  | 16852 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16853 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16854 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 16855 | s//\1/ | 
|  | 16856 | q | 
|  | 16857 | } | 
|  | 16858 | /^X\/\(\/\/\)$/{ | 
|  | 16859 | s//\1/ | 
|  | 16860 | q | 
|  | 16861 | } | 
|  | 16862 | /^X\/\(\/\).*/{ | 
|  | 16863 | s//\1/ | 
|  | 16864 | q | 
|  | 16865 | } | 
|  | 16866 | s/.*/./; q'` | 
|  | 16867 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16868 | # Avoid depending upon Character Ranges. | 
|  | 16869 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 16870 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 16871 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 16872 | as_cr_digits='0123456789' | 
|  | 16873 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16874 |  | 
|  | 16875 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16876 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16877 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16878 | case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16879 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16880 | xy)  ECHO_C='\c';; | 
|  | 16881 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 16882 | ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16883 | esac;; | 
|  | 16884 | *) | 
|  | 16885 | ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16886 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 16887 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16888 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16889 | if test -d conf$$.dir; then | 
|  | 16890 | rm -f conf$$.dir/conf$$.file | 
|  | 16891 | else | 
|  | 16892 | rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16893 | mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16894 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16895 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 16896 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 16897 | as_ln_s='ln -s' | 
|  | 16898 | # ... but there are two gotchas: | 
|  | 16899 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 16900 | # 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] | 16901 | # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16902 | 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] | 16903 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16904 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 16905 | as_ln_s=ln | 
|  | 16906 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16907 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16908 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16909 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16910 | as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16911 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16912 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 16913 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16914 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16915 |  | 
|  | 16916 | # as_fn_mkdir_p | 
|  | 16917 | # ------------- | 
|  | 16918 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 16919 | as_fn_mkdir_p () | 
|  | 16920 | { | 
|  | 16921 |  | 
|  | 16922 | case $as_dir in #( | 
|  | 16923 | -*) as_dir=./$as_dir;; | 
|  | 16924 | esac | 
|  | 16925 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 16926 | as_dirs= | 
|  | 16927 | while :; do | 
|  | 16928 | case $as_dir in #( | 
|  | 16929 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 16930 | *) as_qdir=$as_dir;; | 
|  | 16931 | esac | 
|  | 16932 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 16933 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 16934 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 16935 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 16936 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 16937 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 16938 | $as_echo X"$as_dir" | | 
|  | 16939 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 16940 | s//\1/ | 
|  | 16941 | q | 
|  | 16942 | } | 
|  | 16943 | /^X\(\/\/\)[^/].*/{ | 
|  | 16944 | s//\1/ | 
|  | 16945 | q | 
|  | 16946 | } | 
|  | 16947 | /^X\(\/\/\)$/{ | 
|  | 16948 | s//\1/ | 
|  | 16949 | q | 
|  | 16950 | } | 
|  | 16951 | /^X\(\/\).*/{ | 
|  | 16952 | s//\1/ | 
|  | 16953 | q | 
|  | 16954 | } | 
|  | 16955 | s/.*/./; q'` | 
|  | 16956 | test -d "$as_dir" && break | 
|  | 16957 | done | 
|  | 16958 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16959 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16960 |  | 
|  | 16961 |  | 
|  | 16962 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16963 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16964 | as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16965 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16966 | test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16967 | as_mkdir_p=false | 
|  | 16968 | fi | 
|  | 16969 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16970 |  | 
|  | 16971 | # as_fn_executable_p FILE | 
|  | 16972 | # ----------------------- | 
|  | 16973 | # Test if FILE is an executable regular file. | 
|  | 16974 | as_fn_executable_p () | 
|  | 16975 | { | 
|  | 16976 | test -f "$1" && test -x "$1" | 
|  | 16977 | } # as_fn_executable_p | 
|  | 16978 | as_test_x='test -x' | 
|  | 16979 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16980 |  | 
|  | 16981 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16982 | 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] | 16983 |  | 
|  | 16984 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16985 | 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] | 16986 |  | 
|  | 16987 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16988 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16989 | ## ----------------------------------- ## | 
|  | 16990 | ## Main body of $CONFIG_STATUS script. ## | 
|  | 16991 | ## ----------------------------------- ## | 
|  | 16992 | _ASEOF | 
|  | 16993 | 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] | 16994 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16995 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 16996 | # 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] | 16997 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16998 | # values after options handling. | 
|  | 16999 | ac_log=" | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 17000 | This file was extended by python $as_me 3.6, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17001 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17002 |  | 
|  | 17003 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 17004 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 17005 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 17006 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 17007 | $ $0 $@ | 
|  | 17008 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17009 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 17010 | " | 
|  | 17011 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17012 | _ACEOF | 
|  | 17013 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17014 | case $ac_config_files in *" | 
|  | 17015 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
|  | 17016 | esac | 
|  | 17017 |  | 
|  | 17018 | case $ac_config_headers in *" | 
|  | 17019 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
|  | 17020 | esac | 
|  | 17021 |  | 
|  | 17022 |  | 
|  | 17023 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17024 | # Files that config.status was made for. | 
| Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 17025 | config_files="$ac_config_files" | 
|  | 17026 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17027 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17028 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17029 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17030 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17031 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17032 | \`$as_me' instantiates files and other configuration actions | 
|  | 17033 | from templates according to the current configuration.  Unless the files | 
|  | 17034 | 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] | 17035 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17036 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17037 |  | 
|  | 17038 | -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17039 | -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17040 | --config     print configuration, then exit | 
|  | 17041 | -q, --quiet, --silent | 
|  | 17042 | do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17043 | -d, --debug      don't remove temporary files | 
|  | 17044 | --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17045 | --file=FILE[:TEMPLATE] | 
|  | 17046 | instantiate the configuration file FILE | 
|  | 17047 | --header=FILE[:TEMPLATE] | 
|  | 17048 | instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17049 |  | 
|  | 17050 | Configuration files: | 
|  | 17051 | $config_files | 
|  | 17052 |  | 
|  | 17053 | Configuration headers: | 
|  | 17054 | $config_headers | 
|  | 17055 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 17056 | Report bugs to <https://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 17057 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17058 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17059 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17060 | 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] | 17061 | ac_cs_version="\\ | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 17062 | python config.status 3.6 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17063 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17064 | with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17065 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17066 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17067 | This config.status script is free software; the Free Software Foundation | 
|  | 17068 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17069 |  | 
|  | 17070 | ac_pwd='$ac_pwd' | 
|  | 17071 | srcdir='$srcdir' | 
|  | 17072 | INSTALL='$INSTALL' | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17073 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17074 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17075 | _ACEOF | 
|  | 17076 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17077 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 17078 | # 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] | 17079 | ac_need_defaults=: | 
|  | 17080 | while test $# != 0 | 
|  | 17081 | do | 
|  | 17082 | case $1 in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17083 | --*=?*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17084 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 17085 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17086 | ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17087 | ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17088 | --*=) | 
|  | 17089 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 17090 | ac_optarg= | 
|  | 17091 | ac_shift=: | 
|  | 17092 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17093 | *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17094 | ac_option=$1 | 
|  | 17095 | ac_optarg=$2 | 
|  | 17096 | ac_shift=shift | 
|  | 17097 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17098 | esac | 
|  | 17099 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17100 | case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17101 | # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17102 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 17103 | ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17104 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17105 | $as_echo "$ac_cs_version"; exit ;; | 
|  | 17106 | --config | --confi | --conf | --con | --co | --c ) | 
|  | 17107 | $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17108 | --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17109 | debug=: ;; | 
|  | 17110 | --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17111 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17112 | case $ac_optarg in | 
|  | 17113 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17114 | '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17115 | esac | 
|  | 17116 | as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17117 | ac_need_defaults=false;; | 
|  | 17118 | --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17119 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17120 | case $ac_optarg in | 
|  | 17121 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 17122 | esac | 
|  | 17123 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17124 | ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17125 | --he | --h) | 
|  | 17126 | # Conflict between --help and --header | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17127 | as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17128 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17129 | --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17130 | $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17131 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 17132 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 17133 | ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17134 |  | 
|  | 17135 | # This is an error. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17136 | -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17137 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17138 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17139 | *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17140 | ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17141 |  | 
|  | 17142 | esac | 
|  | 17143 | shift | 
|  | 17144 | done | 
|  | 17145 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17146 | ac_configure_extra_args= | 
|  | 17147 |  | 
|  | 17148 | if $ac_cs_silent; then | 
|  | 17149 | exec 6>/dev/null | 
|  | 17150 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 17151 | fi | 
|  | 17152 |  | 
|  | 17153 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17154 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17155 | if \$ac_cs_recheck; then | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17156 | 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] | 17157 | shift | 
|  | 17158 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
|  | 17159 | CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17160 | export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17161 | exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17162 | fi | 
|  | 17163 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17164 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17165 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17166 | exec 5>>config.log | 
|  | 17167 | { | 
|  | 17168 | echo | 
|  | 17169 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 17170 | ## Running $as_me. ## | 
|  | 17171 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17172 | $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17173 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17174 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17175 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17176 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17177 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17178 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17179 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17180 |  | 
|  | 17181 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17182 | for ac_config_target in $ac_config_targets | 
|  | 17183 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17184 | case $ac_config_target in | 
|  | 17185 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
|  | 17186 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
|  | 17187 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 17188 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
|  | 17189 | "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] | 17190 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
|  | 17191 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17192 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17193 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17194 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17195 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17196 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17197 | esac | 
|  | 17198 | done | 
|  | 17199 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17200 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17201 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 17202 | # then the envvar interface is used.  Set only those that are not. | 
|  | 17203 | # We use the long form for the default assignment because of an extremely | 
|  | 17204 | # bizarre bug on SunOS 4.1.3. | 
|  | 17205 | if $ac_need_defaults; then | 
|  | 17206 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 17207 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
|  | 17208 | fi | 
|  | 17209 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17210 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17211 | # 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] | 17212 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17213 | # Hook for its removal unless debugging. | 
|  | 17214 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 17215 | # 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] | 17216 | $debug || | 
|  | 17217 | { | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17218 | tmp= ac_tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17219 | trap 'exit_status=$? | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17220 | : "${ac_tmp:=$tmp}" | 
|  | 17221 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17222 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17223 | trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17224 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17225 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17226 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17227 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17228 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17229 | test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17230 | }  || | 
|  | 17231 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17232 | tmp=./conf$$-$RANDOM | 
|  | 17233 | (umask 077 && mkdir "$tmp") | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17234 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17235 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17236 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17237 | # Set up the scripts for CONFIG_FILES section. | 
|  | 17238 | # No need to generate them if there are no CONFIG_FILES. | 
|  | 17239 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17240 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17241 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17242 |  | 
|  | 17243 | ac_cr=`echo X | tr X '\015'` | 
|  | 17244 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
|  | 17245 | # But we know of no other shell where ac_cr would be empty at this | 
|  | 17246 | # point, so we can use a bashism as a fallback. | 
|  | 17247 | if test "x$ac_cr" = x; then | 
|  | 17248 | eval ac_cr=\$\'\\r\' | 
|  | 17249 | fi | 
|  | 17250 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
|  | 17251 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17252 | ac_cs_awk_cr='\\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17253 | else | 
|  | 17254 | ac_cs_awk_cr=$ac_cr | 
|  | 17255 | fi | 
|  | 17256 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17257 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17258 | _ACEOF | 
|  | 17259 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17260 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17261 | { | 
|  | 17262 | echo "cat >conf$$subs.awk <<_ACEOF" && | 
|  | 17263 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
|  | 17264 | echo "_ACEOF" | 
|  | 17265 | } >conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17266 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
|  | 17267 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17268 | ac_delim='%!_!# ' | 
|  | 17269 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17270 | . ./conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17271 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17272 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17273 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
|  | 17274 | if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17275 | break | 
|  | 17276 | elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17277 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17278 | else | 
|  | 17279 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17280 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17281 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17282 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17283 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17284 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17285 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17286 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17287 | sed -n ' | 
|  | 17288 | h | 
|  | 17289 | s/^/S["/; s/!.*/"]=/ | 
|  | 17290 | p | 
|  | 17291 | g | 
|  | 17292 | s/^[^!]*!// | 
|  | 17293 | :repl | 
|  | 17294 | t repl | 
|  | 17295 | s/'"$ac_delim"'$// | 
|  | 17296 | t delim | 
|  | 17297 | :nl | 
|  | 17298 | h | 
|  | 17299 | s/\(.\{148\}\)..*/\1/ | 
|  | 17300 | t more1 | 
|  | 17301 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
|  | 17302 | p | 
|  | 17303 | n | 
|  | 17304 | b repl | 
|  | 17305 | :more1 | 
|  | 17306 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 17307 | p | 
|  | 17308 | g | 
|  | 17309 | s/.\{148\}// | 
|  | 17310 | t nl | 
|  | 17311 | :delim | 
|  | 17312 | h | 
|  | 17313 | s/\(.\{148\}\)..*/\1/ | 
|  | 17314 | t more2 | 
|  | 17315 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
|  | 17316 | p | 
|  | 17317 | b | 
|  | 17318 | :more2 | 
|  | 17319 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 17320 | p | 
|  | 17321 | g | 
|  | 17322 | s/.\{148\}// | 
|  | 17323 | t delim | 
|  | 17324 | ' <conf$$subs.awk | sed ' | 
|  | 17325 | /^[^""]/{ | 
|  | 17326 | N | 
|  | 17327 | s/\n// | 
|  | 17328 | } | 
|  | 17329 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 17330 | rm -f conf$$subs.awk | 
|  | 17331 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17332 | _ACAWK | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17333 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17334 | for (key in S) S_is_set[key] = 1 | 
|  | 17335 | FS = "" | 
|  | 17336 |  | 
|  | 17337 | } | 
|  | 17338 | { | 
|  | 17339 | line = $ 0 | 
|  | 17340 | nfields = split(line, field, "@") | 
|  | 17341 | substed = 0 | 
|  | 17342 | len = length(field[1]) | 
|  | 17343 | for (i = 2; i < nfields; i++) { | 
|  | 17344 | key = field[i] | 
|  | 17345 | keylen = length(key) | 
|  | 17346 | if (S_is_set[key]) { | 
|  | 17347 | value = S[key] | 
|  | 17348 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
|  | 17349 | len += length(value) + length(field[++i]) | 
|  | 17350 | substed = 1 | 
|  | 17351 | } else | 
|  | 17352 | len += 1 + keylen | 
|  | 17353 | } | 
|  | 17354 |  | 
|  | 17355 | print line | 
|  | 17356 | } | 
|  | 17357 |  | 
|  | 17358 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17359 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17360 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 17361 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
|  | 17362 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
|  | 17363 | else | 
|  | 17364 | cat | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17365 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17366 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17367 | _ACEOF | 
|  | 17368 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17369 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
|  | 17370 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17371 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 17372 | # (actually we leave an empty line to preserve line numbers). | 
|  | 17373 | if test "x$srcdir" = x.; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17374 | ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
|  | 17375 | h | 
|  | 17376 | s/// | 
|  | 17377 | s/^/:/ | 
|  | 17378 | s/[	 ]*$/:/ | 
|  | 17379 | s/:\$(srcdir):/:/g | 
|  | 17380 | s/:\${srcdir}:/:/g | 
|  | 17381 | s/:@srcdir@:/:/g | 
|  | 17382 | s/^:*// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17383 | s/:*$// | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17384 | x | 
|  | 17385 | s/\(=[	 ]*\).*/\1/ | 
|  | 17386 | G | 
|  | 17387 | s/\n// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17388 | s/^[^=]*=[	 ]*$// | 
|  | 17389 | }' | 
|  | 17390 | fi | 
|  | 17391 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17392 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17393 | fi # test -n "$CONFIG_FILES" | 
|  | 17394 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17395 | # Set up the scripts for CONFIG_HEADERS section. | 
|  | 17396 | # No need to generate them if there are no CONFIG_HEADERS. | 
|  | 17397 | # This happens for instance with `./config.status Makefile'. | 
|  | 17398 | if test -n "$CONFIG_HEADERS"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17399 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17400 | BEGIN { | 
|  | 17401 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17402 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17403 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
|  | 17404 | # here-document in config.status, that substitutes the proper values into | 
|  | 17405 | # config.h.in to produce config.h. | 
|  | 17406 |  | 
|  | 17407 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
|  | 17408 | # handling of long lines. | 
|  | 17409 | ac_delim='%!_!# ' | 
|  | 17410 | for ac_last_try in false false :; do | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17411 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
|  | 17412 | if test -z "$ac_tt"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17413 | break | 
|  | 17414 | elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17415 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17416 | else | 
|  | 17417 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 17418 | fi | 
|  | 17419 | done | 
|  | 17420 |  | 
|  | 17421 | # For the awk script, D is an array of macro values keyed by name, | 
|  | 17422 | # likewise P contains macro parameters if any.  Preserve backslash | 
|  | 17423 | # newline sequences. | 
|  | 17424 |  | 
|  | 17425 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 17426 | sed -n ' | 
|  | 17427 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 17428 | t rset | 
|  | 17429 | :rset | 
|  | 17430 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
|  | 17431 | t def | 
|  | 17432 | d | 
|  | 17433 | :def | 
|  | 17434 | s/\\$// | 
|  | 17435 | t bsnl | 
|  | 17436 | s/["\\]/\\&/g | 
|  | 17437 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 17438 | D["\1"]=" \3"/p | 
|  | 17439 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
|  | 17440 | d | 
|  | 17441 | :bsnl | 
|  | 17442 | s/["\\]/\\&/g | 
|  | 17443 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 17444 | D["\1"]=" \3\\\\\\n"\\/p | 
|  | 17445 | t cont | 
|  | 17446 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
|  | 17447 | t cont | 
|  | 17448 | d | 
|  | 17449 | :cont | 
|  | 17450 | n | 
|  | 17451 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 17452 | t clear | 
|  | 17453 | :clear | 
|  | 17454 | s/\\$// | 
|  | 17455 | t bsnlc | 
|  | 17456 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
|  | 17457 | d | 
|  | 17458 | :bsnlc | 
|  | 17459 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
|  | 17460 | b cont | 
|  | 17461 | ' <confdefs.h | sed ' | 
|  | 17462 | s/'"$ac_delim"'/"\\\ | 
|  | 17463 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 17464 |  | 
|  | 17465 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17466 | for (key in D) D_is_set[key] = 1 | 
|  | 17467 | FS = "" | 
|  | 17468 | } | 
|  | 17469 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
|  | 17470 | line = \$ 0 | 
|  | 17471 | split(line, arg, " ") | 
|  | 17472 | if (arg[1] == "#") { | 
|  | 17473 | defundef = arg[2] | 
|  | 17474 | mac1 = arg[3] | 
|  | 17475 | } else { | 
|  | 17476 | defundef = substr(arg[1], 2) | 
|  | 17477 | mac1 = arg[2] | 
|  | 17478 | } | 
|  | 17479 | split(mac1, mac2, "(") #) | 
|  | 17480 | macro = mac2[1] | 
|  | 17481 | prefix = substr(line, 1, index(line, defundef) - 1) | 
|  | 17482 | if (D_is_set[macro]) { | 
|  | 17483 | # Preserve the white space surrounding the "#". | 
|  | 17484 | print prefix "define", macro P[macro] D[macro] | 
|  | 17485 | next | 
|  | 17486 | } else { | 
|  | 17487 | # Replace #undef with comments.  This is necessary, for example, | 
|  | 17488 | # in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 17489 | # on some systems where configure will not decide to define it. | 
|  | 17490 | if (defundef == "undef") { | 
|  | 17491 | print "/*", prefix defundef, macro, "*/" | 
|  | 17492 | next | 
|  | 17493 | } | 
|  | 17494 | } | 
|  | 17495 | } | 
|  | 17496 | { print } | 
|  | 17497 | _ACAWK | 
|  | 17498 | _ACEOF | 
|  | 17499 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17500 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17501 | fi # test -n "$CONFIG_HEADERS" | 
|  | 17502 |  | 
|  | 17503 |  | 
|  | 17504 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
|  | 17505 | shift | 
|  | 17506 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17507 | do | 
|  | 17508 | case $ac_tag in | 
|  | 17509 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 17510 | esac | 
|  | 17511 | case $ac_mode$ac_tag in | 
|  | 17512 | :[FHL]*:*);; | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17513 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17514 | :[FH]-) ac_tag=-:-;; | 
|  | 17515 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 17516 | esac | 
|  | 17517 | ac_save_IFS=$IFS | 
|  | 17518 | IFS=: | 
|  | 17519 | set x $ac_tag | 
|  | 17520 | IFS=$ac_save_IFS | 
|  | 17521 | shift | 
|  | 17522 | ac_file=$1 | 
|  | 17523 | shift | 
|  | 17524 |  | 
|  | 17525 | case $ac_mode in | 
|  | 17526 | :L) ac_source=$1;; | 
|  | 17527 | :[FH]) | 
|  | 17528 | ac_file_inputs= | 
|  | 17529 | for ac_f | 
|  | 17530 | do | 
|  | 17531 | case $ac_f in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17532 | -) ac_f="$ac_tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17533 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 17534 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 17535 | # because $ac_f cannot contain `:'. | 
|  | 17536 | test -f "$ac_f" || | 
|  | 17537 | case $ac_f in | 
|  | 17538 | [\\/$]*) false;; | 
|  | 17539 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 17540 | esac || | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17541 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17542 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17543 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
|  | 17544 | as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17545 | done | 
|  | 17546 |  | 
|  | 17547 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 17548 | # use $as_me), people would be surprised to read: | 
|  | 17549 | #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17550 | configure_input='Generated from '` | 
|  | 17551 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
|  | 17552 | `' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17553 | if test x"$ac_file" != x-; then | 
|  | 17554 | configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17555 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
|  | 17556 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17557 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17558 | # Neutralize special characters interpreted by sed in replacement strings. | 
|  | 17559 | case $configure_input in #( | 
|  | 17560 | *\&* | *\|* | *\\* ) | 
|  | 17561 | ac_sed_conf_input=`$as_echo "$configure_input" | | 
|  | 17562 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
|  | 17563 | *) ac_sed_conf_input=$configure_input;; | 
|  | 17564 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17565 |  | 
|  | 17566 | case $ac_tag in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17567 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
|  | 17568 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17569 | esac | 
|  | 17570 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17571 | esac | 
|  | 17572 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17573 | ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17574 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17575 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 17576 | X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17577 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17578 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17579 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 17580 | s//\1/ | 
|  | 17581 | q | 
|  | 17582 | } | 
|  | 17583 | /^X\(\/\/\)[^/].*/{ | 
|  | 17584 | s//\1/ | 
|  | 17585 | q | 
|  | 17586 | } | 
|  | 17587 | /^X\(\/\/\)$/{ | 
|  | 17588 | s//\1/ | 
|  | 17589 | q | 
|  | 17590 | } | 
|  | 17591 | /^X\(\/\).*/{ | 
|  | 17592 | s//\1/ | 
|  | 17593 | q | 
|  | 17594 | } | 
|  | 17595 | s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17596 | as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17597 | ac_builddir=. | 
|  | 17598 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17599 | case "$ac_dir" in | 
|  | 17600 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 17601 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17602 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17603 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17604 | 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] | 17605 | case $ac_top_builddir_sub in | 
|  | 17606 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 17607 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 17608 | esac ;; | 
|  | 17609 | esac | 
|  | 17610 | ac_abs_top_builddir=$ac_pwd | 
|  | 17611 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 17612 | # for backward compatibility: | 
|  | 17613 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17614 |  | 
|  | 17615 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17616 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17617 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17618 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 17619 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 17620 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17621 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17622 | ac_top_srcdir=$srcdir | 
|  | 17623 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 17624 | *) # Relative name. | 
|  | 17625 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 17626 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 17627 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17628 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17629 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17630 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17631 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17632 | case $ac_mode in | 
|  | 17633 | :F) | 
|  | 17634 | # | 
|  | 17635 | # CONFIG_FILE | 
|  | 17636 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17637 |  | 
|  | 17638 | case $INSTALL in | 
|  | 17639 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17640 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17641 | esac | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17642 | ac_MKDIR_P=$MKDIR_P | 
|  | 17643 | case $MKDIR_P in | 
|  | 17644 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 17645 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
|  | 17646 | esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17647 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17648 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17649 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17650 | # If the template does not know about datarootdir, expand it. | 
|  | 17651 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 17652 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17653 | ac_sed_dataroot=' | 
|  | 17654 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17655 | p | 
|  | 17656 | q | 
|  | 17657 | } | 
|  | 17658 | /@datadir@/p | 
|  | 17659 | /@docdir@/p | 
|  | 17660 | /@infodir@/p | 
|  | 17661 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17662 | /@mandir@/p' | 
|  | 17663 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17664 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 17665 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
|  | 17667 | $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] | 17668 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17669 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17670 | ac_datarootdir_hack=' | 
|  | 17671 | s&@datadir@&$datadir&g | 
|  | 17672 | s&@docdir@&$docdir&g | 
|  | 17673 | s&@infodir@&$infodir&g | 
|  | 17674 | s&@localedir@&$localedir&g | 
|  | 17675 | s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17676 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17677 | esac | 
|  | 17678 | _ACEOF | 
|  | 17679 |  | 
|  | 17680 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 17681 | # Shell code in configure.ac might set extrasub. | 
|  | 17682 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17683 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17684 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17685 | $extrasub | 
|  | 17686 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17687 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17688 | :t | 
|  | 17689 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17690 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17691 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17692 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17693 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 17694 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 17695 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 17696 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 17697 | s&@builddir@&$ac_builddir&;t t | 
|  | 17698 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 17699 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 17700 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17701 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17702 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17703 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17704 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
|  | 17705 | >$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] | 17706 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17707 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17708 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
|  | 17709 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
|  | 17710 | "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17711 | { $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] | 17712 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17713 | $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] | 17714 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17715 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17716 | rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17717 | case $ac_file in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17718 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
|  | 17719 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17720 | esac \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17721 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17722 | ;; | 
|  | 17723 | :H) | 
|  | 17724 | # | 
|  | 17725 | # CONFIG_HEADER | 
|  | 17726 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17727 | if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17728 | { | 
|  | 17729 | $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17730 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
|  | 17731 | } >"$ac_tmp/config.h" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17732 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17733 | 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] | 17734 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
|  | 17735 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17736 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17737 | rm -f "$ac_file" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17738 | mv "$ac_tmp/config.h" "$ac_file" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17739 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17740 | fi | 
|  | 17741 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17742 | $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17743 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17744 | || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17745 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17746 | ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17747 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17748 |  | 
|  | 17749 | esac | 
|  | 17750 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17751 |  | 
|  | 17752 | case $ac_file$ac_mode in | 
|  | 17753 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
|  | 17754 |  | 
|  | 17755 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17756 | done # for ac_tag | 
|  | 17757 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17758 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17759 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17760 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17761 | ac_clean_files=$ac_clean_files_save | 
|  | 17762 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17763 | test $ac_write_fail = 0 || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17764 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17765 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17766 |  | 
|  | 17767 | # configure is writing to config.log, and then calls config.status. | 
|  | 17768 | # config.status does its own redirection, appending to config.log. | 
|  | 17769 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 17770 | # by configure, so config.status won't be able to write to it; its | 
|  | 17771 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 17772 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 17773 | # appended to by config.status.  When coming back to configure, we | 
|  | 17774 | # need to make the FD available again. | 
|  | 17775 | if test "$no_create" != yes; then | 
|  | 17776 | ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17777 | ac_config_status_args= | 
|  | 17778 | test "$silent" = yes && | 
|  | 17779 | ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17780 | exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17781 | $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] | 17782 | exec 5>>config.log | 
|  | 17783 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 17784 | # would make configure fail if this is the last instruction. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17785 | $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17786 | fi | 
|  | 17787 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
|  | 17788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
|  | 17789 | $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] | 17790 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17791 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17792 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17793 | echo "creating Modules/Setup" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17794 | if test ! -f Modules/Setup | 
|  | 17795 | then | 
|  | 17796 | cp $srcdir/Modules/Setup.dist Modules/Setup | 
|  | 17797 | fi | 
|  | 17798 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17799 | echo "creating Modules/Setup.local" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17800 | if test ! -f Modules/Setup.local | 
|  | 17801 | then | 
|  | 17802 | echo "# Edit this file for local setup changes" >Modules/Setup.local | 
|  | 17803 | fi | 
|  | 17804 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17805 | echo "creating Makefile" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17806 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
|  | 17807 | -s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17808 | Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17809 | mv config.c Modules |