| 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 | 
 | 778 | localstatedir | 
 | 779 | sharedstatedir | 
 | 780 | sysconfdir | 
 | 781 | datadir | 
 | 782 | datarootdir | 
 | 783 | libexecdir | 
 | 784 | sbindir | 
 | 785 | bindir | 
 | 786 | program_transform_name | 
 | 787 | prefix | 
 | 788 | exec_prefix | 
 | 789 | PACKAGE_URL | 
 | 790 | PACKAGE_BUGREPORT | 
 | 791 | PACKAGE_STRING | 
 | 792 | PACKAGE_VERSION | 
 | 793 | PACKAGE_TARNAME | 
 | 794 | PACKAGE_NAME | 
 | 795 | PATH_SEPARATOR | 
 | 796 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 797 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 798 | ac_user_opts=' | 
 | 799 | enable_option_checking | 
 | 800 | enable_universalsdk | 
 | 801 | with_universal_archs | 
 | 802 | with_framework_name | 
 | 803 | enable_framework | 
 | 804 | with_gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 805 | with_icc | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 806 | with_cxx_main | 
 | 807 | with_suffix | 
 | 808 | enable_shared | 
 | 809 | enable_profiling | 
 | 810 | with_pydebug | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 811 | with_lto | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 812 | with_hash_algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 813 | with_address_sanitizer | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 814 | with_libs | 
 | 815 | with_system_expat | 
 | 816 | with_system_ffi | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 817 | with_system_libmpdec | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 818 | enable_loadable_sqlite_extensions | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 819 | with_tcltk_includes | 
 | 820 | with_tcltk_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 821 | with_dbmliborder | 
 | 822 | with_signal_module | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 823 | with_threads | 
 | 824 | with_thread | 
 | 825 | enable_ipv6 | 
 | 826 | with_doc_strings | 
 | 827 | with_tsc | 
 | 828 | with_pymalloc | 
 | 829 | with_valgrind | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 830 | with_fpectl | 
 | 831 | with_libm | 
 | 832 | with_libc | 
 | 833 | enable_big_digits | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 834 | with_computed_gotos | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 835 | with_ensurepip | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 836 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 837 |       ac_precious_vars='build_alias | 
 | 838 | host_alias | 
 | 839 | target_alias | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 840 | MACHDEP | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 841 | CC | 
 | 842 | CFLAGS | 
 | 843 | LDFLAGS | 
 | 844 | LIBS | 
 | 845 | CPPFLAGS | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 846 | CPP | 
 | 847 | PKG_CONFIG | 
 | 848 | PKG_CONFIG_PATH | 
 | 849 | PKG_CONFIG_LIBDIR' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 850 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 851 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 852 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 853 | ac_init_help= | 
 | 854 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 855 | ac_unrecognized_opts= | 
 | 856 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 857 | # The variables have the same names as the options, with | 
 | 858 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 859 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 860 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 861 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 862 | no_recursion= | 
 | 863 | prefix=NONE | 
 | 864 | program_prefix=NONE | 
 | 865 | program_suffix=NONE | 
 | 866 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 867 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 868 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 869 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 870 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 871 | x_includes=NONE | 
 | 872 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 873 |  | 
 | 874 | # Installation directory options. | 
 | 875 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 876 | # and all the variables that are supposed to be based on exec_prefix | 
 | 877 | # by default will actually change. | 
 | 878 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 879 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 880 | bindir='${exec_prefix}/bin' | 
 | 881 | sbindir='${exec_prefix}/sbin' | 
 | 882 | libexecdir='${exec_prefix}/libexec' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 883 | datarootdir='${prefix}/share' | 
 | 884 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 885 | sysconfdir='${prefix}/etc' | 
 | 886 | sharedstatedir='${prefix}/com' | 
 | 887 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 888 | includedir='${prefix}/include' | 
 | 889 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 890 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
 | 891 | infodir='${datarootdir}/info' | 
 | 892 | htmldir='${docdir}' | 
 | 893 | dvidir='${docdir}' | 
 | 894 | pdfdir='${docdir}' | 
 | 895 | psdir='${docdir}' | 
 | 896 | libdir='${exec_prefix}/lib' | 
 | 897 | localedir='${datarootdir}/locale' | 
 | 898 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 899 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 900 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 901 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 902 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 903 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 904 |   # If the previous option needs an argument, assign it. | 
 | 905 |   if test -n "$ac_prev"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 906 |     eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 907 |     ac_prev= | 
 | 908 |     continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 909 |   fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 910 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 911 |   case $ac_option in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 912 |   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
 | 913 |   *=)   ac_optarg= ;; | 
 | 914 |   *)    ac_optarg=yes ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 915 |   esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 916 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 917 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 918 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 919 |   case $ac_dashdash$ac_option in | 
 | 920 |   --) | 
 | 921 |     ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 922 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 923 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 924 |     ac_prev=bindir ;; | 
 | 925 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 926 |     bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 927 |  | 
 | 928 |   -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 929 |     ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 930 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 931 |     build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 932 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 933 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 934 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 935 |     ac_prev=cache_file ;; | 
 | 936 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 937 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 938 |     cache_file=$ac_optarg ;; | 
 | 939 |  | 
 | 940 |   --config-cache | -C) | 
 | 941 |     cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 942 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 943 |   -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 944 |     ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 945 |   -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 946 |     datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 947 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 948 |   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
 | 949 |   | --dataroo | --dataro | --datar) | 
 | 950 |     ac_prev=datarootdir ;; | 
 | 951 |   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
 | 952 |   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
 | 953 |     datarootdir=$ac_optarg ;; | 
 | 954 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 955 |   -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 956 |     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 957 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 958 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 959 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 960 |     ac_useropt_orig=$ac_useropt | 
 | 961 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 962 |     case $ac_user_opts in | 
 | 963 |       *" | 
 | 964 | "enable_$ac_useropt" | 
 | 965 | "*) ;; | 
 | 966 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
 | 967 | 	 ac_unrecognized_sep=', ';; | 
 | 968 |     esac | 
 | 969 |     eval enable_$ac_useropt=no ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 970 |  | 
 | 971 |   -docdir | --docdir | --docdi | --doc | --do) | 
 | 972 |     ac_prev=docdir ;; | 
 | 973 |   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
 | 974 |     docdir=$ac_optarg ;; | 
 | 975 |  | 
 | 976 |   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
 | 977 |     ac_prev=dvidir ;; | 
 | 978 |   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
 | 979 |     dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 980 |  | 
 | 981 |   -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 982 |     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 983 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 984 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 985 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 986 |     ac_useropt_orig=$ac_useropt | 
 | 987 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 988 |     case $ac_user_opts in | 
 | 989 |       *" | 
 | 990 | "enable_$ac_useropt" | 
 | 991 | "*) ;; | 
 | 992 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
 | 993 | 	 ac_unrecognized_sep=', ';; | 
 | 994 |     esac | 
 | 995 |     eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 996 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 997 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 998 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 999 |   | --exec | --exe | --ex) | 
 | 1000 |     ac_prev=exec_prefix ;; | 
 | 1001 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 1002 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 1003 |   | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1004 |     exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1005 |  | 
 | 1006 |   -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1007 |     # Obsolete; use --with-gas. | 
 | 1008 |     with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1009 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1010 |   -help | --help | --hel | --he | -h) | 
 | 1011 |     ac_init_help=long ;; | 
 | 1012 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 1013 |     ac_init_help=recursive ;; | 
 | 1014 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 1015 |     ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1016 |  | 
 | 1017 |   -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1018 |     ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1019 |   -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1020 |     host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1021 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1022 |   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
 | 1023 |     ac_prev=htmldir ;; | 
 | 1024 |   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
 | 1025 |   | --ht=*) | 
 | 1026 |     htmldir=$ac_optarg ;; | 
 | 1027 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1028 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 1029 |   | --includ | --inclu | --incl | --inc) | 
 | 1030 |     ac_prev=includedir ;; | 
 | 1031 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 1032 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1033 |     includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1034 |  | 
 | 1035 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 1036 |     ac_prev=infodir ;; | 
 | 1037 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1038 |     infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1039 |  | 
 | 1040 |   -libdir | --libdir | --libdi | --libd) | 
 | 1041 |     ac_prev=libdir ;; | 
 | 1042 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1043 |     libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1044 |  | 
 | 1045 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 1046 |   | --libexe | --libex | --libe) | 
 | 1047 |     ac_prev=libexecdir ;; | 
 | 1048 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 1049 |   | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1050 |     libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1051 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1052 |   -localedir | --localedir | --localedi | --localed | --locale) | 
 | 1053 |     ac_prev=localedir ;; | 
 | 1054 |   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
 | 1055 |     localedir=$ac_optarg ;; | 
 | 1056 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1057 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1058 |   | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1059 |     ac_prev=localstatedir ;; | 
 | 1060 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1061 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1062 |     localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1063 |  | 
 | 1064 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 1065 |     ac_prev=mandir ;; | 
 | 1066 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1067 |     mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1068 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1069 |   -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1070 |     # Obsolete; use --without-fp. | 
 | 1071 |     with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1072 |  | 
 | 1073 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1074 |   | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1075 |     no_create=yes ;; | 
 | 1076 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1077 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 1078 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 1079 |     no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1080 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1081 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 1082 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 1083 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 1084 |     ac_prev=oldincludedir ;; | 
 | 1085 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 1086 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 1087 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1088 |     oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1089 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1090 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 1091 |     ac_prev=prefix ;; | 
 | 1092 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1093 |     prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1094 |  | 
 | 1095 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 1096 |   | --program-pre | --program-pr | --program-p) | 
 | 1097 |     ac_prev=program_prefix ;; | 
 | 1098 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 1099 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1100 |     program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1101 |  | 
 | 1102 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 1103 |   | --program-suf | --program-su | --program-s) | 
 | 1104 |     ac_prev=program_suffix ;; | 
 | 1105 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 1106 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1107 |     program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1108 |  | 
 | 1109 |   -program-transform-name | --program-transform-name \ | 
 | 1110 |   | --program-transform-nam | --program-transform-na \ | 
 | 1111 |   | --program-transform-n | --program-transform- \ | 
 | 1112 |   | --program-transform | --program-transfor \ | 
 | 1113 |   | --program-transfo | --program-transf \ | 
 | 1114 |   | --program-trans | --program-tran \ | 
 | 1115 |   | --progr-tra | --program-tr | --program-t) | 
 | 1116 |     ac_prev=program_transform_name ;; | 
 | 1117 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 1118 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 1119 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 1120 |   | --program-transform=* | --program-transfor=* \ | 
 | 1121 |   | --program-transfo=* | --program-transf=* \ | 
 | 1122 |   | --program-trans=* | --program-tran=* \ | 
 | 1123 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1124 |     program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1125 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1126 |   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
 | 1127 |     ac_prev=pdfdir ;; | 
 | 1128 |   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
 | 1129 |     pdfdir=$ac_optarg ;; | 
 | 1130 |  | 
 | 1131 |   -psdir | --psdir | --psdi | --psd | --ps) | 
 | 1132 |     ac_prev=psdir ;; | 
 | 1133 |   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
 | 1134 |     psdir=$ac_optarg ;; | 
 | 1135 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1136 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1137 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 1138 |     silent=yes ;; | 
 | 1139 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1140 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 1141 |     ac_prev=sbindir ;; | 
 | 1142 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 1143 |   | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1144 |     sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1145 |  | 
 | 1146 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 1147 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 1148 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 1149 |   | --sha | --sh) | 
 | 1150 |     ac_prev=sharedstatedir ;; | 
 | 1151 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 1152 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 1153 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 1154 |   | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1155 |     sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1156 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1157 |   -site | --site | --sit) | 
 | 1158 |     ac_prev=site ;; | 
 | 1159 |   -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1160 |     site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1161 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1162 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 1163 |     ac_prev=srcdir ;; | 
 | 1164 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1165 |     srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1166 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1167 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 1168 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 1169 |     ac_prev=sysconfdir ;; | 
 | 1170 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 1171 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1172 |     sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1173 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1174 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1175 |     ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1176 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1177 |     target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1178 |  | 
 | 1179 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 1180 |     verbose=yes ;; | 
 | 1181 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1182 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 1183 |     ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1184 |  | 
 | 1185 |   -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1186 |     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1187 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1188 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1189 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1190 |     ac_useropt_orig=$ac_useropt | 
 | 1191 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1192 |     case $ac_user_opts in | 
 | 1193 |       *" | 
 | 1194 | "with_$ac_useropt" | 
 | 1195 | "*) ;; | 
 | 1196 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
 | 1197 | 	 ac_unrecognized_sep=', ';; | 
 | 1198 |     esac | 
 | 1199 |     eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1200 |  | 
 | 1201 |   -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1202 |     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1203 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1204 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1205 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1206 |     ac_useropt_orig=$ac_useropt | 
 | 1207 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1208 |     case $ac_user_opts in | 
 | 1209 |       *" | 
 | 1210 | "with_$ac_useropt" | 
 | 1211 | "*) ;; | 
 | 1212 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
 | 1213 | 	 ac_unrecognized_sep=', ';; | 
 | 1214 |     esac | 
 | 1215 |     eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1216 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1217 |   --x) | 
 | 1218 |     # Obsolete; use --with-x. | 
 | 1219 |     with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1220 |  | 
 | 1221 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 1222 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 1223 |     ac_prev=x_includes ;; | 
 | 1224 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 1225 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1226 |     x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1227 |  | 
 | 1228 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 1229 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 1230 |     ac_prev=x_libraries ;; | 
 | 1231 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 1232 |   | --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] | 1233 |     x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1234 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1235 |   -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
 | 1236 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1237 |     ;; | 
 | 1238 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1239 |   *=*) | 
 | 1240 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 1241 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1242 |     case $ac_envvar in #( | 
 | 1243 |       '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1244 |       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1245 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1246 |     eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1247 |     export $ac_envvar ;; | 
 | 1248 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1249 |   *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1250 |     # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1251 |     $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] | 1252 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1253 |       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1254 |     : "${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] | 1255 |     ;; | 
 | 1256 |  | 
 | 1257 |   esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1258 | done | 
 | 1259 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1260 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1261 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1262 |   as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1263 | fi | 
 | 1264 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1265 | if test -n "$ac_unrecognized_opts"; then | 
 | 1266 |   case $enable_option_checking in | 
 | 1267 |     no) ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1268 |     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1269 |     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
 | 1270 |   esac | 
 | 1271 | fi | 
 | 1272 |  | 
 | 1273 | # Check all directory arguments for consistency. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1274 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
 | 1275 | 		datadir sysconfdir sharedstatedir localstatedir includedir \ | 
 | 1276 | 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
| Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 1277 | 		libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1278 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1279 |   eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1280 |   # Remove trailing slashes. | 
 | 1281 |   case $ac_val in | 
 | 1282 |     */ ) | 
 | 1283 |       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
 | 1284 |       eval $ac_var=\$ac_val;; | 
 | 1285 |   esac | 
 | 1286 |   # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1287 |   case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1288 |     [\\/$]* | ?:[\\/]* )  continue;; | 
 | 1289 |     NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1290 |   esac | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1291 |   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] | 1292 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1293 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1294 | # There might be people who depend on the old broken behavior: `$host' | 
 | 1295 | # used to hold the argument of --host etc. | 
 | 1296 | # FIXME: To remove some day. | 
 | 1297 | build=$build_alias | 
 | 1298 | host=$host_alias | 
 | 1299 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1300 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1301 | # FIXME: To remove some day. | 
 | 1302 | if test "x$host_alias" != x; then | 
 | 1303 |   if test "x$build_alias" = x; then | 
 | 1304 |     cross_compiling=maybe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1305 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 1306 |     cross_compiling=yes | 
 | 1307 |   fi | 
 | 1308 | fi | 
 | 1309 |  | 
 | 1310 | ac_tool_prefix= | 
 | 1311 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 1312 |  | 
 | 1313 | test "$silent" = yes && exec 6>/dev/null | 
 | 1314 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1315 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1316 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
 | 1317 | ac_ls_di=`ls -di .` && | 
 | 1318 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1319 |   as_fn_error $? "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1320 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1321 |   as_fn_error $? "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1322 |  | 
 | 1323 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1324 | # Find the source files, if location was not specified. | 
 | 1325 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1326 |   ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1327 |   # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1328 |   ac_confdir=`$as_dirname -- "$as_myself" || | 
 | 1329 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 1330 | 	 X"$as_myself" : 'X\(//\)[^/]' \| \ | 
 | 1331 | 	 X"$as_myself" : 'X\(//\)$' \| \ | 
 | 1332 | 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
 | 1333 | $as_echo X"$as_myself" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1334 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 1335 | 	    s//\1/ | 
 | 1336 | 	    q | 
 | 1337 | 	  } | 
 | 1338 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 1339 | 	    s//\1/ | 
 | 1340 | 	    q | 
 | 1341 | 	  } | 
 | 1342 | 	  /^X\(\/\/\)$/{ | 
 | 1343 | 	    s//\1/ | 
 | 1344 | 	    q | 
 | 1345 | 	  } | 
 | 1346 | 	  /^X\(\/\).*/{ | 
 | 1347 | 	    s//\1/ | 
 | 1348 | 	    q | 
 | 1349 | 	  } | 
 | 1350 | 	  s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1351 |   srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1352 |   if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1353 |     srcdir=.. | 
 | 1354 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1355 | else | 
 | 1356 |   ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1357 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1358 | if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1359 |   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1360 |   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1361 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1362 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
 | 1363 | ac_abs_confdir=`( | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1364 | 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1365 | 	pwd)` | 
 | 1366 | # When building in place, set srcdir=. | 
 | 1367 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
 | 1368 |   srcdir=. | 
 | 1369 | fi | 
 | 1370 | # Remove unnecessary trailing slashes from srcdir. | 
 | 1371 | # Double slashes in file names in object file debugging info | 
 | 1372 | # mess up M-x gdb in Emacs. | 
 | 1373 | case $srcdir in | 
 | 1374 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
 | 1375 | esac | 
 | 1376 | for ac_var in $ac_precious_vars; do | 
 | 1377 |   eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1378 |   eval ac_env_${ac_var}_value=\$${ac_var} | 
 | 1379 |   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1380 |   eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
 | 1381 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1382 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1383 | # | 
 | 1384 | # Report the --help message. | 
 | 1385 | # | 
 | 1386 | if test "$ac_init_help" = "long"; then | 
 | 1387 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 1388 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 1389 |   cat <<_ACEOF | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1390 | \`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] | 1391 |  | 
 | 1392 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 1393 |  | 
 | 1394 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 1395 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 1396 |  | 
 | 1397 | Defaults for the options are specified in brackets. | 
 | 1398 |  | 
 | 1399 | Configuration: | 
 | 1400 |   -h, --help              display this help and exit | 
 | 1401 |       --help=short        display options specific to this package | 
 | 1402 |       --help=recursive    display the short help of all the included packages | 
 | 1403 |   -V, --version           display version information and exit | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1404 |   -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1405 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 1406 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 1407 |   -n, --no-create         do not create output files | 
 | 1408 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 1409 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1410 | Installation directories: | 
 | 1411 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1412 |                           [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1413 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1414 |                           [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1415 |  | 
 | 1416 | By default, \`make install' will install all the files in | 
 | 1417 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 1418 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1419 | for instance \`--prefix=\$HOME'. | 
 | 1420 |  | 
 | 1421 | For better control, use the options below. | 
 | 1422 |  | 
 | 1423 | Fine tuning of the installation directories: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1424 |   --bindir=DIR            user executables [EPREFIX/bin] | 
 | 1425 |   --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
 | 1426 |   --libexecdir=DIR        program executables [EPREFIX/libexec] | 
 | 1427 |   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
 | 1428 |   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
 | 1429 |   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
 | 1430 |   --libdir=DIR            object code libraries [EPREFIX/lib] | 
 | 1431 |   --includedir=DIR        C header files [PREFIX/include] | 
 | 1432 |   --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
 | 1433 |   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
 | 1434 |   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
 | 1435 |   --infodir=DIR           info documentation [DATAROOTDIR/info] | 
 | 1436 |   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
 | 1437 |   --mandir=DIR            man documentation [DATAROOTDIR/man] | 
 | 1438 |   --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
 | 1439 |   --htmldir=DIR           html documentation [DOCDIR] | 
 | 1440 |   --dvidir=DIR            dvi documentation [DOCDIR] | 
 | 1441 |   --pdfdir=DIR            pdf documentation [DOCDIR] | 
 | 1442 |   --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1443 | _ACEOF | 
 | 1444 |  | 
 | 1445 |   cat <<\_ACEOF | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1446 |  | 
 | 1447 | System types: | 
 | 1448 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1449 |   --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] | 1450 | _ACEOF | 
 | 1451 | fi | 
 | 1452 |  | 
 | 1453 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1454 |   case $ac_init_help in | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1455 |      short | recursive ) echo "Configuration of python 3.6:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1456 |    esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1457 |   cat <<\_ACEOF | 
 | 1458 |  | 
 | 1459 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1460 |   --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1461 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1462 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1463 |   --enable-universalsdk[=SDKDIR] | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1464 |                           Build fat binary against Mac OS X SDK | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1465 |   --enable-framework[=INSTALLDIR] | 
 | 1466 |                           Build (MacOSX|Darwin) framework | 
 | 1467 |   --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1468 |   --enable-profiling      enable C-level code profiling | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1469 |   --enable-loadable-sqlite-extensions | 
 | 1470 |                           support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1471 |   --enable-ipv6           Enable ipv6 (with ipv4) support | 
 | 1472 |   --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1473 |   --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1474 |                           use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1475 |  | 
 | 1476 | Optional Packages: | 
 | 1477 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1478 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1479 |   --with-universal-archs=ARCH | 
 | 1480 |                           select architectures for universal build ("32-bit", | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 1481 |                           "64-bit", "3-way", "intel", "intel-32", or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1482 |   --with-framework-name=FRAMEWORK | 
 | 1483 |                           specify an alternate name of the framework built | 
 | 1484 |                           with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1485 |   --without-gcc           never use gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 1486 |   --with-icc              build with icc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1487 |   --with-cxx-main=<compiler> | 
 | 1488 |                           compile main() and link python executable with C++ | 
 | 1489 |                           compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1490 |   --with-suffix=.exe      set executable suffix | 
 | 1491 |   --with-pydebug          build with Py_DEBUG defined | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 1492 |   --with-lto              Enable Link Time Optimization in PGO builds. | 
 | 1493 |                           Disabled by default. | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1494 |   --with-hash-algorithm=[fnv|siphash24] | 
 | 1495 |                           select hash algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1496 |   --with-address-sanitizer | 
 | 1497 |                           enable AddressSanitizer | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1498 |   --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1499 |   --with-system-expat     build pyexpat module using an installed expat | 
 | 1500 |                           library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1501 |   --with-system-ffi       build _ctypes module using an installed ffi library | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1502 |   --with-system-libmpdec  build _decimal module using an installed libmpdec | 
 | 1503 |                           library | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1504 |   --with-tcltk-includes='-I...' | 
 | 1505 |                           override search for Tcl and Tk include files | 
 | 1506 |   --with-tcltk-libs='-L...' | 
 | 1507 |                           override search for Tcl and Tk libs | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1508 |   --with-dbmliborder=db1:db2:... | 
 | 1509 |                           order to check db backends for dbm. Valid value is a | 
 | 1510 |                           colon separated string with the backend names | 
 | 1511 |                           `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1512 |   --with-signal-module    disable/enable signal module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1513 |   --with(out)-threads[=DIRECTORY] | 
 | 1514 |                           disable/enable thread support | 
 | 1515 |   --with(out)-thread[=DIRECTORY] | 
 | 1516 |                           deprecated; use --with(out)-threads | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1517 |   --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1518 |   --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1519 |   --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1520 |   --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1521 |   --with-fpectl           enable SIGFPE catching | 
 | 1522 |   --with-libm=STRING      math library | 
 | 1523 |   --with-libc=STRING      C library | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1524 |   --with(out)-computed-gotos | 
 | 1525 |                           Use computed gotos in evaluation loop (enabled by | 
 | 1526 |                           default on supported compilers) | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 1527 |   --with(out)-ensurepip=[=upgrade] | 
 | 1528 |                           "install" or "upgrade" using bundled pip | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1529 |  | 
 | 1530 | Some influential environment variables: | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1531 |   MACHDEP     name for machine-dependent library files | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1532 |   CC          C compiler command | 
 | 1533 |   CFLAGS      C compiler flags | 
 | 1534 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1535 |               nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1536 |   LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1537 |   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1538 |               you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1539 |   CPP         C preprocessor | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 1540 |   PKG_CONFIG  path to pkg-config utility | 
 | 1541 |   PKG_CONFIG_PATH | 
 | 1542 |               directories to add to pkg-config's search path | 
 | 1543 |   PKG_CONFIG_LIBDIR | 
 | 1544 |               path overriding pkg-config's built-in search path | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1545 |  | 
 | 1546 | Use these variables to override the choices made by `configure' or to help | 
 | 1547 | it to find libraries and programs with nonstandard names/locations. | 
 | 1548 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1549 | Report bugs to <https://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1550 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1551 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1552 | fi | 
 | 1553 |  | 
 | 1554 | if test "$ac_init_help" = "recursive"; then | 
 | 1555 |   # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1556 |   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] | 1557 |     test -d "$ac_dir" || | 
 | 1558 |       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
 | 1559 |       continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 |     ac_builddir=. | 
 | 1561 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1562 | case "$ac_dir" in | 
 | 1563 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1564 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1565 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1566 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1567 |   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] | 1568 |   case $ac_top_builddir_sub in | 
 | 1569 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1570 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 1571 |   esac ;; | 
 | 1572 | esac | 
 | 1573 | ac_abs_top_builddir=$ac_pwd | 
 | 1574 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 1575 | # for backward compatibility: | 
 | 1576 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1577 |  | 
 | 1578 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1579 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1580 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1581 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 1582 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 1583 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1584 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1585 |     ac_top_srcdir=$srcdir | 
 | 1586 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 1587 |   *) # Relative name. | 
 | 1588 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 1589 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 1590 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1591 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1592 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1593 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1594 |     cd "$ac_dir" || { ac_status=$?; continue; } | 
 | 1595 |     # Check for guested configure. | 
 | 1596 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 1597 |       echo && | 
 | 1598 |       $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
 | 1599 |     elif test -f "$ac_srcdir/configure"; then | 
 | 1600 |       echo && | 
 | 1601 |       $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1602 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1603 |       $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] | 1604 |     fi || ac_status=$? | 
 | 1605 |     cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1606 |   done | 
 | 1607 | fi | 
 | 1608 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1609 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1610 | if $ac_init_version; then | 
 | 1611 |   cat <<\_ACEOF | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1612 | python configure 3.6 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1613 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1614 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1615 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1616 | This configure script is free software; the Free Software Foundation | 
 | 1617 | gives unlimited permission to copy, distribute and modify it. | 
 | 1618 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1619 |   exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1620 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1621 |  | 
 | 1622 | ## ------------------------ ## | 
 | 1623 | ## Autoconf initialization. ## | 
 | 1624 | ## ------------------------ ## | 
 | 1625 |  | 
 | 1626 | # ac_fn_c_try_compile LINENO | 
 | 1627 | # -------------------------- | 
 | 1628 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
 | 1629 | ac_fn_c_try_compile () | 
 | 1630 | { | 
 | 1631 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1632 |   rm -f conftest.$ac_objext | 
 | 1633 |   if { { ac_try="$ac_compile" | 
 | 1634 | case "(($ac_try" in | 
 | 1635 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1636 |   *) ac_try_echo=$ac_try;; | 
 | 1637 | esac | 
 | 1638 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1639 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1640 |   (eval "$ac_compile") 2>conftest.err | 
 | 1641 |   ac_status=$? | 
 | 1642 |   if test -s conftest.err; then | 
 | 1643 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1644 |     cat conftest.er1 >&5 | 
 | 1645 |     mv -f conftest.er1 conftest.err | 
 | 1646 |   fi | 
 | 1647 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1648 |   test $ac_status = 0; } && { | 
 | 1649 | 	 test -z "$ac_c_werror_flag" || | 
 | 1650 | 	 test ! -s conftest.err | 
 | 1651 |        } && test -s conftest.$ac_objext; then : | 
 | 1652 |   ac_retval=0 | 
 | 1653 | else | 
 | 1654 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1655 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1656 |  | 
 | 1657 | 	ac_retval=1 | 
 | 1658 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1659 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1660 |   as_fn_set_status $ac_retval | 
 | 1661 |  | 
 | 1662 | } # ac_fn_c_try_compile | 
 | 1663 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1664 | # ac_fn_c_try_cpp LINENO | 
 | 1665 | # ---------------------- | 
 | 1666 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
 | 1667 | ac_fn_c_try_cpp () | 
 | 1668 | { | 
 | 1669 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1670 |   if { { ac_try="$ac_cpp conftest.$ac_ext" | 
 | 1671 | case "(($ac_try" in | 
 | 1672 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1673 |   *) ac_try_echo=$ac_try;; | 
 | 1674 | esac | 
 | 1675 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1676 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1677 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
 | 1678 |   ac_status=$? | 
 | 1679 |   if test -s conftest.err; then | 
 | 1680 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1681 |     cat conftest.er1 >&5 | 
 | 1682 |     mv -f conftest.er1 conftest.err | 
 | 1683 |   fi | 
 | 1684 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1685 |   test $ac_status = 0; } > conftest.i && { | 
 | 1686 | 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
 | 1687 | 	 test ! -s conftest.err | 
 | 1688 |        }; then : | 
 | 1689 |   ac_retval=0 | 
 | 1690 | else | 
 | 1691 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1692 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1693 |  | 
 | 1694 |     ac_retval=1 | 
 | 1695 | fi | 
 | 1696 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
 | 1697 |   as_fn_set_status $ac_retval | 
 | 1698 |  | 
 | 1699 | } # ac_fn_c_try_cpp | 
 | 1700 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1701 | # ac_fn_c_try_link LINENO | 
 | 1702 | # ----------------------- | 
 | 1703 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
 | 1704 | ac_fn_c_try_link () | 
 | 1705 | { | 
 | 1706 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1707 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 1708 |   if { { ac_try="$ac_link" | 
 | 1709 | case "(($ac_try" in | 
 | 1710 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1711 |   *) ac_try_echo=$ac_try;; | 
 | 1712 | esac | 
 | 1713 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1714 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1715 |   (eval "$ac_link") 2>conftest.err | 
 | 1716 |   ac_status=$? | 
 | 1717 |   if test -s conftest.err; then | 
 | 1718 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1719 |     cat conftest.er1 >&5 | 
 | 1720 |     mv -f conftest.er1 conftest.err | 
 | 1721 |   fi | 
 | 1722 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1723 |   test $ac_status = 0; } && { | 
 | 1724 | 	 test -z "$ac_c_werror_flag" || | 
 | 1725 | 	 test ! -s conftest.err | 
 | 1726 |        } && test -s conftest$ac_exeext && { | 
 | 1727 | 	 test "$cross_compiling" = yes || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1728 | 	 test -x conftest$ac_exeext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1729 |        }; then : | 
 | 1730 |   ac_retval=0 | 
 | 1731 | else | 
 | 1732 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1733 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1734 |  | 
 | 1735 | 	ac_retval=1 | 
 | 1736 | fi | 
 | 1737 |   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
 | 1738 |   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
 | 1739 |   # interfere with the next link command; also delete a directory that is | 
 | 1740 |   # left behind by Apple's compiler.  We do this before executing the actions. | 
 | 1741 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1742 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1743 |   as_fn_set_status $ac_retval | 
 | 1744 |  | 
 | 1745 | } # ac_fn_c_try_link | 
 | 1746 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1747 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
 | 1748 | # ------------------------------------------------------- | 
 | 1749 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
 | 1750 | # the include files in INCLUDES and setting the cache variable VAR | 
 | 1751 | # accordingly. | 
 | 1752 | ac_fn_c_check_header_mongrel () | 
 | 1753 | { | 
 | 1754 |   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] | 1755 |   if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1756 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1757 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1758 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1759 |   $as_echo_n "(cached) " >&6 | 
 | 1760 | fi | 
 | 1761 | eval ac_res=\$$3 | 
 | 1762 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1763 | $as_echo "$ac_res" >&6; } | 
 | 1764 | else | 
 | 1765 |   # Is the header compilable? | 
 | 1766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
 | 1767 | $as_echo_n "checking $2 usability... " >&6; } | 
 | 1768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1769 | /* end confdefs.h.  */ | 
 | 1770 | $4 | 
 | 1771 | #include <$2> | 
 | 1772 | _ACEOF | 
 | 1773 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1774 |   ac_header_compiler=yes | 
 | 1775 | else | 
 | 1776 |   ac_header_compiler=no | 
 | 1777 | fi | 
 | 1778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
 | 1780 | $as_echo "$ac_header_compiler" >&6; } | 
 | 1781 |  | 
 | 1782 | # Is the header present? | 
 | 1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
 | 1784 | $as_echo_n "checking $2 presence... " >&6; } | 
 | 1785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1786 | /* end confdefs.h.  */ | 
 | 1787 | #include <$2> | 
 | 1788 | _ACEOF | 
 | 1789 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 1790 |   ac_header_preproc=yes | 
 | 1791 | else | 
 | 1792 |   ac_header_preproc=no | 
 | 1793 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1794 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
 | 1796 | $as_echo "$ac_header_preproc" >&6; } | 
 | 1797 |  | 
 | 1798 | # So?  What about this header? | 
 | 1799 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
 | 1800 |   yes:no: ) | 
 | 1801 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 1802 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 1803 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1804 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
 | 1805 |     ;; | 
 | 1806 |   no:yes:* ) | 
 | 1807 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
 | 1808 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
 | 1809 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
 | 1810 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
 | 1811 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
 | 1812 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
 | 1813 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 1814 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&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;} | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1817 | ( $as_echo "## --------------------------------------- ## | 
 | 1818 | ## Report this to https://bugs.python.org/ ## | 
 | 1819 | ## --------------------------------------- ##" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1820 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 1821 |     ;; | 
 | 1822 | esac | 
 | 1823 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1824 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1825 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1826 |   $as_echo_n "(cached) " >&6 | 
 | 1827 | else | 
 | 1828 |   eval "$3=\$ac_header_compiler" | 
 | 1829 | fi | 
 | 1830 | eval ac_res=\$$3 | 
 | 1831 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1832 | $as_echo "$ac_res" >&6; } | 
 | 1833 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1834 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1835 |  | 
 | 1836 | } # ac_fn_c_check_header_mongrel | 
 | 1837 |  | 
 | 1838 | # ac_fn_c_try_run LINENO | 
 | 1839 | # ---------------------- | 
 | 1840 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
 | 1841 | # that executables *can* be run. | 
 | 1842 | ac_fn_c_try_run () | 
 | 1843 | { | 
 | 1844 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1845 |   if { { ac_try="$ac_link" | 
 | 1846 | case "(($ac_try" in | 
 | 1847 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1848 |   *) ac_try_echo=$ac_try;; | 
 | 1849 | esac | 
 | 1850 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1851 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1852 |   (eval "$ac_link") 2>&5 | 
 | 1853 |   ac_status=$? | 
 | 1854 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1855 |   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
 | 1856 |   { { case "(($ac_try" in | 
 | 1857 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1858 |   *) ac_try_echo=$ac_try;; | 
 | 1859 | esac | 
 | 1860 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1861 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1862 |   (eval "$ac_try") 2>&5 | 
 | 1863 |   ac_status=$? | 
 | 1864 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1865 |   test $ac_status = 0; }; }; then : | 
 | 1866 |   ac_retval=0 | 
 | 1867 | else | 
 | 1868 |   $as_echo "$as_me: program exited with status $ac_status" >&5 | 
 | 1869 |        $as_echo "$as_me: failed program was:" >&5 | 
 | 1870 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1871 |  | 
 | 1872 |        ac_retval=$ac_status | 
 | 1873 | fi | 
 | 1874 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1875 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1876 |   as_fn_set_status $ac_retval | 
 | 1877 |  | 
 | 1878 | } # ac_fn_c_try_run | 
 | 1879 |  | 
 | 1880 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
 | 1881 | # ------------------------------------------------------- | 
 | 1882 | # Tests whether HEADER exists and can be compiled using the include files in | 
 | 1883 | # INCLUDES, setting the cache variable VAR accordingly. | 
 | 1884 | ac_fn_c_check_header_compile () | 
 | 1885 | { | 
 | 1886 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1887 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1888 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1889 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1890 |   $as_echo_n "(cached) " >&6 | 
 | 1891 | else | 
 | 1892 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1893 | /* end confdefs.h.  */ | 
 | 1894 | $4 | 
 | 1895 | #include <$2> | 
 | 1896 | _ACEOF | 
 | 1897 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1898 |   eval "$3=yes" | 
 | 1899 | else | 
 | 1900 |   eval "$3=no" | 
 | 1901 | fi | 
 | 1902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1903 | fi | 
 | 1904 | eval ac_res=\$$3 | 
 | 1905 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1906 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1907 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1908 |  | 
 | 1909 | } # ac_fn_c_check_header_compile | 
 | 1910 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1911 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
 | 1912 | # ------------------------------------------- | 
 | 1913 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
 | 1914 | # variable VAR accordingly. | 
 | 1915 | ac_fn_c_check_type () | 
 | 1916 | { | 
 | 1917 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1918 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1919 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1920 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1921 |   $as_echo_n "(cached) " >&6 | 
 | 1922 | else | 
 | 1923 |   eval "$3=no" | 
 | 1924 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1925 | /* end confdefs.h.  */ | 
 | 1926 | $4 | 
 | 1927 | int | 
 | 1928 | main () | 
 | 1929 | { | 
 | 1930 | if (sizeof ($2)) | 
 | 1931 | 	 return 0; | 
 | 1932 |   ; | 
 | 1933 |   return 0; | 
 | 1934 | } | 
 | 1935 | _ACEOF | 
 | 1936 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1937 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1938 | /* end confdefs.h.  */ | 
 | 1939 | $4 | 
 | 1940 | int | 
 | 1941 | main () | 
 | 1942 | { | 
 | 1943 | if (sizeof (($2))) | 
 | 1944 | 	    return 0; | 
 | 1945 |   ; | 
 | 1946 |   return 0; | 
 | 1947 | } | 
 | 1948 | _ACEOF | 
 | 1949 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1950 |  | 
 | 1951 | else | 
 | 1952 |   eval "$3=yes" | 
 | 1953 | fi | 
 | 1954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1955 | fi | 
 | 1956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1957 | fi | 
 | 1958 | eval ac_res=\$$3 | 
 | 1959 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1960 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1961 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1962 |  | 
 | 1963 | } # ac_fn_c_check_type | 
 | 1964 |  | 
 | 1965 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
 | 1966 | # ------------------------------------ | 
 | 1967 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
 | 1968 | # accordingly. | 
 | 1969 | ac_fn_c_find_uintX_t () | 
 | 1970 | { | 
 | 1971 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1972 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
 | 1973 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1974 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1975 |   $as_echo_n "(cached) " >&6 | 
 | 1976 | else | 
 | 1977 |   eval "$3=no" | 
 | 1978 |      # Order is important - never check a type that is potentially smaller | 
 | 1979 |      # than half of the expected target width. | 
 | 1980 |      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
 | 1981 | 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
 | 1982 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1983 | /* end confdefs.h.  */ | 
 | 1984 | $ac_includes_default | 
 | 1985 | int | 
 | 1986 | main () | 
 | 1987 | { | 
 | 1988 | 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] | 1989 | test_array [0] = 0; | 
 | 1990 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1991 |  | 
 | 1992 |   ; | 
 | 1993 |   return 0; | 
 | 1994 | } | 
 | 1995 | _ACEOF | 
 | 1996 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1997 |   case $ac_type in #( | 
 | 1998 |   uint$2_t) : | 
 | 1999 |     eval "$3=yes" ;; #( | 
 | 2000 |   *) : | 
 | 2001 |     eval "$3=\$ac_type" ;; | 
 | 2002 | esac | 
 | 2003 | fi | 
 | 2004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2005 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2006 |  | 
 | 2007 | else | 
 | 2008 |   break | 
 | 2009 | fi | 
 | 2010 |      done | 
 | 2011 | fi | 
 | 2012 | eval ac_res=\$$3 | 
 | 2013 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2014 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2015 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2016 |  | 
 | 2017 | } # ac_fn_c_find_uintX_t | 
 | 2018 |  | 
 | 2019 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
 | 2020 | # ----------------------------------- | 
 | 2021 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
 | 2022 | # accordingly. | 
 | 2023 | ac_fn_c_find_intX_t () | 
 | 2024 | { | 
 | 2025 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2026 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
 | 2027 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2028 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2029 |   $as_echo_n "(cached) " >&6 | 
 | 2030 | else | 
 | 2031 |   eval "$3=no" | 
 | 2032 |      # Order is important - never check a type that is potentially smaller | 
 | 2033 |      # than half of the expected target width. | 
 | 2034 |      for ac_type in int$2_t 'int' 'long int' \ | 
 | 2035 | 	 'long long int' 'short int' 'signed char'; do | 
 | 2036 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2037 | /* end confdefs.h.  */ | 
 | 2038 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2039 | 	     enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2040 | int | 
 | 2041 | main () | 
 | 2042 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2043 | 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] | 2044 | test_array [0] = 0; | 
 | 2045 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2046 |  | 
 | 2047 |   ; | 
 | 2048 |   return 0; | 
 | 2049 | } | 
 | 2050 | _ACEOF | 
 | 2051 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2052 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2053 | /* end confdefs.h.  */ | 
 | 2054 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2055 | 	        enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2056 | int | 
 | 2057 | main () | 
 | 2058 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2059 | 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] | 2060 | 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2061 | test_array [0] = 0; | 
 | 2062 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2063 |  | 
 | 2064 |   ; | 
 | 2065 |   return 0; | 
 | 2066 | } | 
 | 2067 | _ACEOF | 
 | 2068 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2069 |  | 
 | 2070 | else | 
 | 2071 |   case $ac_type in #( | 
 | 2072 |   int$2_t) : | 
 | 2073 |     eval "$3=yes" ;; #( | 
 | 2074 |   *) : | 
 | 2075 |     eval "$3=\$ac_type" ;; | 
 | 2076 | esac | 
 | 2077 | fi | 
 | 2078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2079 | fi | 
 | 2080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2081 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2082 |  | 
 | 2083 | else | 
 | 2084 |   break | 
 | 2085 | fi | 
 | 2086 |      done | 
 | 2087 | fi | 
 | 2088 | eval ac_res=\$$3 | 
 | 2089 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2090 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2091 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2092 |  | 
 | 2093 | } # ac_fn_c_find_intX_t | 
 | 2094 |  | 
 | 2095 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
 | 2096 | # -------------------------------------------- | 
 | 2097 | # Tries to find the compile-time value of EXPR in a program that includes | 
 | 2098 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
 | 2099 | # computed | 
 | 2100 | ac_fn_c_compute_int () | 
 | 2101 | { | 
 | 2102 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2103 |   if test "$cross_compiling" = yes; then | 
 | 2104 |     # Depending upon the size, compute the lo and hi bounds. | 
 | 2105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2106 | /* end confdefs.h.  */ | 
 | 2107 | $4 | 
 | 2108 | int | 
 | 2109 | main () | 
 | 2110 | { | 
 | 2111 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2112 | test_array [0] = 0; | 
 | 2113 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2114 |  | 
 | 2115 |   ; | 
 | 2116 |   return 0; | 
 | 2117 | } | 
 | 2118 | _ACEOF | 
 | 2119 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2120 |   ac_lo=0 ac_mid=0 | 
 | 2121 |   while :; do | 
 | 2122 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2123 | /* end confdefs.h.  */ | 
 | 2124 | $4 | 
 | 2125 | int | 
 | 2126 | main () | 
 | 2127 | { | 
 | 2128 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2129 | test_array [0] = 0; | 
 | 2130 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2131 |  | 
 | 2132 |   ; | 
 | 2133 |   return 0; | 
 | 2134 | } | 
 | 2135 | _ACEOF | 
 | 2136 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2137 |   ac_hi=$ac_mid; break | 
 | 2138 | else | 
 | 2139 |   as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
 | 2140 | 			if test $ac_lo -le $ac_mid; then | 
 | 2141 | 			  ac_lo= ac_hi= | 
 | 2142 | 			  break | 
 | 2143 | 			fi | 
 | 2144 | 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
 | 2145 | fi | 
 | 2146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2147 |   done | 
 | 2148 | else | 
 | 2149 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2150 | /* end confdefs.h.  */ | 
 | 2151 | $4 | 
 | 2152 | int | 
 | 2153 | main () | 
 | 2154 | { | 
 | 2155 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2156 | test_array [0] = 0; | 
 | 2157 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2158 |  | 
 | 2159 |   ; | 
 | 2160 |   return 0; | 
 | 2161 | } | 
 | 2162 | _ACEOF | 
 | 2163 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2164 |   ac_hi=-1 ac_mid=-1 | 
 | 2165 |   while :; do | 
 | 2166 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2167 | /* end confdefs.h.  */ | 
 | 2168 | $4 | 
 | 2169 | int | 
 | 2170 | main () | 
 | 2171 | { | 
 | 2172 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2173 | test_array [0] = 0; | 
 | 2174 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2175 |  | 
 | 2176 |   ; | 
 | 2177 |   return 0; | 
 | 2178 | } | 
 | 2179 | _ACEOF | 
 | 2180 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2181 |   ac_lo=$ac_mid; break | 
 | 2182 | else | 
 | 2183 |   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
 | 2184 | 			if test $ac_mid -le $ac_hi; then | 
 | 2185 | 			  ac_lo= ac_hi= | 
 | 2186 | 			  break | 
 | 2187 | 			fi | 
 | 2188 | 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
 | 2189 | fi | 
 | 2190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2191 |   done | 
 | 2192 | else | 
 | 2193 |   ac_lo= ac_hi= | 
 | 2194 | fi | 
 | 2195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2196 | fi | 
 | 2197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2198 | # Binary search between lo and hi bounds. | 
 | 2199 | while test "x$ac_lo" != "x$ac_hi"; do | 
 | 2200 |   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
 | 2201 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2202 | /* end confdefs.h.  */ | 
 | 2203 | $4 | 
 | 2204 | int | 
 | 2205 | main () | 
 | 2206 | { | 
 | 2207 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2208 | test_array [0] = 0; | 
 | 2209 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2210 |  | 
 | 2211 |   ; | 
 | 2212 |   return 0; | 
 | 2213 | } | 
 | 2214 | _ACEOF | 
 | 2215 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2216 |   ac_hi=$ac_mid | 
 | 2217 | else | 
 | 2218 |   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
 | 2219 | fi | 
 | 2220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2221 | done | 
 | 2222 | case $ac_lo in #(( | 
 | 2223 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
 | 2224 | '') ac_retval=1 ;; | 
 | 2225 | esac | 
 | 2226 |   else | 
 | 2227 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2228 | /* end confdefs.h.  */ | 
 | 2229 | $4 | 
 | 2230 | static long int longval () { return $2; } | 
 | 2231 | static unsigned long int ulongval () { return $2; } | 
 | 2232 | #include <stdio.h> | 
 | 2233 | #include <stdlib.h> | 
 | 2234 | int | 
 | 2235 | main () | 
 | 2236 | { | 
 | 2237 |  | 
 | 2238 |   FILE *f = fopen ("conftest.val", "w"); | 
 | 2239 |   if (! f) | 
 | 2240 |     return 1; | 
 | 2241 |   if (($2) < 0) | 
 | 2242 |     { | 
 | 2243 |       long int i = longval (); | 
 | 2244 |       if (i != ($2)) | 
 | 2245 | 	return 1; | 
 | 2246 |       fprintf (f, "%ld", i); | 
 | 2247 |     } | 
 | 2248 |   else | 
 | 2249 |     { | 
 | 2250 |       unsigned long int i = ulongval (); | 
 | 2251 |       if (i != ($2)) | 
 | 2252 | 	return 1; | 
 | 2253 |       fprintf (f, "%lu", i); | 
 | 2254 |     } | 
 | 2255 |   /* Do not output a trailing newline, as this causes \r\n confusion | 
 | 2256 |      on some platforms.  */ | 
 | 2257 |   return ferror (f) || fclose (f) != 0; | 
 | 2258 |  | 
 | 2259 |   ; | 
 | 2260 |   return 0; | 
 | 2261 | } | 
 | 2262 | _ACEOF | 
 | 2263 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 2264 |   echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
 | 2265 | else | 
 | 2266 |   ac_retval=1 | 
 | 2267 | fi | 
 | 2268 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 2269 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 2270 | rm -f conftest.val | 
 | 2271 |  | 
 | 2272 |   fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2273 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2274 |   as_fn_set_status $ac_retval | 
 | 2275 |  | 
 | 2276 | } # ac_fn_c_compute_int | 
 | 2277 |  | 
 | 2278 | # ac_fn_c_check_func LINENO FUNC VAR | 
 | 2279 | # ---------------------------------- | 
 | 2280 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
 | 2281 | ac_fn_c_check_func () | 
 | 2282 | { | 
 | 2283 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2284 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2285 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2286 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2287 |   $as_echo_n "(cached) " >&6 | 
 | 2288 | else | 
 | 2289 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2290 | /* end confdefs.h.  */ | 
 | 2291 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
 | 2292 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 2293 | #define $2 innocuous_$2 | 
 | 2294 |  | 
 | 2295 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2296 |     which can conflict with char $2 (); below. | 
 | 2297 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2298 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 2299 |  | 
 | 2300 | #ifdef __STDC__ | 
 | 2301 | # include <limits.h> | 
 | 2302 | #else | 
 | 2303 | # include <assert.h> | 
 | 2304 | #endif | 
 | 2305 |  | 
 | 2306 | #undef $2 | 
 | 2307 |  | 
 | 2308 | /* Override any GCC internal prototype to avoid an error. | 
 | 2309 |    Use char because int might match the return type of a GCC | 
 | 2310 |    builtin and then its argument prototype would still apply.  */ | 
 | 2311 | #ifdef __cplusplus | 
 | 2312 | extern "C" | 
 | 2313 | #endif | 
 | 2314 | char $2 (); | 
 | 2315 | /* The GNU C library defines this for functions which it implements | 
 | 2316 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2317 |     something starting with __ and the normal name is an alias.  */ | 
 | 2318 | #if defined __stub_$2 || defined __stub___$2 | 
 | 2319 | choke me | 
 | 2320 | #endif | 
 | 2321 |  | 
 | 2322 | int | 
 | 2323 | main () | 
 | 2324 | { | 
 | 2325 | return $2 (); | 
 | 2326 |   ; | 
 | 2327 |   return 0; | 
 | 2328 | } | 
 | 2329 | _ACEOF | 
 | 2330 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 2331 |   eval "$3=yes" | 
 | 2332 | else | 
 | 2333 |   eval "$3=no" | 
 | 2334 | fi | 
 | 2335 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 2336 |     conftest$ac_exeext conftest.$ac_ext | 
 | 2337 | fi | 
 | 2338 | eval ac_res=\$$3 | 
 | 2339 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2340 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2341 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2342 |  | 
 | 2343 | } # ac_fn_c_check_func | 
 | 2344 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2345 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
 | 2346 | # --------------------------------------------- | 
 | 2347 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
 | 2348 | # accordingly. | 
 | 2349 | ac_fn_c_check_decl () | 
 | 2350 | { | 
 | 2351 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2352 |   as_decl_name=`echo $2|sed 's/ *(.*//'` | 
 | 2353 |   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
 | 2354 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
 | 2355 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
 | 2356 | if eval \${$3+:} false; then : | 
 | 2357 |   $as_echo_n "(cached) " >&6 | 
 | 2358 | else | 
 | 2359 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2360 | /* end confdefs.h.  */ | 
 | 2361 | $4 | 
 | 2362 | int | 
 | 2363 | main () | 
 | 2364 | { | 
 | 2365 | #ifndef $as_decl_name | 
 | 2366 | #ifdef __cplusplus | 
 | 2367 |   (void) $as_decl_use; | 
 | 2368 | #else | 
 | 2369 |   (void) $as_decl_name; | 
 | 2370 | #endif | 
 | 2371 | #endif | 
 | 2372 |  | 
 | 2373 |   ; | 
 | 2374 |   return 0; | 
 | 2375 | } | 
 | 2376 | _ACEOF | 
 | 2377 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2378 |   eval "$3=yes" | 
 | 2379 | else | 
 | 2380 |   eval "$3=no" | 
 | 2381 | fi | 
 | 2382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2383 | fi | 
 | 2384 | eval ac_res=\$$3 | 
 | 2385 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2386 | $as_echo "$ac_res" >&6; } | 
 | 2387 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
 | 2388 |  | 
 | 2389 | } # ac_fn_c_check_decl | 
 | 2390 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2391 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
 | 2392 | # ---------------------------------------------------- | 
 | 2393 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
 | 2394 | # INCLUDES, setting cache variable VAR accordingly. | 
 | 2395 | ac_fn_c_check_member () | 
 | 2396 | { | 
 | 2397 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2398 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
 | 2399 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2400 | if eval \${$4+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2401 |   $as_echo_n "(cached) " >&6 | 
 | 2402 | else | 
 | 2403 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2404 | /* end confdefs.h.  */ | 
 | 2405 | $5 | 
 | 2406 | int | 
 | 2407 | main () | 
 | 2408 | { | 
 | 2409 | static $2 ac_aggr; | 
 | 2410 | if (ac_aggr.$3) | 
 | 2411 | return 0; | 
 | 2412 |   ; | 
 | 2413 |   return 0; | 
 | 2414 | } | 
 | 2415 | _ACEOF | 
 | 2416 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2417 |   eval "$4=yes" | 
 | 2418 | else | 
 | 2419 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2420 | /* end confdefs.h.  */ | 
 | 2421 | $5 | 
 | 2422 | int | 
 | 2423 | main () | 
 | 2424 | { | 
 | 2425 | static $2 ac_aggr; | 
 | 2426 | if (sizeof ac_aggr.$3) | 
 | 2427 | return 0; | 
 | 2428 |   ; | 
 | 2429 |   return 0; | 
 | 2430 | } | 
 | 2431 | _ACEOF | 
 | 2432 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2433 |   eval "$4=yes" | 
 | 2434 | else | 
 | 2435 |   eval "$4=no" | 
 | 2436 | fi | 
 | 2437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2438 | fi | 
 | 2439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2440 | fi | 
 | 2441 | eval ac_res=\$$4 | 
 | 2442 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2443 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2444 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2445 |  | 
 | 2446 | } # ac_fn_c_check_member | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2447 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2448 | This file contains any messages produced by compilers while | 
 | 2449 | running configure, to aid debugging if configure makes a mistake. | 
 | 2450 |  | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 2451 | It was created by python $as_me 3.6, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2452 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2453 |  | 
 | 2454 |   $ $0 $@ | 
 | 2455 |  | 
 | 2456 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2457 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2458 | { | 
 | 2459 | cat <<_ASUNAME | 
 | 2460 | ## --------- ## | 
 | 2461 | ## Platform. ## | 
 | 2462 | ## --------- ## | 
 | 2463 |  | 
 | 2464 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 2465 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 2466 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 2467 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 2468 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 2469 |  | 
 | 2470 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 2471 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 2472 |  | 
 | 2473 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 2474 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 2475 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2476 | /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] | 2477 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 2478 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 2479 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 2480 |  | 
 | 2481 | _ASUNAME | 
 | 2482 |  | 
 | 2483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2484 | for as_dir in $PATH | 
 | 2485 | do | 
 | 2486 |   IFS=$as_save_IFS | 
 | 2487 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2488 |     $as_echo "PATH: $as_dir" | 
 | 2489 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2490 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2491 |  | 
 | 2492 | } >&5 | 
 | 2493 |  | 
 | 2494 | cat >&5 <<_ACEOF | 
 | 2495 |  | 
 | 2496 |  | 
 | 2497 | ## ----------- ## | 
 | 2498 | ## Core tests. ## | 
 | 2499 | ## ----------- ## | 
 | 2500 |  | 
 | 2501 | _ACEOF | 
 | 2502 |  | 
 | 2503 |  | 
 | 2504 | # Keep a trace of the command line. | 
 | 2505 | # 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] | 2506 | # 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] | 2507 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2508 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2509 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2510 | ac_configure_args0= | 
 | 2511 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2512 | ac_must_keep_next=false | 
 | 2513 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2514 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2515 |   for ac_arg | 
 | 2516 |   do | 
 | 2517 |     case $ac_arg in | 
 | 2518 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 2519 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 2520 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 2521 |       continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2522 |     *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2523 |       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2524 |     esac | 
 | 2525 |     case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2526 |     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2527 |     2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2528 |       as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2529 |       if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2530 | 	ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2531 |       else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2532 | 	case $ac_arg in | 
 | 2533 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 2534 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 2535 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 2536 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 2537 | 	    case "$ac_configure_args0 " in | 
 | 2538 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 2539 | 	    esac | 
 | 2540 | 	    ;; | 
 | 2541 | 	  -* ) ac_must_keep_next=true ;; | 
 | 2542 | 	esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2543 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2544 |       as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2545 |       ;; | 
 | 2546 |     esac | 
 | 2547 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2548 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2549 | { ac_configure_args0=; unset ac_configure_args0;} | 
 | 2550 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2551 |  | 
 | 2552 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 2553 | # config.log.  We remove comments because anyway the quotes in there | 
 | 2554 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2555 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
 | 2556 | # 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] | 2557 | trap 'exit_status=$? | 
 | 2558 |   # Save into config.log some information that might help in debugging. | 
 | 2559 |   { | 
 | 2560 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2561 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2562 |     $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2563 | ## Cache variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2564 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2565 |     echo | 
 | 2566 |     # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2567 | ( | 
 | 2568 |   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
 | 2569 |     eval ac_val=\$$ac_var | 
 | 2570 |     case $ac_val in #( | 
 | 2571 |     *${as_nl}*) | 
 | 2572 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2573 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 2574 | $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] | 2575 |       esac | 
 | 2576 |       case $ac_var in #( | 
 | 2577 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2578 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 2579 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2580 |       esac ;; | 
 | 2581 |     esac | 
 | 2582 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2583 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2584 |     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
 | 2585 |     *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2586 |       sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2587 | 	"s/'\''/'\''\\\\'\'''\''/g; | 
 | 2588 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
 | 2589 |       ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2590 |     *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2591 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2592 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2593 |     esac | | 
 | 2594 |     sort | 
 | 2595 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2596 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2597 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2598 |     $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2599 | ## Output variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2600 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2601 |     echo | 
 | 2602 |     for ac_var in $ac_subst_vars | 
 | 2603 |     do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2604 |       eval ac_val=\$$ac_var | 
 | 2605 |       case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2606 |       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2607 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2608 |       $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2609 |     done | sort | 
 | 2610 |     echo | 
 | 2611 |  | 
 | 2612 |     if test -n "$ac_subst_files"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2613 |       $as_echo "## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2614 | ## File substitutions. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2615 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2616 |       echo | 
 | 2617 |       for ac_var in $ac_subst_files | 
 | 2618 |       do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2619 | 	eval ac_val=\$$ac_var | 
 | 2620 | 	case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2621 | 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2622 | 	esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2623 | 	$as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2624 |       done | sort | 
 | 2625 |       echo | 
 | 2626 |     fi | 
 | 2627 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2628 |     if test -s confdefs.h; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2629 |       $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2630 | ## confdefs.h. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2631 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2632 |       echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2633 |       cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 |       echo | 
 | 2635 |     fi | 
 | 2636 |     test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2637 |       $as_echo "$as_me: caught signal $ac_signal" | 
 | 2638 |     $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2639 |   } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2640 |   rm -f core *.core core.conftest.* && | 
 | 2641 |     rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2642 |     exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2643 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2644 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2645 |   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] | 2646 | done | 
 | 2647 | ac_signal=0 | 
 | 2648 |  | 
 | 2649 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2650 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2651 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2652 | $as_echo "/* confdefs.h */" > confdefs.h | 
 | 2653 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2654 | # Predefined preprocessor variables. | 
 | 2655 |  | 
 | 2656 | cat >>confdefs.h <<_ACEOF | 
 | 2657 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 2658 | _ACEOF | 
 | 2659 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2660 | cat >>confdefs.h <<_ACEOF | 
 | 2661 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 2662 | _ACEOF | 
 | 2663 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2664 | cat >>confdefs.h <<_ACEOF | 
 | 2665 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 2666 | _ACEOF | 
 | 2667 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2668 | cat >>confdefs.h <<_ACEOF | 
 | 2669 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 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_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 2674 | _ACEOF | 
 | 2675 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2676 | cat >>confdefs.h <<_ACEOF | 
 | 2677 | #define PACKAGE_URL "$PACKAGE_URL" | 
 | 2678 | _ACEOF | 
 | 2679 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2680 |  | 
 | 2681 | # 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] | 2682 | # Prefer an explicitly selected file to automatically selected ones. | 
 | 2683 | ac_site_file1=NONE | 
 | 2684 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2685 | if test -n "$CONFIG_SITE"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2686 |   # We do not want a PATH search for config.site. | 
 | 2687 |   case $CONFIG_SITE in #(( | 
 | 2688 |     -*)  ac_site_file1=./$CONFIG_SITE;; | 
 | 2689 |     */*) ac_site_file1=$CONFIG_SITE;; | 
 | 2690 |     *)   ac_site_file1=./$CONFIG_SITE;; | 
 | 2691 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2692 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2693 |   ac_site_file1=$prefix/share/config.site | 
 | 2694 |   ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2695 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2696 |   ac_site_file1=$ac_default_prefix/share/config.site | 
 | 2697 |   ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2698 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2699 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2700 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2701 |   test "x$ac_site_file" = xNONE && continue | 
 | 2702 |   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
 | 2703 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
 | 2704 | $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] | 2705 |     sed 's/^/| /' "$ac_site_file" >&5 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2706 |     . "$ac_site_file" \ | 
 | 2707 |       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2708 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2709 | as_fn_error $? "failed to load site script $ac_site_file | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2710 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2711 |   fi | 
 | 2712 | done | 
 | 2713 |  | 
 | 2714 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2715 |   # Some versions of bash will fail to source /dev/null (special files | 
 | 2716 |   # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
 | 2717 |   if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
 | 2718 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
 | 2719 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2720 |     case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2721 |       [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
 | 2722 |       *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2723 |     esac | 
 | 2724 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2725 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2726 |   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
 | 2727 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2728 |   >$cache_file | 
 | 2729 | fi | 
 | 2730 |  | 
 | 2731 | # Check that the precious variables saved in the cache have kept the same | 
 | 2732 | # value. | 
 | 2733 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2734 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2735 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 2736 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2737 |   eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
 | 2738 |   eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2739 |   case $ac_old_set,$ac_new_set in | 
 | 2740 |     set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2741 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 2742 | $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] | 2743 |       ac_cache_corrupted=: ;; | 
 | 2744 |     ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2745 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 2746 | $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] | 2747 |       ac_cache_corrupted=: ;; | 
 | 2748 |     ,);; | 
 | 2749 |     *) | 
 | 2750 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2751 | 	# differences in whitespace do not lead to failure. | 
 | 2752 | 	ac_old_val_w=`echo x $ac_old_val` | 
 | 2753 | 	ac_new_val_w=`echo x $ac_new_val` | 
 | 2754 | 	if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
 | 2755 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
 | 2756 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
 | 2757 | 	  ac_cache_corrupted=: | 
 | 2758 | 	else | 
 | 2759 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
 | 2760 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
 | 2761 | 	  eval $ac_var=\$ac_old_val | 
 | 2762 | 	fi | 
 | 2763 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
 | 2764 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
 | 2765 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
 | 2766 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2767 |       fi;; | 
 | 2768 |   esac | 
 | 2769 |   # Pass precious variables to config.status. | 
 | 2770 |   if test "$ac_new_set" = set; then | 
 | 2771 |     case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2772 |     *\'*) 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] | 2773 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 2774 |     esac | 
 | 2775 |     case " $ac_configure_args " in | 
 | 2776 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2777 |       *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2778 |     esac | 
 | 2779 |   fi | 
 | 2780 | done | 
 | 2781 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2782 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2783 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2784 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
 | 2785 | $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] | 2786 |   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] | 2787 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2788 | ## -------------------- ## | 
 | 2789 | ## Main body of script. ## | 
 | 2790 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2791 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2792 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2793 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2794 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2795 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2796 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2797 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2798 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2799 |  | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2800 |  | 
| Trent Nelson | 5595ab5 | 2012-10-17 04:47:31 -0400 | [diff] [blame] | 2801 | if test "$abs_srcdir" != "$abs_builddir"; then | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2802 |     # If we're building out-of-tree, we need to make sure the following | 
 | 2803 |     # resources get picked up before their $srcdir counterparts. | 
 | 2804 |     #   Objects/ -> typeslots.inc | 
 | 2805 |     #   Include/ -> Python-ast.h, graminit.h | 
 | 2806 |     #   Python/  -> importlib.h | 
 | 2807 |     # (A side effect of this is that these resources will automatically be | 
 | 2808 |     #  regenerated when building out-of-tree, regardless of whether or not | 
 | 2809 |     #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
 | 2810 |     #  off.) | 
 | 2811 |     BASECPPFLAGS="-IObjects -IInclude -IPython" | 
 | 2812 | else | 
 | 2813 |     BASECPPFLAGS="" | 
 | 2814 | fi | 
 | 2815 |  | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2816 |  | 
 | 2817 |  | 
 | 2818 |  | 
 | 2819 |  | 
| Antoine Pitrou | d3b2aef | 2011-07-27 01:22:41 +0200 | [diff] [blame] | 2820 | if test -e $srcdir/.hg/dirstate | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2821 | then | 
 | 2822 | # Extract the first word of "hg", so it can be a program name with args. | 
 | 2823 | set dummy hg; ac_word=$2 | 
 | 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 2825 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2826 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2827 |   $as_echo_n "(cached) " >&6 | 
 | 2828 | else | 
 | 2829 |   if test -n "$HAS_HG"; then | 
 | 2830 |   ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
 | 2831 | else | 
 | 2832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2833 | for as_dir in $PATH | 
 | 2834 | do | 
 | 2835 |   IFS=$as_save_IFS | 
 | 2836 |   test -z "$as_dir" && as_dir=. | 
 | 2837 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2838 |   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] | 2839 |     ac_cv_prog_HAS_HG="found" | 
 | 2840 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2841 |     break 2 | 
 | 2842 |   fi | 
 | 2843 | done | 
 | 2844 |   done | 
 | 2845 | IFS=$as_save_IFS | 
 | 2846 |  | 
 | 2847 |   test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
 | 2848 | fi | 
 | 2849 | fi | 
 | 2850 | HAS_HG=$ac_cv_prog_HAS_HG | 
 | 2851 | if test -n "$HAS_HG"; then | 
 | 2852 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
 | 2853 | $as_echo "$HAS_HG" >&6; } | 
 | 2854 | else | 
 | 2855 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 2856 | $as_echo "no" >&6; } | 
 | 2857 | fi | 
 | 2858 |  | 
 | 2859 |  | 
 | 2860 | else | 
 | 2861 | HAS_HG=no-repository | 
 | 2862 | fi | 
 | 2863 | if test $HAS_HG = found | 
 | 2864 | then | 
 | 2865 |     HGVERSION="hg id -i \$(srcdir)" | 
 | 2866 |     HGTAG="hg id -t \$(srcdir)" | 
 | 2867 |     HGBRANCH="hg id -b \$(srcdir)" | 
 | 2868 | else | 
 | 2869 |     HGVERSION="" | 
 | 2870 |     HGTAG="" | 
 | 2871 |     HGBRANCH="" | 
 | 2872 | fi | 
 | 2873 |  | 
 | 2874 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2875 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2876 |  | 
 | 2877 |  | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2878 | ac_aux_dir= | 
 | 2879 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
 | 2880 |   if test -f "$ac_dir/install-sh"; then | 
 | 2881 |     ac_aux_dir=$ac_dir | 
 | 2882 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 2883 |     break | 
 | 2884 |   elif test -f "$ac_dir/install.sh"; then | 
 | 2885 |     ac_aux_dir=$ac_dir | 
 | 2886 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 2887 |     break | 
 | 2888 |   elif test -f "$ac_dir/shtool"; then | 
 | 2889 |     ac_aux_dir=$ac_dir | 
 | 2890 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 2891 |     break | 
 | 2892 |   fi | 
 | 2893 | done | 
 | 2894 | if test -z "$ac_aux_dir"; then | 
 | 2895 |   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
 | 2896 | fi | 
 | 2897 |  | 
 | 2898 | # These three variables are undocumented and unsupported, | 
 | 2899 | # and are intended to be withdrawn in a future Autoconf release. | 
 | 2900 | # They can cause serious problems if a builder's source tree is in a directory | 
 | 2901 | # whose full name contains unusual characters. | 
 | 2902 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
 | 2903 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
 | 2904 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
 | 2905 |  | 
 | 2906 |  | 
 | 2907 | # Make sure we can run config.sub. | 
 | 2908 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
 | 2909 |   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
 | 2910 |  | 
 | 2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
 | 2912 | $as_echo_n "checking build system type... " >&6; } | 
 | 2913 | if ${ac_cv_build+:} false; then : | 
 | 2914 |   $as_echo_n "(cached) " >&6 | 
 | 2915 | else | 
 | 2916 |   ac_build_alias=$build_alias | 
 | 2917 | test "x$ac_build_alias" = x && | 
 | 2918 |   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
 | 2919 | test "x$ac_build_alias" = x && | 
 | 2920 |   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
 | 2921 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
 | 2922 |   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
 | 2923 |  | 
 | 2924 | fi | 
 | 2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
 | 2926 | $as_echo "$ac_cv_build" >&6; } | 
 | 2927 | case $ac_cv_build in | 
 | 2928 | *-*-*) ;; | 
 | 2929 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
 | 2930 | esac | 
 | 2931 | build=$ac_cv_build | 
 | 2932 | ac_save_IFS=$IFS; IFS='-' | 
 | 2933 | set x $ac_cv_build | 
 | 2934 | shift | 
 | 2935 | build_cpu=$1 | 
 | 2936 | build_vendor=$2 | 
 | 2937 | shift; shift | 
 | 2938 | # Remember, the first character of IFS is used to create $*, | 
 | 2939 | # except with old shells: | 
 | 2940 | build_os=$* | 
 | 2941 | IFS=$ac_save_IFS | 
 | 2942 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
 | 2943 |  | 
 | 2944 |  | 
 | 2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
 | 2946 | $as_echo_n "checking host system type... " >&6; } | 
 | 2947 | if ${ac_cv_host+:} false; then : | 
 | 2948 |   $as_echo_n "(cached) " >&6 | 
 | 2949 | else | 
 | 2950 |   if test "x$host_alias" = x; then | 
 | 2951 |   ac_cv_host=$ac_cv_build | 
 | 2952 | else | 
 | 2953 |   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
 | 2954 |     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
 | 2955 | fi | 
 | 2956 |  | 
 | 2957 | fi | 
 | 2958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
 | 2959 | $as_echo "$ac_cv_host" >&6; } | 
 | 2960 | case $ac_cv_host in | 
 | 2961 | *-*-*) ;; | 
 | 2962 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
 | 2963 | esac | 
 | 2964 | host=$ac_cv_host | 
 | 2965 | ac_save_IFS=$IFS; IFS='-' | 
 | 2966 | set x $ac_cv_host | 
 | 2967 | shift | 
 | 2968 | host_cpu=$1 | 
 | 2969 | host_vendor=$2 | 
 | 2970 | shift; shift | 
 | 2971 | # Remember, the first character of IFS is used to create $*, | 
 | 2972 | # except with old shells: | 
 | 2973 | host_os=$* | 
 | 2974 | IFS=$ac_save_IFS | 
 | 2975 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
 | 2976 |  | 
 | 2977 |  | 
 | 2978 |  | 
| doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2979 |  | 
 | 2980 |  | 
| Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2981 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile | 
 | 2982 | rm -f pybuilddir.txt | 
 | 2983 |  | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2984 | for ac_prog in python$PACKAGE_VERSION python3 python | 
 | 2985 | do | 
 | 2986 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 2987 | set dummy $ac_prog; ac_word=$2 | 
 | 2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 2989 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 2990 | if ${ac_cv_prog_PYTHON_FOR_GEN+:} false; then : | 
 | 2991 |   $as_echo_n "(cached) " >&6 | 
 | 2992 | else | 
 | 2993 |   if test -n "$PYTHON_FOR_GEN"; then | 
 | 2994 |   ac_cv_prog_PYTHON_FOR_GEN="$PYTHON_FOR_GEN" # Let the user override the test. | 
 | 2995 | else | 
 | 2996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2997 | for as_dir in $PATH | 
 | 2998 | do | 
 | 2999 |   IFS=$as_save_IFS | 
 | 3000 |   test -z "$as_dir" && as_dir=. | 
 | 3001 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3002 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3003 |     ac_cv_prog_PYTHON_FOR_GEN="$ac_prog" | 
 | 3004 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3005 |     break 2 | 
 | 3006 |   fi | 
 | 3007 | done | 
 | 3008 |   done | 
 | 3009 | IFS=$as_save_IFS | 
 | 3010 |  | 
 | 3011 | fi | 
 | 3012 | fi | 
 | 3013 | PYTHON_FOR_GEN=$ac_cv_prog_PYTHON_FOR_GEN | 
 | 3014 | if test -n "$PYTHON_FOR_GEN"; then | 
 | 3015 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_GEN" >&5 | 
 | 3016 | $as_echo "$PYTHON_FOR_GEN" >&6; } | 
 | 3017 | else | 
 | 3018 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3019 | $as_echo "no" >&6; } | 
 | 3020 | fi | 
 | 3021 |  | 
 | 3022 |  | 
 | 3023 |   test -n "$PYTHON_FOR_GEN" && break | 
 | 3024 | done | 
 | 3025 | test -n "$PYTHON_FOR_GEN" || PYTHON_FOR_GEN="not-found" | 
 | 3026 |  | 
 | 3027 | if test "$PYTHON_FOR_GEN" = not-found; then | 
 | 3028 |     PYTHON_FOR_GEN='@echo "Cannot generate $@, python not found !" && \ | 
 | 3029 |     echo "To skip re-generation of $@ run <make touch> or <make -t $@>." && \ | 
 | 3030 |     echo "Otherwise, set python in PATH and run configure or run <make PYTHON_FOR_GEN=python>." && false &&' | 
 | 3031 | fi | 
 | 3032 |  | 
 | 3033 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3034 | if test "$cross_compiling" = yes; then | 
 | 3035 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
 | 3036 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
 | 3037 |     if test -z "$PYTHON_FOR_BUILD"; then | 
 | 3038 |         for interp in python$PACKAGE_VERSION python3 python; do | 
 | 3039 | 	    which $interp >/dev/null 2>&1 || continue | 
| Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 3040 | 	    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] | 3041 | 	        break | 
 | 3042 | 	    fi | 
 | 3043 |             interp= | 
 | 3044 | 	done | 
 | 3045 |         if test x$interp = x; then | 
 | 3046 | 	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
 | 3047 | 	fi | 
 | 3048 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
 | 3049 | $as_echo "$interp" >&6; } | 
| doko@python.org | 244b687 | 2013-01-26 12:08:25 +0100 | [diff] [blame] | 3050 | 	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] | 3051 |     fi | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 3052 |     # Used to comment out stuff for rebuilding generated files | 
 | 3053 |     GENERATED_COMMENT='#' | 
| Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 3054 | elif test "$cross_compiling" = maybe; then | 
 | 3055 |     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] | 3056 | else | 
 | 3057 |     PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 3058 |     GENERATED_COMMENT='' | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3059 | fi | 
 | 3060 |  | 
 | 3061 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3062 |  | 
| Martin Panter | eac67be | 2016-07-28 01:28:27 +0000 | [diff] [blame] | 3063 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 3064 | if test "$prefix" != "/"; then | 
 | 3065 |     prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
 | 3066 | fi | 
 | 3067 |  | 
 | 3068 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3069 |  | 
 | 3070 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 3071 | # We don't use PACKAGE_ variables, and they cause conflicts | 
 | 3072 | # with other autoconf-based packages that include Python.h | 
 | 3073 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
 | 3074 | rm confdefs.h | 
 | 3075 | mv confdefs.h.new confdefs.h | 
 | 3076 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 3077 |  | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 3078 | VERSION=3.6 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 3079 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 3080 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3081 |  | 
 | 3082 | SOVERSION=1.0 | 
 | 3083 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3084 | # The later defininition of _XOPEN_SOURCE disables certain features | 
 | 3085 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
 | 3086 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3087 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3088 |  | 
 | 3089 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3090 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3091 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
 | 3092 | # them. | 
 | 3093 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3094 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3095 |  | 
 | 3096 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3097 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3098 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
 | 3099 | # them. | 
 | 3100 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3101 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3102 |  | 
 | 3103 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3104 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3105 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
 | 3106 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3107 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3108 |  | 
 | 3109 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3110 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3111 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
 | 3112 | # them. | 
 | 3113 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3114 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3115 |  | 
 | 3116 |  | 
 | 3117 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3118 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3119 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3120 | # Arguments passed to configure. | 
 | 3121 |  | 
 | 3122 | CONFIG_ARGS="$ac_configure_args" | 
 | 3123 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
 | 3125 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3126 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3127 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3128 |   enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3129 | 	case $enableval in | 
 | 3130 | 	yes) | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3131 | 		# Locate the best usable SDK, see Mac/README.txt for more | 
 | 3132 | 		# information | 
 | 3133 | 		enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3134 | 		if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3135 | 		then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3136 | 			enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
 | 3137 | 			if test ! -d "${enableval}" | 
 | 3138 | 			then | 
 | 3139 | 				enableval=/ | 
 | 3140 | 			fi | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3141 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3142 | 		;; | 
 | 3143 | 	esac | 
 | 3144 | 	case $enableval in | 
 | 3145 | 	no) | 
 | 3146 | 		UNIVERSALSDK= | 
 | 3147 | 		enable_universalsdk= | 
 | 3148 | 		;; | 
 | 3149 | 	*) | 
 | 3150 | 		UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3151 | 		if test ! -d "${UNIVERSALSDK}" | 
 | 3152 | 		then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3153 | 			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3154 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3155 | 		;; | 
 | 3156 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3157 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3158 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3159 | else | 
 | 3160 |  | 
 | 3161 |    	UNIVERSALSDK= | 
 | 3162 | 	enable_universalsdk= | 
 | 3163 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3164 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3165 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3166 | if test -n "${UNIVERSALSDK}" | 
 | 3167 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3168 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
 | 3169 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3170 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3171 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3172 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3173 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3174 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3175 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3176 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3177 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3178 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3179 | # For backward compatibility reasons we prefer to select '32-bit' if available, | 
 | 3180 | # otherwise use 'intel' | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3181 | UNIVERSAL_ARCHS="32-bit" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3182 | if test "`uname -s`" = "Darwin" | 
 | 3183 | then | 
 | 3184 | 	if test -n "${UNIVERSALSDK}" | 
 | 3185 | 	then | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3186 | 		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] | 3187 | 		then | 
 | 3188 | 			UNIVERSAL_ARCHS="intel" | 
 | 3189 | 		fi | 
 | 3190 | 	fi | 
 | 3191 | fi | 
 | 3192 |  | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3193 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
 | 3195 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3196 |  | 
 | 3197 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3198 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3199 |   withval=$with_universal_archs; | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3200 | 	UNIVERSAL_ARCHS="$withval" | 
 | 3201 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3202 | fi | 
 | 3203 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3204 | if test -n "${UNIVERSALSDK}" | 
 | 3205 | then | 
 | 3206 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | 
 | 3207 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | 
 | 3208 | else | 
 | 3209 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3210 | $as_echo "no" >&6; } | 
 | 3211 | fi | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3212 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3213 |  | 
 | 3214 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3215 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3216 |   withval=$with_framework_name; | 
 | 3217 |     PYTHONFRAMEWORK=${withval} | 
 | 3218 |     PYTHONFRAMEWORKDIR=${withval}.framework | 
 | 3219 |     PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
 | 3220 |  | 
 | 3221 | else | 
 | 3222 |  | 
 | 3223 |     PYTHONFRAMEWORK=Python | 
 | 3224 |     PYTHONFRAMEWORKDIR=Python.framework | 
 | 3225 |     PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
 | 3226 |  | 
 | 3227 | fi | 
 | 3228 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3229 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3230 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3231 |   enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3232 | 	case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3233 | 	yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3234 | 		enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3235 | 	esac | 
 | 3236 | 	case $enableval in | 
 | 3237 | 	no) | 
 | 3238 | 		PYTHONFRAMEWORK= | 
 | 3239 | 		PYTHONFRAMEWORKDIR=no-framework | 
 | 3240 | 		PYTHONFRAMEWORKPREFIX= | 
 | 3241 | 		PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3242 | 		FRAMEWORKINSTALLFIRST= | 
 | 3243 | 		FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3244 | 		FRAMEWORKALTINSTALLFIRST= | 
 | 3245 | 		FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3246 | 		FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3247 | 		if test "x${prefix}" = "xNONE"; then | 
 | 3248 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3249 | 		else | 
 | 3250 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3251 | 		fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3252 | 		enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3253 | 		;; | 
 | 3254 | 	*) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3255 | 		PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3256 | 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3257 | 		FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3258 | 		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3259 | 		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
 | 3260 | 		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3261 | 		FRAMEWORKPYTHONW="frameworkpythonw" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3262 | 		FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3263 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3264 | 		if test "x${prefix}" = "xNONE" ; then | 
 | 3265 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3266 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3267 | 		else | 
 | 3268 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3269 | 		fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3270 |  | 
 | 3271 | 		case "${enableval}" in | 
 | 3272 | 		/System*) | 
 | 3273 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3274 | 			if test "${prefix}" = "NONE" ; then | 
 | 3275 | 				# See below | 
 | 3276 | 				FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
 | 3277 | 			fi | 
 | 3278 | 			;; | 
 | 3279 |  | 
 | 3280 | 		/Library*) | 
 | 3281 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3282 | 			;; | 
 | 3283 |  | 
 | 3284 | 		*/Library/Frameworks) | 
 | 3285 | 			MDIR="`dirname "${enableval}"`" | 
 | 3286 | 			MDIR="`dirname "${MDIR}"`" | 
 | 3287 | 			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
 | 3288 |  | 
 | 3289 | 			if test "${prefix}" = "NONE"; then | 
 | 3290 | 				# User hasn't specified the | 
 | 3291 | 				# --prefix option, but wants to install | 
 | 3292 | 				# the framework in a non-default location, | 
 | 3293 | 				# ensure that the compatibility links get | 
 | 3294 | 				# installed relative to that prefix as well | 
 | 3295 | 				# instead of in /usr/local. | 
 | 3296 | 				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
 | 3297 | 			fi | 
 | 3298 | 			;; | 
 | 3299 |  | 
 | 3300 | 		*) | 
 | 3301 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3302 | 			;; | 
 | 3303 | 		esac | 
 | 3304 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3305 | 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3306 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3307 | 		# Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3308 | 		# files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3309 | 		ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3310 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3311 | 		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3312 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3313 | 		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
 | 3314 |  | 
 | 3315 | 		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
 | 3316 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3317 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3318 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3319 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3320 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3321 | 	PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3322 | 	PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3323 | 	PYTHONFRAMEWORKPREFIX= | 
 | 3324 | 	PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3325 | 	FRAMEWORKINSTALLFIRST= | 
 | 3326 | 	FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3327 | 	FRAMEWORKALTINSTALLFIRST= | 
 | 3328 | 	FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3329 | 	FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3330 | 	if test "x${prefix}" = "xNONE" ; then | 
 | 3331 | 		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3332 | 	else | 
 | 3333 | 		FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3334 | 	fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3335 | 	enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3336 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3337 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3338 | fi | 
 | 3339 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3340 |  | 
 | 3341 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3342 |  | 
 | 3343 |  | 
 | 3344 |  | 
 | 3345 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3346 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3347 |  | 
 | 3348 |  | 
 | 3349 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3350 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3351 |  | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3352 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3353 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3354 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3355 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3356 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3357 | # Set name for machine-dependent library files | 
 | 3358 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
 | 3360 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3361 | if test -z "$MACHDEP" | 
 | 3362 | then | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3363 |     # avoid using uname for cross builds | 
 | 3364 |     if test "$cross_compiling" = yes; then | 
| doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3365 |        # ac_sys_system and ac_sys_release are used for setting | 
 | 3366 |        # a lot of different things including 'define_xopen_source' | 
 | 3367 |        # in the case statement below. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3368 | 	case "$host" in | 
 | 3369 | 	*-*-linux*) | 
 | 3370 | 		ac_sys_system=Linux | 
 | 3371 | 		;; | 
 | 3372 | 	*-*-cygwin*) | 
 | 3373 | 		ac_sys_system=Cygwin | 
 | 3374 | 		;; | 
 | 3375 | 	*) | 
 | 3376 | 		# for now, limit cross builds to known configurations | 
 | 3377 | 		MACHDEP="unknown" | 
 | 3378 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
 | 3379 | 	esac | 
 | 3380 | 	ac_sys_release= | 
 | 3381 |     else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3382 | 	ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3383 | 	if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3384 | 	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3385 | 		ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3386 | 	else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3387 | 		ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3388 | 	fi | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3389 |     fi | 
 | 3390 |     ac_md_system=`echo $ac_sys_system | | 
 | 3391 | 			tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
 | 3392 |     ac_md_release=`echo $ac_sys_release | | 
 | 3393 | 			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
 | 3394 |     MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3395 |  | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3396 |     case $MACHDEP in | 
| Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3397 | 	linux*) MACHDEP="linux";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3398 | 	cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3399 | 	darwin*) MACHDEP="darwin";; | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 3400 | 	irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3401 | 	'')	MACHDEP="unknown";; | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3402 |     esac | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3403 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3404 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3405 |  | 
 | 3406 | if test "$cross_compiling" = yes; then | 
 | 3407 | 	case "$host" in | 
 | 3408 | 	*-*-linux*) | 
 | 3409 | 		case "$host_cpu" in | 
 | 3410 | 		arm*) | 
 | 3411 | 			_host_cpu=arm | 
 | 3412 | 			;; | 
 | 3413 | 		*) | 
 | 3414 | 			_host_cpu=$host_cpu | 
 | 3415 | 		esac | 
 | 3416 | 		;; | 
 | 3417 | 	*-*-cygwin*) | 
 | 3418 | 		_host_cpu= | 
 | 3419 | 		;; | 
 | 3420 | 	*) | 
 | 3421 | 		# for now, limit cross builds to known configurations | 
 | 3422 | 		MACHDEP="unknown" | 
 | 3423 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
 | 3424 | 	esac | 
 | 3425 | 	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
 | 3426 | fi | 
 | 3427 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3428 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
 | 3429 | # disable features if it is defined, without any means to access these | 
 | 3430 | # features as extensions. For these systems, we skip the definition of | 
 | 3431 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
 | 3432 | # some feature, make sure there is no alternative way to access this | 
 | 3433 | # feature. Also, when using wildcards, make sure you have verified the | 
 | 3434 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
 | 3435 | # wildcard, and that the wildcard does not include future systems | 
 | 3436 | # (which may remove their limitations). | 
 | 3437 | case $ac_sys_system/$ac_sys_release in | 
 | 3438 |   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
 | 3439 |   # 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] | 3440 |   # 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] | 3441 |   # In addition, Stefan Krah confirms that issue #1244610 exists through | 
 | 3442 |   # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3443 |   OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3444 |     define_xopen_source=no | 
 | 3445 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3446 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3447 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3448 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3449 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3450 |  | 
 | 3451 |     ;; | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3452 |   OpenBSD/*) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3453 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3454 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3455 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3456 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3457 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3458 |  | 
 | 3459 |     ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3460 |   # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
 | 3461 |   # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
 | 3462 |   # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3463 |   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] | 3464 |     define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3465 |   # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
 | 3466 |   # request to enable features supported by the standard as a request | 
 | 3467 |   # to disable features not supported by the standard.  The best way | 
 | 3468 |   # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
 | 3469 |   # entirely and define __EXTENSIONS__ instead. | 
 | 3470 |   SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3471 |     define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3472 |   # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
 | 3473 |   # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3474 |   # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3475 |   OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3476 |     define_xopen_source=no;; | 
 | 3477 |   # 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] | 3478 |   # 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] | 3479 |   SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3480 |     define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3481 |   # On FreeBSD 4, the math functions C89 does not cover are never defined | 
 | 3482 |   # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
 | 3483 |   FreeBSD/4.*) | 
 | 3484 |     define_xopen_source=no;; | 
 | 3485 |   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
 | 3486 |   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
 | 3487 |   # identifies itself as Darwin/7.* | 
 | 3488 |   # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3489 |   # disables platform specific features beyond repair. | 
 | 3490 |   # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3491 |   # has no effect, don't bother defining them | 
 | 3492 |   Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3493 |     define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3494 |   Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3495 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3496 |   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
 | 3497 |   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
 | 3498 |   # 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] | 3499 |   AIX/4) | 
 | 3500 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3501 |   AIX/5) | 
 | 3502 |     if test `uname -r` -eq 1; then | 
 | 3503 |       define_xopen_source=no | 
 | 3504 |     fi | 
 | 3505 |     ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3506 |   # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
 | 3507 |   # defining NI_NUMERICHOST. | 
 | 3508 |   QNX/6.3.2) | 
 | 3509 |     define_xopen_source=no | 
 | 3510 |     ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3511 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3512 | esac | 
 | 3513 |  | 
 | 3514 | if test $define_xopen_source = yes | 
 | 3515 | then | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3516 |   # X/Open 7, incorporating POSIX.1-2008 | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3517 |  | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3518 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3519 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3520 |  | 
 | 3521 |   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
 | 3522 |   # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
 | 3523 |   # several APIs are not declared. Since this is also needed in some | 
 | 3524 |   # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3525 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3526 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3527 |  | 
 | 3528 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3529 |  | 
| Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3530 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3531 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3532 | fi | 
 | 3533 |  | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3534 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE | 
 | 3535 | case $ac_sys_system in | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3536 |   hp*|HP*) | 
 | 3537 |     define_stdc_a1=yes;; | 
 | 3538 |   *) | 
 | 3539 |     define_stdc_a1=no;; | 
 | 3540 | esac | 
 | 3541 |  | 
 | 3542 | if test $define_stdc_a1 = yes | 
 | 3543 | then | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3544 |  | 
 | 3545 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | 
 | 3546 |  | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3547 | fi | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3548 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3549 | # | 
 | 3550 | # SGI compilers allow the specification of the both the ABI and the | 
 | 3551 | # ISA on the command line.  Depending on the values of these switches, | 
| Martin Panter | 46f5072 | 2016-05-26 05:35:26 +0000 | [diff] [blame] | 3552 | # different and often incompatible code will be generated. | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3553 | # | 
 | 3554 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
 | 3555 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
 | 3556 | # variable is also adjusted. | 
 | 3557 | # | 
 | 3558 |  | 
 | 3559 | if test ! -z "$SGI_ABI" | 
 | 3560 | then | 
 | 3561 |         CC="cc $SGI_ABI" | 
 | 3562 |         LDFLAGS="$SGI_ABI $LDFLAGS" | 
 | 3563 |         MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
 | 3564 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
 | 3566 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3567 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3568 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
 | 3569 | # it may influence the way we can build extensions, so distutils | 
 | 3570 | # needs to check it | 
 | 3571 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3572 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3573 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3574 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3575 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3576 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3577 |  | 
 | 3578 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
 | 3579 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
 | 3580 | # just to get things to compile and link.  Users are free to override OPT | 
 | 3581 | # when running configure or make.  The build should not break if they do. | 
 | 3582 | # BASECFLAGS should generally not be messed with, however. | 
 | 3583 |  | 
 | 3584 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
 | 3585 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
 | 3587 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3588 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3589 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3590 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3591 |   withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3592 | 	case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3593 | 	no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3594 | 		without_gcc=yes;; | 
 | 3595 | 	yes)	CC=gcc | 
 | 3596 | 		without_gcc=no;; | 
 | 3597 | 	*)	CC=$withval | 
 | 3598 | 		without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3599 | 	esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3600 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3601 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3602 | 	case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3603 | 	AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3604 | 		without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3605 | 	*)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3606 | 	esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3607 | fi | 
 | 3608 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
 | 3610 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3611 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 | 
 | 3613 | $as_echo_n "checking for --with-icc... " >&6; } | 
 | 3614 |  | 
 | 3615 | # Check whether --with-icc was given. | 
 | 3616 | if test "${with_icc+set}" = set; then : | 
 | 3617 |   withval=$with_icc; | 
 | 3618 | 	case $withval in | 
 | 3619 | 	no)	CC=${CC:-cc} | 
 | 3620 | 		with_icc=no;; | 
 | 3621 | 	yes)	CC=icc | 
 | 3622 | 		CXX=icpc | 
 | 3623 | 		with_icc=yes;; | 
 | 3624 | 	*)	CC=$withval | 
 | 3625 | 		with_icc=$withval;; | 
 | 3626 | 	esac | 
 | 3627 | else | 
 | 3628 |  | 
 | 3629 | 	with_icc=no | 
 | 3630 | fi | 
 | 3631 |  | 
 | 3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 | 
 | 3633 | $as_echo "$with_icc" >&6; } | 
 | 3634 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3635 | # If the user switches compilers, we can't believe the cache | 
 | 3636 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
 | 3637 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3638 |   as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3639 | (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] | 3640 | fi | 
 | 3641 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3642 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
 | 3643 | # when the compiler supports them, but we don't always want -O2, and | 
 | 3644 | # we set -g later. | 
 | 3645 | if test -z "$CFLAGS"; then | 
 | 3646 |         CFLAGS= | 
 | 3647 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3648 |  | 
 | 3649 | if test "$ac_sys_system" = "Darwin" | 
 | 3650 | then | 
 | 3651 | 	# Compiler selection on MacOSX is more complicated than | 
 | 3652 | 	# AC_PROG_CC can handle, see Mac/README.txt for more | 
 | 3653 | 	# information | 
 | 3654 | 	if test -z "${CC}" | 
 | 3655 | 	then | 
 | 3656 | 		found_gcc= | 
 | 3657 | 		found_clang= | 
 | 3658 | 		as_save_IFS=$IFS; IFS=: | 
 | 3659 | 		for as_dir in $PATH | 
 | 3660 | 		do | 
 | 3661 | 			IFS=$as_save_IFS | 
 | 3662 | 			if test -x $as_dir/gcc; then | 
 | 3663 | 				if test -z "${found_gcc}"; then | 
 | 3664 | 					found_gcc=$as_dir/gcc | 
 | 3665 | 				fi | 
 | 3666 | 			fi | 
 | 3667 | 			if test -x $as_dir/clang; then | 
 | 3668 | 				if test -z "${found_clang}"; then | 
 | 3669 | 					found_clang=$as_dir/clang | 
 | 3670 | 				fi | 
 | 3671 | 			fi | 
 | 3672 | 		done | 
 | 3673 | 		IFS=$as_save_IFS | 
 | 3674 |  | 
 | 3675 | 		if test -n "$found_gcc" -a -n "$found_clang" | 
 | 3676 | 		then | 
 | 3677 | 			if test -n "`"$found_gcc" --version | grep llvm-gcc`" | 
 | 3678 | 			then | 
 | 3679 | 				{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | 
 | 3680 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | 
 | 3681 | 				CC="$found_clang" | 
 | 3682 | 				CXX="$found_clang++" | 
 | 3683 | 			fi | 
 | 3684 |  | 
 | 3685 |  | 
 | 3686 | 		elif test -z "$found_gcc" -a -n "$found_clang" | 
 | 3687 | 		then | 
 | 3688 | 			{ $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | 
 | 3689 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | 
 | 3690 | 			CC="$found_clang" | 
 | 3691 | 			CXX="$found_clang++" | 
 | 3692 |  | 
 | 3693 | 		elif test -z "$found_gcc" -a -z "$found_clang" | 
 | 3694 | 		then | 
 | 3695 | 			found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | 
 | 3696 | 			if test -n "${found_clang}" | 
 | 3697 | 			then | 
 | 3698 | 				{ $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | 
 | 3699 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | 
 | 3700 | 				CC="${found_clang}" | 
 | 3701 | 				CXX="`/usr/bin/xcrun -find clang++`" | 
 | 3702 |  | 
 | 3703 | 			# else: use default behaviour | 
 | 3704 | 			fi | 
 | 3705 | 		fi | 
 | 3706 | 	fi | 
 | 3707 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3708 | ac_ext=c | 
 | 3709 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3710 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3711 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3712 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3713 | if test -n "$ac_tool_prefix"; then | 
 | 3714 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 3715 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3717 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3718 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3719 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3720 | else | 
 | 3721 |   if test -n "$CC"; then | 
 | 3722 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3723 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3725 | for as_dir in $PATH | 
 | 3726 | do | 
 | 3727 |   IFS=$as_save_IFS | 
 | 3728 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3729 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3730 |   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] | 3731 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3732 |     $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] | 3733 |     break 2 | 
 | 3734 |   fi | 
 | 3735 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3736 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3737 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3738 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3739 | fi | 
 | 3740 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3741 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3742 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3743 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3744 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3745 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3746 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3747 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3748 | fi | 
 | 3749 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3750 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3751 | fi | 
 | 3752 | if test -z "$ac_cv_prog_CC"; then | 
 | 3753 |   ac_ct_CC=$CC | 
 | 3754 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 3755 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3757 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3758 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3759 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3760 | else | 
 | 3761 |   if test -n "$ac_ct_CC"; then | 
 | 3762 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3763 | else | 
 | 3764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3765 | for as_dir in $PATH | 
 | 3766 | do | 
 | 3767 |   IFS=$as_save_IFS | 
 | 3768 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3769 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3770 |   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] | 3771 |     ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3772 |     $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] | 3773 |     break 2 | 
 | 3774 |   fi | 
 | 3775 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3776 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3777 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3778 |  | 
 | 3779 | fi | 
 | 3780 | fi | 
 | 3781 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3782 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3783 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3784 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3785 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3786 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3787 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3788 | fi | 
 | 3789 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3790 |   if test "x$ac_ct_CC" = x; then | 
 | 3791 |     CC="" | 
 | 3792 |   else | 
 | 3793 |     case $cross_compiling:$ac_tool_warned in | 
 | 3794 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3796 | $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] | 3797 | ac_tool_warned=yes ;; | 
 | 3798 | esac | 
 | 3799 |     CC=$ac_ct_CC | 
 | 3800 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3801 | else | 
 | 3802 |   CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3803 | fi | 
 | 3804 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3805 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3806 |           if test -n "$ac_tool_prefix"; then | 
 | 3807 |     # 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] | 3808 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3810 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3811 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3812 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3813 | else | 
 | 3814 |   if test -n "$CC"; then | 
 | 3815 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3816 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3818 | for as_dir in $PATH | 
 | 3819 | do | 
 | 3820 |   IFS=$as_save_IFS | 
 | 3821 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3822 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3823 |   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] | 3824 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3825 |     $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] | 3826 |     break 2 | 
 | 3827 |   fi | 
 | 3828 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3829 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3830 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3831 |  | 
 | 3832 | fi | 
 | 3833 | fi | 
 | 3834 | CC=$ac_cv_prog_CC | 
 | 3835 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3836 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3837 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3838 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3839 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3840 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3841 | fi | 
 | 3842 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3843 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3844 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3845 | fi | 
 | 3846 | if test -z "$CC"; then | 
 | 3847 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 3848 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3850 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3851 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3852 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3853 | else | 
 | 3854 |   if test -n "$CC"; then | 
 | 3855 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3856 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3857 |   ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3859 | for as_dir in $PATH | 
 | 3860 | do | 
 | 3861 |   IFS=$as_save_IFS | 
 | 3862 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3863 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3864 |   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] | 3865 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 3866 |        ac_prog_rejected=yes | 
 | 3867 |        continue | 
 | 3868 |      fi | 
 | 3869 |     ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3870 |     $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] | 3871 |     break 2 | 
 | 3872 |   fi | 
 | 3873 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3874 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3875 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3876 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3877 | if test $ac_prog_rejected = yes; then | 
 | 3878 |   # We found a bogon in the path, so make sure we never use it. | 
 | 3879 |   set dummy $ac_cv_prog_CC | 
 | 3880 |   shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3881 |   if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3882 |     # We chose a different compiler from the bogus one. | 
 | 3883 |     # However, it has the same basename, so the bogon will be chosen | 
 | 3884 |     # first if we set CC to just the basename; use the full file name. | 
 | 3885 |     shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3886 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3887 |   fi | 
 | 3888 | fi | 
 | 3889 | fi | 
 | 3890 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3891 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3892 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3893 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3894 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3895 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3896 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3897 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3898 | fi | 
 | 3899 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3900 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3901 | fi | 
 | 3902 | if test -z "$CC"; then | 
 | 3903 |   if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3904 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3905 |   do | 
 | 3906 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3907 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3909 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3910 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3911 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3912 | else | 
 | 3913 |   if test -n "$CC"; then | 
 | 3914 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3915 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3917 | for as_dir in $PATH | 
 | 3918 | do | 
 | 3919 |   IFS=$as_save_IFS | 
 | 3920 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3921 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3922 |   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] | 3923 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3924 |     $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] | 3925 |     break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3926 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3927 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3928 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3929 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3930 |  | 
 | 3931 | fi | 
 | 3932 | fi | 
 | 3933 | CC=$ac_cv_prog_CC | 
 | 3934 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3935 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3936 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3937 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3938 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3939 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3940 | fi | 
 | 3941 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3942 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3943 |     test -n "$CC" && break | 
 | 3944 |   done | 
 | 3945 | fi | 
 | 3946 | if test -z "$CC"; then | 
 | 3947 |   ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3948 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3949 | do | 
 | 3950 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3951 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3953 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3954 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3955 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3956 | else | 
 | 3957 |   if test -n "$ac_ct_CC"; then | 
 | 3958 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3959 | else | 
 | 3960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3961 | for as_dir in $PATH | 
 | 3962 | do | 
 | 3963 |   IFS=$as_save_IFS | 
 | 3964 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3965 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3966 |   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] | 3967 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3968 |     $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] | 3969 |     break 2 | 
 | 3970 |   fi | 
 | 3971 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3972 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3973 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3974 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3975 | fi | 
 | 3976 | fi | 
 | 3977 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3978 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3979 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3980 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3981 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3982 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3983 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3984 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3985 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3986 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3987 |   test -n "$ac_ct_CC" && break | 
 | 3988 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3989 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3990 |   if test "x$ac_ct_CC" = x; then | 
 | 3991 |     CC="" | 
 | 3992 |   else | 
 | 3993 |     case $cross_compiling:$ac_tool_warned in | 
 | 3994 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3996 | $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] | 3997 | ac_tool_warned=yes ;; | 
 | 3998 | esac | 
 | 3999 |     CC=$ac_ct_CC | 
 | 4000 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4001 | fi | 
 | 4002 |  | 
 | 4003 | fi | 
 | 4004 |  | 
 | 4005 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4006 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4007 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4008 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4009 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4010 |  | 
 | 4011 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4012 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
 | 4013 | set X $ac_compile | 
 | 4014 | ac_compiler=$2 | 
 | 4015 | for ac_option in --version -v -V -qversion; do | 
 | 4016 |   { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4017 | case "(($ac_try" in | 
 | 4018 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4019 |   *) ac_try_echo=$ac_try;; | 
 | 4020 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4021 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4022 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4023 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4024 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4025 |   if test -s conftest.err; then | 
 | 4026 |     sed '10a\ | 
 | 4027 | ... rest of stderr output deleted ... | 
 | 4028 |          10q' conftest.err >conftest.er1 | 
 | 4029 |     cat conftest.er1 >&5 | 
 | 4030 |   fi | 
 | 4031 |   rm -f conftest.er1 conftest.err | 
 | 4032 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4033 |   test $ac_status = 0; } | 
 | 4034 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4035 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4037 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4038 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4039 | int | 
 | 4040 | main () | 
 | 4041 | { | 
 | 4042 |  | 
 | 4043 |   ; | 
 | 4044 |   return 0; | 
 | 4045 | } | 
 | 4046 | _ACEOF | 
 | 4047 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4048 | 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] | 4049 | # Try to create an executable without -o first, disregard a.out. | 
 | 4050 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 4051 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
 | 4053 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
 | 4054 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 4055 |  | 
 | 4056 | # The possible output files: | 
 | 4057 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
 | 4058 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4059 | ac_rmfiles= | 
 | 4060 | for ac_file in $ac_files | 
 | 4061 | do | 
 | 4062 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4063 |     *.$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] | 4064 |     * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
 | 4065 |   esac | 
 | 4066 | done | 
 | 4067 | rm -f $ac_rmfiles | 
 | 4068 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4069 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4070 | case "(($ac_try" in | 
 | 4071 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4072 |   *) ac_try_echo=$ac_try;; | 
 | 4073 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4074 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4075 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4076 |   (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4077 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4078 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4079 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4080 |   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
 | 4081 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
 | 4082 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
 | 4083 | # so that the user can short-circuit this test for compilers unknown to | 
 | 4084 | # Autoconf. | 
 | 4085 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4086 | do | 
 | 4087 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4088 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4089 |     *.$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] | 4090 | 	;; | 
 | 4091 |     [ab].out ) | 
 | 4092 | 	# We found the default executable, but exeext='' is most | 
 | 4093 | 	# certainly right. | 
 | 4094 | 	break;; | 
 | 4095 |     *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4096 | 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4097 | 	then :; else | 
 | 4098 | 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 4099 | 	fi | 
 | 4100 | 	# We set ac_cv_exeext here because the later test for it is not | 
 | 4101 | 	# safe: cross compilers may not add the suffix if given an `-o' | 
 | 4102 | 	# argument, so we may need to know it at that point already. | 
 | 4103 | 	# Even if this section looks crufty: it has the advantage of | 
 | 4104 | 	# actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4105 | 	break;; | 
 | 4106 |     * ) | 
 | 4107 | 	break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4108 |   esac | 
 | 4109 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4110 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
 | 4111 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4112 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4113 |   ac_file='' | 
 | 4114 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4115 | if test -z "$ac_file"; then : | 
 | 4116 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4117 | $as_echo "no" >&6; } | 
 | 4118 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4119 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4120 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4121 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4122 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4123 | as_fn_error 77 "C compiler cannot create executables | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4124 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4125 | else | 
 | 4126 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 4127 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4128 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
 | 4130 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
 | 4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
 | 4132 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4133 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4134 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4135 | 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] | 4136 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
 | 4138 | $as_echo_n "checking for suffix of executables... " >&6; } | 
 | 4139 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4140 | case "(($ac_try" in | 
 | 4141 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4142 |   *) ac_try_echo=$ac_try;; | 
 | 4143 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4144 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4145 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4146 |   (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4147 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4148 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4149 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4150 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 4151 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 4152 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 4153 | # `rm'. | 
 | 4154 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 4155 |   test -f "$ac_file" || continue | 
 | 4156 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4157 |     *.$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] | 4158 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 4159 | 	  break;; | 
 | 4160 |     * ) break;; | 
 | 4161 |   esac | 
 | 4162 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4163 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4164 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4165 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4166 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4167 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4168 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4169 | rm -f conftest conftest$ac_cv_exeext | 
 | 4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
 | 4171 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4172 |  | 
 | 4173 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4174 | EXEEXT=$ac_cv_exeext | 
 | 4175 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4177 | /* end confdefs.h.  */ | 
 | 4178 | #include <stdio.h> | 
 | 4179 | int | 
 | 4180 | main () | 
 | 4181 | { | 
 | 4182 | FILE *f = fopen ("conftest.out", "w"); | 
 | 4183 |  return ferror (f) || fclose (f) != 0; | 
 | 4184 |  | 
 | 4185 |   ; | 
 | 4186 |   return 0; | 
 | 4187 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4188 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4189 | ac_clean_files="$ac_clean_files conftest.out" | 
 | 4190 | # Check that the compiler produces executables we can run.  If not, either | 
 | 4191 | # the compiler is broken, or we cross compile. | 
 | 4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
 | 4193 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
 | 4194 | if test "$cross_compiling" != yes; then | 
 | 4195 |   { { ac_try="$ac_link" | 
 | 4196 | case "(($ac_try" in | 
 | 4197 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4198 |   *) ac_try_echo=$ac_try;; | 
 | 4199 | esac | 
 | 4200 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4201 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4202 |   (eval "$ac_link") 2>&5 | 
 | 4203 |   ac_status=$? | 
 | 4204 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4205 |   test $ac_status = 0; } | 
 | 4206 |   if { ac_try='./conftest$ac_cv_exeext' | 
 | 4207 |   { { case "(($ac_try" in | 
 | 4208 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4209 |   *) ac_try_echo=$ac_try;; | 
 | 4210 | esac | 
 | 4211 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4212 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4213 |   (eval "$ac_try") 2>&5 | 
 | 4214 |   ac_status=$? | 
 | 4215 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4216 |   test $ac_status = 0; }; }; then | 
 | 4217 |     cross_compiling=no | 
 | 4218 |   else | 
 | 4219 |     if test "$cross_compiling" = maybe; then | 
 | 4220 | 	cross_compiling=yes | 
 | 4221 |     else | 
 | 4222 | 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4223 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4224 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4225 | If you meant to cross compile, use \`--host'. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4226 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4227 |     fi | 
 | 4228 |   fi | 
 | 4229 | fi | 
 | 4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
 | 4231 | $as_echo "$cross_compiling" >&6; } | 
 | 4232 |  | 
 | 4233 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
 | 4234 | ac_clean_files=$ac_clean_files_save | 
 | 4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
 | 4236 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4237 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4238 |   $as_echo_n "(cached) " >&6 | 
 | 4239 | else | 
 | 4240 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4241 | /* end confdefs.h.  */ | 
 | 4242 |  | 
 | 4243 | int | 
 | 4244 | main () | 
 | 4245 | { | 
 | 4246 |  | 
 | 4247 |   ; | 
 | 4248 |   return 0; | 
 | 4249 | } | 
 | 4250 | _ACEOF | 
 | 4251 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4252 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4253 | case "(($ac_try" in | 
 | 4254 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4255 |   *) ac_try_echo=$ac_try;; | 
 | 4256 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4257 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4258 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4259 |   (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4260 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4261 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4262 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4263 |   for ac_file in conftest.o conftest.obj conftest.*; do | 
 | 4264 |   test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4265 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4266 |     *.$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] | 4267 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 4268 |        break;; | 
 | 4269 |   esac | 
 | 4270 | done | 
 | 4271 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4272 |   $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4273 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4274 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4275 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4276 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4277 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4278 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4279 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4280 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4281 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
 | 4283 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4284 | OBJEXT=$ac_cv_objext | 
 | 4285 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
 | 4287 | $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] | 4288 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4289 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4290 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4291 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4292 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4293 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4294 | int | 
 | 4295 | main () | 
 | 4296 | { | 
 | 4297 | #ifndef __GNUC__ | 
 | 4298 |        choke me | 
 | 4299 | #endif | 
 | 4300 |  | 
 | 4301 |   ; | 
 | 4302 |   return 0; | 
 | 4303 | } | 
 | 4304 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4305 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4306 |   ac_compiler_gnu=yes | 
 | 4307 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4308 |   ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4309 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4310 | 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] | 4311 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 4312 |  | 
 | 4313 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 4315 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
 | 4316 | if test $ac_compiler_gnu = yes; then | 
 | 4317 |   GCC=yes | 
 | 4318 | else | 
 | 4319 |   GCC= | 
 | 4320 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4321 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 4322 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
 | 4324 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4325 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4326 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4327 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4328 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 4329 |    ac_c_werror_flag=yes | 
 | 4330 |    ac_cv_prog_cc_g=no | 
 | 4331 |    CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4332 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4333 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4334 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4335 | int | 
 | 4336 | main () | 
 | 4337 | { | 
 | 4338 |  | 
 | 4339 |   ; | 
 | 4340 |   return 0; | 
 | 4341 | } | 
 | 4342 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4343 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4344 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4345 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4346 |   CFLAGS="" | 
 | 4347 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4348 | /* end confdefs.h.  */ | 
 | 4349 |  | 
 | 4350 | int | 
 | 4351 | main () | 
 | 4352 | { | 
 | 4353 |  | 
 | 4354 |   ; | 
 | 4355 |   return 0; | 
 | 4356 | } | 
 | 4357 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4358 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4359 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4360 | else | 
 | 4361 |   ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4362 | 	 CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4363 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4364 | /* end confdefs.h.  */ | 
 | 4365 |  | 
 | 4366 | int | 
 | 4367 | main () | 
 | 4368 | { | 
 | 4369 |  | 
 | 4370 |   ; | 
 | 4371 |   return 0; | 
 | 4372 | } | 
 | 4373 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4374 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4375 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4376 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4378 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4380 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4382 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 4383 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
 | 4385 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4386 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4387 |   CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4388 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 4389 |   if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4390 |     CFLAGS="-g -O2" | 
 | 4391 |   else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4392 |     CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4393 |   fi | 
 | 4394 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4395 |   if test "$GCC" = yes; then | 
 | 4396 |     CFLAGS="-O2" | 
 | 4397 |   else | 
 | 4398 |     CFLAGS= | 
 | 4399 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4400 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
 | 4402 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4403 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4404 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4405 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4406 |   ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4407 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4409 | /* end confdefs.h.  */ | 
 | 4410 | #include <stdarg.h> | 
 | 4411 | #include <stdio.h> | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4412 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4413 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 4414 | struct buf { int x; }; | 
 | 4415 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 4416 | static char *e (p, i) | 
 | 4417 |      char **p; | 
 | 4418 |      int i; | 
 | 4419 | { | 
 | 4420 |   return p[i]; | 
 | 4421 | } | 
 | 4422 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 4423 | { | 
 | 4424 |   char *s; | 
 | 4425 |   va_list v; | 
 | 4426 |   va_start (v,p); | 
 | 4427 |   s = g (p, va_arg (v,int)); | 
 | 4428 |   va_end (v); | 
 | 4429 |   return s; | 
 | 4430 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4431 |  | 
 | 4432 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 4433 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 4434 |    These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4435 |    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] | 4436 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 4437 |    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] | 4438 |    that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4439 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 4440 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4441 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 4442 |    inside strings and character constants.  */ | 
 | 4443 | #define FOO(x) 'x' | 
 | 4444 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 4445 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4446 | int test (int i, double x); | 
 | 4447 | struct s1 {int (*f) (int a);}; | 
 | 4448 | struct s2 {int (*f) (double a);}; | 
 | 4449 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 4450 | int argc; | 
 | 4451 | char **argv; | 
 | 4452 | int | 
 | 4453 | main () | 
 | 4454 | { | 
 | 4455 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 4456 |   ; | 
 | 4457 |   return 0; | 
 | 4458 | } | 
 | 4459 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4460 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 4461 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4462 | do | 
 | 4463 |   CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4464 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4465 |   ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4466 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4467 | rm -f core conftest.err conftest.$ac_objext | 
 | 4468 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4469 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4470 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4471 | CC=$ac_save_CC | 
 | 4472 |  | 
 | 4473 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4474 | # AC_CACHE_VAL | 
 | 4475 | case "x$ac_cv_prog_cc_c89" in | 
 | 4476 |   x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4477 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 4478 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4479 |   xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4480 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 4481 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4482 |   *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4483 |     CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4484 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
 | 4485 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4486 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4487 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4488 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4489 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4490 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4491 | ac_ext=c | 
 | 4492 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4493 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4494 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4495 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4496 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4497 | ac_ext=c | 
 | 4498 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4499 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4500 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4501 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
 | 4503 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
 | 4504 | # On Suns, sometimes $CPP names a directory. | 
 | 4505 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 4506 |   CPP= | 
 | 4507 | fi | 
 | 4508 | if test -z "$CPP"; then | 
 | 4509 |   if ${ac_cv_prog_CPP+:} false; then : | 
 | 4510 |   $as_echo_n "(cached) " >&6 | 
 | 4511 | else | 
 | 4512 |       # Double quotes because CPP needs to be expanded | 
 | 4513 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 4514 |     do | 
 | 4515 |       ac_preproc_ok=false | 
 | 4516 | for ac_c_preproc_warn_flag in '' yes | 
 | 4517 | do | 
 | 4518 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4519 |   # with a fresh cross-compiler works. | 
 | 4520 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4521 |   # <limits.h> exists even on freestanding compilers. | 
 | 4522 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4523 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4524 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4525 | /* end confdefs.h.  */ | 
 | 4526 | #ifdef __STDC__ | 
 | 4527 | # include <limits.h> | 
 | 4528 | #else | 
 | 4529 | # include <assert.h> | 
 | 4530 | #endif | 
 | 4531 | 		     Syntax error | 
 | 4532 | _ACEOF | 
 | 4533 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4534 |  | 
 | 4535 | else | 
 | 4536 |   # Broken: fails on valid input. | 
 | 4537 | continue | 
 | 4538 | fi | 
 | 4539 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4540 |  | 
 | 4541 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 4542 |   # can be detected and how. | 
 | 4543 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4544 | /* end confdefs.h.  */ | 
 | 4545 | #include <ac_nonexistent.h> | 
 | 4546 | _ACEOF | 
 | 4547 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4548 |   # Broken: success on invalid input. | 
 | 4549 | continue | 
 | 4550 | else | 
 | 4551 |   # Passes both tests. | 
 | 4552 | ac_preproc_ok=: | 
 | 4553 | break | 
 | 4554 | fi | 
 | 4555 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4556 |  | 
 | 4557 | done | 
 | 4558 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4559 | rm -f conftest.i conftest.err conftest.$ac_ext | 
 | 4560 | if $ac_preproc_ok; then : | 
 | 4561 |   break | 
 | 4562 | fi | 
 | 4563 |  | 
 | 4564 |     done | 
 | 4565 |     ac_cv_prog_CPP=$CPP | 
 | 4566 |  | 
 | 4567 | fi | 
 | 4568 |   CPP=$ac_cv_prog_CPP | 
 | 4569 | else | 
 | 4570 |   ac_cv_prog_CPP=$CPP | 
 | 4571 | fi | 
 | 4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
 | 4573 | $as_echo "$CPP" >&6; } | 
 | 4574 | ac_preproc_ok=false | 
 | 4575 | for ac_c_preproc_warn_flag in '' yes | 
 | 4576 | do | 
 | 4577 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4578 |   # with a fresh cross-compiler works. | 
 | 4579 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4580 |   # <limits.h> exists even on freestanding compilers. | 
 | 4581 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4582 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4583 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4584 | /* end confdefs.h.  */ | 
 | 4585 | #ifdef __STDC__ | 
 | 4586 | # include <limits.h> | 
 | 4587 | #else | 
 | 4588 | # include <assert.h> | 
 | 4589 | #endif | 
 | 4590 | 		     Syntax error | 
 | 4591 | _ACEOF | 
 | 4592 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4593 |  | 
 | 4594 | else | 
 | 4595 |   # Broken: fails on valid input. | 
 | 4596 | continue | 
 | 4597 | fi | 
 | 4598 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4599 |  | 
 | 4600 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 4601 |   # can be detected and how. | 
 | 4602 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4603 | /* end confdefs.h.  */ | 
 | 4604 | #include <ac_nonexistent.h> | 
 | 4605 | _ACEOF | 
 | 4606 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4607 |   # Broken: success on invalid input. | 
 | 4608 | continue | 
 | 4609 | else | 
 | 4610 |   # Passes both tests. | 
 | 4611 | ac_preproc_ok=: | 
 | 4612 | break | 
 | 4613 | fi | 
 | 4614 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4615 |  | 
 | 4616 | done | 
 | 4617 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4618 | rm -f conftest.i conftest.err conftest.$ac_ext | 
 | 4619 | if $ac_preproc_ok; then : | 
 | 4620 |  | 
 | 4621 | else | 
 | 4622 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4623 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 4624 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
 | 4625 | See \`config.log' for more details" "$LINENO" 5; } | 
 | 4626 | fi | 
 | 4627 |  | 
 | 4628 | ac_ext=c | 
 | 4629 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4630 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4631 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4632 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4633 |  | 
 | 4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
 | 4635 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
 | 4636 | if ${ac_cv_path_GREP+:} false; then : | 
 | 4637 |   $as_echo_n "(cached) " >&6 | 
 | 4638 | else | 
 | 4639 |   if test -z "$GREP"; then | 
 | 4640 |   ac_path_GREP_found=false | 
 | 4641 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4642 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4643 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4644 | do | 
 | 4645 |   IFS=$as_save_IFS | 
 | 4646 |   test -z "$as_dir" && as_dir=. | 
 | 4647 |     for ac_prog in grep ggrep; do | 
 | 4648 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4649 |       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
 | 4650 |       as_fn_executable_p "$ac_path_GREP" || continue | 
 | 4651 | # Check for GNU ac_path_GREP and select it if it is found. | 
 | 4652 |   # Check for GNU $ac_path_GREP | 
 | 4653 | case `"$ac_path_GREP" --version 2>&1` in | 
 | 4654 | *GNU*) | 
 | 4655 |   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
 | 4656 | *) | 
 | 4657 |   ac_count=0 | 
 | 4658 |   $as_echo_n 0123456789 >"conftest.in" | 
 | 4659 |   while : | 
 | 4660 |   do | 
 | 4661 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4662 |     mv "conftest.tmp" "conftest.in" | 
 | 4663 |     cp "conftest.in" "conftest.nl" | 
 | 4664 |     $as_echo 'GREP' >> "conftest.nl" | 
 | 4665 |     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4666 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
 | 4667 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
 | 4668 |     if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
 | 4669 |       # Best one so far, save it but keep looking for a better one | 
 | 4670 |       ac_cv_path_GREP="$ac_path_GREP" | 
 | 4671 |       ac_path_GREP_max=$ac_count | 
 | 4672 |     fi | 
 | 4673 |     # 10*(2^10) chars as input seems more than enough | 
 | 4674 |     test $ac_count -gt 10 && break | 
 | 4675 |   done | 
 | 4676 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4677 | esac | 
 | 4678 |  | 
 | 4679 |       $ac_path_GREP_found && break 3 | 
 | 4680 |     done | 
 | 4681 |   done | 
 | 4682 |   done | 
 | 4683 | IFS=$as_save_IFS | 
 | 4684 |   if test -z "$ac_cv_path_GREP"; then | 
 | 4685 |     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
 | 4686 |   fi | 
 | 4687 | else | 
 | 4688 |   ac_cv_path_GREP=$GREP | 
 | 4689 | fi | 
 | 4690 |  | 
 | 4691 | fi | 
 | 4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
 | 4693 | $as_echo "$ac_cv_path_GREP" >&6; } | 
 | 4694 |  GREP="$ac_cv_path_GREP" | 
 | 4695 |  | 
 | 4696 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4697 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4698 |  | 
 | 4699 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
 | 4701 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4702 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4703 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4704 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4705 |   withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4706 |  | 
 | 4707 | 	case $withval in | 
 | 4708 | 	no)	with_cxx_main=no | 
 | 4709 | 		MAINCC='$(CC)';; | 
 | 4710 | 	yes)	with_cxx_main=yes | 
 | 4711 | 		MAINCC='$(CXX)';; | 
 | 4712 | 	*)	with_cxx_main=yes | 
 | 4713 | 		MAINCC=$withval | 
 | 4714 | 		if test -z "$CXX" | 
 | 4715 | 		then | 
 | 4716 | 			CXX=$withval | 
 | 4717 | 		fi;; | 
 | 4718 | 	esac | 
 | 4719 | else | 
 | 4720 |  | 
 | 4721 | 	with_cxx_main=no | 
 | 4722 | 	MAINCC='$(CC)' | 
 | 4723 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4724 | fi | 
 | 4725 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
 | 4727 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4728 |  | 
 | 4729 | preset_cxx="$CXX" | 
 | 4730 | if test -z "$CXX" | 
 | 4731 | then | 
 | 4732 |         case "$CC" in | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4733 |         gcc)    if test -n "$ac_tool_prefix"; then | 
 | 4734 |   # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
 | 4735 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
 | 4736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4737 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4738 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4739 |   $as_echo_n "(cached) " >&6 | 
 | 4740 | else | 
 | 4741 |   case $CXX in | 
 | 4742 |   [\\/]* | ?:[\\/]*) | 
 | 4743 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4744 |   ;; | 
 | 4745 |   *) | 
 | 4746 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4747 | for as_dir in notfound | 
 | 4748 | do | 
 | 4749 |   IFS=$as_save_IFS | 
 | 4750 |   test -z "$as_dir" && as_dir=. | 
 | 4751 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4752 |   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] | 4753 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4754 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4755 |     break 2 | 
 | 4756 |   fi | 
 | 4757 | done | 
 | 4758 |   done | 
 | 4759 | IFS=$as_save_IFS | 
 | 4760 |  | 
 | 4761 |   ;; | 
 | 4762 | esac | 
 | 4763 | fi | 
 | 4764 | CXX=$ac_cv_path_CXX | 
 | 4765 | if test -n "$CXX"; then | 
 | 4766 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4767 | $as_echo "$CXX" >&6; } | 
 | 4768 | else | 
 | 4769 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4770 | $as_echo "no" >&6; } | 
 | 4771 | fi | 
 | 4772 |  | 
 | 4773 |  | 
 | 4774 | fi | 
 | 4775 | if test -z "$ac_cv_path_CXX"; then | 
 | 4776 |   ac_pt_CXX=$CXX | 
 | 4777 |   # 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] | 4778 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4780 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4781 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 4782 |   $as_echo_n "(cached) " >&6 | 
 | 4783 | else | 
 | 4784 |   case $ac_pt_CXX in | 
 | 4785 |   [\\/]* | ?:[\\/]*) | 
 | 4786 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 4787 |   ;; | 
 | 4788 |   *) | 
 | 4789 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4790 | for as_dir in notfound | 
 | 4791 | do | 
 | 4792 |   IFS=$as_save_IFS | 
 | 4793 |   test -z "$as_dir" && as_dir=. | 
 | 4794 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4795 |   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] | 4796 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4797 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4798 |     break 2 | 
 | 4799 |   fi | 
 | 4800 | done | 
 | 4801 |   done | 
 | 4802 | IFS=$as_save_IFS | 
 | 4803 |  | 
 | 4804 |   ;; | 
 | 4805 | esac | 
 | 4806 | fi | 
 | 4807 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4808 | if test -n "$ac_pt_CXX"; then | 
 | 4809 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4810 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 4811 | else | 
 | 4812 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4813 | $as_echo "no" >&6; } | 
 | 4814 | fi | 
 | 4815 |  | 
 | 4816 |   if test "x$ac_pt_CXX" = x; then | 
 | 4817 |     CXX="g++" | 
 | 4818 |   else | 
 | 4819 |     case $cross_compiling:$ac_tool_warned in | 
 | 4820 | yes:) | 
 | 4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4822 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4823 | ac_tool_warned=yes ;; | 
 | 4824 | esac | 
 | 4825 |     CXX=$ac_pt_CXX | 
 | 4826 |   fi | 
 | 4827 | else | 
 | 4828 |   CXX="$ac_cv_path_CXX" | 
 | 4829 | fi | 
 | 4830 |  ;; | 
 | 4831 |         cc)     if test -n "$ac_tool_prefix"; then | 
 | 4832 |   # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
 | 4833 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
 | 4834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4835 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4836 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4837 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4838 | else | 
 | 4839 |   case $CXX in | 
 | 4840 |   [\\/]* | ?:[\\/]*) | 
 | 4841 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4842 |   ;; | 
 | 4843 |   *) | 
 | 4844 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4845 | for as_dir in notfound | 
 | 4846 | do | 
 | 4847 |   IFS=$as_save_IFS | 
 | 4848 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4849 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4850 |   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] | 4851 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4852 |     $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] | 4853 |     break 2 | 
 | 4854 |   fi | 
 | 4855 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4856 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4857 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4858 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4859 |   ;; | 
 | 4860 | esac | 
 | 4861 | fi | 
 | 4862 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4863 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4864 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4865 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4866 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4867 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4868 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4869 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4870 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4871 |  | 
 | 4872 | fi | 
 | 4873 | if test -z "$ac_cv_path_CXX"; then | 
 | 4874 |   ac_pt_CXX=$CXX | 
 | 4875 |   # 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] | 4876 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4878 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4879 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4880 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4881 | else | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4882 |   case $ac_pt_CXX in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4883 |   [\\/]* | ?:[\\/]*) | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4884 |   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] | 4885 |   ;; | 
 | 4886 |   *) | 
 | 4887 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4888 | for as_dir in notfound | 
 | 4889 | do | 
 | 4890 |   IFS=$as_save_IFS | 
 | 4891 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4892 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4893 |   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] | 4894 |     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] | 4895 |     $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] | 4896 |     break 2 | 
 | 4897 |   fi | 
 | 4898 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4899 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4900 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4901 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4902 |   ;; | 
 | 4903 | esac | 
 | 4904 | fi | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4905 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4906 | if test -n "$ac_pt_CXX"; then | 
 | 4907 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4908 | $as_echo "$ac_pt_CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4909 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4910 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4911 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4912 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4913 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4914 |   if test "x$ac_pt_CXX" = x; then | 
 | 4915 |     CXX="c++" | 
 | 4916 |   else | 
 | 4917 |     case $cross_compiling:$ac_tool_warned in | 
 | 4918 | yes:) | 
 | 4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4920 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4921 | ac_tool_warned=yes ;; | 
 | 4922 | esac | 
 | 4923 |     CXX=$ac_pt_CXX | 
 | 4924 |   fi | 
 | 4925 | else | 
 | 4926 |   CXX="$ac_cv_path_CXX" | 
 | 4927 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4928 |  ;; | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4929 |         clang|*/clang)     if test -n "$ac_tool_prefix"; then | 
 | 4930 |   # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | 
 | 4931 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4933 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4934 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4935 |   $as_echo_n "(cached) " >&6 | 
 | 4936 | else | 
 | 4937 |   case $CXX in | 
 | 4938 |   [\\/]* | ?:[\\/]*) | 
 | 4939 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4940 |   ;; | 
 | 4941 |   *) | 
 | 4942 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4943 | for as_dir in notfound | 
 | 4944 | do | 
 | 4945 |   IFS=$as_save_IFS | 
 | 4946 |   test -z "$as_dir" && as_dir=. | 
 | 4947 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4948 |   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] | 4949 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4950 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4951 |     break 2 | 
 | 4952 |   fi | 
 | 4953 | done | 
 | 4954 |   done | 
 | 4955 | IFS=$as_save_IFS | 
 | 4956 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4957 |   ;; | 
 | 4958 | esac | 
 | 4959 | fi | 
 | 4960 | CXX=$ac_cv_path_CXX | 
 | 4961 | if test -n "$CXX"; then | 
 | 4962 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4963 | $as_echo "$CXX" >&6; } | 
 | 4964 | else | 
 | 4965 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4966 | $as_echo "no" >&6; } | 
 | 4967 | fi | 
 | 4968 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4969 |  | 
 | 4970 | fi | 
 | 4971 | if test -z "$ac_cv_path_CXX"; then | 
 | 4972 |   ac_pt_CXX=$CXX | 
 | 4973 |   # Extract the first word of "clang++", so it can be a program name with args. | 
 | 4974 | set dummy clang++; ac_word=$2 | 
 | 4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4976 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4977 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 4978 |   $as_echo_n "(cached) " >&6 | 
 | 4979 | else | 
 | 4980 |   case $ac_pt_CXX in | 
 | 4981 |   [\\/]* | ?:[\\/]*) | 
 | 4982 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 4983 |   ;; | 
 | 4984 |   *) | 
 | 4985 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4986 | for as_dir in notfound | 
 | 4987 | do | 
 | 4988 |   IFS=$as_save_IFS | 
 | 4989 |   test -z "$as_dir" && as_dir=. | 
 | 4990 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4991 |   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] | 4992 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4993 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4994 |     break 2 | 
 | 4995 |   fi | 
 | 4996 | done | 
 | 4997 |   done | 
 | 4998 | IFS=$as_save_IFS | 
 | 4999 |  | 
 | 5000 |   ;; | 
 | 5001 | esac | 
 | 5002 | fi | 
 | 5003 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 5004 | if test -n "$ac_pt_CXX"; then | 
 | 5005 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 5006 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 5007 | else | 
 | 5008 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5009 | $as_echo "no" >&6; } | 
 | 5010 | fi | 
 | 5011 |  | 
 | 5012 |   if test "x$ac_pt_CXX" = x; then | 
 | 5013 |     CXX="clang++" | 
 | 5014 |   else | 
 | 5015 |     case $cross_compiling:$ac_tool_warned in | 
 | 5016 | yes:) | 
 | 5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5018 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5019 | ac_tool_warned=yes ;; | 
 | 5020 | esac | 
 | 5021 |     CXX=$ac_pt_CXX | 
 | 5022 |   fi | 
 | 5023 | else | 
 | 5024 |   CXX="$ac_cv_path_CXX" | 
 | 5025 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 5026 |  ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5027 |         icc|*/icc)         if test -n "$ac_tool_prefix"; then | 
 | 5028 |   # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | 
 | 5029 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | 
 | 5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5031 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5032 | if ${ac_cv_path_CXX+:} false; then : | 
 | 5033 |   $as_echo_n "(cached) " >&6 | 
 | 5034 | else | 
 | 5035 |   case $CXX in | 
 | 5036 |   [\\/]* | ?:[\\/]*) | 
 | 5037 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 5038 |   ;; | 
 | 5039 |   *) | 
 | 5040 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5041 | for as_dir in notfound | 
 | 5042 | do | 
 | 5043 |   IFS=$as_save_IFS | 
 | 5044 |   test -z "$as_dir" && as_dir=. | 
 | 5045 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5046 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5047 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 5048 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5049 |     break 2 | 
 | 5050 |   fi | 
 | 5051 | done | 
 | 5052 |   done | 
 | 5053 | IFS=$as_save_IFS | 
 | 5054 |  | 
 | 5055 |   ;; | 
 | 5056 | esac | 
 | 5057 | fi | 
 | 5058 | CXX=$ac_cv_path_CXX | 
 | 5059 | if test -n "$CXX"; then | 
 | 5060 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 5061 | $as_echo "$CXX" >&6; } | 
 | 5062 | else | 
 | 5063 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5064 | $as_echo "no" >&6; } | 
 | 5065 | fi | 
 | 5066 |  | 
 | 5067 |  | 
 | 5068 | fi | 
 | 5069 | if test -z "$ac_cv_path_CXX"; then | 
 | 5070 |   ac_pt_CXX=$CXX | 
 | 5071 |   # Extract the first word of "icpc", so it can be a program name with args. | 
 | 5072 | set dummy icpc; ac_word=$2 | 
 | 5073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5074 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5075 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 5076 |   $as_echo_n "(cached) " >&6 | 
 | 5077 | else | 
 | 5078 |   case $ac_pt_CXX in | 
 | 5079 |   [\\/]* | ?:[\\/]*) | 
 | 5080 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 5081 |   ;; | 
 | 5082 |   *) | 
 | 5083 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5084 | for as_dir in notfound | 
 | 5085 | do | 
 | 5086 |   IFS=$as_save_IFS | 
 | 5087 |   test -z "$as_dir" && as_dir=. | 
 | 5088 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5089 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5090 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 5091 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5092 |     break 2 | 
 | 5093 |   fi | 
 | 5094 | done | 
 | 5095 |   done | 
 | 5096 | IFS=$as_save_IFS | 
 | 5097 |  | 
 | 5098 |   ;; | 
 | 5099 | esac | 
 | 5100 | fi | 
 | 5101 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 5102 | if test -n "$ac_pt_CXX"; then | 
 | 5103 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 5104 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 5105 | else | 
 | 5106 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5107 | $as_echo "no" >&6; } | 
 | 5108 | fi | 
 | 5109 |  | 
 | 5110 |   if test "x$ac_pt_CXX" = x; then | 
 | 5111 |     CXX="icpc" | 
 | 5112 |   else | 
 | 5113 |     case $cross_compiling:$ac_tool_warned in | 
 | 5114 | yes:) | 
 | 5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5116 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5117 | ac_tool_warned=yes ;; | 
 | 5118 | esac | 
 | 5119 |     CXX=$ac_pt_CXX | 
 | 5120 |   fi | 
 | 5121 | else | 
 | 5122 |   CXX="$ac_cv_path_CXX" | 
 | 5123 | fi | 
 | 5124 |  ;; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5125 |         esac | 
 | 5126 | 	if test "$CXX" = "notfound" | 
 | 5127 | 	then | 
 | 5128 | 		CXX="" | 
 | 5129 | 	fi | 
 | 5130 | fi | 
 | 5131 | if test -z "$CXX" | 
 | 5132 | then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5133 | 	if test -n "$ac_tool_prefix"; then | 
 | 5134 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 5135 |   do | 
 | 5136 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 5137 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5139 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5140 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5141 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5142 | else | 
 | 5143 |   if test -n "$CXX"; then | 
 | 5144 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 5145 | else | 
 | 5146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5147 | for as_dir in $PATH | 
 | 5148 | do | 
 | 5149 |   IFS=$as_save_IFS | 
 | 5150 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5151 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5152 |   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] | 5153 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5154 |     $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] | 5155 |     break 2 | 
 | 5156 |   fi | 
 | 5157 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5158 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5159 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5160 |  | 
 | 5161 | fi | 
 | 5162 | fi | 
 | 5163 | CXX=$ac_cv_prog_CXX | 
 | 5164 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5165 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 5166 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5167 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5168 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5169 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5170 | fi | 
 | 5171 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5172 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5173 |     test -n "$CXX" && break | 
 | 5174 |   done | 
 | 5175 | fi | 
 | 5176 | if test -z "$CXX"; then | 
 | 5177 |   ac_ct_CXX=$CXX | 
 | 5178 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 5179 | do | 
 | 5180 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5181 | set dummy $ac_prog; ac_word=$2 | 
 | 5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5183 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5184 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
 | 5185 |   $as_echo_n "(cached) " >&6 | 
 | 5186 | else | 
 | 5187 |   if test -n "$ac_ct_CXX"; then | 
 | 5188 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 5189 | else | 
 | 5190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5191 | for as_dir in $PATH | 
 | 5192 | do | 
 | 5193 |   IFS=$as_save_IFS | 
 | 5194 |   test -z "$as_dir" && as_dir=. | 
 | 5195 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5196 |   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] | 5197 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 5198 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5199 |     break 2 | 
 | 5200 |   fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5201 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5202 |   done | 
 | 5203 | IFS=$as_save_IFS | 
 | 5204 |  | 
 | 5205 | fi | 
 | 5206 | fi | 
 | 5207 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 5208 | if test -n "$ac_ct_CXX"; then | 
 | 5209 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
 | 5210 | $as_echo "$ac_ct_CXX" >&6; } | 
 | 5211 | else | 
 | 5212 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5213 | $as_echo "no" >&6; } | 
 | 5214 | fi | 
 | 5215 |  | 
 | 5216 |  | 
 | 5217 |   test -n "$ac_ct_CXX" && break | 
 | 5218 | done | 
 | 5219 |  | 
 | 5220 |   if test "x$ac_ct_CXX" = x; then | 
 | 5221 |     CXX="notfound" | 
 | 5222 |   else | 
 | 5223 |     case $cross_compiling:$ac_tool_warned in | 
 | 5224 | yes:) | 
 | 5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5226 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5227 | ac_tool_warned=yes ;; | 
 | 5228 | esac | 
 | 5229 |     CXX=$ac_ct_CXX | 
 | 5230 |   fi | 
 | 5231 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5232 |  | 
 | 5233 | 	if test "$CXX" = "notfound" | 
 | 5234 | 	then | 
 | 5235 | 		CXX="" | 
 | 5236 | 	fi | 
 | 5237 | fi | 
 | 5238 | if test "$preset_cxx" != "$CXX" | 
 | 5239 | then | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5240 |         { $as_echo "$as_me:${as_lineno-$LINENO}: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5241 |  | 
 | 5242 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 5243 |   If this is not intended, then set CXX on the configure command line. | 
 | 5244 |   " >&5 | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5245 | $as_echo "$as_me: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5246 |  | 
 | 5247 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 5248 |   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] | 5249 |   " >&6;} | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5250 | fi | 
 | 5251 |  | 
 | 5252 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5253 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
 | 5254 |  | 
 | 5255 |  | 
 | 5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 | 
 | 5257 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | 
 | 5258 | cat >> conftest.c <<EOF | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5259 | #undef bfin | 
 | 5260 | #undef cris | 
 | 5261 | #undef fr30 | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5262 | #undef linux | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5263 | #undef hppa | 
 | 5264 | #undef hpux | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5265 | #undef i386 | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5266 | #undef mips | 
| doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5267 | #undef powerpc | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5268 | #undef sparc | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5269 | #undef unix | 
| doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5270 | #if defined(__ANDROID__) | 
 | 5271 | # if defined(__x86_64__) && defined(__LP64__) | 
 | 5272 |         x86_64-linux-android | 
 | 5273 | # elif defined(__i386__) | 
 | 5274 |         i686-linux-android | 
 | 5275 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
 | 5276 | #  if defined(__ILP32__) | 
 | 5277 |         aarch64_ilp32-linux-android | 
 | 5278 | #  else | 
 | 5279 |         aarch64-linux-android | 
 | 5280 | #  endif | 
 | 5281 | # elif defined(__ARM_EABI__) && defined(__ARMEL__) | 
 | 5282 |         arm-linux-androideabi | 
 | 5283 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
 | 5284 | #  if _MIPS_SIM == _ABIO32 | 
 | 5285 |         mipsel-linux-android | 
 | 5286 | #  elif _MIPS_SIM == _ABI64 | 
 | 5287 |         mips64el-linux-android | 
 | 5288 | #  else | 
 | 5289 | #   error unknown platform triplet | 
 | 5290 | #  endif | 
 | 5291 | # else | 
 | 5292 | #   error unknown platform triplet | 
 | 5293 | # endif | 
 | 5294 | #elif defined(__linux__) | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5295 | # if defined(__x86_64__) && defined(__LP64__) | 
 | 5296 |         x86_64-linux-gnu | 
 | 5297 | # elif defined(__x86_64__) && defined(__ILP32__) | 
 | 5298 |         x86_64-linux-gnux32 | 
 | 5299 | # elif defined(__i386__) | 
 | 5300 |         i386-linux-gnu | 
 | 5301 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
 | 5302 | #  if defined(__ILP32__) | 
 | 5303 |         aarch64_ilp32-linux-gnu | 
 | 5304 | #  else | 
 | 5305 |         aarch64-linux-gnu | 
 | 5306 | #  endif | 
 | 5307 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | 
 | 5308 | #  if defined(__ILP32__) | 
 | 5309 |         aarch64_be_ilp32-linux-gnu | 
 | 5310 | #  else | 
 | 5311 |         aarch64_be-linux-gnu | 
 | 5312 | #  endif | 
 | 5313 | # elif defined(__alpha__) | 
 | 5314 |         alpha-linux-gnu | 
 | 5315 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | 
 | 5316 | #  if defined(__ARMEL__) | 
 | 5317 |         arm-linux-gnueabihf | 
 | 5318 | #  else | 
 | 5319 |         armeb-linux-gnueabihf | 
 | 5320 | #  endif | 
 | 5321 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | 
 | 5322 | #  if defined(__ARMEL__) | 
 | 5323 |         arm-linux-gnueabi | 
 | 5324 | #  else | 
 | 5325 |         armeb-linux-gnueabi | 
 | 5326 | #  endif | 
 | 5327 | # elif defined(__hppa__) | 
 | 5328 |         hppa-linux-gnu | 
 | 5329 | # elif defined(__ia64__) | 
 | 5330 |         ia64-linux-gnu | 
 | 5331 | # elif defined(__m68k__) && !defined(__mcoldfire__) | 
 | 5332 |         m68k-linux-gnu | 
 | 5333 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
 | 5334 | #  if _MIPS_SIM == _ABIO32 | 
 | 5335 |         mipsel-linux-gnu | 
 | 5336 | #  elif _MIPS_SIM == _ABIN32 | 
 | 5337 |         mips64el-linux-gnuabin32 | 
 | 5338 | #  elif _MIPS_SIM == _ABI64 | 
 | 5339 |         mips64el-linux-gnuabi64 | 
 | 5340 | #  else | 
 | 5341 | #   error unknown platform triplet | 
 | 5342 | #  endif | 
 | 5343 | # elif defined(__mips_hard_float) | 
 | 5344 | #  if _MIPS_SIM == _ABIO32 | 
 | 5345 |         mips-linux-gnu | 
 | 5346 | #  elif _MIPS_SIM == _ABIN32 | 
 | 5347 |         mips64-linux-gnuabin32 | 
 | 5348 | #  elif _MIPS_SIM == _ABI64 | 
 | 5349 |         mips64-linux-gnuabi64 | 
 | 5350 | #  else | 
 | 5351 | #   error unknown platform triplet | 
 | 5352 | #  endif | 
 | 5353 | # elif defined(__or1k__) | 
 | 5354 |         or1k-linux-gnu | 
 | 5355 | # elif defined(__powerpc__) && defined(__SPE__) | 
 | 5356 |         powerpc-linux-gnuspe | 
 | 5357 | # elif defined(__powerpc64__) | 
 | 5358 | #  if defined(__LITTLE_ENDIAN__) | 
 | 5359 |         powerpc64le-linux-gnu | 
 | 5360 | #  else | 
 | 5361 |         powerpc64-linux-gnu | 
 | 5362 | #  endif | 
 | 5363 | # elif defined(__powerpc__) | 
 | 5364 |         powerpc-linux-gnu | 
 | 5365 | # elif defined(__s390x__) | 
 | 5366 |         s390x-linux-gnu | 
 | 5367 | # elif defined(__s390__) | 
 | 5368 |         s390-linux-gnu | 
 | 5369 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | 
 | 5370 |         sh4-linux-gnu | 
 | 5371 | # elif defined(__sparc__) && defined(__arch64__) | 
 | 5372 |         sparc64-linux-gnu | 
 | 5373 | # elif defined(__sparc__) | 
 | 5374 |         sparc-linux-gnu | 
 | 5375 | # else | 
 | 5376 | #   error unknown platform triplet | 
 | 5377 | # endif | 
 | 5378 | #elif defined(__FreeBSD_kernel__) | 
 | 5379 | # if defined(__LP64__) | 
 | 5380 |         x86_64-kfreebsd-gnu | 
 | 5381 | # elif defined(__i386__) | 
 | 5382 |         i386-kfreebsd-gnu | 
 | 5383 | # else | 
 | 5384 | #   error unknown platform triplet | 
 | 5385 | # endif | 
 | 5386 | #elif defined(__gnu_hurd__) | 
 | 5387 |         i386-gnu | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5388 | #elif defined(__APPLE__) | 
 | 5389 |         darwin | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5390 | #else | 
 | 5391 | # error unknown platform triplet | 
 | 5392 | #endif | 
 | 5393 |  | 
 | 5394 | EOF | 
 | 5395 |  | 
| Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5396 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5397 |   PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' 	'` | 
 | 5398 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 | 
 | 5399 | $as_echo "$PLATFORM_TRIPLET" >&6; } | 
 | 5400 | else | 
 | 5401 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 5402 | $as_echo "none" >&6; } | 
 | 5403 | fi | 
 | 5404 | rm -f conftest.c conftest.out | 
 | 5405 |  | 
 | 5406 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then | 
 | 5407 |   if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | 
 | 5408 |     as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | 
 | 5409 |   fi | 
| doko@ubuntu.com | 75b1cb1 | 2016-08-29 20:03:25 +0200 | [diff] [blame] | 5410 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then | 
 | 5411 |   MULTIARCH=$PLATFORM_TRIPLET | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5412 | fi | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5413 | if test x$PLATFORM_TRIPLET = x; then | 
 | 5414 |   PLATDIR=plat-$MACHDEP | 
 | 5415 | else | 
 | 5416 |   PLATDIR=plat-$PLATFORM_TRIPLET | 
 | 5417 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5418 |  | 
 | 5419 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5420 | if test x$MULTIARCH != x; then | 
 | 5421 |   MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" | 
 | 5422 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5423 |  | 
 | 5424 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
 | 5426 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
 | 5427 | save_LDFLAGS="$LDFLAGS" | 
 | 5428 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5429 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5431 | /* end confdefs.h.  */ | 
 | 5432 |  | 
 | 5433 | int | 
 | 5434 | main () | 
 | 5435 | { | 
 | 5436 |  | 
 | 5437 |   ; | 
 | 5438 |   return 0; | 
 | 5439 | } | 
 | 5440 | _ACEOF | 
 | 5441 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 5442 |   NO_AS_NEEDED="-Wl,--no-as-needed" | 
 | 5443 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5444 | $as_echo "yes" >&6; } | 
 | 5445 | else | 
 | 5446 |   NO_AS_NEEDED="" | 
 | 5447 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5448 | $as_echo "no" >&6; } | 
 | 5449 | fi | 
 | 5450 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 5451 |     conftest$ac_exeext conftest.$ac_ext | 
 | 5452 | LDFLAGS="$save_LDFLAGS" | 
 | 5453 |  | 
 | 5454 |  | 
 | 5455 |  | 
 | 5456 | # checks for UNIX variants that set C preprocessor variables | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5457 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
 | 5459 | $as_echo_n "checking for egrep... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5460 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5461 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5462 | else | 
 | 5463 |   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
 | 5464 |    then ac_cv_path_EGREP="$GREP -E" | 
 | 5465 |    else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5466 |      if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5467 |   ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5468 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 5469 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5470 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 5471 | do | 
 | 5472 |   IFS=$as_save_IFS | 
 | 5473 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5474 |     for ac_prog in egrep; do | 
 | 5475 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5476 |       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5477 |       as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5478 | # 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] | 5479 |   # Check for GNU $ac_path_EGREP | 
 | 5480 | case `"$ac_path_EGREP" --version 2>&1` in | 
 | 5481 | *GNU*) | 
 | 5482 |   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
 | 5483 | *) | 
 | 5484 |   ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5485 |   $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5486 |   while : | 
 | 5487 |   do | 
 | 5488 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 5489 |     mv "conftest.tmp" "conftest.in" | 
 | 5490 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5491 |     $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5492 |     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 5493 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5494 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5495 |     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
 | 5496 |       # Best one so far, save it but keep looking for a better one | 
 | 5497 |       ac_cv_path_EGREP="$ac_path_EGREP" | 
 | 5498 |       ac_path_EGREP_max=$ac_count | 
 | 5499 |     fi | 
 | 5500 |     # 10*(2^10) chars as input seems more than enough | 
 | 5501 |     test $ac_count -gt 10 && break | 
 | 5502 |   done | 
 | 5503 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 5504 | esac | 
 | 5505 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5506 |       $ac_path_EGREP_found && break 3 | 
 | 5507 |     done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5508 |   done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5509 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5510 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5511 |   if test -z "$ac_cv_path_EGREP"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5512 |     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] | 5513 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5514 | else | 
 | 5515 |   ac_cv_path_EGREP=$EGREP | 
 | 5516 | fi | 
 | 5517 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5518 |    fi | 
 | 5519 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
 | 5521 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5522 |  EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5523 |  | 
 | 5524 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 5526 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5527 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5528 |   $as_echo_n "(cached) " >&6 | 
 | 5529 | else | 
 | 5530 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5531 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5532 | #include <stdlib.h> | 
 | 5533 | #include <stdarg.h> | 
 | 5534 | #include <string.h> | 
 | 5535 | #include <float.h> | 
 | 5536 |  | 
 | 5537 | int | 
 | 5538 | main () | 
 | 5539 | { | 
 | 5540 |  | 
 | 5541 |   ; | 
 | 5542 |   return 0; | 
 | 5543 | } | 
 | 5544 | _ACEOF | 
 | 5545 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5546 |   ac_cv_header_stdc=yes | 
 | 5547 | else | 
 | 5548 |   ac_cv_header_stdc=no | 
 | 5549 | fi | 
 | 5550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5551 |  | 
 | 5552 | if test $ac_cv_header_stdc = yes; then | 
 | 5553 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 5554 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5555 | /* end confdefs.h.  */ | 
 | 5556 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5557 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5558 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5559 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5560 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5561 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5562 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5563 |   ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5564 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5565 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5566 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5567 | fi | 
 | 5568 |  | 
 | 5569 | if test $ac_cv_header_stdc = yes; then | 
 | 5570 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 5571 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5572 | /* end confdefs.h.  */ | 
 | 5573 | #include <stdlib.h> | 
 | 5574 |  | 
 | 5575 | _ACEOF | 
 | 5576 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 5577 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 5578 |  | 
 | 5579 | else | 
 | 5580 |   ac_cv_header_stdc=no | 
 | 5581 | fi | 
 | 5582 | rm -f conftest* | 
 | 5583 |  | 
 | 5584 | fi | 
 | 5585 |  | 
 | 5586 | if test $ac_cv_header_stdc = yes; then | 
 | 5587 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 5588 |   if test "$cross_compiling" = yes; then : | 
 | 5589 |   : | 
 | 5590 | else | 
 | 5591 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5592 | /* end confdefs.h.  */ | 
 | 5593 | #include <ctype.h> | 
 | 5594 | #include <stdlib.h> | 
 | 5595 | #if ((' ' & 0x0FF) == 0x020) | 
 | 5596 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 5597 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 5598 | #else | 
 | 5599 | # define ISLOWER(c) \ | 
 | 5600 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 5601 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 5602 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 5603 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 5604 | #endif | 
 | 5605 |  | 
 | 5606 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 5607 | int | 
 | 5608 | main () | 
 | 5609 | { | 
 | 5610 |   int i; | 
 | 5611 |   for (i = 0; i < 256; i++) | 
 | 5612 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 5613 | 	|| toupper (i) != TOUPPER (i)) | 
 | 5614 |       return 2; | 
 | 5615 |   return 0; | 
 | 5616 | } | 
 | 5617 | _ACEOF | 
 | 5618 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 5619 |  | 
 | 5620 | else | 
 | 5621 |   ac_cv_header_stdc=no | 
 | 5622 | fi | 
 | 5623 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5624 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 5625 | fi | 
 | 5626 |  | 
 | 5627 | fi | 
 | 5628 | fi | 
 | 5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 5630 | $as_echo "$ac_cv_header_stdc" >&6; } | 
 | 5631 | if test $ac_cv_header_stdc = yes; then | 
 | 5632 |  | 
 | 5633 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
 | 5634 |  | 
 | 5635 | fi | 
 | 5636 |  | 
 | 5637 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 5638 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 5639 | 		  inttypes.h stdint.h unistd.h | 
 | 5640 | do : | 
 | 5641 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 5642 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 5643 | " | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5644 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5645 |   cat >>confdefs.h <<_ACEOF | 
 | 5646 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 5647 | _ACEOF | 
 | 5648 |  | 
 | 5649 | fi | 
 | 5650 |  | 
 | 5651 | done | 
 | 5652 |  | 
 | 5653 |  | 
 | 5654 |  | 
 | 5655 |   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] | 5656 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5657 |   MINIX=yes | 
 | 5658 | else | 
 | 5659 |   MINIX= | 
 | 5660 | fi | 
 | 5661 |  | 
 | 5662 |  | 
 | 5663 |   if test "$MINIX" = yes; then | 
 | 5664 |  | 
 | 5665 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
 | 5666 |  | 
 | 5667 |  | 
 | 5668 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
 | 5669 |  | 
 | 5670 |  | 
 | 5671 | $as_echo "#define _MINIX 1" >>confdefs.h | 
 | 5672 |  | 
 | 5673 |   fi | 
 | 5674 |  | 
 | 5675 |  | 
 | 5676 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
 | 5677 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5678 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5679 |   $as_echo_n "(cached) " >&6 | 
 | 5680 | else | 
 | 5681 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5682 | /* end confdefs.h.  */ | 
 | 5683 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5684 | #         define __EXTENSIONS__ 1 | 
 | 5685 |           $ac_includes_default | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5686 | int | 
 | 5687 | main () | 
 | 5688 | { | 
 | 5689 |  | 
 | 5690 |   ; | 
 | 5691 |   return 0; | 
 | 5692 | } | 
 | 5693 | _ACEOF | 
 | 5694 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5695 |   ac_cv_safe_to_define___extensions__=yes | 
 | 5696 | else | 
 | 5697 |   ac_cv_safe_to_define___extensions__=no | 
 | 5698 | fi | 
 | 5699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5700 | fi | 
 | 5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
 | 5702 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
 | 5703 |   test $ac_cv_safe_to_define___extensions__ = yes && | 
 | 5704 |     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
 | 5705 |  | 
 | 5706 |   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
 | 5707 |  | 
 | 5708 |   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
 | 5709 |  | 
 | 5710 |   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
 | 5711 |  | 
 | 5712 |   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
 | 5713 |  | 
 | 5714 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5715 |  | 
| Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 | 
 | 5717 | $as_echo_n "checking for the Android API level... " >&6; } | 
 | 5718 | cat >> conftest.c <<EOF | 
 | 5719 | #ifdef __ANDROID__ | 
 | 5720 | #include <android/api-level.h> | 
 | 5721 | __ANDROID_API__ | 
 | 5722 | #else | 
 | 5723 | #error not Android | 
 | 5724 | #endif | 
 | 5725 | EOF | 
 | 5726 |  | 
 | 5727 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
 | 5728 |   ANDROID_API_LEVEL=`grep -v '^#' conftest.out | grep -v '^ *$'` | 
 | 5729 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 | 
 | 5730 | $as_echo "$ANDROID_API_LEVEL" >&6; } | 
 | 5731 |  | 
 | 5732 | cat >>confdefs.h <<_ACEOF | 
 | 5733 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL | 
 | 5734 | _ACEOF | 
 | 5735 |  | 
 | 5736 | else | 
 | 5737 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 | 
 | 5738 | $as_echo "not Android" >&6; } | 
 | 5739 | fi | 
 | 5740 | rm -f conftest.c conftest.out | 
 | 5741 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5742 | # Check for unsupported systems | 
 | 5743 | case $ac_sys_system/$ac_sys_release in | 
 | 5744 | atheos*|Linux*/1*) | 
 | 5745 |    echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
 | 5746 |    echo See README for details. | 
 | 5747 |    exit 1;; | 
 | 5748 | esac | 
 | 5749 |  | 
 | 5750 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
 | 5752 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5753 |  | 
 | 5754 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5755 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5756 |   withval=$with_suffix; | 
 | 5757 | 	case $withval in | 
 | 5758 | 	no)	EXEEXT=;; | 
 | 5759 | 	yes)	EXEEXT=.exe;; | 
 | 5760 | 	*)	EXEEXT=$withval;; | 
 | 5761 | 	esac | 
 | 5762 | fi | 
 | 5763 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
 | 5765 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5766 |  | 
 | 5767 | # Test whether we're running on a non-case-sensitive system, in which | 
 | 5768 | # case we give a warning if no ext is given | 
 | 5769 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
 | 5771 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5772 | if test ! -d CaseSensitiveTestDir; then | 
 | 5773 | mkdir CaseSensitiveTestDir | 
 | 5774 | fi | 
 | 5775 |  | 
 | 5776 | if test -d casesensitivetestdir | 
 | 5777 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5778 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5779 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5780 |     BUILDEXEEXT=.exe | 
 | 5781 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5782 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5783 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5784 | 	BUILDEXEEXT=$EXEEXT | 
 | 5785 | fi | 
 | 5786 | rmdir CaseSensitiveTestDir | 
 | 5787 |  | 
 | 5788 | case $MACHDEP in | 
 | 5789 | bsdos*) | 
 | 5790 |     case $CC in | 
 | 5791 |     gcc) CC="$CC -D_HAVE_BSDI";; | 
 | 5792 |     esac;; | 
 | 5793 | esac | 
 | 5794 |  | 
 | 5795 | case $ac_sys_system in | 
 | 5796 | hp*|HP*) | 
 | 5797 |     case $CC in | 
 | 5798 |     cc|*/cc) CC="$CC -Ae";; | 
 | 5799 |     esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5800 | esac | 
 | 5801 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5802 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
 | 5804 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5805 | if test -z "$LIBRARY" | 
 | 5806 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5807 | 	LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5808 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
 | 5810 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5811 |  | 
 | 5812 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
 | 5813 | # name of the library into which to insert object files). BLDLIBRARY is also | 
 | 5814 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
 | 5815 | # is blank as the main program is not linked directly against LDLIBRARY. | 
 | 5816 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
 | 5817 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
 | 5818 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
 | 5819 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
 | 5820 | # | 
 | 5821 | # RUNSHARED is used to run shared python without installed libraries | 
 | 5822 | # | 
 | 5823 | # INSTSONAME is the name of the shared library that will be use to install | 
 | 5824 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5825 | # | 
 | 5826 | # LDVERSION is the shared library version number, normally the Python version | 
 | 5827 | # with the ABI build flags appended. | 
 | 5828 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5829 |  | 
 | 5830 |  | 
 | 5831 |  | 
 | 5832 |  | 
 | 5833 |  | 
 | 5834 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5835 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5836 | LDLIBRARY="$LIBRARY" | 
 | 5837 | BLDLIBRARY='$(LDLIBRARY)' | 
 | 5838 | INSTSONAME='$(LDLIBRARY)' | 
 | 5839 | DLLLIBRARY='' | 
 | 5840 | LDLIBRARYDIR='' | 
 | 5841 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5842 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5843 |  | 
 | 5844 | # LINKCC is the command that links the python executable -- default is $(CC). | 
 | 5845 | # If CXX is set, and if it is needed to link a main function that was | 
 | 5846 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
 | 5847 | # python might then depend on the C++ runtime | 
 | 5848 | # This is altered for AIX in order to build the export list before | 
 | 5849 | # linking. | 
 | 5850 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
 | 5852 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5853 | if test -z "$LINKCC" | 
 | 5854 | then | 
 | 5855 | 	LINKCC='$(PURIFY) $(MAINCC)' | 
 | 5856 | 	case $ac_sys_system in | 
 | 5857 | 	AIX*) | 
 | 5858 | 	   exp_extra="\"\"" | 
 | 5859 | 	   if test $ac_sys_release -ge 5 -o \ | 
 | 5860 | 		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
 | 5861 | 	       exp_extra="." | 
 | 5862 | 	   fi | 
 | 5863 | 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5864 | 	QNX*) | 
 | 5865 | 	   # qcc must be used because the other compilers do not | 
 | 5866 | 	   # support -N. | 
 | 5867 | 	   LINKCC=qcc;; | 
 | 5868 | 	esac | 
 | 5869 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
 | 5871 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5872 |  | 
 | 5873 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
 | 5874 | # make sure we default having it set to "no": this is used by | 
 | 5875 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
 | 5876 | # to linker command lines, and failing to detect GNU ld simply results | 
 | 5877 | # in the same bahaviour as before. | 
 | 5878 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
 | 5880 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5881 | ac_prog=ld | 
 | 5882 | if test "$GCC" = yes; then | 
 | 5883 |        ac_prog=`$CC -print-prog-name=ld` | 
 | 5884 | fi | 
 | 5885 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
 | 5886 |       *GNU*) | 
 | 5887 |           GNULD=yes;; | 
 | 5888 |       *) | 
 | 5889 |           GNULD=no;; | 
 | 5890 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
 | 5892 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5893 |  | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
 | 5895 | $as_echo_n "checking for inline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5896 | if ${ac_cv_c_inline+:} false; then : | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5897 |   $as_echo_n "(cached) " >&6 | 
 | 5898 | else | 
 | 5899 |   ac_cv_c_inline=no | 
 | 5900 | for ac_kw in inline __inline__ __inline; do | 
 | 5901 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5902 | /* end confdefs.h.  */ | 
 | 5903 | #ifndef __cplusplus | 
 | 5904 | typedef int foo_t; | 
 | 5905 | static $ac_kw foo_t static_foo () {return 0; } | 
 | 5906 | $ac_kw foo_t foo () {return 0; } | 
 | 5907 | #endif | 
 | 5908 |  | 
 | 5909 | _ACEOF | 
 | 5910 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5911 |   ac_cv_c_inline=$ac_kw | 
 | 5912 | fi | 
 | 5913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5914 |   test "$ac_cv_c_inline" != no && break | 
 | 5915 | done | 
 | 5916 |  | 
 | 5917 | fi | 
 | 5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
 | 5919 | $as_echo "$ac_cv_c_inline" >&6; } | 
 | 5920 |  | 
 | 5921 | case $ac_cv_c_inline in | 
 | 5922 |   inline | yes) ;; | 
 | 5923 |   *) | 
 | 5924 |     case $ac_cv_c_inline in | 
 | 5925 |       no) ac_val=;; | 
 | 5926 |       *) ac_val=$ac_cv_c_inline;; | 
 | 5927 |     esac | 
 | 5928 |     cat >>confdefs.h <<_ACEOF | 
 | 5929 | #ifndef __cplusplus | 
 | 5930 | #define inline $ac_val | 
 | 5931 | #endif | 
 | 5932 | _ACEOF | 
 | 5933 |     ;; | 
 | 5934 | esac | 
 | 5935 |  | 
 | 5936 | if test "$ac_cv_c_inline" != no ; then | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 5937 |  | 
 | 5938 | $as_echo "#define USE_INLINE 1" >>confdefs.h | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5939 |  | 
 | 5940 |  | 
 | 5941 | fi | 
 | 5942 |  | 
 | 5943 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
 | 5945 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5946 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5947 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5948 |   enableval=$enable_shared; | 
 | 5949 | fi | 
 | 5950 |  | 
 | 5951 |  | 
 | 5952 | if test -z "$enable_shared" | 
 | 5953 | then | 
 | 5954 |   case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5955 |   CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5956 |     enable_shared="yes";; | 
 | 5957 |   *) | 
 | 5958 |     enable_shared="no";; | 
 | 5959 |   esac | 
 | 5960 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
 | 5962 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5963 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
 | 5965 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5966 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5967 | if test "${enable_profiling+set}" = set; then : | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5968 |   enableval=$enable_profiling; | 
 | 5969 | fi | 
 | 5970 |  | 
 | 5971 | if test "x$enable_profiling" = xyes; then | 
 | 5972 |   ac_save_cc="$CC" | 
| Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5973 |   CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5974 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5975 | /* end confdefs.h.  */ | 
 | 5976 | int main() { return 0; } | 
 | 5977 | _ACEOF | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5978 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 5979 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5980 | else | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5981 |   enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5982 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5983 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 5984 |     conftest$ac_exeext conftest.$ac_ext | 
 | 5985 |   CC="$ac_save_cc" | 
 | 5986 | else | 
 | 5987 |   enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5988 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
 | 5990 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5991 |  | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5992 | if test "x$enable_profiling" = xyes; then | 
 | 5993 |   BASECFLAGS="-pg $BASECFLAGS" | 
 | 5994 |   LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5995 | fi | 
 | 5996 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
 | 5998 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5999 |  | 
 | 6000 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
 | 6001 | # library that we build, but we do not want to link against it (we | 
 | 6002 | # will find it with a -framework option). For this reason there is an | 
 | 6003 | # extra variable BLDLIBRARY against which Python and the extension | 
 | 6004 | # modules are linked, BLDLIBRARY. This is normally the same as | 
 | 6005 | # LDLIBRARY, but empty for MacOSX framework builds. | 
 | 6006 | if test "$enable_framework" | 
 | 6007 | then | 
 | 6008 |   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6009 |   RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6010 |   BLDLIBRARY='' | 
 | 6011 | else | 
 | 6012 |   BLDLIBRARY='$(LDLIBRARY)' | 
 | 6013 | fi | 
 | 6014 |  | 
 | 6015 | # Other platforms follow | 
 | 6016 | if test $enable_shared = "yes"; then | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 6017 |   PY_ENABLE_SHARED=1 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6018 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6019 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6020 |  | 
 | 6021 |   case $ac_sys_system in | 
 | 6022 |     CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6023 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
 | 6024 |           DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6025 |           ;; | 
 | 6026 |     SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6027 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 6028 | 	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6029 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6030 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6031 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 6032 | 	  then | 
 | 6033 | 	      PY3LIBRARY=libpython3.so | 
 | 6034 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6035 |           ;; | 
| Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 6036 |     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6037 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 6038 | 	  BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6039 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6040 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6041 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 6042 |           then | 
 | 6043 | 	      PY3LIBRARY=libpython3.so | 
 | 6044 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6045 | 	  ;; | 
 | 6046 |     hp*|HP*) | 
 | 6047 | 	  case `uname -m` in | 
 | 6048 | 		ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6049 | 			LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6050 | 			;; | 
 | 6051 | 		*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6052 | 			LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6053 | 			;; | 
 | 6054 | 	  esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6055 | 	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6056 | 	  RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6057 | 	  ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6058 |     Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6059 |     	LDLIBRARY='libpython$(LDVERSION).dylib' | 
 | 6060 | 	BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6061 | 	RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6062 | 	;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6063 |     AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6064 | 	LDLIBRARY='libpython$(LDVERSION).so' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6065 | 	RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6066 | 	;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6067 |  | 
 | 6068 |   esac | 
 | 6069 | else # shared is disabled | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 6070 |   PY_ENABLE_SHARED=0 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6071 |   case $ac_sys_system in | 
 | 6072 |     CYGWIN*) | 
 | 6073 |           BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6074 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6075 |           ;; | 
 | 6076 |   esac | 
 | 6077 | fi | 
 | 6078 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 6079 | if test "$cross_compiling" = yes; then | 
 | 6080 | 	RUNSHARED= | 
 | 6081 | fi | 
 | 6082 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
 | 6084 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6085 |  | 
 | 6086 | if test -n "$ac_tool_prefix"; then | 
 | 6087 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 6088 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6090 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6091 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6092 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6093 | else | 
 | 6094 |   if test -n "$RANLIB"; then | 
 | 6095 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 6096 | else | 
 | 6097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6098 | for as_dir in $PATH | 
 | 6099 | do | 
 | 6100 |   IFS=$as_save_IFS | 
 | 6101 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6102 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6103 |   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] | 6104 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6105 |     $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] | 6106 |     break 2 | 
 | 6107 |   fi | 
 | 6108 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6109 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6110 | IFS=$as_save_IFS | 
 | 6111 |  | 
 | 6112 | fi | 
 | 6113 | fi | 
 | 6114 | RANLIB=$ac_cv_prog_RANLIB | 
 | 6115 | if test -n "$RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6116 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
 | 6117 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6118 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6119 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6120 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6121 | fi | 
 | 6122 |  | 
 | 6123 |  | 
 | 6124 | fi | 
 | 6125 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 6126 |   ac_ct_RANLIB=$RANLIB | 
 | 6127 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 6128 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6130 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6131 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6132 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6133 | else | 
 | 6134 |   if test -n "$ac_ct_RANLIB"; then | 
 | 6135 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 6136 | else | 
 | 6137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6138 | for as_dir in $PATH | 
 | 6139 | do | 
 | 6140 |   IFS=$as_save_IFS | 
 | 6141 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6142 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6143 |   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] | 6144 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6145 |     $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] | 6146 |     break 2 | 
 | 6147 |   fi | 
 | 6148 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6149 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6150 | IFS=$as_save_IFS | 
 | 6151 |  | 
 | 6152 | fi | 
 | 6153 | fi | 
 | 6154 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 6155 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6156 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
 | 6157 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6158 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6159 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6160 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6161 | fi | 
 | 6162 |  | 
 | 6163 |   if test "x$ac_ct_RANLIB" = x; then | 
 | 6164 |     RANLIB=":" | 
 | 6165 |   else | 
 | 6166 |     case $cross_compiling:$ac_tool_warned in | 
 | 6167 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6168 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 6169 | $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] | 6170 | ac_tool_warned=yes ;; | 
 | 6171 | esac | 
 | 6172 |     RANLIB=$ac_ct_RANLIB | 
 | 6173 |   fi | 
 | 6174 | else | 
 | 6175 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 6176 | fi | 
 | 6177 |  | 
 | 6178 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6179 | if test -n "$ac_tool_prefix"; then | 
 | 6180 |   for ac_prog in ar aal | 
 | 6181 |   do | 
 | 6182 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 6183 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6185 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6186 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6187 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6188 | else | 
 | 6189 |   if test -n "$AR"; then | 
 | 6190 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 6191 | else | 
 | 6192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6193 | for as_dir in $PATH | 
 | 6194 | do | 
 | 6195 |   IFS=$as_save_IFS | 
 | 6196 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6197 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6198 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6199 |     ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6200 |     $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] | 6201 |     break 2 | 
 | 6202 |   fi | 
 | 6203 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6204 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6205 | IFS=$as_save_IFS | 
 | 6206 |  | 
 | 6207 | fi | 
 | 6208 | fi | 
 | 6209 | AR=$ac_cv_prog_AR | 
 | 6210 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6211 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
 | 6212 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6213 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6214 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6215 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6216 | fi | 
 | 6217 |  | 
 | 6218 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6219 |     test -n "$AR" && break | 
 | 6220 |   done | 
 | 6221 | fi | 
 | 6222 | if test -z "$AR"; then | 
 | 6223 |   ac_ct_AR=$AR | 
 | 6224 |   for ac_prog in ar aal | 
 | 6225 | do | 
 | 6226 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 6227 | set dummy $ac_prog; ac_word=$2 | 
 | 6228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6229 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6230 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
 | 6231 |   $as_echo_n "(cached) " >&6 | 
 | 6232 | else | 
 | 6233 |   if test -n "$ac_ct_AR"; then | 
 | 6234 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 6235 | else | 
 | 6236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6237 | for as_dir in $PATH | 
 | 6238 | do | 
 | 6239 |   IFS=$as_save_IFS | 
 | 6240 |   test -z "$as_dir" && as_dir=. | 
 | 6241 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 6242 |   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] | 6243 |     ac_cv_prog_ac_ct_AR="$ac_prog" | 
 | 6244 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6245 |     break 2 | 
 | 6246 |   fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6247 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6248 |   done | 
 | 6249 | IFS=$as_save_IFS | 
 | 6250 |  | 
 | 6251 | fi | 
 | 6252 | fi | 
 | 6253 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 6254 | if test -n "$ac_ct_AR"; then | 
 | 6255 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
 | 6256 | $as_echo "$ac_ct_AR" >&6; } | 
 | 6257 | else | 
 | 6258 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6259 | $as_echo "no" >&6; } | 
 | 6260 | fi | 
 | 6261 |  | 
 | 6262 |  | 
 | 6263 |   test -n "$ac_ct_AR" && break | 
 | 6264 | done | 
 | 6265 |  | 
 | 6266 |   if test "x$ac_ct_AR" = x; then | 
 | 6267 |     AR="ar" | 
 | 6268 |   else | 
 | 6269 |     case $cross_compiling:$ac_tool_warned in | 
 | 6270 | yes:) | 
 | 6271 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 6272 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 6273 | ac_tool_warned=yes ;; | 
 | 6274 | esac | 
 | 6275 |     AR=$ac_ct_AR | 
 | 6276 |   fi | 
 | 6277 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6278 |  | 
 | 6279 |  | 
 | 6280 | # tweak ARFLAGS only if the user didn't set it on the command line | 
 | 6281 |  | 
 | 6282 | if test -z "$ARFLAGS" | 
 | 6283 | then | 
 | 6284 |         ARFLAGS="rc" | 
 | 6285 | fi | 
 | 6286 |  | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6287 | if test -n "$ac_tool_prefix"; then | 
 | 6288 |   for ac_prog in readelf | 
 | 6289 |   do | 
 | 6290 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 6291 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 6292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6293 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6294 | if ${ac_cv_prog_READELF+:} false; then : | 
 | 6295 |   $as_echo_n "(cached) " >&6 | 
 | 6296 | else | 
 | 6297 |   if test -n "$READELF"; then | 
 | 6298 |   ac_cv_prog_READELF="$READELF" # Let the user override the test. | 
 | 6299 | else | 
 | 6300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6301 | for as_dir in $PATH | 
 | 6302 | do | 
 | 6303 |   IFS=$as_save_IFS | 
 | 6304 |   test -z "$as_dir" && as_dir=. | 
 | 6305 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6306 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6307 |     ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" | 
 | 6308 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6309 |     break 2 | 
 | 6310 |   fi | 
 | 6311 | done | 
 | 6312 |   done | 
 | 6313 | IFS=$as_save_IFS | 
 | 6314 |  | 
 | 6315 | fi | 
 | 6316 | fi | 
 | 6317 | READELF=$ac_cv_prog_READELF | 
 | 6318 | if test -n "$READELF"; then | 
 | 6319 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | 
 | 6320 | $as_echo "$READELF" >&6; } | 
 | 6321 | else | 
 | 6322 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6323 | $as_echo "no" >&6; } | 
 | 6324 | fi | 
 | 6325 |  | 
 | 6326 |  | 
 | 6327 |     test -n "$READELF" && break | 
 | 6328 |   done | 
 | 6329 | fi | 
 | 6330 | if test -z "$READELF"; then | 
 | 6331 |   ac_ct_READELF=$READELF | 
 | 6332 |   for ac_prog in readelf | 
 | 6333 | do | 
 | 6334 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 6335 | set dummy $ac_prog; ac_word=$2 | 
 | 6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6337 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6338 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | 
 | 6339 |   $as_echo_n "(cached) " >&6 | 
 | 6340 | else | 
 | 6341 |   if test -n "$ac_ct_READELF"; then | 
 | 6342 |   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | 
 | 6343 | else | 
 | 6344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6345 | for as_dir in $PATH | 
 | 6346 | do | 
 | 6347 |   IFS=$as_save_IFS | 
 | 6348 |   test -z "$as_dir" && as_dir=. | 
 | 6349 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6350 |   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] | 6351 |     ac_cv_prog_ac_ct_READELF="$ac_prog" | 
 | 6352 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6353 |     break 2 | 
 | 6354 |   fi | 
 | 6355 | done | 
 | 6356 |   done | 
 | 6357 | IFS=$as_save_IFS | 
 | 6358 |  | 
 | 6359 | fi | 
 | 6360 | fi | 
 | 6361 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | 
 | 6362 | if test -n "$ac_ct_READELF"; then | 
 | 6363 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | 
 | 6364 | $as_echo "$ac_ct_READELF" >&6; } | 
 | 6365 | else | 
 | 6366 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6367 | $as_echo "no" >&6; } | 
 | 6368 | fi | 
 | 6369 |  | 
 | 6370 |  | 
 | 6371 |   test -n "$ac_ct_READELF" && break | 
 | 6372 | done | 
 | 6373 |  | 
 | 6374 |   if test "x$ac_ct_READELF" = x; then | 
 | 6375 |     READELF=":" | 
 | 6376 |   else | 
 | 6377 |     case $cross_compiling:$ac_tool_warned in | 
 | 6378 | yes:) | 
 | 6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 6380 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 6381 | ac_tool_warned=yes ;; | 
 | 6382 | esac | 
 | 6383 |     READELF=$ac_ct_READELF | 
 | 6384 |   fi | 
 | 6385 | fi | 
 | 6386 |  | 
 | 6387 | if test "$cross_compiling" = yes; then | 
 | 6388 |     case "$READELF" in | 
 | 6389 | 	readelf|:) | 
 | 6390 | 	as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | 
 | 6391 | 	;; | 
 | 6392 |     esac | 
 | 6393 | fi | 
 | 6394 |  | 
 | 6395 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6396 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6397 | case $MACHDEP in | 
 | 6398 | bsdos*|hp*|HP*) | 
 | 6399 | 	# install -d does not work on BSDI or HP-UX | 
 | 6400 | 	if test -z "$INSTALL" | 
 | 6401 | 	then | 
 | 6402 | 		INSTALL="${srcdir}/install-sh -c" | 
 | 6403 | 	fi | 
 | 6404 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6405 | # Find a good install program.  We prefer a C program (faster), | 
 | 6406 | # so one script is as good as another.  But avoid the broken or | 
 | 6407 | # incompatible versions: | 
 | 6408 | # SysV /etc/install, /usr/sbin/install | 
 | 6409 | # SunOS /usr/etc/install | 
 | 6410 | # IRIX /sbin/install | 
 | 6411 | # AIX /bin/install | 
 | 6412 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 6413 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 6414 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 6415 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 6416 | # OS/2's system install, which has a completely different semantic | 
 | 6417 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6418 | # Reject install programs that cannot install multiple files. | 
 | 6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
 | 6420 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6421 | if test -z "$INSTALL"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6422 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6423 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6424 | else | 
 | 6425 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6426 | for as_dir in $PATH | 
 | 6427 | do | 
 | 6428 |   IFS=$as_save_IFS | 
 | 6429 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6430 |     # Account for people who put trailing slashes in PATH elements. | 
 | 6431 | case $as_dir/ in #(( | 
 | 6432 |   ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6433 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6434 |   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6435 |   /usr/ucb/* ) ;; | 
 | 6436 |   *) | 
 | 6437 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 6438 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 6439 |     # by default. | 
 | 6440 |     for ac_prog in ginstall scoinst install; do | 
 | 6441 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6442 | 	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] | 6443 | 	  if test $ac_prog = install && | 
 | 6444 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 6445 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 6446 | 	    : | 
 | 6447 | 	  elif test $ac_prog = install && | 
 | 6448 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 6449 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 6450 | 	    : | 
 | 6451 | 	  else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6452 | 	    rm -rf conftest.one conftest.two conftest.dir | 
 | 6453 | 	    echo one > conftest.one | 
 | 6454 | 	    echo two > conftest.two | 
 | 6455 | 	    mkdir conftest.dir | 
 | 6456 | 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
 | 6457 | 	      test -s conftest.one && test -s conftest.two && | 
 | 6458 | 	      test -s conftest.dir/conftest.one && | 
 | 6459 | 	      test -s conftest.dir/conftest.two | 
 | 6460 | 	    then | 
 | 6461 | 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 6462 | 	      break 3 | 
 | 6463 | 	    fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6464 | 	  fi | 
 | 6465 | 	fi | 
 | 6466 |       done | 
 | 6467 |     done | 
 | 6468 |     ;; | 
 | 6469 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6470 |  | 
 | 6471 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6472 | IFS=$as_save_IFS | 
 | 6473 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6474 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6475 |  | 
 | 6476 | fi | 
 | 6477 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 6478 |     INSTALL=$ac_cv_path_install | 
 | 6479 |   else | 
 | 6480 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 6481 |     # value for INSTALL within a source directory, because that will | 
 | 6482 |     # break other packages using the cache if that directory is | 
 | 6483 |     # removed, or if the value is a relative name. | 
 | 6484 |     INSTALL=$ac_install_sh | 
 | 6485 |   fi | 
 | 6486 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
 | 6488 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6489 |  | 
 | 6490 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 6491 | # It thinks the first close brace ends the variable substitution. | 
 | 6492 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 6493 |  | 
 | 6494 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 6495 |  | 
 | 6496 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 6497 |  | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
 | 6499 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
 | 6500 | if test -z "$MKDIR_P"; then | 
 | 6501 |   if ${ac_cv_path_mkdir+:} false; then : | 
 | 6502 |   $as_echo_n "(cached) " >&6 | 
 | 6503 | else | 
 | 6504 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6505 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
 | 6506 | do | 
 | 6507 |   IFS=$as_save_IFS | 
 | 6508 |   test -z "$as_dir" && as_dir=. | 
 | 6509 |     for ac_prog in mkdir gmkdir; do | 
 | 6510 | 	 for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6511 | 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6512 | 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
 | 6513 | 	     'mkdir (GNU coreutils) '* | \ | 
 | 6514 | 	     'mkdir (coreutils) '* | \ | 
 | 6515 | 	     'mkdir (fileutils) '4.1*) | 
 | 6516 | 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
 | 6517 | 	       break 3;; | 
 | 6518 | 	   esac | 
 | 6519 | 	 done | 
 | 6520 |        done | 
 | 6521 |   done | 
 | 6522 | IFS=$as_save_IFS | 
 | 6523 |  | 
 | 6524 | fi | 
 | 6525 |  | 
 | 6526 |   test -d ./--version && rmdir ./--version | 
 | 6527 |   if test "${ac_cv_path_mkdir+set}" = set; then | 
 | 6528 |     MKDIR_P="$ac_cv_path_mkdir -p" | 
 | 6529 |   else | 
 | 6530 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 6531 |     # value for MKDIR_P within a source directory, because that will | 
 | 6532 |     # break other packages using the cache if that directory is | 
 | 6533 |     # removed, or if the value is a relative name. | 
 | 6534 |     MKDIR_P="$ac_install_sh -d" | 
 | 6535 |   fi | 
 | 6536 | fi | 
 | 6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
 | 6538 | $as_echo "$MKDIR_P" >&6; } | 
 | 6539 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6540 |  | 
 | 6541 | # Not every filesystem supports hard links | 
 | 6542 |  | 
 | 6543 | if test -z "$LN" ; then | 
 | 6544 | 	case $ac_sys_system in | 
 | 6545 | 		CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6546 | 		*) LN=ln;; | 
 | 6547 | 	esac | 
 | 6548 | fi | 
 | 6549 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6550 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6551 |  | 
 | 6552 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6553 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6554 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
 | 6556 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6557 |  | 
 | 6558 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6559 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6560 |   withval=$with_pydebug; | 
 | 6561 | if test "$withval" != no | 
 | 6562 | then | 
 | 6563 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6564 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6565 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6566 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 6567 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6568 |   Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6569 |   ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6570 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6571 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6572 | fi | 
 | 6573 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6574 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6575 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6576 | fi | 
 | 6577 |  | 
 | 6578 |  | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6579 | # Enable LTO flags | 
 | 6580 |  | 
 | 6581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 | 
 | 6582 | $as_echo_n "checking for --with-lto... " >&6; } | 
 | 6583 |  | 
 | 6584 | # Check whether --with-lto was given. | 
 | 6585 | if test "${with_lto+set}" = set; then : | 
 | 6586 |   withval=$with_lto; | 
 | 6587 | if test "$withval" != no | 
 | 6588 | then | 
 | 6589 |   Py_LTO='true' | 
 | 6590 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 6591 | $as_echo "yes" >&6; }; | 
 | 6592 | else | 
 | 6593 |   Py_LTO='false' | 
 | 6594 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6595 | $as_echo "no" >&6; }; | 
 | 6596 | fi | 
 | 6597 | else | 
 | 6598 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6599 | $as_echo "no" >&6; } | 
 | 6600 | fi | 
 | 6601 |  | 
 | 6602 | if test "$Py_LTO" = 'true' ; then | 
 | 6603 |   case $CC in | 
 | 6604 |     *clang*) | 
 | 6605 |       # Any changes made here should be reflected in the GCC+Darwin case below | 
 | 6606 |       LTOFLAGS="-flto" | 
 | 6607 |       ;; | 
 | 6608 |     *gcc*) | 
 | 6609 |       case $ac_sys_system in | 
 | 6610 |         Darwin*) | 
 | 6611 |           LTOFLAGS="-flto" | 
 | 6612 |           ;; | 
 | 6613 |         *) | 
 | 6614 |           LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | 
 | 6615 |           ;; | 
 | 6616 |       esac | 
 | 6617 |       ;; | 
 | 6618 |   esac | 
 | 6619 | fi | 
 | 6620 |  | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6621 | # Enable PGO flags. | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6622 |  | 
 | 6623 |  | 
 | 6624 |  | 
 | 6625 |  | 
 | 6626 |  | 
 | 6627 |  | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6628 | # Extract the first word of "llvm-profdata", so it can be a program name with args. | 
 | 6629 | set dummy llvm-profdata; ac_word=$2 | 
 | 6630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6631 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6632 | if ${ac_cv_prog_LLVM_PROF_FOUND+:} false; then : | 
 | 6633 |   $as_echo_n "(cached) " >&6 | 
 | 6634 | else | 
 | 6635 |   if test -n "$LLVM_PROF_FOUND"; then | 
 | 6636 |   ac_cv_prog_LLVM_PROF_FOUND="$LLVM_PROF_FOUND" # Let the user override the test. | 
 | 6637 | else | 
 | 6638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6639 | for as_dir in $PATH | 
 | 6640 | do | 
 | 6641 |   IFS=$as_save_IFS | 
 | 6642 |   test -z "$as_dir" && as_dir=. | 
 | 6643 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 6644 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 6645 |     ac_cv_prog_LLVM_PROF_FOUND="found" | 
 | 6646 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6647 |     break 2 | 
 | 6648 |   fi | 
 | 6649 | done | 
 | 6650 |   done | 
 | 6651 | IFS=$as_save_IFS | 
 | 6652 |  | 
 | 6653 |   test -z "$ac_cv_prog_LLVM_PROF_FOUND" && ac_cv_prog_LLVM_PROF_FOUND="not-found" | 
 | 6654 | fi | 
 | 6655 | fi | 
 | 6656 | LLVM_PROF_FOUND=$ac_cv_prog_LLVM_PROF_FOUND | 
 | 6657 | if test -n "$LLVM_PROF_FOUND"; then | 
 | 6658 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROF_FOUND" >&5 | 
 | 6659 | $as_echo "$LLVM_PROF_FOUND" >&6; } | 
 | 6660 | else | 
 | 6661 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6662 | $as_echo "no" >&6; } | 
 | 6663 | fi | 
 | 6664 |  | 
 | 6665 |  | 
 | 6666 | LLVM_PROF_ERR=no | 
 | 6667 | case $CC in | 
 | 6668 |   *clang*) | 
 | 6669 |     # Any changes made here should be reflected in the GCC+Darwin case below | 
 | 6670 |     PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
 | 6671 |     PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
 | 6672 |     LLVM_PROF_MERGER="llvm-profdata merge -output=code.profclangd *.profclangr" | 
 | 6673 |     LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
 | 6674 |     if test $LLVM_PROF_FOUND = not-found | 
 | 6675 |     then | 
 | 6676 |       LLVM_PROF_ERR=yes | 
 | 6677 |     fi | 
 | 6678 |     ;; | 
 | 6679 |   *gcc*) | 
 | 6680 |     case $ac_sys_system in | 
 | 6681 |       Darwin*) | 
 | 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 |       *) | 
 | 6692 |         PGO_PROF_GEN_FLAG="-fprofile-generate" | 
 | 6693 |         PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | 
 | 6694 |         LLVM_PROF_MERGER="true" | 
 | 6695 |         LLVM_PROF_FILE="" | 
 | 6696 |         ;; | 
 | 6697 |     esac | 
 | 6698 |     ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6699 |   *icc*) | 
 | 6700 |     PGO_PROF_GEN_FLAG="-prof-gen" | 
 | 6701 |     PGO_PROF_USE_FLAG="-prof-use" | 
 | 6702 |     LLVM_PROF_MERGER="true" | 
 | 6703 |     LLVM_PROF_FILE="" | 
 | 6704 |     ;; | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6705 | esac | 
 | 6706 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6707 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
 | 6708 | # merged with this chunk of code? | 
 | 6709 |  | 
 | 6710 | # Optimizer/debugger flags | 
 | 6711 | # ------------------------ | 
 | 6712 | # (The following bit of code is complicated enough - please keep things | 
 | 6713 | # indented properly.  Just pretend you're editing Python code. ;-) | 
 | 6714 |  | 
 | 6715 | # There are two parallel sets of case statements below, one that checks to | 
 | 6716 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
 | 6717 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
 | 6718 | # user set OPT. | 
 | 6719 |  | 
 | 6720 | # tweak OPT based on compiler and platform, only if the user didn't set | 
 | 6721 | # it on the command line | 
 | 6722 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6723 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6724 | then | 
 | 6725 |     case $GCC in | 
 | 6726 |     yes) | 
 | 6727 |         if test "$CC" != 'g++' ; then | 
 | 6728 | 	    STRICT_PROTO="-Wstrict-prototypes" | 
 | 6729 | 	fi | 
 | 6730 |         # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
 | 6731 |         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
 | 6732 |            WRAP="-fwrapv" | 
 | 6733 |         fi | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6734 |  | 
 | 6735 |         # Clang also needs -fwrapv | 
| Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6736 |         case $CC in | 
 | 6737 |             *clang*) WRAP="-fwrapv" | 
 | 6738 |             ;; | 
 | 6739 |         esac | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6740 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6741 | 	case $ac_cv_prog_cc_g in | 
 | 6742 | 	yes) | 
 | 6743 | 	    if test "$Py_DEBUG" = 'true' ; then | 
 | 6744 | 		# Optimization messes up debuggers, so turn it off for | 
 | 6745 | 		# debug builds. | 
| Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6746 |                 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then | 
 | 6747 |                     OPT="-g -Og -Wall $STRICT_PROTO" | 
 | 6748 |                 else | 
 | 6749 |                     OPT="-g -O0 -Wall $STRICT_PROTO" | 
 | 6750 |                 fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6751 | 	    else | 
 | 6752 | 		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
 | 6753 | 	    fi | 
 | 6754 | 	    ;; | 
 | 6755 | 	*) | 
 | 6756 | 	    OPT="-O3 -Wall $STRICT_PROTO" | 
 | 6757 | 	    ;; | 
 | 6758 | 	esac | 
 | 6759 | 	case $ac_sys_system in | 
 | 6760 | 	    SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
 | 6761 | 	    ;; | 
 | 6762 |         esac | 
 | 6763 | 	;; | 
 | 6764 |  | 
 | 6765 |     *) | 
 | 6766 | 	OPT="-O" | 
 | 6767 | 	;; | 
 | 6768 |     esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6769 | fi | 
 | 6770 |  | 
 | 6771 |  | 
 | 6772 |  | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6773 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6774 | # The -arch flags for universal builds on OSX | 
 | 6775 | UNIVERSAL_ARCH_FLAGS= | 
 | 6776 |  | 
 | 6777 |  | 
 | 6778 | # tweak BASECFLAGS based on compiler and platform | 
 | 6779 | case $GCC in | 
 | 6780 | yes) | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6781 |     # Python doesn't violate C99 aliasing rules, but older versions of | 
 | 6782 |     # GCC produce warnings for legal Python code.  Enable | 
 | 6783 |     # -fno-strict-aliasing on versions of GCC that support but produce | 
 | 6784 |     # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6785 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
 | 6786 | $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] | 6787 |      ac_save_cc="$CC" | 
 | 6788 |      CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6789 |      save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6790 |      if ${ac_cv_no_strict_aliasing+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6791 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6792 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6793 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6794 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6795 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6796 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6797 | int | 
 | 6798 | main () | 
 | 6799 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6800 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6801 |   ; | 
 | 6802 |   return 0; | 
 | 6803 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6804 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6805 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6806 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6807 |  | 
 | 6808 | 	   CC="$ac_save_cc -fstrict-aliasing" | 
 | 6809 |            CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
 | 6810 |            cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6811 | /* end confdefs.h.  */ | 
 | 6812 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6813 | 	       void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6814 | int | 
 | 6815 | main () | 
 | 6816 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6817 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6818 |   ; | 
 | 6819 |   return 0; | 
 | 6820 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6821 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6822 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6823 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6824 |  | 
 | 6825 | 	       ac_cv_no_strict_aliasing=no | 
 | 6826 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6827 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6828 |  | 
 | 6829 |                ac_cv_no_strict_aliasing=yes | 
 | 6830 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6831 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| 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 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6835 |  | 
 | 6836 | 	   ac_cv_no_strict_aliasing=no | 
 | 6837 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6838 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6840 | fi | 
 | 6841 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6842 |      CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6843 |      CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6844 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
 | 6845 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6846 |     if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6847 |     then | 
 | 6848 |       BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
 | 6849 |     fi | 
 | 6850 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6851 |     # ICC doesn't recognize the option, but only emits a warning | 
 | 6852 |     ## XXX does it emit an unused result warning and can it be disabled? | 
 | 6853 |     case "$CC" in | 
 | 6854 |     *icc*) | 
 | 6855 |     ac_cv_disable_unused_result_warning=no | 
 | 6856 |     ;; | 
 | 6857 |     *) | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6858 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 | 
 | 6859 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | 
 | 6860 |      ac_save_cc="$CC" | 
 | 6861 |      CC="$CC -Wunused-result -Werror" | 
 | 6862 |      save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6863 |      if ${ac_cv_disable_unused_result_warning+:} false; then : | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6864 |   $as_echo_n "(cached) " >&6 | 
 | 6865 | else | 
 | 6866 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6867 | /* end confdefs.h.  */ | 
 | 6868 |  | 
 | 6869 |  | 
 | 6870 | int | 
 | 6871 | main () | 
 | 6872 | { | 
 | 6873 |  | 
 | 6874 |   ; | 
 | 6875 |   return 0; | 
 | 6876 | } | 
 | 6877 |  | 
 | 6878 | _ACEOF | 
 | 6879 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 6880 |  | 
 | 6881 |            ac_cv_disable_unused_result_warning=yes | 
 | 6882 |  | 
 | 6883 | else | 
 | 6884 |  | 
 | 6885 |            ac_cv_disable_unused_result_warning=no | 
 | 6886 |  | 
 | 6887 | fi | 
 | 6888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6889 | fi | 
 | 6890 |  | 
 | 6891 |      CFLAGS="$save_CFLAGS" | 
 | 6892 |      CC="$ac_save_cc" | 
 | 6893 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | 
 | 6894 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6895 |     ;; | 
 | 6896 |     esac | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6897 |  | 
 | 6898 |     if test $ac_cv_disable_unused_result_warning = yes | 
 | 6899 |     then | 
 | 6900 |       BASECFLAGS="$BASECFLAGS -Wno-unused-result" | 
 | 6901 |     fi | 
 | 6902 |  | 
| Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 6903 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=declaration-after-statement" >&5 | 
 | 6904 | $as_echo_n "checking for -Werror=declaration-after-statement... " >&6; } | 
 | 6905 |      ac_save_cc="$CC" | 
 | 6906 |      CC="$CC -Werror=declaration-after-statement" | 
 | 6907 |      save_CFLAGS="$CFLAGS" | 
 | 6908 |      if ${ac_cv_declaration_after_statement_warning+:} false; then : | 
 | 6909 |   $as_echo_n "(cached) " >&6 | 
 | 6910 | else | 
 | 6911 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6912 | /* end confdefs.h.  */ | 
 | 6913 |  | 
 | 6914 |  | 
 | 6915 | int | 
 | 6916 | main () | 
 | 6917 | { | 
 | 6918 |  | 
 | 6919 |   ; | 
 | 6920 |   return 0; | 
 | 6921 | } | 
 | 6922 |  | 
 | 6923 | _ACEOF | 
 | 6924 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 6925 |  | 
 | 6926 |            ac_cv_declaration_after_statement_warning=yes | 
 | 6927 |  | 
 | 6928 | else | 
 | 6929 |  | 
 | 6930 |            ac_cv_declaration_after_statement_warning=no | 
 | 6931 |  | 
 | 6932 | fi | 
 | 6933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6934 | fi | 
 | 6935 |  | 
 | 6936 |      CFLAGS="$save_CFLAGS" | 
 | 6937 |      CC="$ac_save_cc" | 
 | 6938 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declaration_after_statement_warning" >&5 | 
 | 6939 | $as_echo "$ac_cv_declaration_after_statement_warning" >&6; } | 
 | 6940 |  | 
 | 6941 |     if test $ac_cv_declaration_after_statement_warning = yes | 
 | 6942 |     then | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6943 |       CFLAGS_NODIST="$CFLAGS_NODIST -Werror=declaration-after-statement" | 
| Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 6944 |     fi | 
 | 6945 |  | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 6946 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 | 
 | 6947 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | 
 | 6948 |      ac_save_cc="$CC" | 
 | 6949 |      CC="$CC -Wsign-compare" | 
 | 6950 |      save_CFLAGS="$CFLAGS" | 
 | 6951 |      if ${ac_cv_enable_sign_compare_warning+:} false; then : | 
 | 6952 |   $as_echo_n "(cached) " >&6 | 
 | 6953 | else | 
 | 6954 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6955 | /* end confdefs.h.  */ | 
 | 6956 |  | 
 | 6957 |  | 
 | 6958 | int | 
 | 6959 | main () | 
 | 6960 | { | 
 | 6961 |  | 
 | 6962 |   ; | 
 | 6963 |   return 0; | 
 | 6964 | } | 
 | 6965 |  | 
 | 6966 | _ACEOF | 
 | 6967 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 6968 |  | 
 | 6969 |            ac_cv_enable_sign_compare_warning=yes | 
 | 6970 |  | 
 | 6971 | else | 
 | 6972 |  | 
 | 6973 |            ac_cv_enable_sign_compare_warning=no | 
 | 6974 |  | 
 | 6975 | fi | 
 | 6976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6977 | fi | 
 | 6978 |  | 
 | 6979 |      CFLAGS="$save_CFLAGS" | 
 | 6980 |      CC="$ac_save_cc" | 
 | 6981 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 | 
 | 6982 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | 
 | 6983 |  | 
 | 6984 |     if test $ac_cv_enable_sign_compare_warning = yes | 
 | 6985 |     then | 
 | 6986 |       BASECFLAGS="$BASECFLAGS -Wsign-compare" | 
 | 6987 |     fi | 
 | 6988 |  | 
 | 6989 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 | 
 | 6990 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | 
 | 6991 |      ac_save_cc="$CC" | 
 | 6992 |      CC="$CC -Wunreachable-code" | 
 | 6993 |      save_CFLAGS="$CFLAGS" | 
 | 6994 |      if ${ac_cv_enable_unreachable_code_warning+:} false; then : | 
 | 6995 |   $as_echo_n "(cached) " >&6 | 
 | 6996 | else | 
 | 6997 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6998 | /* end confdefs.h.  */ | 
 | 6999 |  | 
 | 7000 |  | 
 | 7001 | int | 
 | 7002 | main () | 
 | 7003 | { | 
 | 7004 |  | 
 | 7005 |   ; | 
 | 7006 |   return 0; | 
 | 7007 | } | 
 | 7008 |  | 
 | 7009 | _ACEOF | 
 | 7010 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7011 |  | 
 | 7012 |            ac_cv_enable_unreachable_code_warning=yes | 
 | 7013 |  | 
 | 7014 | else | 
 | 7015 |  | 
 | 7016 |            ac_cv_enable_unreachable_code_warning=no | 
 | 7017 |  | 
 | 7018 | fi | 
 | 7019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7020 | fi | 
 | 7021 |  | 
 | 7022 |      CFLAGS="$save_CFLAGS" | 
 | 7023 |      CC="$ac_save_cc" | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7024 |  | 
 | 7025 |     # Don't enable unreachable code warning in debug mode, since it usually | 
 | 7026 |     # results in non-standard code paths. | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7027 |     # Issue #24324: Unfortunately, the unreachable code warning does not work | 
 | 7028 |     # correctly on gcc and has been silently removed from the compiler. | 
 | 7029 |     # It is supported on clang but on OS X systems gcc may be an alias | 
 | 7030 |     # for clang.  Try to determine if the compiler is not really gcc and, | 
 | 7031 |     # if so, only then enable the warning. | 
 | 7032 |     if test $ac_cv_enable_unreachable_code_warning = yes && \ | 
 | 7033 |         test "$Py_DEBUG" != "true" && \ | 
 | 7034 |         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] | 7035 |     then | 
 | 7036 |       BASECFLAGS="$BASECFLAGS -Wunreachable-code" | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7037 |     else | 
 | 7038 |       ac_cv_enable_unreachable_code_warning=no | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7039 |     fi | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7040 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 | 
 | 7041 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7042 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7043 |     # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
 | 7044 |     # support.  Without this, treatment of subnormals doesn't follow | 
 | 7045 |     # the standard. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 7046 |     case $host in | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7047 |          alpha*) | 
 | 7048 |                 BASECFLAGS="$BASECFLAGS -mieee" | 
 | 7049 |                 ;; | 
 | 7050 |     esac | 
 | 7051 |  | 
 | 7052 |     case $ac_sys_system in | 
 | 7053 | 	SCO_SV*) | 
 | 7054 | 	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
 | 7055 | 	    ;; | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7056 |  | 
 | 7057 |     # is there any other compiler on Darwin besides gcc? | 
 | 7058 |     Darwin*) | 
 | 7059 |         # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
 | 7060 |         # used to be here, but non-Apple gcc doesn't accept them. | 
 | 7061 |         if test "${CC}" = gcc | 
 | 7062 |         then | 
 | 7063 |             { $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] | 7064 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7065 |             case "${UNIVERSALSDK}" in | 
 | 7066 |             */MacOSX10.4u.sdk) | 
 | 7067 |                 # Build using 10.4 SDK, force usage of gcc when the | 
 | 7068 |                 # compiler is gcc, otherwise the user will get very | 
 | 7069 |                 # confusing error messages when building on OSX 10.6 | 
 | 7070 |                 CC=gcc-4.0 | 
 | 7071 |                 CPP=cpp-4.0 | 
 | 7072 |                 ;; | 
 | 7073 |             esac | 
 | 7074 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7075 | $as_echo "$CC" >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7076 |         fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7077 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7078 |         if test "${enable_universalsdk}" | 
 | 7079 |         then | 
 | 7080 |             case "$UNIVERSAL_ARCHS" in | 
 | 7081 |             32-bit) | 
 | 7082 |                UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
 | 7083 |                LIPO_32BIT_FLAGS="" | 
 | 7084 |                ARCH_RUN_32BIT="" | 
 | 7085 |                ;; | 
 | 7086 |             64-bit) | 
 | 7087 |                UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
 | 7088 |                LIPO_32BIT_FLAGS="" | 
 | 7089 |                ARCH_RUN_32BIT="true" | 
 | 7090 |                ;; | 
 | 7091 |             all) | 
 | 7092 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
 | 7093 |                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
 | 7094 |                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
 | 7095 |                ;; | 
 | 7096 |             intel) | 
 | 7097 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
 | 7098 |                LIPO_32BIT_FLAGS="-extract i386" | 
 | 7099 |                ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
 | 7100 |                ;; | 
 | 7101 |             intel-32) | 
 | 7102 |                UNIVERSAL_ARCH_FLAGS="-arch i386" | 
 | 7103 |                LIPO_32BIT_FLAGS="" | 
 | 7104 |                ARCH_RUN_32BIT="" | 
 | 7105 |                ;; | 
 | 7106 |             3-way) | 
 | 7107 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
 | 7108 |                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
 | 7109 |                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
 | 7110 |                ;; | 
 | 7111 |             *) | 
 | 7112 |                as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
 | 7113 |                ;; | 
 | 7114 |             esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7115 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7116 |             CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
 | 7117 |             LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
 | 7118 |             if test "${UNIVERSALSDK}" != "/" | 
 | 7119 |             then | 
 | 7120 |                 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
 | 7121 |             fi | 
 | 7122 |         fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7123 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7124 |         # Calculate an appropriate deployment target for this build: | 
 | 7125 |         # The deployment target value is used explicitly to enable certain | 
 | 7126 |         # features are enabled (such as builtin libedit support for readline) | 
| Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 7127 |         # 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] | 7128 |         # component of the string returned by distutils.get_platform(). | 
 | 7129 |         # | 
 | 7130 |         # Use the value from: | 
 | 7131 |         # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | 
 | 7132 |         # 2. the operating system version of the build machine if >= 10.6 | 
 | 7133 |         # 3. If running on OS X 10.3 through 10.5, use the legacy tests | 
 | 7134 |         #       below to pick either 10.3, 10.4, or 10.5 as the target. | 
 | 7135 |         # 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] | 7136 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7137 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 | 
 | 7138 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7139 |         cur_target_major=`sw_vers -productVersion | \ | 
 | 7140 |                 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
 | 7141 |         cur_target_minor=`sw_vers -productVersion | \ | 
 | 7142 |                 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
 | 7143 |         cur_target="${cur_target_major}.${cur_target_minor}" | 
 | 7144 |         if test ${cur_target_major} -eq 10 && \ | 
 | 7145 |            test ${cur_target_minor} -ge 3 && \ | 
 | 7146 |            test ${cur_target_minor} -le 5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7147 |         then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7148 |             # OS X 10.3 through 10.5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7149 |             cur_target=10.3 | 
 | 7150 |             if test ${enable_universalsdk} | 
 | 7151 |             then | 
 | 7152 |                 case "$UNIVERSAL_ARCHS" in | 
 | 7153 |                 all|3-way|intel|64-bit) | 
 | 7154 |                     # These configurations were first supported in 10.5 | 
 | 7155 |                     cur_target='10.5' | 
 | 7156 |                     ;; | 
 | 7157 |                 esac | 
 | 7158 |             else | 
 | 7159 |                 if test `/usr/bin/arch` = "i386" | 
 | 7160 |                 then | 
 | 7161 |                     # 10.4 was the first release to support Intel archs | 
 | 7162 |                     cur_target="10.4" | 
 | 7163 |                 fi | 
 | 7164 |             fi | 
 | 7165 |         fi | 
 | 7166 |         CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7167 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7168 |         # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
 | 7169 |         # environment with a value that is the same as what we'll use | 
 | 7170 |         # in the Makefile to ensure that we'll get the same compiler | 
 | 7171 |         # environment during configure and build time. | 
 | 7172 |         MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
 | 7173 |         export MACOSX_DEPLOYMENT_TARGET | 
 | 7174 |         EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
 | 7175 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | 
 | 7176 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7177 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7178 |         # end of Darwin* tests | 
 | 7179 |         ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7180 |     esac | 
 | 7181 |     ;; | 
 | 7182 |  | 
 | 7183 | *) | 
 | 7184 |     case $ac_sys_system in | 
 | 7185 |     OpenUNIX*|UnixWare*) | 
 | 7186 | 	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
 | 7187 | 	;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7188 |     SCO_SV*) | 
 | 7189 | 	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
 | 7190 | 	;; | 
 | 7191 |     esac | 
 | 7192 |     ;; | 
 | 7193 | esac | 
 | 7194 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7195 | # ICC needs -fp-model strict or floats behave badly | 
 | 7196 | case "$CC" in | 
 | 7197 | *icc*) | 
 | 7198 |     CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" | 
 | 7199 |     ;; | 
 | 7200 | esac | 
 | 7201 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7202 | if test "$Py_DEBUG" = 'true'; then | 
 | 7203 |   : | 
 | 7204 | else | 
 | 7205 |   OPT="-DNDEBUG $OPT" | 
 | 7206 | fi | 
 | 7207 |  | 
 | 7208 | if test "$ac_arch_flags" | 
 | 7209 | then | 
 | 7210 | 	BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
 | 7211 | fi | 
 | 7212 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7213 | # On some compilers, pthreads are available without further options | 
 | 7214 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
 | 7215 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
 | 7216 | # So we have to see first whether pthreads are available without | 
 | 7217 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
 | 7219 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7220 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7221 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7222 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7223 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7224 |   ac_cv_pthread_is_default=no | 
 | 7225 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7226 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7227 | /* end confdefs.h.  */ | 
 | 7228 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7229 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7230 | #include <pthread.h> | 
 | 7231 |  | 
 | 7232 | void* routine(void* p){return NULL;} | 
 | 7233 |  | 
 | 7234 | int main(){ | 
 | 7235 |   pthread_t p; | 
 | 7236 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7237 |     return 1; | 
 | 7238 |   (void)pthread_detach(p); | 
 | 7239 |   return 0; | 
 | 7240 | } | 
 | 7241 |  | 
 | 7242 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7243 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7244 |  | 
 | 7245 |   ac_cv_pthread_is_default=yes | 
 | 7246 |   ac_cv_kthread=no | 
 | 7247 |   ac_cv_pthread=no | 
 | 7248 |  | 
 | 7249 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7250 |   ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7251 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7252 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7253 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7254 | fi | 
 | 7255 |  | 
 | 7256 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7257 | fi | 
 | 7258 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
 | 7260 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7261 |  | 
 | 7262 |  | 
 | 7263 | if test $ac_cv_pthread_is_default = yes | 
 | 7264 | then | 
 | 7265 |   ac_cv_kpthread=no | 
 | 7266 | else | 
 | 7267 | # -Kpthread, if available, provides the right #defines | 
 | 7268 | # and linker options to make pthread_create available | 
 | 7269 | # Some compilers won't report that they do not support -Kpthread, | 
 | 7270 | # so we need to run a program to see whether it really made the | 
 | 7271 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
 | 7273 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7274 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7275 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7276 | else | 
 | 7277 |   ac_save_cc="$CC" | 
 | 7278 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7279 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7280 |   ac_cv_kpthread=no | 
 | 7281 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7282 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7283 | /* end confdefs.h.  */ | 
 | 7284 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7285 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7286 | #include <pthread.h> | 
 | 7287 |  | 
 | 7288 | void* routine(void* p){return NULL;} | 
 | 7289 |  | 
 | 7290 | int main(){ | 
 | 7291 |   pthread_t p; | 
 | 7292 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7293 |     return 1; | 
 | 7294 |   (void)pthread_detach(p); | 
 | 7295 |   return 0; | 
 | 7296 | } | 
 | 7297 |  | 
 | 7298 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7299 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7300 |   ac_cv_kpthread=yes | 
 | 7301 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7302 |   ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7303 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7304 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7305 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7306 | fi | 
 | 7307 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7308 | CC="$ac_save_cc" | 
 | 7309 | fi | 
 | 7310 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
 | 7312 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7313 | fi | 
 | 7314 |  | 
 | 7315 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
 | 7316 | then | 
 | 7317 | # -Kthread, if available, provides the right #defines | 
 | 7318 | # and linker options to make pthread_create available | 
 | 7319 | # Some compilers won't report that they do not support -Kthread, | 
 | 7320 | # so we need to run a program to see whether it really made the | 
 | 7321 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
 | 7323 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7324 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7325 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7326 | else | 
 | 7327 |   ac_save_cc="$CC" | 
 | 7328 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7329 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7330 |   ac_cv_kthread=no | 
 | 7331 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7332 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7333 | /* end confdefs.h.  */ | 
 | 7334 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7335 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7336 | #include <pthread.h> | 
 | 7337 |  | 
 | 7338 | void* routine(void* p){return NULL;} | 
 | 7339 |  | 
 | 7340 | int main(){ | 
 | 7341 |   pthread_t p; | 
 | 7342 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7343 |     return 1; | 
 | 7344 |   (void)pthread_detach(p); | 
 | 7345 |   return 0; | 
 | 7346 | } | 
 | 7347 |  | 
 | 7348 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7349 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7350 |   ac_cv_kthread=yes | 
 | 7351 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7352 |   ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7353 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7354 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7355 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7356 | fi | 
 | 7357 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7358 | CC="$ac_save_cc" | 
 | 7359 | fi | 
 | 7360 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
 | 7362 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7363 | fi | 
 | 7364 |  | 
 | 7365 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
 | 7366 | then | 
 | 7367 | # -pthread, if available, provides the right #defines | 
 | 7368 | # and linker options to make pthread_create available | 
 | 7369 | # Some compilers won't report that they do not support -pthread, | 
 | 7370 | # so we need to run a program to see whether it really made the | 
 | 7371 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
 | 7373 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7374 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7375 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7376 | else | 
 | 7377 |   ac_save_cc="$CC" | 
 | 7378 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7379 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7380 |   ac_cv_pthread=no | 
 | 7381 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7382 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7383 | /* end confdefs.h.  */ | 
 | 7384 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7385 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7386 | #include <pthread.h> | 
 | 7387 |  | 
 | 7388 | void* routine(void* p){return NULL;} | 
 | 7389 |  | 
 | 7390 | int main(){ | 
 | 7391 |   pthread_t p; | 
 | 7392 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7393 |     return 1; | 
 | 7394 |   (void)pthread_detach(p); | 
 | 7395 |   return 0; | 
 | 7396 | } | 
 | 7397 |  | 
 | 7398 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7399 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7400 |   ac_cv_pthread=yes | 
 | 7401 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7402 |   ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7403 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7404 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7405 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7406 | fi | 
 | 7407 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7408 | CC="$ac_save_cc" | 
 | 7409 | fi | 
 | 7410 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
 | 7412 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7413 | fi | 
 | 7414 |  | 
 | 7415 | # If we have set a CC compiler flag for thread support then | 
 | 7416 | # check if it works for CXX, too. | 
 | 7417 | ac_cv_cxx_thread=no | 
 | 7418 | if test ! -z "$CXX" | 
 | 7419 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
 | 7421 | $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] | 7422 | ac_save_cxx="$CXX" | 
 | 7423 |  | 
 | 7424 | if test "$ac_cv_kpthread" = "yes" | 
 | 7425 | then | 
 | 7426 |   CXX="$CXX -Kpthread" | 
 | 7427 |   ac_cv_cxx_thread=yes | 
 | 7428 | elif test "$ac_cv_kthread" = "yes" | 
 | 7429 | then | 
 | 7430 |   CXX="$CXX -Kthread" | 
 | 7431 |   ac_cv_cxx_thread=yes | 
 | 7432 | elif test "$ac_cv_pthread" = "yes" | 
 | 7433 | then | 
 | 7434 |   CXX="$CXX -pthread" | 
 | 7435 |   ac_cv_cxx_thread=yes | 
 | 7436 | fi | 
 | 7437 |  | 
 | 7438 | if test $ac_cv_cxx_thread = yes | 
 | 7439 | then | 
 | 7440 |   echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
 | 7441 |   $CXX -c conftest.$ac_ext 2>&5 | 
 | 7442 |   if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
 | 7443 |      && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
 | 7444 |   then | 
 | 7445 |     ac_cv_cxx_thread=yes | 
 | 7446 |   else | 
 | 7447 |     ac_cv_cxx_thread=no | 
 | 7448 |   fi | 
 | 7449 |   rm -fr conftest* | 
 | 7450 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
 | 7452 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7453 | fi | 
 | 7454 | CXX="$ac_save_cxx" | 
 | 7455 |  | 
 | 7456 |  | 
 | 7457 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 7459 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7460 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7461 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7462 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7463 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7464 | /* end confdefs.h.  */ | 
 | 7465 | #include <stdlib.h> | 
 | 7466 | #include <stdarg.h> | 
 | 7467 | #include <string.h> | 
 | 7468 | #include <float.h> | 
 | 7469 |  | 
 | 7470 | int | 
 | 7471 | main () | 
 | 7472 | { | 
 | 7473 |  | 
 | 7474 |   ; | 
 | 7475 |   return 0; | 
 | 7476 | } | 
 | 7477 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7478 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7479 |   ac_cv_header_stdc=yes | 
 | 7480 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7481 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7482 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7484 |  | 
 | 7485 | if test $ac_cv_header_stdc = yes; then | 
 | 7486 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7487 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7488 | /* end confdefs.h.  */ | 
 | 7489 | #include <string.h> | 
 | 7490 |  | 
 | 7491 | _ACEOF | 
 | 7492 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7493 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
 | 7494 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7495 | else | 
 | 7496 |   ac_cv_header_stdc=no | 
 | 7497 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7498 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7499 |  | 
 | 7500 | fi | 
 | 7501 |  | 
 | 7502 | if test $ac_cv_header_stdc = yes; then | 
 | 7503 |   # 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] | 7504 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7505 | /* end confdefs.h.  */ | 
 | 7506 | #include <stdlib.h> | 
 | 7507 |  | 
 | 7508 | _ACEOF | 
 | 7509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7510 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 7511 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7512 | else | 
 | 7513 |   ac_cv_header_stdc=no | 
 | 7514 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7515 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7516 |  | 
 | 7517 | fi | 
 | 7518 |  | 
 | 7519 | if test $ac_cv_header_stdc = yes; then | 
 | 7520 |   # /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] | 7521 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7522 |   : | 
 | 7523 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7524 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7525 | /* end confdefs.h.  */ | 
 | 7526 | #include <ctype.h> | 
 | 7527 | #include <stdlib.h> | 
 | 7528 | #if ((' ' & 0x0FF) == 0x020) | 
 | 7529 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 7530 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 7531 | #else | 
 | 7532 | # define ISLOWER(c) \ | 
 | 7533 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 7534 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 7535 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 7536 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 7537 | #endif | 
 | 7538 |  | 
 | 7539 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 7540 | int | 
 | 7541 | main () | 
 | 7542 | { | 
 | 7543 |   int i; | 
 | 7544 |   for (i = 0; i < 256; i++) | 
 | 7545 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 7546 | 	|| toupper (i) != TOUPPER (i)) | 
 | 7547 |       return 2; | 
 | 7548 |   return 0; | 
 | 7549 | } | 
 | 7550 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7551 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 7552 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7553 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7554 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7555 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7556 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7557 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7558 | fi | 
 | 7559 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7560 | fi | 
 | 7561 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 7563 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7564 | if test $ac_cv_header_stdc = yes; then | 
 | 7565 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7566 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7567 |  | 
 | 7568 | fi | 
 | 7569 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7570 | 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] | 7571 | fcntl.h grp.h \ | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7572 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ | 
| Benjamin Peterson | 94b580d | 2011-08-02 17:30:04 -0500 | [diff] [blame] | 7573 | 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] | 7574 | unistd.h utime.h \ | 
| Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7575 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ | 
| Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 7576 | 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] | 7577 | 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] | 7578 | 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] | 7579 | 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] | 7580 | 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] | 7581 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 7582 | 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] | 7583 | sys/endian.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7584 | do : | 
 | 7585 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 7586 | 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] | 7587 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7588 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7589 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7590 | _ACEOF | 
 | 7591 |  | 
 | 7592 | fi | 
 | 7593 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7594 | done | 
 | 7595 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7596 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7597 | 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] | 7598 |   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 7599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
 | 7600 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7601 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7602 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7603 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7604 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7605 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7606 | #include <sys/types.h> | 
 | 7607 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7608 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7609 | int | 
 | 7610 | main () | 
 | 7611 | { | 
 | 7612 | if ((DIR *) 0) | 
 | 7613 | return 0; | 
 | 7614 |   ; | 
 | 7615 |   return 0; | 
 | 7616 | } | 
 | 7617 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7618 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7619 |   eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7620 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7621 |   eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7622 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7624 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7625 | eval ac_res=\$$as_ac_Header | 
 | 7626 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 7627 | $as_echo "$ac_res" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7628 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7629 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7630 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7631 | _ACEOF | 
 | 7632 |  | 
 | 7633 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7634 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7635 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7636 | done | 
 | 7637 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 7638 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7639 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 7640 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7641 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7642 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7643 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7644 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7646 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7647 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7648 | /* Override any GCC internal prototype to avoid an error. | 
 | 7649 |    Use char because int might match the return type of a GCC | 
 | 7650 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7651 | #ifdef __cplusplus | 
 | 7652 | extern "C" | 
 | 7653 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7654 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7655 | int | 
 | 7656 | main () | 
 | 7657 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7658 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7659 |   ; | 
 | 7660 |   return 0; | 
 | 7661 | } | 
 | 7662 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7663 | for ac_lib in '' dir; do | 
 | 7664 |   if test -z "$ac_lib"; then | 
 | 7665 |     ac_res="none required" | 
 | 7666 |   else | 
 | 7667 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7668 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7669 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7670 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7671 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7672 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7673 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7674 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7675 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7676 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7677 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7678 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7679 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7680 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7681 | else | 
 | 7682 |   ac_cv_search_opendir=no | 
 | 7683 | fi | 
 | 7684 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7685 | LIBS=$ac_func_search_save_LIBS | 
 | 7686 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 7688 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7689 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7690 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7691 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7692 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7693 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7694 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7695 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7696 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 7697 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7698 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7699 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7700 | else | 
 | 7701 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7703 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7704 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7705 | /* Override any GCC internal prototype to avoid an error. | 
 | 7706 |    Use char because int might match the return type of a GCC | 
 | 7707 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7708 | #ifdef __cplusplus | 
 | 7709 | extern "C" | 
 | 7710 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7711 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7712 | int | 
 | 7713 | main () | 
 | 7714 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7715 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7716 |   ; | 
 | 7717 |   return 0; | 
 | 7718 | } | 
 | 7719 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7720 | for ac_lib in '' x; do | 
 | 7721 |   if test -z "$ac_lib"; then | 
 | 7722 |     ac_res="none required" | 
 | 7723 |   else | 
 | 7724 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7725 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7726 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7727 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7728 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7729 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7730 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7731 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7732 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7733 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7734 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7735 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7736 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7737 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7738 | else | 
 | 7739 |   ac_cv_search_opendir=no | 
 | 7740 | fi | 
 | 7741 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7742 | LIBS=$ac_func_search_save_LIBS | 
 | 7743 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 7745 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7746 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7747 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7748 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7749 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7750 | fi | 
 | 7751 |  | 
 | 7752 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7753 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
 | 7755 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7756 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7757 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7758 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7759 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7760 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7761 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7762 | int | 
 | 7763 | main () | 
 | 7764 | { | 
 | 7765 | return makedev(0, 0); | 
 | 7766 |   ; | 
 | 7767 |   return 0; | 
 | 7768 | } | 
 | 7769 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7770 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7771 |   ac_cv_header_sys_types_h_makedev=yes | 
 | 7772 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7773 |   ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7774 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7775 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7776 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7777 |  | 
 | 7778 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
 | 7780 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7781 |  | 
 | 7782 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7783 | 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] | 7784 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7785 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7786 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7787 |  | 
 | 7788 | fi | 
 | 7789 |  | 
 | 7790 |  | 
 | 7791 |  | 
 | 7792 |   if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7793 |     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] | 7794 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7795 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7796 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7797 |  | 
 | 7798 | fi | 
 | 7799 |  | 
 | 7800 |  | 
 | 7801 |   fi | 
 | 7802 | fi | 
 | 7803 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7804 |  | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7805 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. | 
 | 7806 | for ac_header in net/if.h | 
 | 7807 | do : | 
 | 7808 |   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | 
 | 7809 | #ifdef STDC_HEADERS | 
 | 7810 | # include <stdlib.h> | 
 | 7811 | # include <stddef.h> | 
 | 7812 | #else | 
 | 7813 | # ifdef HAVE_STDLIB_H | 
 | 7814 | #  include <stdlib.h> | 
 | 7815 | # endif | 
 | 7816 | #endif | 
 | 7817 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7818 | # include <sys/socket.h> | 
 | 7819 | #endif | 
 | 7820 |  | 
 | 7821 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7822 | if test "x$ac_cv_header_net_if_h" = xyes; then : | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7823 |   cat >>confdefs.h <<_ACEOF | 
 | 7824 | #define HAVE_NET_IF_H 1 | 
 | 7825 | _ACEOF | 
 | 7826 |  | 
 | 7827 | fi | 
 | 7828 |  | 
 | 7829 | done | 
 | 7830 |  | 
 | 7831 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7832 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7833 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7834 | do : | 
 | 7835 |   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] | 7836 | #ifdef HAVE_ASM_TYPES_H | 
 | 7837 | #include <asm/types.h> | 
 | 7838 | #endif | 
 | 7839 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7840 | #include <sys/socket.h> | 
 | 7841 | #endif | 
 | 7842 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7843 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7844 | 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] | 7845 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7846 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7847 | _ACEOF | 
 | 7848 |  | 
 | 7849 | fi | 
 | 7850 |  | 
 | 7851 | done | 
 | 7852 |  | 
 | 7853 |  | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 7854 | # 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] | 7855 | 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] | 7856 | do : | 
 | 7857 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 7858 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | 
 | 7859 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7860 | #include <sys/socket.h> | 
 | 7861 | #endif | 
 | 7862 |  | 
 | 7863 | " | 
 | 7864 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
 | 7865 |   cat >>confdefs.h <<_ACEOF | 
 | 7866 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 7867 | _ACEOF | 
 | 7868 |  | 
 | 7869 | fi | 
 | 7870 |  | 
 | 7871 | done | 
 | 7872 |  | 
 | 7873 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7874 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7875 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
 | 7877 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
 | 7878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7879 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7880 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7881 |  | 
 | 7882 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7883 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7884 |   $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7885 |   was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7886 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7887 |  | 
 | 7888 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7889 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7890 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7891 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7892 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7893 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7894 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 7896 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7897 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
 | 7899 | $as_echo_n "checking for makedev... " >&6; } | 
 | 7900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7901 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7902 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 7903 | #if defined(MAJOR_IN_MKDEV) | 
 | 7904 | #include <sys/mkdev.h> | 
 | 7905 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 7906 | #include <sys/sysmacros.h> | 
 | 7907 | #else | 
 | 7908 | #include <sys/types.h> | 
 | 7909 | #endif | 
 | 7910 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7911 | int | 
 | 7912 | main () | 
 | 7913 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 7914 |  | 
 | 7915 |   makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7916 |   ; | 
 | 7917 |   return 0; | 
 | 7918 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7919 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7920 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7921 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7922 |   ac_cv_has_makedev=yes | 
 | 7923 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7924 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7925 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7926 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7927 |     conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
 | 7929 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7930 | if test "$ac_cv_has_makedev" = "yes"; then | 
 | 7931 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7932 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7933 |  | 
 | 7934 | fi | 
 | 7935 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 7936 | # byte swapping | 
 | 7937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | 
 | 7938 | $as_echo_n "checking for le64toh... " >&6; } | 
 | 7939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7940 | /* end confdefs.h.  */ | 
 | 7941 |  | 
 | 7942 | #ifdef HAVE_ENDIAN_H | 
 | 7943 | #include <endian.h> | 
 | 7944 | #elif defined(HAVE_SYS_ENDIAN_H) | 
 | 7945 | #include <sys/endian.h> | 
 | 7946 | #endif | 
 | 7947 |  | 
 | 7948 | int | 
 | 7949 | main () | 
 | 7950 | { | 
 | 7951 |  | 
 | 7952 |    le64toh(1) | 
 | 7953 |   ; | 
 | 7954 |   return 0; | 
 | 7955 | } | 
 | 7956 |  | 
 | 7957 | _ACEOF | 
 | 7958 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 7959 |   ac_cv_has_le64toh=yes | 
 | 7960 | else | 
 | 7961 |   ac_cv_has_le64toh=no | 
 | 7962 | fi | 
 | 7963 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7964 |     conftest$ac_exeext conftest.$ac_ext | 
 | 7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | 
 | 7966 | $as_echo "$ac_cv_has_le64toh" >&6; } | 
 | 7967 | if test "$ac_cv_has_le64toh" = "yes"; then | 
 | 7968 |  | 
 | 7969 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | 
 | 7970 |  | 
 | 7971 | fi | 
 | 7972 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7973 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
 | 7974 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
 | 7975 | # defined, but the compiler does not support pragma redefine_extname, | 
 | 7976 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
 | 7977 | # structures (such as rlimit64) without declaring them. As a | 
 | 7978 | # work-around, disable LFS on such configurations | 
 | 7979 |  | 
 | 7980 | use_lfs=yes | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
 | 7982 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
 | 7983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7984 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7985 |  | 
 | 7986 | #define _LARGEFILE_SOURCE 1 | 
 | 7987 | #define _FILE_OFFSET_BITS 64 | 
 | 7988 | #include <sys/resource.h> | 
 | 7989 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7990 | int | 
 | 7991 | main () | 
 | 7992 | { | 
 | 7993 | struct rlimit foo; | 
 | 7994 |   ; | 
 | 7995 |   return 0; | 
 | 7996 | } | 
 | 7997 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7998 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7999 |   sol_lfs_bug=no | 
 | 8000 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8001 |   sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8002 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
 | 8005 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8006 | if test "$sol_lfs_bug" = "yes"; then | 
 | 8007 |   use_lfs=no | 
 | 8008 | fi | 
 | 8009 |  | 
| doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 8010 | # Don't use largefile support for GNU/Hurd | 
 | 8011 | case $ac_sys_system in GNU*) | 
 | 8012 |   use_lfs=no | 
 | 8013 | esac | 
 | 8014 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8015 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8016 | # Two defines needed to enable largefile support on various platforms | 
 | 8017 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8018 | case $ac_sys_system/$ac_sys_release in | 
 | 8019 | AIX*) | 
 | 8020 |  | 
 | 8021 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
 | 8022 |  | 
 | 8023 |     ;; | 
 | 8024 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8025 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8026 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8027 |  | 
 | 8028 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8029 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8030 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8031 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8032 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8033 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
 | 8034 | cat >> confdefs.h <<\EOF | 
 | 8035 | #if defined(SCO_DS) | 
 | 8036 | #undef _OFF_T | 
 | 8037 | #endif | 
 | 8038 | EOF | 
 | 8039 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8040 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8041 | 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] | 8042 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8043 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8044 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8045 |  | 
 | 8046 | cat >>confdefs.h <<_ACEOF | 
 | 8047 | #define mode_t int | 
 | 8048 | _ACEOF | 
 | 8049 |  | 
 | 8050 | fi | 
 | 8051 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8052 | 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] | 8053 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8054 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8055 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8056 |  | 
 | 8057 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8058 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8059 | _ACEOF | 
 | 8060 |  | 
 | 8061 | fi | 
 | 8062 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8063 | 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] | 8064 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8065 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8066 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8067 |  | 
 | 8068 | cat >>confdefs.h <<_ACEOF | 
 | 8069 | #define pid_t int | 
 | 8070 | _ACEOF | 
 | 8071 |  | 
 | 8072 | fi | 
 | 8073 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8074 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8075 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 8076 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8077 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8078 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8079 | 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] | 8080 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8081 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8082 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8083 |  | 
 | 8084 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8085 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8086 | _ACEOF | 
 | 8087 |  | 
 | 8088 | fi | 
 | 8089 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
 | 8091 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8092 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8093 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8094 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8095 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8096 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8097 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8098 |  | 
 | 8099 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8100 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8101 |   $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8102 |   ac_cv_type_uid_t=yes | 
 | 8103 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8104 |   ac_cv_type_uid_t=no | 
 | 8105 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8106 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8107 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8108 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
 | 8110 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8111 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8112 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8113 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8114 |  | 
 | 8115 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8116 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8117 |  | 
 | 8118 | fi | 
 | 8119 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8120 |  | 
 | 8121 | # There are two separate checks for each of the exact-width integer types we | 
 | 8122 | # need.  First we check whether the type is available using the usual | 
 | 8123 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> | 
 | 8124 | # and <stdint.h> where available).  We then also use the special type checks of | 
 | 8125 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available | 
 | 8126 | # directly, #define's uint32_t to be a suitable type. | 
 | 8127 |  | 
 | 8128 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | 
 | 8129 | if test "x$ac_cv_type_uint32_t" = xyes; then : | 
 | 8130 |  | 
 | 8131 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h | 
 | 8132 |  | 
 | 8133 | fi | 
 | 8134 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8135 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
 | 8136 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8137 |   no|yes) ;; #( | 
 | 8138 |   *) | 
 | 8139 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8140 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8141 |  | 
 | 8142 |  | 
 | 8143 | cat >>confdefs.h <<_ACEOF | 
 | 8144 | #define uint32_t $ac_cv_c_uint32_t | 
 | 8145 | _ACEOF | 
 | 8146 | ;; | 
 | 8147 |   esac | 
 | 8148 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8149 |  | 
 | 8150 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" | 
 | 8151 | if test "x$ac_cv_type_uint64_t" = xyes; then : | 
 | 8152 |  | 
 | 8153 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h | 
 | 8154 |  | 
 | 8155 | fi | 
 | 8156 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8157 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
 | 8158 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8159 |   no|yes) ;; #( | 
 | 8160 |   *) | 
 | 8161 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8162 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8163 |  | 
 | 8164 |  | 
 | 8165 | cat >>confdefs.h <<_ACEOF | 
 | 8166 | #define uint64_t $ac_cv_c_uint64_t | 
 | 8167 | _ACEOF | 
 | 8168 | ;; | 
 | 8169 |   esac | 
 | 8170 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8171 |  | 
 | 8172 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" | 
 | 8173 | if test "x$ac_cv_type_int32_t" = xyes; then : | 
 | 8174 |  | 
 | 8175 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h | 
 | 8176 |  | 
 | 8177 | fi | 
 | 8178 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8179 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
 | 8180 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8181 |   no|yes) ;; #( | 
 | 8182 |   *) | 
 | 8183 |  | 
 | 8184 | cat >>confdefs.h <<_ACEOF | 
 | 8185 | #define int32_t $ac_cv_c_int32_t | 
 | 8186 | _ACEOF | 
 | 8187 | ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8188 | esac | 
 | 8189 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8190 |  | 
 | 8191 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" | 
 | 8192 | if test "x$ac_cv_type_int64_t" = xyes; then : | 
 | 8193 |  | 
 | 8194 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | 
 | 8195 |  | 
 | 8196 | fi | 
 | 8197 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8198 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
 | 8199 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8200 |   no|yes) ;; #( | 
 | 8201 |   *) | 
 | 8202 |  | 
 | 8203 | cat >>confdefs.h <<_ACEOF | 
 | 8204 | #define int64_t $ac_cv_c_int64_t | 
 | 8205 | _ACEOF | 
 | 8206 | ;; | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 8207 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8208 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8209 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8210 | 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] | 8211 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8212 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8213 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8214 |  | 
 | 8215 | fi | 
 | 8216 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8217 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" | 
 | 8218 | if test "x$ac_cv_type___uint128_t" = xyes; then : | 
 | 8219 |  | 
 | 8220 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | 
 | 8221 |  | 
 | 8222 | fi | 
 | 8223 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8224 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8225 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8226 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8227 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8228 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8229 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8230 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
 | 8232 | $as_echo_n "checking size of int... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8233 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8234 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8235 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8236 |   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] | 8237 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8238 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8239 |   if test "$ac_cv_type_int" = yes; then | 
 | 8240 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8241 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8242 | as_fn_error 77 "cannot compute sizeof (int) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8243 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8244 |    else | 
 | 8245 |      ac_cv_sizeof_int=0 | 
 | 8246 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8247 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8248 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8249 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
 | 8251 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8252 |  | 
 | 8253 |  | 
 | 8254 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8255 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8256 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8257 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8258 |  | 
 | 8259 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8260 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8261 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8262 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8263 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
 | 8265 | $as_echo_n "checking size of long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8266 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8267 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8268 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8269 |   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] | 8270 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8271 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8272 |   if test "$ac_cv_type_long" = yes; then | 
 | 8273 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8274 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8275 | as_fn_error 77 "cannot compute sizeof (long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8276 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8277 |    else | 
 | 8278 |      ac_cv_sizeof_long=0 | 
 | 8279 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8280 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8281 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8282 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
 | 8284 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8285 |  | 
 | 8286 |  | 
 | 8287 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8288 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8289 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8290 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8291 |  | 
 | 8292 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8293 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8294 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8295 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8296 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
 | 8298 | $as_echo_n "checking size of void *... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8299 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8300 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8301 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8302 |   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] | 8303 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8305 |   if test "$ac_cv_type_void_p" = yes; then | 
 | 8306 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8307 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8308 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8309 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8310 |    else | 
 | 8311 |      ac_cv_sizeof_void_p=0 | 
 | 8312 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8313 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8314 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8315 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
 | 8317 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8318 |  | 
 | 8319 |  | 
 | 8320 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8321 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8322 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8323 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8324 |  | 
 | 8325 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8326 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8327 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8328 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8329 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
 | 8331 | $as_echo_n "checking size of short... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8332 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8333 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8334 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8335 |   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] | 8336 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8337 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8338 |   if test "$ac_cv_type_short" = yes; then | 
 | 8339 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8340 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8341 | as_fn_error 77 "cannot compute sizeof (short) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8342 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8343 |    else | 
 | 8344 |      ac_cv_sizeof_short=0 | 
 | 8345 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8346 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8347 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8348 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
 | 8350 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8351 |  | 
 | 8352 |  | 
 | 8353 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8354 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8355 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8356 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8357 |  | 
 | 8358 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8359 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8360 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8361 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8362 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
 | 8364 | $as_echo_n "checking size of float... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8365 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8366 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8367 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8368 |   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] | 8369 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8370 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8371 |   if test "$ac_cv_type_float" = yes; then | 
 | 8372 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8373 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8374 | as_fn_error 77 "cannot compute sizeof (float) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8375 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8376 |    else | 
 | 8377 |      ac_cv_sizeof_float=0 | 
 | 8378 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8379 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8380 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8381 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
 | 8383 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8384 |  | 
 | 8385 |  | 
 | 8386 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8387 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8388 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8389 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8390 |  | 
 | 8391 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8392 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8393 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8394 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8395 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
 | 8397 | $as_echo_n "checking size of double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8398 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8399 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8400 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8401 |   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] | 8402 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8403 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8404 |   if test "$ac_cv_type_double" = yes; then | 
 | 8405 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8406 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8407 | as_fn_error 77 "cannot compute sizeof (double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8408 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8409 |    else | 
 | 8410 |      ac_cv_sizeof_double=0 | 
 | 8411 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8412 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8413 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8414 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
 | 8416 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8417 |  | 
 | 8418 |  | 
 | 8419 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8420 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8421 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8422 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8423 |  | 
 | 8424 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8425 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8426 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8427 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8428 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
 | 8430 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8431 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8432 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8433 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8434 |   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] | 8435 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8436 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8437 |   if test "$ac_cv_type_fpos_t" = yes; then | 
 | 8438 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8439 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8440 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8441 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8442 |    else | 
 | 8443 |      ac_cv_sizeof_fpos_t=0 | 
 | 8444 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8445 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8446 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8447 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
 | 8449 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8450 |  | 
 | 8451 |  | 
 | 8452 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8453 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8454 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8455 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8456 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8457 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8458 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8459 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8460 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8461 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
 | 8463 | $as_echo_n "checking size of size_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8464 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8465 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8466 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8467 |   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] | 8468 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8469 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8470 |   if test "$ac_cv_type_size_t" = yes; then | 
 | 8471 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8472 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8473 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8474 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8475 |    else | 
 | 8476 |      ac_cv_sizeof_size_t=0 | 
 | 8477 |    fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8478 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8479 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8480 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
 | 8482 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8483 |  | 
 | 8484 |  | 
 | 8485 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8486 | cat >>confdefs.h <<_ACEOF | 
 | 8487 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
 | 8488 | _ACEOF | 
 | 8489 |  | 
 | 8490 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8491 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8492 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8493 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8494 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
 | 8496 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8497 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8498 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8499 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8500 |   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] | 8501 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8502 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8503 |   if test "$ac_cv_type_pid_t" = yes; then | 
 | 8504 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8505 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8506 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8507 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8508 |    else | 
 | 8509 |      ac_cv_sizeof_pid_t=0 | 
 | 8510 |    fi | 
 | 8511 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8512 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8513 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
 | 8515 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8516 |  | 
 | 8517 |  | 
 | 8518 |  | 
 | 8519 | cat >>confdefs.h <<_ACEOF | 
 | 8520 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
 | 8521 | _ACEOF | 
 | 8522 |  | 
 | 8523 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8524 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
 | 8526 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8527 | have_long_long=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8529 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8530 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | int | 
 | 8532 | main () | 
 | 8533 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8534 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8535 |   ; | 
 | 8536 |   return 0; | 
 | 8537 | } | 
 | 8538 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8539 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8540 |  | 
 | 8541 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8542 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8543 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8544 |   have_long_long=yes | 
 | 8545 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8546 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
 | 8549 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8550 | if test "$have_long_long" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8551 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8552 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8553 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8554 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
 | 8556 | $as_echo_n "checking size of long long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8557 | if ${ac_cv_sizeof_long_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8558 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8559 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8560 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8562 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8563 |   if test "$ac_cv_type_long_long" = yes; then | 
 | 8564 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8565 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8566 | as_fn_error 77 "cannot compute sizeof (long long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8567 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8568 |    else | 
 | 8569 |      ac_cv_sizeof_long_long=0 | 
 | 8570 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8571 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8572 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
 | 8575 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8576 |  | 
 | 8577 |  | 
 | 8578 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8579 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8580 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8581 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8582 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8583 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8584 | fi | 
 | 8585 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
 | 8587 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8588 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8590 | /* end confdefs.h.  */ | 
 | 8591 |  | 
 | 8592 | int | 
 | 8593 | main () | 
 | 8594 | { | 
 | 8595 | long double x; x = (long double)0; | 
 | 8596 |   ; | 
 | 8597 |   return 0; | 
 | 8598 | } | 
 | 8599 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8600 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8601 |  | 
 | 8602 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8603 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8604 |  | 
 | 8605 |   have_long_double=yes | 
 | 8606 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8607 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
 | 8610 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8611 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8612 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8613 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8614 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8615 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
 | 8617 | $as_echo_n "checking size of long double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8618 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8619 |   $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8620 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8621 |   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] | 8622 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8623 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8624 |   if test "$ac_cv_type_long_double" = yes; then | 
 | 8625 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8626 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8627 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8628 | See \`config.log' for more details" "$LINENO" 5; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8629 |    else | 
 | 8630 |      ac_cv_sizeof_long_double=0 | 
 | 8631 |    fi | 
 | 8632 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8633 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8634 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
 | 8636 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8637 |  | 
 | 8638 |  | 
 | 8639 |  | 
 | 8640 | cat >>confdefs.h <<_ACEOF | 
 | 8641 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
 | 8642 | _ACEOF | 
 | 8643 |  | 
 | 8644 |  | 
 | 8645 | fi | 
 | 8646 |  | 
 | 8647 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
 | 8649 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8650 | have_c99_bool=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8652 | /* end confdefs.h.  */ | 
 | 8653 |  | 
 | 8654 | int | 
 | 8655 | main () | 
 | 8656 | { | 
 | 8657 | _Bool x; x = (_Bool)0; | 
 | 8658 |   ; | 
 | 8659 |   return 0; | 
 | 8660 | } | 
 | 8661 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8662 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8663 |  | 
 | 8664 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8665 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8666 |  | 
 | 8667 |   have_c99_bool=yes | 
 | 8668 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8669 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
 | 8672 | $as_echo "$have_c99_bool" >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8673 | if test "$have_c99_bool" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8674 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8675 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8676 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8677 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
 | 8679 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8680 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8681 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8682 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8683 |   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] | 8684 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8685 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8686 |   if test "$ac_cv_type__Bool" = yes; then | 
 | 8687 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8689 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8690 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8691 |    else | 
 | 8692 |      ac_cv_sizeof__Bool=0 | 
 | 8693 |    fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8694 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8695 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8696 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
 | 8698 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8699 |  | 
 | 8700 |  | 
 | 8701 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8702 | cat >>confdefs.h <<_ACEOF | 
 | 8703 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
 | 8704 | _ACEOF | 
 | 8705 |  | 
 | 8706 |  | 
 | 8707 | fi | 
 | 8708 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8709 | 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] | 8710 |         #include <stdint.h> | 
 | 8711 |         #endif | 
| Antoine Pitrou | 1bf29b7 | 2010-10-10 08:10:16 +0000 | [diff] [blame] | 8712 |         #ifdef HAVE_INTTYPES_H | 
 | 8713 |         #include <inttypes.h> | 
 | 8714 |         #endif | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8715 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8716 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8717 |  | 
 | 8718 | cat >>confdefs.h <<_ACEOF | 
 | 8719 | #define HAVE_UINTPTR_T 1 | 
 | 8720 | _ACEOF | 
 | 8721 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8722 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8723 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8724 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8725 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
 | 8727 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8728 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8729 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8730 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8731 |   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] | 8732 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8733 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8734 |   if test "$ac_cv_type_uintptr_t" = yes; then | 
 | 8735 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8736 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8737 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8738 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8739 |    else | 
 | 8740 |      ac_cv_sizeof_uintptr_t=0 | 
 | 8741 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8742 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8743 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8744 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
 | 8746 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8747 |  | 
 | 8748 |  | 
 | 8749 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8750 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8751 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8752 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8753 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8754 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8755 | fi | 
 | 8756 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8757 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8758 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8759 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8760 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8761 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
 | 8763 | $as_echo_n "checking size of off_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8764 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8765 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8766 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8767 |   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] | 8768 | #ifdef HAVE_SYS_TYPES_H | 
 | 8769 | #include <sys/types.h> | 
 | 8770 | #endif | 
 | 8771 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8772 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8773 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8774 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8775 |   if test "$ac_cv_type_off_t" = yes; then | 
 | 8776 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8777 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8778 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8779 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8780 |    else | 
 | 8781 |      ac_cv_sizeof_off_t=0 | 
 | 8782 |    fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8783 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8784 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8785 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
 | 8787 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8788 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8789 |  | 
 | 8790 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8791 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8792 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8793 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8794 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8795 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8796 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
 | 8798 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8799 | if test "$have_long_long" = yes | 
 | 8800 | then | 
 | 8801 | 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] | 8802 | 	"$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] | 8803 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8804 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8805 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8806 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8807 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8808 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8809 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8810 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8811 | fi | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8812 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8813 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8814 | $as_echo "no" >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8815 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8816 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8817 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8818 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8819 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8820 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
 | 8822 | $as_echo_n "checking size of time_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8823 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8824 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8825 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8826 |   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] | 8827 | #ifdef HAVE_SYS_TYPES_H | 
 | 8828 | #include <sys/types.h> | 
 | 8829 | #endif | 
 | 8830 | #ifdef HAVE_TIME_H | 
 | 8831 | #include <time.h> | 
 | 8832 | #endif | 
 | 8833 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8834 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8835 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8836 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8837 |   if test "$ac_cv_type_time_t" = yes; then | 
 | 8838 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8839 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8840 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8841 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8842 |    else | 
 | 8843 |      ac_cv_sizeof_time_t=0 | 
 | 8844 |    fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8845 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8846 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8847 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
 | 8849 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8850 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8851 |  | 
 | 8852 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8853 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8854 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8855 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8856 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8857 |  | 
 | 8858 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8859 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8860 | ac_save_cc="$CC" | 
 | 8861 | if test "$ac_cv_kpthread" = "yes" | 
 | 8862 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8863 | elif test "$ac_cv_kthread" = "yes" | 
 | 8864 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8865 | elif test "$ac_cv_pthread" = "yes" | 
 | 8866 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8867 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8868 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
 | 8870 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8871 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8873 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8874 |  | 
 | 8875 |   #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 | int | 
 | 8877 | main () | 
 | 8878 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8879 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8880 |   ; | 
 | 8881 |   return 0; | 
 | 8882 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8883 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8884 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8885 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8886 |   have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8887 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
 | 8890 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8891 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8892 |   # 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] | 8893 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8894 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8895 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
 | 8897 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8898 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8899 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8900 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8901 |   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] | 8902 | #ifdef HAVE_PTHREAD_H | 
 | 8903 | #include <pthread.h> | 
 | 8904 | #endif | 
 | 8905 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8906 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8907 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8908 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8909 |   if test "$ac_cv_type_pthread_t" = yes; then | 
 | 8910 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8911 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8912 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8913 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8914 |    else | 
 | 8915 |      ac_cv_sizeof_pthread_t=0 | 
 | 8916 |    fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8917 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8918 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8919 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
 | 8921 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8922 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8923 |  | 
 | 8924 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8925 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8926 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8928 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8929 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8930 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8931 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8932 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8933 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8934 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8935 |   Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8936 |     OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
 | 8937 |     ;; | 
 | 8938 |   Darwin/*) | 
 | 8939 |     OTHER_LIBTOOL_OPT="" | 
 | 8940 |     ;; | 
 | 8941 | esac | 
 | 8942 |  | 
 | 8943 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8944 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8945 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8946 |   Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8947 |     LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
 | 8948 |     if test "${enable_universalsdk}"; then | 
 | 8949 | 	    : | 
 | 8950 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8951 |         LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8952 |     fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8953 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8954 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8955 |   Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 8956 |     gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8957 |     if test ${gcc_version} '<' 4.0 | 
 | 8958 |         then | 
 | 8959 |             LIBTOOL_CRUFT="-lcc_dynamic" | 
 | 8960 |         else | 
 | 8961 |             LIBTOOL_CRUFT="" | 
 | 8962 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8963 |     if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8964 |   ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8965 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8966 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8967 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8968 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8969 |     #include <unistd.h> | 
 | 8970 |     int main(int argc, char*argv[]) | 
 | 8971 |     { | 
 | 8972 |       if (sizeof(long) == 4) { | 
 | 8973 |     	  return 0; | 
 | 8974 |       } else { | 
 | 8975 |       	  return 1; | 
 | 8976 |       } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8977 |     } | 
 | 8978 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8979 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8980 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8981 |   ac_osx_32bit=yes | 
 | 8982 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8983 |   ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8984 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8985 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 8986 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8987 | fi | 
 | 8988 |  | 
 | 8989 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8990 |     if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8991 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8992 |     	i386) | 
 | 8993 |     		MACOSX_DEFAULT_ARCH="i386" | 
 | 8994 |     		;; | 
 | 8995 |     	ppc) | 
 | 8996 |     		MACOSX_DEFAULT_ARCH="ppc" | 
 | 8997 |     		;; | 
 | 8998 |     	*) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8999 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9000 |     		;; | 
 | 9001 |     	esac | 
 | 9002 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9003 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9004 |     	i386) | 
 | 9005 |     		MACOSX_DEFAULT_ARCH="x86_64" | 
 | 9006 |     		;; | 
 | 9007 |     	ppc) | 
 | 9008 |     		MACOSX_DEFAULT_ARCH="ppc64" | 
 | 9009 |     		;; | 
 | 9010 |     	*) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9011 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9012 |     		;; | 
 | 9013 |     	esac | 
 | 9014 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9015 |     fi | 
 | 9016 |  | 
 | 9017 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9018 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9019 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9020 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
 | 9022 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9023 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9024 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9025 | 	BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9026 | 	# -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9027 | 	# in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9028 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9029 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9031 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9032 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9033 | 	if test $enable_shared = "yes" | 
 | 9034 | 	then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9035 | 		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] | 9036 | 	fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9037 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9038 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9039 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9040 | fi | 
 | 9041 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
 | 9043 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9044 | case $ac_sys_system/$ac_sys_release in | 
 | 9045 |   Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9046 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9047 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9048 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9049 |   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
 | 9050 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9051 |   	;; | 
 | 9052 |   *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9053 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9054 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9055 | 	;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9056 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9057 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9058 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9059 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9060 |  | 
 | 9061 |  | 
 | 9062 |  | 
 | 9063 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9064 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9065 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9066 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) | 
 | 9067 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
 | 9068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | 
 | 9069 | $as_echo_n "checking the extension of shared libraries... " >&6; } | 
 | 9070 | if test -z "$SHLIB_SUFFIX"; then | 
 | 9071 | 	case $ac_sys_system in | 
 | 9072 | 	hp*|HP*) | 
 | 9073 | 		case `uname -m` in | 
 | 9074 | 			ia64) SHLIB_SUFFIX=.so;; | 
 | 9075 | 	  		*)    SHLIB_SUFFIX=.sl;; | 
 | 9076 | 		esac | 
 | 9077 | 		;; | 
 | 9078 | 	CYGWIN*)   SHLIB_SUFFIX=.dll;; | 
 | 9079 | 	*)	   SHLIB_SUFFIX=.so;; | 
 | 9080 | 	esac | 
 | 9081 | fi | 
 | 9082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | 
 | 9083 | $as_echo "$SHLIB_SUFFIX" >&6; } | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9084 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9085 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 9086 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9087 | # (Shared libraries in this instance are shared modules to be loaded into | 
 | 9088 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
 | 9090 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9091 | if test -z "$LDSHARED" | 
 | 9092 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9093 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9094 | 	AIX*) | 
| Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 9095 | 		BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp" | 
| Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 9096 | 		LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9097 | 		;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9098 | 	IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9099 | 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9100 | 	SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9101 | 		if test "$GCC" = "yes" ; then | 
 | 9102 | 			LDSHARED='$(CC) -shared' | 
 | 9103 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 9104 | 		else | 
 | 9105 | 			LDSHARED='$(CC) -G' | 
 | 9106 | 			LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9107 | 		fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9108 | 	hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9109 | 		if test "$GCC" = "yes" ; then | 
 | 9110 | 			LDSHARED='$(CC) -shared' | 
 | 9111 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 9112 | 		else | 
 | 9113 | 			LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9114 | 		fi ;; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9115 | 	Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9116 | 		LDSHARED='$(CC) -bundle' | 
 | 9117 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9118 | 		if test "$enable_framework" ; then | 
 | 9119 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9120 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 9121 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9122 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9123 | 		else | 
 | 9124 | 			# No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9125 | 			LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9126 | 			LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9127 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9128 | 	Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9129 | 		LDSHARED='$(CC) -bundle' | 
 | 9130 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9131 | 		if test "$enable_framework" ; then | 
 | 9132 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9133 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 9134 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9135 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9136 | 		else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9137 | 			# No framework, use the Python app as bundle-loader | 
 | 9138 | 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9139 | 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9140 | 			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9141 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9142 | 	Darwin/*) | 
 | 9143 | 		# Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
 | 9144 | 		# This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9145 |  | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9146 | 		dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
 | 9147 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
 | 9148 | 		dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
 | 9149 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
 | 9150 | 		if test ${dep_target_major} -eq 10 && \ | 
 | 9151 | 		   test ${dep_target_minor} -le 2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9152 | 		then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9153 | 			# building for OS X 10.0 through 10.2 | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9154 | 			LDSHARED='$(CC) -bundle' | 
 | 9155 | 			LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9156 | 			if test "$enable_framework" ; then | 
 | 9157 | 				# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9158 | 				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 9159 | 				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9160 | 				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9161 | 			else | 
 | 9162 | 				# No framework, use the Python app as bundle-loader | 
 | 9163 | 				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
 | 9164 | 				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9165 | 				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9166 | 			fi | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9167 | 		else | 
 | 9168 | 			# building for OS X 10.3 and later | 
 | 9169 | 			LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
 | 9170 | 			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
 | 9171 | 			BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9172 | 		fi | 
 | 9173 | 		;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9174 | 	Linux*|GNU*|QNX*) | 
 | 9175 | 		LDSHARED='$(CC) -shared' | 
 | 9176 | 		LDCXXSHARED='$(CXX) -shared';; | 
 | 9177 | 	BSD/OS*/4*) | 
 | 9178 | 		LDSHARED="gcc -shared" | 
 | 9179 | 		LDCXXSHARED="g++ -shared";; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9180 | 	FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9181 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9182 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9183 | 			LDSHARED='$(CC) -shared' | 
 | 9184 | 			LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9185 | 		else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9186 | 			LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9187 | 		fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9188 | 	OpenBSD*) | 
 | 9189 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 9190 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9191 | 				LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 9192 | 				LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9193 | 		else | 
 | 9194 | 				case `uname -r` in | 
 | 9195 | 				[01].* | 2.[0-7] | 2.[0-7].*) | 
 | 9196 | 				   LDSHARED="ld -Bshareable ${LDFLAGS}" | 
 | 9197 | 				   ;; | 
 | 9198 | 				*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9199 | 				   LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 9200 | 				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9201 | 				   ;; | 
 | 9202 | 				esac | 
 | 9203 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9204 | 	NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9205 | 		LDSHARED='$(CC) -shared' | 
 | 9206 | 		LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9207 | 	OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9208 | 		if test "$GCC" = "yes" ; then | 
 | 9209 | 			LDSHARED='$(CC) -shared' | 
 | 9210 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 9211 | 		else | 
 | 9212 | 			LDSHARED='$(CC) -G' | 
 | 9213 | 			LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9214 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9215 | 	SCO_SV*) | 
 | 9216 | 		LDSHARED='$(CC) -Wl,-G,-Bexport' | 
 | 9217 | 		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
 | 9218 | 	CYGWIN*) | 
 | 9219 | 		LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
 | 9220 | 		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9221 | 	*)	LDSHARED="ld";; | 
 | 9222 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9223 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
 | 9225 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9226 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9227 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9228 | # 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] | 9229 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
 | 9231 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9232 | if test -z "$CCSHARED" | 
 | 9233 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9234 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9235 | 	SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9236 | 		then CCSHARED="-fPIC"; | 
 | 9237 | 		elif test `uname -p` = sparc; | 
 | 9238 | 		then CCSHARED="-xcode=pic32"; | 
 | 9239 | 		else CCSHARED="-Kpic"; | 
 | 9240 | 		fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9241 | 	hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9242 | 		 then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9243 | 		 else CCSHARED="+z"; | 
 | 9244 | 		 fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9245 | 	Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9246 | 	BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9247 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9248 | 	OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9249 | 		if test "$GCC" = "yes" | 
 | 9250 | 		then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9251 | 		else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9252 | 		fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9253 | 	SCO_SV*) | 
 | 9254 | 		if test "$GCC" = "yes" | 
 | 9255 | 		then CCSHARED="-fPIC" | 
 | 9256 | 		else CCSHARED="-Kpic -belf" | 
 | 9257 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9258 | 	IRIX*/6*)  case $CC in | 
 | 9259 | 		   *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9260 | 		   *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9261 | 		   esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9262 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9263 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
 | 9265 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9266 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9267 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
 | 9269 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9270 | if test -z "$LINKFORSHARED" | 
 | 9271 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9272 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9273 | 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9274 | 	hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9275 | 	    LINKFORSHARED="-Wl,-E -Wl,+s";; | 
 | 9276 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9277 | 	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9278 | 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9279 | 	# -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9280 | 	Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9281 | 		LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 9282 |  | 
 | 9283 | 		# Issue #18075: the default maximum stack size (8MBytes) is too | 
 | 9284 | 		# small for the default recursion limit. Increase the stack size | 
 | 9285 | 		# to ensure that tests don't crash | 
 | 9286 | 		LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | 
 | 9287 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9288 | 		if test "$enable_framework" | 
 | 9289 | 		then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9290 | 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9291 | 		fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9292 | 		LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9293 | 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9294 | 	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9295 | 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9296 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9297 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 9298 | 		then | 
 | 9299 | 			LINKFORSHARED="-Wl,--export-dynamic" | 
 | 9300 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9301 | 	SunOS/5*) case $CC in | 
 | 9302 | 		  *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9303 | 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9304 | 		    then | 
 | 9305 | 			LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9306 | 		    fi;; | 
 | 9307 | 		  esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9308 | 	CYGWIN*) | 
 | 9309 | 		if test $enable_shared = "no" | 
 | 9310 | 		then | 
 | 9311 | 			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
 | 9312 | 		fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9313 | 	QNX*) | 
 | 9314 | 		# -Wl,-E causes the symbols to be added to the dynamic | 
 | 9315 | 		# symbol table so that they can be found when a module | 
 | 9316 | 		# is loaded.  -N 2048K causes the stack size to be set | 
 | 9317 | 		# to 2048 kilobytes so that the stack doesn't overflow | 
 | 9318 | 		# when running test_compile.py. | 
 | 9319 | 		LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9320 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9321 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
 | 9323 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9324 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9325 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9326 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
 | 9328 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9329 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
 | 9330 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9331 | 	case $ac_sys_system in | 
 | 9332 | 	CYGWIN*) | 
 | 9333 | 		# Cygwin needs CCSHARED when building extension DLLs | 
 | 9334 | 		# but not when building the interpreter DLL. | 
 | 9335 | 		CFLAGSFORSHARED='';; | 
 | 9336 | 	*) | 
 | 9337 | 		CFLAGSFORSHARED='$(CCSHARED)' | 
 | 9338 | 	esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9339 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
 | 9341 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9342 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9343 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
 | 9344 | # library (with --enable-shared). | 
 | 9345 | # 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] | 9346 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
 | 9347 | # if it is not required, since it creates a dependency of the shared library | 
 | 9348 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
 | 9349 | # don't need to link LIBS explicitly. The default should be only changed | 
 | 9350 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9351 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
 | 9353 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9354 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9355 | 	*) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9356 | 		SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9357 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
 | 9359 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9360 |  | 
 | 9361 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9362 | # checks for libraries | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 | 
 | 9364 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9365 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9366 |   $as_echo_n "(cached) " >&6 | 
 | 9367 | else | 
 | 9368 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9369 | LIBS="-lsendfile  $LIBS" | 
 | 9370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9371 | /* end confdefs.h.  */ | 
 | 9372 |  | 
 | 9373 | /* Override any GCC internal prototype to avoid an error. | 
 | 9374 |    Use char because int might match the return type of a GCC | 
 | 9375 |    builtin and then its argument prototype would still apply.  */ | 
 | 9376 | #ifdef __cplusplus | 
 | 9377 | extern "C" | 
 | 9378 | #endif | 
 | 9379 | char sendfile (); | 
 | 9380 | int | 
 | 9381 | main () | 
 | 9382 | { | 
 | 9383 | return sendfile (); | 
 | 9384 |   ; | 
 | 9385 |   return 0; | 
 | 9386 | } | 
 | 9387 | _ACEOF | 
 | 9388 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 9389 |   ac_cv_lib_sendfile_sendfile=yes | 
 | 9390 | else | 
 | 9391 |   ac_cv_lib_sendfile_sendfile=no | 
 | 9392 | fi | 
 | 9393 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9394 |     conftest$ac_exeext conftest.$ac_ext | 
 | 9395 | LIBS=$ac_check_lib_save_LIBS | 
 | 9396 | fi | 
 | 9397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | 
 | 9398 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9399 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9400 |   cat >>confdefs.h <<_ACEOF | 
 | 9401 | #define HAVE_LIBSENDFILE 1 | 
 | 9402 | _ACEOF | 
 | 9403 |  | 
 | 9404 |   LIBS="-lsendfile $LIBS" | 
 | 9405 |  | 
 | 9406 | fi | 
 | 9407 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
 | 9409 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9410 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9411 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9412 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9413 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9414 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9416 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9417 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9418 | /* Override any GCC internal prototype to avoid an error. | 
 | 9419 |    Use char because int might match the return type of a GCC | 
 | 9420 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9421 | #ifdef __cplusplus | 
 | 9422 | extern "C" | 
 | 9423 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9424 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9425 | int | 
 | 9426 | main () | 
 | 9427 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9428 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9429 |   ; | 
 | 9430 |   return 0; | 
 | 9431 | } | 
 | 9432 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9433 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9434 |   ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9435 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9436 |   ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9437 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9438 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9439 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9440 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9441 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 9443 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9444 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9445 |   cat >>confdefs.h <<_ACEOF | 
 | 9446 | #define HAVE_LIBDL 1 | 
 | 9447 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9448 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9449 |   LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9450 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9451 | fi | 
 | 9452 | 	# Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
 | 9454 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9455 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9456 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9457 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9458 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9459 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9461 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9462 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9463 | /* Override any GCC internal prototype to avoid an error. | 
 | 9464 |    Use char because int might match the return type of a GCC | 
 | 9465 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9466 | #ifdef __cplusplus | 
 | 9467 | extern "C" | 
 | 9468 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9469 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9470 | int | 
 | 9471 | main () | 
 | 9472 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9473 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9474 |   ; | 
 | 9475 |   return 0; | 
 | 9476 | } | 
 | 9477 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9478 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9479 |   ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9480 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9481 |   ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9482 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9483 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9484 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9485 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9486 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 9488 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9489 | 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] | 9490 |   cat >>confdefs.h <<_ACEOF | 
 | 9491 | #define HAVE_LIBDLD 1 | 
 | 9492 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9493 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9494 |   LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9495 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9496 | fi | 
 | 9497 | 	# Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9498 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 9499 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9500 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9501 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
 | 9502 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9503 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9504 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9505 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9506 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9508 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9509 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9510 | /* Override any GCC internal prototype to avoid an error. | 
 | 9511 |    Use char because int might match the return type of a GCC | 
 | 9512 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9513 | #ifdef __cplusplus | 
 | 9514 | extern "C" | 
 | 9515 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9516 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9517 | int | 
 | 9518 | main () | 
 | 9519 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9520 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9521 |   ; | 
 | 9522 |   return 0; | 
 | 9523 | } | 
 | 9524 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9525 | for ac_lib in '' pthread rt posix4; do | 
 | 9526 |   if test -z "$ac_lib"; then | 
 | 9527 |     ac_res="none required" | 
 | 9528 |   else | 
 | 9529 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9530 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9531 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9532 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9533 |   ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9534 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9535 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9536 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9537 |   if ${ac_cv_search_sem_init+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9538 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9539 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9540 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9541 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9542 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9543 | else | 
 | 9544 |   ac_cv_search_sem_init=no | 
 | 9545 | fi | 
 | 9546 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9547 | LIBS=$ac_func_search_save_LIBS | 
 | 9548 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
 | 9550 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9551 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9552 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9553 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9554 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9555 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9556 |  # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9557 | 						# posix4 on Solaris 2.6 | 
 | 9558 | 						# pthread (first!) on Linux | 
 | 9559 | fi | 
 | 9560 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9561 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
 | 9563 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9564 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9565 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9566 | else | 
 | 9567 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9568 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9570 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9571 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9572 | /* Override any GCC internal prototype to avoid an error. | 
 | 9573 |    Use char because int might match the return type of a GCC | 
 | 9574 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9575 | #ifdef __cplusplus | 
 | 9576 | extern "C" | 
 | 9577 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9578 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9579 | int | 
 | 9580 | main () | 
 | 9581 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9582 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9583 |   ; | 
 | 9584 |   return 0; | 
 | 9585 | } | 
 | 9586 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9587 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9588 |   ac_cv_lib_intl_textdomain=yes | 
 | 9589 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9590 |   ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9591 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9592 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9593 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9594 | LIBS=$ac_check_lib_save_LIBS | 
 | 9595 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
 | 9597 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9598 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9599 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9600 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9601 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 9602 |         LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9603 | fi | 
 | 9604 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9605 |  | 
 | 9606 | # checks for system dependent C++ extensions support | 
 | 9607 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9608 | 	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
 | 9609 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
 | 9610 | 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9611 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9612 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9613 | 		  #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9614 | int | 
 | 9615 | main () | 
 | 9616 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9617 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9618 |   ; | 
 | 9619 |   return 0; | 
 | 9620 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9621 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9622 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9623 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9624 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9625 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9626 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9627 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9628 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9629 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9630 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9631 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9632 |  | 
 | 9633 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9634 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9635 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9636 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9637 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9638 |     conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9639 | 	*) ;; | 
 | 9640 | esac | 
 | 9641 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9642 | # check for systems that require aligned memory access | 
 | 9643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | 
 | 9644 | $as_echo_n "checking aligned memory access is required... " >&6; } | 
 | 9645 | if test "$cross_compiling" = yes; then : | 
 | 9646 |   aligned_required=yes | 
 | 9647 | else | 
 | 9648 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9649 | /* end confdefs.h.  */ | 
 | 9650 |  | 
 | 9651 | int main() | 
 | 9652 | { | 
 | 9653 |     char s[16]; | 
 | 9654 |     int i, *p1, *p2; | 
 | 9655 |     for (i=0; i < 16; i++) | 
 | 9656 |         s[i] = i; | 
 | 9657 |     p1 = (int*)(s+1); | 
 | 9658 |     p2 = (int*)(s+2); | 
 | 9659 |     if (*p1 == *p2) | 
 | 9660 |         return 1; | 
 | 9661 |     return 0; | 
 | 9662 | } | 
 | 9663 |  | 
 | 9664 | _ACEOF | 
 | 9665 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 9666 |   aligned_required=no | 
 | 9667 | else | 
 | 9668 |   aligned_required=yes | 
 | 9669 | fi | 
 | 9670 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9671 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 9672 | fi | 
 | 9673 |  | 
 | 9674 |  | 
 | 9675 | if test "$aligned_required" = yes ; then | 
 | 9676 |  | 
 | 9677 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | 
 | 9678 |  | 
 | 9679 | fi | 
 | 9680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aligned_required" >&5 | 
 | 9681 | $as_echo "$aligned_required" >&6; } | 
 | 9682 |  | 
 | 9683 |  | 
 | 9684 | # str, bytes and memoryview hash algorithm | 
 | 9685 |  | 
 | 9686 |  | 
 | 9687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | 
 | 9688 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | 
 | 9689 |  | 
 | 9690 | # Check whether --with-hash_algorithm was given. | 
 | 9691 | if test "${with_hash_algorithm+set}" = set; then : | 
 | 9692 |   withval=$with_hash_algorithm; | 
 | 9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9694 | $as_echo "$withval" >&6; } | 
 | 9695 | case "$withval" in | 
 | 9696 |     siphash24) | 
 | 9697 |         $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | 
 | 9698 |  | 
 | 9699 |         ;; | 
 | 9700 |     fnv) | 
 | 9701 |         $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | 
 | 9702 |  | 
 | 9703 |         ;; | 
 | 9704 |     *) | 
 | 9705 |         as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | 
 | 9706 |         ;; | 
 | 9707 | esac | 
 | 9708 |  | 
 | 9709 | else | 
 | 9710 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | 
 | 9711 | $as_echo "default" >&6; } | 
 | 9712 | fi | 
 | 9713 |  | 
 | 9714 |  | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 9715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 | 
 | 9716 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | 
 | 9717 |  | 
 | 9718 | # Check whether --with-address_sanitizer was given. | 
 | 9719 | if test "${with_address_sanitizer+set}" = set; then : | 
 | 9720 |   withval=$with_address_sanitizer; | 
 | 9721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9722 | $as_echo "$withval" >&6; } | 
 | 9723 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" | 
 | 9724 | LDFLAGS="-fsanitize=address $LDFLAGS" | 
 | 9725 |  | 
 | 9726 | else | 
 | 9727 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9728 | $as_echo "no" >&6; } | 
 | 9729 | fi | 
 | 9730 |  | 
 | 9731 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9732 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
 | 9734 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9735 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9736 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9737 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9738 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9739 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9741 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9742 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9743 | /* Override any GCC internal prototype to avoid an error. | 
 | 9744 |    Use char because int might match the return type of a GCC | 
 | 9745 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9746 | #ifdef __cplusplus | 
 | 9747 | extern "C" | 
 | 9748 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9750 | int | 
 | 9751 | main () | 
 | 9752 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9753 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9754 |   ; | 
 | 9755 |   return 0; | 
 | 9756 | } | 
 | 9757 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9758 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9759 |   ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9760 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9761 |   ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9762 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9763 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9764 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9765 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9766 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
 | 9768 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9769 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9770 |   LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9771 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9772 |  # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
 | 9774 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9775 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9776 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9777 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9778 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9779 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9781 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9782 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9783 | /* Override any GCC internal prototype to avoid an error. | 
 | 9784 |    Use char because int might match the return type of a GCC | 
 | 9785 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9786 | #ifdef __cplusplus | 
 | 9787 | extern "C" | 
 | 9788 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9789 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9790 | int | 
 | 9791 | main () | 
 | 9792 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9793 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 |   ; | 
 | 9795 |   return 0; | 
 | 9796 | } | 
 | 9797 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9798 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9799 |   ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9800 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9801 |   ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9802 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9803 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9804 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9805 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9806 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
 | 9808 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9809 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9810 |   LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9811 | fi | 
 | 9812 |  # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9813 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
 | 9815 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9816 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9817 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9818 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9819 |   withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9821 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9822 | LIBS="$withval $LIBS" | 
 | 9823 |  | 
 | 9824 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9825 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9826 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9827 | fi | 
 | 9828 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9829 |  | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 9830 |  | 
 | 9831 |  | 
 | 9832 |  | 
 | 9833 |  | 
 | 9834 |  | 
 | 9835 |  | 
 | 9836 |  | 
 | 9837 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
 | 9838 | 	if test -n "$ac_tool_prefix"; then | 
 | 9839 |   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
 | 9840 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
 | 9841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9842 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 9843 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
 | 9844 |   $as_echo_n "(cached) " >&6 | 
 | 9845 | else | 
 | 9846 |   case $PKG_CONFIG in | 
 | 9847 |   [\\/]* | ?:[\\/]*) | 
 | 9848 |   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
 | 9849 |   ;; | 
 | 9850 |   *) | 
 | 9851 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9852 | for as_dir in $PATH | 
 | 9853 | do | 
 | 9854 |   IFS=$as_save_IFS | 
 | 9855 |   test -z "$as_dir" && as_dir=. | 
 | 9856 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 9857 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 9858 |     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
 | 9859 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 9860 |     break 2 | 
 | 9861 |   fi | 
 | 9862 | done | 
 | 9863 |   done | 
 | 9864 | IFS=$as_save_IFS | 
 | 9865 |  | 
 | 9866 |   ;; | 
 | 9867 | esac | 
 | 9868 | fi | 
 | 9869 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
 | 9870 | if test -n "$PKG_CONFIG"; then | 
 | 9871 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
 | 9872 | $as_echo "$PKG_CONFIG" >&6; } | 
 | 9873 | else | 
 | 9874 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9875 | $as_echo "no" >&6; } | 
 | 9876 | fi | 
 | 9877 |  | 
 | 9878 |  | 
 | 9879 | fi | 
 | 9880 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
 | 9881 |   ac_pt_PKG_CONFIG=$PKG_CONFIG | 
 | 9882 |   # Extract the first word of "pkg-config", so it can be a program name with args. | 
 | 9883 | set dummy pkg-config; ac_word=$2 | 
 | 9884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9885 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 9886 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
 | 9887 |   $as_echo_n "(cached) " >&6 | 
 | 9888 | else | 
 | 9889 |   case $ac_pt_PKG_CONFIG in | 
 | 9890 |   [\\/]* | ?:[\\/]*) | 
 | 9891 |   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
 | 9892 |   ;; | 
 | 9893 |   *) | 
 | 9894 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9895 | for as_dir in $PATH | 
 | 9896 | do | 
 | 9897 |   IFS=$as_save_IFS | 
 | 9898 |   test -z "$as_dir" && as_dir=. | 
 | 9899 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 9900 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 9901 |     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
 | 9902 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 9903 |     break 2 | 
 | 9904 |   fi | 
 | 9905 | done | 
 | 9906 |   done | 
 | 9907 | IFS=$as_save_IFS | 
 | 9908 |  | 
 | 9909 |   ;; | 
 | 9910 | esac | 
 | 9911 | fi | 
 | 9912 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
 | 9913 | if test -n "$ac_pt_PKG_CONFIG"; then | 
 | 9914 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
 | 9915 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
 | 9916 | else | 
 | 9917 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9918 | $as_echo "no" >&6; } | 
 | 9919 | fi | 
 | 9920 |  | 
 | 9921 |   if test "x$ac_pt_PKG_CONFIG" = x; then | 
 | 9922 |     PKG_CONFIG="" | 
 | 9923 |   else | 
 | 9924 |     case $cross_compiling:$ac_tool_warned in | 
 | 9925 | yes:) | 
 | 9926 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 9927 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 9928 | ac_tool_warned=yes ;; | 
 | 9929 | esac | 
 | 9930 |     PKG_CONFIG=$ac_pt_PKG_CONFIG | 
 | 9931 |   fi | 
 | 9932 | else | 
 | 9933 |   PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
 | 9934 | fi | 
 | 9935 |  | 
 | 9936 | fi | 
 | 9937 | if test -n "$PKG_CONFIG"; then | 
 | 9938 | 	_pkg_min_version=0.9.0 | 
 | 9939 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
 | 9940 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
 | 9941 | 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
 | 9942 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9943 | $as_echo "yes" >&6; } | 
 | 9944 | 	else | 
 | 9945 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9946 | $as_echo "no" >&6; } | 
 | 9947 | 		PKG_CONFIG="" | 
 | 9948 | 	fi | 
 | 9949 | fi | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9950 |  | 
 | 9951 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
 | 9953 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9954 |  | 
 | 9955 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9956 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9957 |   withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 9958 | else | 
 | 9959 |   with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 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_expat" >&5 | 
 | 9964 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9965 |  | 
 | 9966 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
 | 9968 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9969 |  | 
 | 9970 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9971 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9972 |   withval=$with_system_ffi; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 9973 | else | 
 | 9974 |   with_system_ffi="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9975 | fi | 
 | 9976 |  | 
 | 9977 |  | 
 | 9978 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9979 |     LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
 | 9980 | else | 
 | 9981 |     LIBFFI_INCLUDEDIR="" | 
 | 9982 | fi | 
 | 9983 |  | 
 | 9984 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
 | 9986 | $as_echo "$with_system_ffi" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9987 |  | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 9988 | # Check for use of the system libmpdec library | 
 | 9989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | 
 | 9990 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | 
 | 9991 |  | 
 | 9992 | # Check whether --with-system_libmpdec was given. | 
 | 9993 | if test "${with_system_libmpdec+set}" = set; then : | 
 | 9994 |   withval=$with_system_libmpdec; | 
 | 9995 | else | 
 | 9996 |   with_system_libmpdec="no" | 
 | 9997 | fi | 
 | 9998 |  | 
 | 9999 |  | 
 | 10000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | 
 | 10001 | $as_echo "$with_system_libmpdec" >&6; } | 
 | 10002 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10003 | # Check for support for loadable sqlite extensions | 
 | 10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
 | 10005 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
 | 10006 | # Check whether --enable-loadable-sqlite-extensions was given. | 
 | 10007 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
 | 10008 |   enableval=$enable_loadable_sqlite_extensions; | 
 | 10009 | else | 
 | 10010 |   enable_loadable_sqlite_extensions="no" | 
 | 10011 | fi | 
 | 10012 |  | 
 | 10013 |  | 
 | 10014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
 | 10015 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
 | 10016 |  | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10017 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path | 
 | 10018 |  | 
 | 10019 |  | 
 | 10020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | 
 | 10021 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | 
 | 10022 |  | 
 | 10023 | # Check whether --with-tcltk-includes was given. | 
 | 10024 | if test "${with_tcltk_includes+set}" = set; then : | 
 | 10025 |   withval=$with_tcltk_includes; | 
 | 10026 | else | 
 | 10027 |   with_tcltk_includes="default" | 
 | 10028 | fi | 
 | 10029 |  | 
 | 10030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | 
 | 10031 | $as_echo "$with_tcltk_includes" >&6; } | 
 | 10032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | 
 | 10033 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | 
 | 10034 |  | 
 | 10035 | # Check whether --with-tcltk-libs was given. | 
 | 10036 | if test "${with_tcltk_libs+set}" = set; then : | 
 | 10037 |   withval=$with_tcltk_libs; | 
 | 10038 | else | 
 | 10039 |   with_tcltk_libs="default" | 
 | 10040 | fi | 
 | 10041 |  | 
 | 10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | 
 | 10043 | $as_echo "$with_tcltk_libs" >&6; } | 
 | 10044 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | 
 | 10045 | then | 
 | 10046 |   if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | 
 | 10047 |   then | 
 | 10048 |     as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | 
 | 10049 |   fi | 
 | 10050 |   TCLTK_INCLUDES="" | 
 | 10051 |   TCLTK_LIBS="" | 
 | 10052 | else | 
 | 10053 |   TCLTK_INCLUDES="$with_tcltk_includes" | 
 | 10054 |   TCLTK_LIBS="$with_tcltk_libs" | 
 | 10055 | fi | 
 | 10056 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10057 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
 | 10059 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10060 |  | 
 | 10061 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10062 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10063 |   withval=$with_dbmliborder; | 
 | 10064 | if test x$with_dbmliborder = xyes | 
 | 10065 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10066 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10067 | else | 
 | 10068 |   for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
 | 10069 |     if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
 | 10070 |     then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10071 |       as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10072 |     fi | 
 | 10073 |   done | 
 | 10074 | fi | 
 | 10075 | fi | 
 | 10076 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
 | 10078 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10079 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10080 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10081 |  | 
 | 10082 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
 | 10084 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10085 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10086 | # Check whether --with-signal-module was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10087 | if test "${with_signal_module+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10088 |   withval=$with_signal_module; | 
 | 10089 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10090 |  | 
 | 10091 |  | 
 | 10092 | if test -z "$with_signal_module" | 
 | 10093 | then with_signal_module="yes" | 
 | 10094 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
 | 10096 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10097 |  | 
 | 10098 | if test "${with_signal_module}" = "yes"; then | 
 | 10099 | 	USE_SIGNAL_MODULE="" | 
 | 10100 | 	SIGNAL_OBJS="" | 
 | 10101 | else | 
 | 10102 | 	USE_SIGNAL_MODULE="#" | 
 | 10103 | 	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
 | 10104 | fi | 
 | 10105 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10106 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10107 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10108 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10109 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10110 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10111 |  | 
 | 10112 | # Templates for things AC_DEFINEd more than once. | 
 | 10113 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10114 |  | 
 | 10115 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10116 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
 | 10118 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10120 | # Check whether --with-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10121 | if test "${with_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10122 |   withval=$with_threads; | 
 | 10123 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10124 |  | 
 | 10125 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10126 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10127 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10128 | # Check whether --with-thread was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10129 | if test "${with_thread+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10130 |   withval=$with_thread; with_threads=$with_thread | 
 | 10131 | fi | 
 | 10132 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10133 |  | 
 | 10134 | if test -z "$with_threads" | 
 | 10135 | then with_threads="yes" | 
 | 10136 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
 | 10138 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10139 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10140 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10141 | if test "$with_threads" = "no" | 
 | 10142 | then | 
 | 10143 |     USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10144 | elif test "$ac_cv_pthread_is_default" = yes | 
 | 10145 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10146 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10147 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10148 |     # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10149 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10150 |  | 
 | 10151 |     posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10152 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10153 | elif test "$ac_cv_kpthread" = "yes" | 
 | 10154 | then | 
 | 10155 |     CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10156 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 10157 |         CXX="$CXX -Kpthread" | 
 | 10158 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10159 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10160 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10161 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10162 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10163 | elif test "$ac_cv_kthread" = "yes" | 
 | 10164 | then | 
 | 10165 |     CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10166 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 10167 |         CXX="$CXX -Kthread" | 
 | 10168 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10169 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10170 |  | 
 | 10171 |     posix_threads=yes | 
 | 10172 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10173 | elif test "$ac_cv_pthread" = "yes" | 
 | 10174 | then | 
 | 10175 |     CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10176 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 10177 |         CXX="$CXX -pthread" | 
 | 10178 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10179 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10180 |  | 
 | 10181 |     posix_threads=yes | 
 | 10182 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10183 | else | 
 | 10184 |     if test ! -z "$with_threads" -a -d "$with_threads" | 
 | 10185 |     then LDFLAGS="$LDFLAGS -L$with_threads" | 
 | 10186 |     fi | 
 | 10187 |     if test ! -z "$withval" -a -d "$withval" | 
 | 10188 |     then LDFLAGS="$LDFLAGS -L$withval" | 
 | 10189 |     fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10190 |  | 
 | 10191 |     # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10192 |     # define _POSIX_THREADS in unistd.h. Some apparently don't | 
 | 10193 |     # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10194 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
 | 10195 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
 | 10196 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10197 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10198 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10199 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10200 | #ifdef _POSIX_THREADS | 
 | 10201 | yes | 
 | 10202 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10203 |  | 
 | 10204 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10205 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10206 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10207 |   unistd_defines_pthreads=yes | 
 | 10208 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10209 |   unistd_defines_pthreads=no | 
 | 10210 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10211 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10212 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10213 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
 | 10214 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10215 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10216 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10217 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10218 |     # Just looking for pthread_create in libpthread is not enough: | 
 | 10219 |     # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
 | 10220 |     # So we really have to include pthread.h, and then link. | 
 | 10221 |     _libs=$LIBS | 
 | 10222 |     LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10223 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
 | 10224 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
 | 10225 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10226 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10227 |  | 
 | 10228 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10229 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10230 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10231 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10232 | int | 
 | 10233 | main () | 
 | 10234 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10235 |  | 
 | 10236 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10237 |   ; | 
 | 10238 |   return 0; | 
 | 10239 | } | 
 | 10240 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10241 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10242 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10243 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10244 | $as_echo "yes" >&6; } | 
 | 10245 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10246 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10247 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10248 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10249 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10250 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10251 |     LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10252 |     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] | 10253 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10254 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10255 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10256 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10257 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10258 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10259 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10260 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
 | 10261 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10262 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10263 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10264 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10265 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10266 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10268 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10269 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10270 | /* Override any GCC internal prototype to avoid an error. | 
 | 10271 |    Use char because int might match the return type of a GCC | 
 | 10272 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10273 | #ifdef __cplusplus | 
 | 10274 | extern "C" | 
 | 10275 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10276 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10277 | int | 
 | 10278 | main () | 
 | 10279 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10280 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10281 |   ; | 
 | 10282 |   return 0; | 
 | 10283 | } | 
 | 10284 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10285 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10286 |   ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10287 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10288 |   ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10289 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10290 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10291 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10292 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10293 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
 | 10295 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10296 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10297 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10298 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10299 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10300 |     LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10301 |     THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10302 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10303 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10304 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
 | 10305 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10306 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10307 |   $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10308 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10309 |   ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10310 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10312 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10313 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10314 | /* Override any GCC internal prototype to avoid an error. | 
 | 10315 |    Use char because int might match the return type of a GCC | 
 | 10316 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10317 | #ifdef __cplusplus | 
 | 10318 | extern "C" | 
 | 10319 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10320 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10321 | int | 
 | 10322 | main () | 
 | 10323 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10324 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10325 |   ; | 
 | 10326 |   return 0; | 
 | 10327 | } | 
 | 10328 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10329 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10330 |   ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10331 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10332 |   ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10333 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10334 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10335 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10336 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10337 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
 | 10339 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10340 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10341 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10342 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10343 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10344 |     LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10345 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10346 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10347 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10348 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
 | 10349 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10350 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10351 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10352 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10353 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10354 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10356 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10357 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10358 | /* Override any GCC internal prototype to avoid an error. | 
 | 10359 |    Use char because int might match the return type of a GCC | 
 | 10360 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10361 | #ifdef __cplusplus | 
 | 10362 | extern "C" | 
 | 10363 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10364 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10365 | int | 
 | 10366 | main () | 
 | 10367 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10368 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10369 |   ; | 
 | 10370 |   return 0; | 
 | 10371 | } | 
 | 10372 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10373 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10374 |   ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10375 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10376 |   ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10377 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10378 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10379 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10380 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10381 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
 | 10383 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10384 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10385 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10386 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10387 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10388 |     LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10389 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10390 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10391 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10392 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
 | 10393 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10394 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10395 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10396 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10398 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10400 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10401 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10402 | /* Override any GCC internal prototype to avoid an error. | 
 | 10403 |    Use char because int might match the return type of a GCC | 
 | 10404 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10405 | #ifdef __cplusplus | 
 | 10406 | extern "C" | 
 | 10407 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10408 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10409 | int | 
 | 10410 | main () | 
 | 10411 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10412 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 |   ; | 
 | 10414 |   return 0; | 
 | 10415 | } | 
 | 10416 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10417 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10418 |   ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10419 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10420 |   ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10421 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10422 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10423 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10424 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10425 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
 | 10427 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10428 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10429 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10430 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10431 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10432 |     LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10433 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10434 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10435 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10436 |     USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10437 | fi | 
 | 10438 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10439 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10440 | fi | 
 | 10441 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10442 | fi | 
 | 10443 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10444 | fi | 
 | 10445 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10446 | fi | 
 | 10447 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10448 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10449 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10450 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10451 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10452 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
 | 10453 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10454 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10455 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10456 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10457 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10458 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10460 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10461 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10462 | /* Override any GCC internal prototype to avoid an error. | 
 | 10463 |    Use char because int might match the return type of a GCC | 
 | 10464 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10465 | #ifdef __cplusplus | 
 | 10466 | extern "C" | 
 | 10467 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10468 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10469 | int | 
 | 10470 | main () | 
 | 10471 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10472 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10473 |   ; | 
 | 10474 |   return 0; | 
 | 10475 | } | 
 | 10476 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10477 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10478 |   ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10479 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10480 |   ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10481 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10482 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10483 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10484 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10485 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
 | 10487 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10488 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10489 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10490 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10491 |     LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10492 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10493 |     USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10494 | fi | 
 | 10495 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10496 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 10497 |     if test "$posix_threads" != "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10498 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
 | 10499 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10500 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10501 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10502 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10503 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10504 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10506 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10507 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10508 | /* Override any GCC internal prototype to avoid an error. | 
 | 10509 |    Use char because int might match the return type of a GCC | 
 | 10510 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10511 | #ifdef __cplusplus | 
 | 10512 | extern "C" | 
 | 10513 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10514 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10515 | int | 
 | 10516 | main () | 
 | 10517 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10518 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10519 |   ; | 
 | 10520 |   return 0; | 
 | 10521 | } | 
 | 10522 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10523 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10524 |   ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10525 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10526 |   ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10527 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10528 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10529 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10530 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10531 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
 | 10533 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10534 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10535 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10536 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10537 |       LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10538 |       THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10539 |       USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10540 | fi | 
 | 10541 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10542 |     fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10543 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10544 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10545 | if test "$posix_threads" = "yes"; then | 
 | 10546 |       if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10547 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10548 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10549 |  | 
 | 10550 |       fi | 
 | 10551 |  | 
 | 10552 |       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
 | 10553 |       case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10554 |       SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10555 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10556 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10557 | 		       ;; | 
 | 10558 |       SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10559 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10560 |  | 
 | 10561 | 		       ;; | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10562 |       AIX/*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10563 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 10564 |  | 
 | 10565 | 		       ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10566 |       esac | 
 | 10567 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10568 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
 | 10569 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10570 |       if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10571 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10572 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10573 |   if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10574 |   ac_cv_pthread_system_supported=no | 
 | 10575 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10576 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10577 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10578 |  | 
 | 10579 |       #include <stdio.h> | 
 | 10580 |       #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10581 |       void *foo(void *parm) { | 
 | 10582 |         return NULL; | 
 | 10583 |       } | 
 | 10584 |       main() { | 
 | 10585 |         pthread_attr_t attr; | 
 | 10586 |         pthread_t id; | 
 | 10587 |         if (pthread_attr_init(&attr)) exit(-1); | 
 | 10588 |         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
 | 10589 |         if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
 | 10590 |         exit(0); | 
 | 10591 |       } | 
 | 10592 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10593 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10594 |   ac_cv_pthread_system_supported=yes | 
 | 10595 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10596 |   ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10597 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10598 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10599 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10600 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10601 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10602 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10603 | fi | 
 | 10604 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10605 |       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
 | 10606 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10607 |       if test "$ac_cv_pthread_system_supported" = "yes"; then | 
 | 10608 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10609 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10610 |  | 
 | 10611 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10612 |       for ac_func in pthread_sigmask | 
 | 10613 | do : | 
 | 10614 |   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] | 10615 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10616 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10617 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10618 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10619 |  case $ac_sys_system in | 
 | 10620 |         CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10621 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10622 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10623 |  | 
 | 10624 |             ;; | 
 | 10625 |         esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10626 | fi | 
 | 10627 | done | 
 | 10628 |  | 
| Christian Heimes | f77b4b2 | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 10629 |       for ac_func in pthread_atfork | 
 | 10630 | do : | 
 | 10631 |   ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" | 
 | 10632 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : | 
 | 10633 |   cat >>confdefs.h <<_ACEOF | 
 | 10634 | #define HAVE_PTHREAD_ATFORK 1 | 
 | 10635 | _ACEOF | 
 | 10636 |  | 
 | 10637 | fi | 
 | 10638 | done | 
 | 10639 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10640 | fi | 
 | 10641 |  | 
 | 10642 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10643 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10644 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
 | 10646 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10647 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10648 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10649 |   enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10650 |   no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10651 |        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10652 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10653 |        ipv6=no | 
 | 10654 |        ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10655 |   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10656 | $as_echo "yes" >&6; } | 
 | 10657 |        $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10658 |  | 
 | 10659 |        ipv6=yes | 
 | 10660 |        ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10661 |   esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10662 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10663 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10664 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10665 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10666 |  /* AF_INET6 available check */ | 
 | 10667 | #include <sys/types.h> | 
 | 10668 | #include <sys/socket.h> | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10669 | int | 
 | 10670 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10671 | { | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10672 | int domain = AF_INET6; | 
 | 10673 |   ; | 
 | 10674 |   return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10675 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10676 | _ACEOF | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10677 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10678 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10679 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10680 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10681 |   ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10682 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10683 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10684 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10685 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10686 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10687 |   ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10688 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10689 | fi | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10691 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10692 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10693 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
 | 10694 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
 | 10695 | 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10696 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10697 |  | 
 | 10698 | 	  #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10699 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10700 | int | 
 | 10701 | main () | 
 | 10702 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10703 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10704 | 			    x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10705 |   ; | 
 | 10706 |   return 0; | 
 | 10707 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10708 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10709 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10710 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10711 |  | 
 | 10712 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10713 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10714 | 	  ipv6=yes | 
 | 10715 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10716 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10717 |  | 
 | 10718 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10719 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10720 | 	  ipv6=no | 
 | 10721 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10722 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10723 | 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] | 10724 | fi | 
 | 10725 |  | 
 | 10726 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10727 | 	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10728 |  | 
 | 10729 | fi | 
 | 10730 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10731 | fi | 
 | 10732 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10733 |  | 
 | 10734 | ipv6type=unknown | 
 | 10735 | ipv6lib=none | 
 | 10736 | ipv6trylibc=no | 
 | 10737 |  | 
 | 10738 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10739 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
 | 10740 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10741 | 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
 | 10742 | 	do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10743 | 		case $i in | 
 | 10744 | 		inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10745 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10746 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10747 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10748 | #include <netinet/in.h> | 
 | 10749 | #ifdef IPV6_INRIA_VERSION | 
 | 10750 | yes | 
 | 10751 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10752 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10753 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10754 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10755 |   ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10756 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10757 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10758 |  | 
 | 10759 | 			;; | 
 | 10760 | 		kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10761 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10762 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10763 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10764 | #include <netinet/in.h> | 
 | 10765 | #ifdef __KAME__ | 
 | 10766 | yes | 
 | 10767 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10768 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10769 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10770 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10771 |   ipv6type=$i; | 
 | 10772 | 				ipv6lib=inet6 | 
 | 10773 | 				ipv6libdir=/usr/local/v6/lib | 
 | 10774 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10775 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10776 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10777 |  | 
 | 10778 | 			;; | 
 | 10779 | 		linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10780 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10781 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10782 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10783 | #include <features.h> | 
 | 10784 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
 | 10785 | yes | 
 | 10786 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10787 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10788 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10789 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10790 |   ipv6type=$i; | 
 | 10791 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10792 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10793 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10794 |  | 
 | 10795 | 			;; | 
 | 10796 | 		linux-inet6) | 
 | 10797 | 						if test -d /usr/inet6; then | 
 | 10798 | 				ipv6type=$i | 
 | 10799 | 				ipv6lib=inet6 | 
 | 10800 | 				ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10801 | 				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10802 | 			fi | 
 | 10803 | 			;; | 
 | 10804 | 		solaris) | 
 | 10805 | 			if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10806 |                           if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10807 | 				ipv6type=$i | 
 | 10808 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10809 |                           fi | 
 | 10810 |                         fi | 
 | 10811 | 			;; | 
 | 10812 | 		toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10813 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10814 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10815 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10816 | #include <sys/param.h> | 
 | 10817 | #ifdef _TOSHIBA_INET6 | 
 | 10818 | yes | 
 | 10819 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10820 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10822 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10823 |   ipv6type=$i; | 
 | 10824 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10825 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10826 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10827 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10828 |  | 
 | 10829 | 			;; | 
 | 10830 | 		v6d) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10831 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10832 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10833 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10834 | #include </usr/local/v6/include/sys/v6config.h> | 
 | 10835 | #ifdef __V6D__ | 
 | 10836 | yes | 
 | 10837 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10838 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10839 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10840 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10841 |   ipv6type=$i; | 
 | 10842 | 				ipv6lib=v6; | 
 | 10843 | 				ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10844 | 				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10845 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10846 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10847 |  | 
 | 10848 | 			;; | 
 | 10849 | 		zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10850 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10851 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10852 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10853 | #include <sys/param.h> | 
 | 10854 | #ifdef _ZETA_MINAMI_INET6 | 
 | 10855 | yes | 
 | 10856 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10857 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10858 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10859 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10860 |   ipv6type=$i; | 
 | 10861 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10862 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10863 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10864 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10865 |  | 
 | 10866 | 			;; | 
 | 10867 | 		esac | 
 | 10868 | 		if test "$ipv6type" != "unknown"; then | 
 | 10869 | 			break | 
 | 10870 | 		fi | 
 | 10871 | 	done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10872 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
 | 10873 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10874 | fi | 
 | 10875 |  | 
 | 10876 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
 | 10877 | 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
 | 10878 | 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
 | 10879 | 		echo "using lib$ipv6lib" | 
 | 10880 | 	else | 
 | 10881 | 		if test $ipv6trylibc = "yes"; then | 
 | 10882 | 			echo "using libc" | 
 | 10883 | 		else | 
 | 10884 | 			echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
 | 10885 | 			echo "You need to fetch lib$ipv6lib.a from appropriate" | 
 | 10886 | 			echo 'ipv6 kit and compile beforehand.' | 
 | 10887 | 			exit 1 | 
 | 10888 | 		fi | 
 | 10889 | 	fi | 
 | 10890 | fi | 
 | 10891 |  | 
| Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 10892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 | 
 | 10893 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | 
 | 10894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10895 | /* end confdefs.h.  */ | 
 | 10896 |  /* CAN_RAW_FD_FRAMES available check */ | 
 | 10897 | #include <linux/can/raw.h> | 
 | 10898 | int | 
 | 10899 | main () | 
 | 10900 | { | 
 | 10901 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | 
 | 10902 |   ; | 
 | 10903 |   return 0; | 
 | 10904 | } | 
 | 10905 | _ACEOF | 
 | 10906 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 10907 |  | 
 | 10908 |  | 
 | 10909 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h | 
 | 10910 |  | 
 | 10911 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10912 | $as_echo "yes" >&6; } | 
 | 10913 |  | 
 | 10914 | else | 
 | 10915 |  | 
 | 10916 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10917 | $as_echo "no" >&6; } | 
 | 10918 |  | 
 | 10919 | fi | 
 | 10920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10921 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
 | 10923 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
 | 10924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10925 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10926 |  | 
 | 10927 |   #include <Carbon/Carbon.h> | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10928 | int | 
 | 10929 | main () | 
 | 10930 | { | 
 | 10931 | FSIORefNum fRef = 0 | 
 | 10932 |   ; | 
 | 10933 |   return 0; | 
 | 10934 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10935 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10936 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10937 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10938 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10939 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10940 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10941 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10942 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10943 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10944 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10945 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10946 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10947 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10948 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10949 |  | 
 | 10950 | fi | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10952 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10953 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
 | 10955 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10956 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10957 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10958 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10959 |   withval=$with_doc_strings; | 
 | 10960 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10961 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10962 |  | 
 | 10963 | if test -z "$with_doc_strings" | 
 | 10964 | then with_doc_strings="yes" | 
 | 10965 | fi | 
 | 10966 | if test "$with_doc_strings" != "no" | 
 | 10967 | then | 
 | 10968 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10969 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10970 |  | 
 | 10971 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
 | 10973 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10974 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 10975 | # Check if eval loop should use timestamp counter profiling | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
 | 10977 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10978 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10979 | # Check whether --with-tsc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10980 | if test "${with_tsc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10981 |   withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10982 | if test "$withval" != no | 
 | 10983 | then | 
 | 10984 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10985 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10986 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10987 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10988 | $as_echo "yes" >&6; } | 
 | 10989 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10990 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10991 | fi | 
 | 10992 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10993 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10994 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10995 | fi | 
 | 10996 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10997 |  | 
 | 10998 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
 | 11000 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11001 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11002 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11003 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11004 |   withval=$with_pymalloc; | 
 | 11005 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11006 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11007 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11008 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 11009 | then | 
 | 11010 |     with_pymalloc="yes" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11011 | fi | 
 | 11012 | if test "$with_pymalloc" != "no" | 
 | 11013 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11014 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11015 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11016 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11017 |     ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11018 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
 | 11020 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11021 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11022 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
 | 11024 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11025 |  | 
 | 11026 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11027 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11028 |   withval=$with_valgrind; | 
 | 11029 | else | 
 | 11030 |   with_valgrind=no | 
 | 11031 | fi | 
 | 11032 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
 | 11034 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11035 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11036 |     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] | 11037 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11038 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11039 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11040 |  | 
 | 11041 | else | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11042 |   as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11043 |  | 
 | 11044 | fi | 
 | 11045 |  | 
 | 11046 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 11047 |     OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11048 | fi | 
 | 11049 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11050 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11051 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11052 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11053 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11054 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
 | 11055 | # 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] | 11056 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11057 | do : | 
 | 11058 |   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11059 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11060 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11061 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11062 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11063 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11064 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11065 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11066 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11067 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11068 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
 | 11069 | # loading of modules. | 
 | 11070 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
 | 11072 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11073 | if test -z "$DYNLOADFILE" | 
 | 11074 | then | 
 | 11075 | 	case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 11076 | 	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
 | 11077 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 11078 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 11079 | 	else DYNLOADFILE="dynload_aix.o" | 
 | 11080 | 	fi | 
 | 11081 | 	;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11082 | 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11083 | 	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
 | 11084 | 	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11085 | 	*) | 
 | 11086 | 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
 | 11087 | 	# out any dynamic loading | 
 | 11088 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 11089 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 11090 | 	else DYNLOADFILE="dynload_stub.o" | 
 | 11091 | 	fi | 
 | 11092 | 	;; | 
 | 11093 | 	esac | 
 | 11094 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
 | 11096 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11097 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
 | 11098 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11099 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11100 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11101 |  | 
 | 11102 | fi | 
 | 11103 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11104 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
 | 11105 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11106 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
 | 11108 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11109 | if test -z "$MACHDEP_OBJS" | 
 | 11110 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11111 | 	MACHDEP_OBJS=$extra_machdep_objs | 
 | 11112 | else | 
 | 11113 | 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11114 | fi | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11115 | if test -z "$MACHDEP_OBJS"; then | 
 | 11116 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 11117 | $as_echo "none" >&6; } | 
 | 11118 | else | 
 | 11119 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | 
 | 11120 | $as_echo "$MACHDEP_OBJS" >&6; } | 
 | 11121 | fi | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11122 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11123 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 11124 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 11125 |  clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11126 |  fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ | 
| Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 11127 |  futimens futimes gai_strerror getentropy \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11128 |  getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 11129 |  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 11130 |  if_nameindex \ | 
| Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 11131 |  initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ | 
 | 11132 |  memrchr mbrtowc mkdirat mkfifo \ | 
| Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 11133 |  mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11134 |  posix_fallocate posix_fadvise pread \ | 
| Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 11135 |  pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 11136 |  select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ | 
| Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 11137 |  setgid sethostname \ | 
| Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 11138 |  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] | 11139 |  sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ | 
 | 11140 |  sched_rr_get_interval \ | 
| Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 11141 |  sigaction sigaltstack siginterrupt sigpending sigrelse \ | 
 | 11142 |  sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11143 |  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11144 |  truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ | 
| Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 11145 |  wcscoll wcsftime wcsxfrm wmemcmp writev _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11146 | do : | 
 | 11147 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 11148 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11149 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11150 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11151 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11152 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11153 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11154 | fi | 
 | 11155 | done | 
 | 11156 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11157 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11158 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> | 
 | 11159 |        #include <dirent.h> | 
 | 11160 | " | 
 | 11161 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | 
 | 11162 |  | 
 | 11163 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | 
 | 11164 |  | 
 | 11165 | fi | 
 | 11166 |  | 
 | 11167 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11168 | # For some functions, having a definition is not sufficient, since | 
 | 11169 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
 | 11171 | $as_echo_n "checking for chroot... " >&6; } | 
 | 11172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11173 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11174 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11175 | int | 
 | 11176 | main () | 
 | 11177 | { | 
 | 11178 | void *x=chroot | 
 | 11179 |   ; | 
 | 11180 |   return 0; | 
 | 11181 | } | 
 | 11182 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11183 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11184 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11185 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11186 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11187 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11188 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11189 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11190 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11191 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11192 |  | 
 | 11193 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
 | 11196 | $as_echo_n "checking for link... " >&6; } | 
 | 11197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11198 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11199 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11200 | int | 
 | 11201 | main () | 
 | 11202 | { | 
 | 11203 | void *x=link | 
 | 11204 |   ; | 
 | 11205 |   return 0; | 
 | 11206 | } | 
 | 11207 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11208 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11209 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11210 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11211 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11212 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11213 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11214 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11215 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11216 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11217 |  | 
 | 11218 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
 | 11221 | $as_echo_n "checking for symlink... " >&6; } | 
 | 11222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11223 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11224 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11225 | int | 
 | 11226 | main () | 
 | 11227 | { | 
 | 11228 | void *x=symlink | 
 | 11229 |   ; | 
 | 11230 |   return 0; | 
 | 11231 | } | 
 | 11232 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11233 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11234 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11235 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11236 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11237 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11238 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11239 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11240 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11241 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11242 |  | 
 | 11243 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
 | 11246 | $as_echo_n "checking for fchdir... " >&6; } | 
 | 11247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11248 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11249 | #include <unistd.h> | 
 | 11250 | int | 
 | 11251 | main () | 
 | 11252 | { | 
 | 11253 | void *x=fchdir | 
 | 11254 |   ; | 
 | 11255 |   return 0; | 
 | 11256 | } | 
 | 11257 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11258 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11259 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11260 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11261 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11262 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11263 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11264 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11265 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11266 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11267 |  | 
 | 11268 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
 | 11271 | $as_echo_n "checking for fsync... " >&6; } | 
 | 11272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11273 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11274 | #include <unistd.h> | 
 | 11275 | int | 
 | 11276 | main () | 
 | 11277 | { | 
 | 11278 | void *x=fsync | 
 | 11279 |   ; | 
 | 11280 |   return 0; | 
 | 11281 | } | 
 | 11282 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11283 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11284 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11285 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11286 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11287 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11288 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11289 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11290 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11291 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11292 |  | 
 | 11293 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
 | 11296 | $as_echo_n "checking for fdatasync... " >&6; } | 
 | 11297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11298 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11299 | #include <unistd.h> | 
 | 11300 | int | 
 | 11301 | main () | 
 | 11302 | { | 
 | 11303 | void *x=fdatasync | 
 | 11304 |   ; | 
 | 11305 |   return 0; | 
 | 11306 | } | 
 | 11307 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11308 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11309 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11310 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11311 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11312 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11313 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11314 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11315 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11316 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11317 |  | 
 | 11318 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
 | 11321 | $as_echo_n "checking for epoll... " >&6; } | 
 | 11322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11323 | /* end confdefs.h.  */ | 
 | 11324 | #include <sys/epoll.h> | 
 | 11325 | int | 
 | 11326 | main () | 
 | 11327 | { | 
 | 11328 | void *x=epoll_create | 
 | 11329 |   ; | 
 | 11330 |   return 0; | 
 | 11331 | } | 
 | 11332 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11333 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11334 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11335 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11336 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11337 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11338 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11339 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11340 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11341 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11342 |  | 
 | 11343 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 | 
 | 11346 | $as_echo_n "checking for epoll_create1... " >&6; } | 
 | 11347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11348 | /* end confdefs.h.  */ | 
 | 11349 | #include <sys/epoll.h> | 
 | 11350 | int | 
 | 11351 | main () | 
 | 11352 | { | 
 | 11353 | void *x=epoll_create1 | 
 | 11354 |   ; | 
 | 11355 |   return 0; | 
 | 11356 | } | 
 | 11357 | _ACEOF | 
 | 11358 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11359 |  | 
 | 11360 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | 
 | 11361 |  | 
 | 11362 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11363 | $as_echo "yes" >&6; } | 
 | 11364 | else | 
 | 11365 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11366 | $as_echo "no" >&6; } | 
 | 11367 |  | 
 | 11368 | fi | 
 | 11369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
 | 11371 | $as_echo_n "checking for kqueue... " >&6; } | 
 | 11372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11373 | /* end confdefs.h.  */ | 
 | 11374 |  | 
 | 11375 | #include <sys/types.h> | 
 | 11376 | #include <sys/event.h> | 
 | 11377 |  | 
 | 11378 | int | 
 | 11379 | main () | 
 | 11380 | { | 
 | 11381 | int x=kqueue() | 
 | 11382 |   ; | 
 | 11383 |   return 0; | 
 | 11384 | } | 
 | 11385 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11386 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11387 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11388 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11389 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11390 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11391 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11392 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11393 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11394 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11395 |  | 
 | 11396 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 11398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 | 
 | 11399 | $as_echo_n "checking for prlimit... " >&6; } | 
 | 11400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11401 | /* end confdefs.h.  */ | 
 | 11402 |  | 
 | 11403 | #include <sys/time.h> | 
 | 11404 | #include <sys/resource.h> | 
 | 11405 |  | 
 | 11406 | int | 
 | 11407 | main () | 
 | 11408 | { | 
 | 11409 | void *x=prlimit | 
 | 11410 |   ; | 
 | 11411 |   return 0; | 
 | 11412 | } | 
 | 11413 | _ACEOF | 
 | 11414 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11415 |  | 
 | 11416 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | 
 | 11417 |  | 
 | 11418 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11419 | $as_echo "yes" >&6; } | 
 | 11420 | else | 
 | 11421 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11422 | $as_echo "no" >&6; } | 
 | 11423 |  | 
 | 11424 | fi | 
 | 11425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11426 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11427 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
 | 11428 | # functions ctermid_r, setgroups in the library, but no prototype | 
 | 11429 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
 | 11430 | # address to avoid compiler warnings and potential miscompilations | 
 | 11431 | # because of the missing prototypes. | 
 | 11432 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
 | 11434 | $as_echo_n "checking for ctermid_r... " >&6; } | 
 | 11435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11436 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11437 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11438 | #include <stdio.h> | 
 | 11439 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11440 | int | 
 | 11441 | main () | 
 | 11442 | { | 
 | 11443 | void* p = ctermid_r | 
 | 11444 |   ; | 
 | 11445 |   return 0; | 
 | 11446 | } | 
 | 11447 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11448 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11449 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11450 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11451 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11452 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11453 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11454 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11455 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11456 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11457 |  | 
 | 11458 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11460 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
 | 11462 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11463 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11464 |   $as_echo_n "(cached) " >&6 | 
 | 11465 | else | 
 | 11466 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11467 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11468 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11469 | int | 
 | 11470 | main () | 
 | 11471 | { | 
 | 11472 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11473 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11474 |   ; | 
 | 11475 |   return 0; | 
 | 11476 | } | 
 | 11477 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11478 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11479 |   ac_cv_flock_decl=yes | 
 | 11480 | else | 
 | 11481 |   ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11482 |  | 
 | 11483 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11485 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11486 | fi | 
 | 11487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
 | 11488 | $as_echo "$ac_cv_flock_decl" >&6; } | 
 | 11489 | if test "x${ac_cv_flock_decl}" = xyes; then | 
 | 11490 |   for ac_func in flock | 
 | 11491 | do : | 
 | 11492 |   ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11493 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11494 |   cat >>confdefs.h <<_ACEOF | 
 | 11495 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11496 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11497 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11498 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11499 |   { $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] | 11500 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11501 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11502 |   $as_echo_n "(cached) " >&6 | 
 | 11503 | else | 
 | 11504 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11505 | LIBS="-lbsd  $LIBS" | 
 | 11506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11507 | /* end confdefs.h.  */ | 
 | 11508 |  | 
 | 11509 | /* Override any GCC internal prototype to avoid an error. | 
 | 11510 |    Use char because int might match the return type of a GCC | 
 | 11511 |    builtin and then its argument prototype would still apply.  */ | 
 | 11512 | #ifdef __cplusplus | 
 | 11513 | extern "C" | 
 | 11514 | #endif | 
 | 11515 | char flock (); | 
 | 11516 | int | 
 | 11517 | main () | 
 | 11518 | { | 
 | 11519 | return flock (); | 
 | 11520 |   ; | 
 | 11521 |   return 0; | 
 | 11522 | } | 
 | 11523 | _ACEOF | 
 | 11524 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 11525 |   ac_cv_lib_bsd_flock=yes | 
 | 11526 | else | 
 | 11527 |   ac_cv_lib_bsd_flock=no | 
 | 11528 | fi | 
 | 11529 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11530 |     conftest$ac_exeext conftest.$ac_ext | 
 | 11531 | LIBS=$ac_check_lib_save_LIBS | 
 | 11532 | fi | 
 | 11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
 | 11534 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11535 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11536 |   $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11537 |  | 
 | 11538 |  | 
 | 11539 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
 | 11540 |  | 
 | 11541 |  | 
 | 11542 | fi | 
 | 11543 |  | 
 | 11544 |  | 
 | 11545 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11546 | done | 
 | 11547 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11548 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11549 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
 | 11551 | $as_echo_n "checking for getpagesize... " >&6; } | 
 | 11552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11553 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11554 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11555 | #include <unistd.h> | 
 | 11556 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11557 | int | 
 | 11558 | main () | 
 | 11559 | { | 
 | 11560 | void* p = getpagesize | 
 | 11561 |   ; | 
 | 11562 |   return 0; | 
 | 11563 | } | 
 | 11564 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11565 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11566 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11567 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11568 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11569 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11570 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11571 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11572 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11573 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11574 |  | 
 | 11575 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11576 | 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] | 11577 |  | 
| Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 11578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
 | 11579 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
 | 11580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11581 | /* end confdefs.h.  */ | 
 | 11582 |  | 
 | 11583 | #include <stdlib.h> | 
 | 11584 |  | 
 | 11585 | int | 
 | 11586 | main () | 
 | 11587 | { | 
 | 11588 | int res = unsetenv("DUMMY") | 
 | 11589 |   ; | 
 | 11590 |   return 0; | 
 | 11591 | } | 
 | 11592 | _ACEOF | 
 | 11593 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11594 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11595 | $as_echo "no" >&6; } | 
 | 11596 | else | 
 | 11597 |  | 
 | 11598 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
 | 11599 |  | 
 | 11600 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11601 | $as_echo "yes" >&6; } | 
 | 11602 |  | 
 | 11603 | fi | 
 | 11604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11605 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11606 | for ac_prog in true | 
 | 11607 | do | 
 | 11608 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 11609 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 11611 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11612 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11613 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11614 | else | 
 | 11615 |   if test -n "$TRUE"; then | 
 | 11616 |   ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
 | 11617 | else | 
 | 11618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11619 | for as_dir in $PATH | 
 | 11620 | do | 
 | 11621 |   IFS=$as_save_IFS | 
 | 11622 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11623 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11624 |   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] | 11625 |     ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11626 |     $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] | 11627 |     break 2 | 
 | 11628 |   fi | 
 | 11629 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11630 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11631 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11632 |  | 
 | 11633 | fi | 
 | 11634 | fi | 
 | 11635 | TRUE=$ac_cv_prog_TRUE | 
 | 11636 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11637 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
 | 11638 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11639 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11640 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11641 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11642 | fi | 
 | 11643 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11644 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11645 |   test -n "$TRUE" && break | 
 | 11646 | done | 
 | 11647 | test -n "$TRUE" || TRUE="/bin/true" | 
 | 11648 |  | 
 | 11649 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
 | 11651 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11652 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11653 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11654 | else | 
 | 11655 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11656 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11658 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11659 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11660 | /* Override any GCC internal prototype to avoid an error. | 
 | 11661 |    Use char because int might match the return type of a GCC | 
 | 11662 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11663 | #ifdef __cplusplus | 
 | 11664 | extern "C" | 
 | 11665 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11666 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11667 | int | 
 | 11668 | main () | 
 | 11669 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11670 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11671 |   ; | 
 | 11672 |   return 0; | 
 | 11673 | } | 
 | 11674 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11675 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11676 |   ac_cv_lib_c_inet_aton=yes | 
 | 11677 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11678 |   ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11679 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11680 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11681 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11682 | LIBS=$ac_check_lib_save_LIBS | 
 | 11683 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
 | 11685 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11686 | 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] | 11687 |   $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11688 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11689 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
 | 11690 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11691 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11692 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11693 | else | 
 | 11694 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11695 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11697 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11698 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11699 | /* Override any GCC internal prototype to avoid an error. | 
 | 11700 |    Use char because int might match the return type of a GCC | 
 | 11701 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11702 | #ifdef __cplusplus | 
 | 11703 | extern "C" | 
 | 11704 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11705 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11706 | int | 
 | 11707 | main () | 
 | 11708 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11709 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11710 |   ; | 
 | 11711 |   return 0; | 
 | 11712 | } | 
 | 11713 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11714 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11715 |   ac_cv_lib_resolv_inet_aton=yes | 
 | 11716 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11717 |   ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11718 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11719 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11720 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11721 | LIBS=$ac_check_lib_save_LIBS | 
 | 11722 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
 | 11724 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11725 | 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] | 11726 |   cat >>confdefs.h <<_ACEOF | 
 | 11727 | #define HAVE_LIBRESOLV 1 | 
 | 11728 | _ACEOF | 
 | 11729 |  | 
 | 11730 |   LIBS="-lresolv $LIBS" | 
 | 11731 |  | 
 | 11732 | fi | 
 | 11733 |  | 
 | 11734 |  | 
 | 11735 | fi | 
 | 11736 |  | 
 | 11737 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11738 | # On Tru64, chflags seems to be present, but calling it will | 
 | 11739 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
 | 11741 | $as_echo_n "checking for chflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11742 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11743 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11744 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11745 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11746 |   ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11747 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11748 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11749 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11750 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11751 | #include <sys/stat.h> | 
 | 11752 | #include <unistd.h> | 
 | 11753 | int main(int argc, char*argv[]) | 
 | 11754 | { | 
 | 11755 |   if(chflags(argv[0], 0) != 0) | 
 | 11756 |     return 1; | 
 | 11757 |   return 0; | 
 | 11758 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11759 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11760 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11761 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11762 |   ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11763 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11764 |   ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11765 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11766 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11767 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11768 | fi | 
 | 11769 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11770 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11771 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
 | 11773 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11774 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11775 |   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11776 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11777 |   ac_cv_have_chflags="yes" | 
 | 11778 | else | 
 | 11779 |   ac_cv_have_chflags="no" | 
 | 11780 | fi | 
 | 11781 |  | 
 | 11782 | fi | 
 | 11783 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11784 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11785 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11786 |  | 
 | 11787 | fi | 
 | 11788 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
 | 11790 | $as_echo_n "checking for lchflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11791 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11792 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11793 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11794 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11795 |   ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11796 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11797 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11798 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11799 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11800 | #include <sys/stat.h> | 
 | 11801 | #include <unistd.h> | 
 | 11802 | int main(int argc, char*argv[]) | 
 | 11803 | { | 
 | 11804 |   if(lchflags(argv[0], 0) != 0) | 
 | 11805 |     return 1; | 
 | 11806 |   return 0; | 
 | 11807 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11808 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11809 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11810 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11811 |   ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11812 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11813 |   ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11814 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11815 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11816 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11817 | fi | 
 | 11818 |  | 
 | 11819 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11820 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
 | 11822 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11823 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11824 |   ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11825 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11826 |   ac_cv_have_lchflags="yes" | 
 | 11827 | else | 
 | 11828 |   ac_cv_have_lchflags="no" | 
 | 11829 | fi | 
 | 11830 |  | 
 | 11831 | fi | 
 | 11832 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11833 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11834 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11835 |  | 
 | 11836 | fi | 
 | 11837 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11838 | case $ac_sys_system/$ac_sys_release in | 
 | 11839 | Darwin/*) | 
 | 11840 | 	_CUR_CFLAGS="${CFLAGS}" | 
 | 11841 | 	_CUR_LDFLAGS="${LDFLAGS}" | 
 | 11842 | 	CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
 | 11843 | 	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
 | 11844 | 	;; | 
 | 11845 | esac | 
 | 11846 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
 | 11848 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11849 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11850 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11851 | else | 
 | 11852 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11853 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11855 | /* end confdefs.h.  */ | 
 | 11856 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11857 | /* Override any GCC internal prototype to avoid an error. | 
 | 11858 |    Use char because int might match the return type of a GCC | 
 | 11859 |    builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11860 | #ifdef __cplusplus | 
 | 11861 | extern "C" | 
 | 11862 | #endif | 
 | 11863 | char inflateCopy (); | 
 | 11864 | int | 
 | 11865 | main () | 
 | 11866 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11867 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11868 |   ; | 
 | 11869 |   return 0; | 
 | 11870 | } | 
 | 11871 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11872 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11873 |   ac_cv_lib_z_inflateCopy=yes | 
 | 11874 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11875 |   ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11876 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11877 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11878 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11879 | LIBS=$ac_check_lib_save_LIBS | 
 | 11880 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
 | 11882 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11883 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11884 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11885 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11886 |  | 
 | 11887 | fi | 
 | 11888 |  | 
 | 11889 |  | 
 | 11890 | case $ac_sys_system/$ac_sys_release in | 
 | 11891 | Darwin/*) | 
 | 11892 | 	CFLAGS="${_CUR_CFLAGS}" | 
 | 11893 | 	LDFLAGS="${_CUR_LDFLAGS}" | 
 | 11894 | 	;; | 
 | 11895 | esac | 
 | 11896 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
 | 11898 | $as_echo_n "checking for hstrerror... " >&6; } | 
 | 11899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11900 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11901 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11902 | #include <netdb.h> | 
 | 11903 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11904 | int | 
 | 11905 | main () | 
 | 11906 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11907 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11908 |   ; | 
 | 11909 |   return 0; | 
 | 11910 | } | 
 | 11911 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11912 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11913 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11914 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11915 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11916 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11917 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11918 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11919 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11920 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11921 |  | 
 | 11922 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11923 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11924 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11925 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
 | 11927 | $as_echo_n "checking for inet_aton... " >&6; } | 
 | 11928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11929 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11930 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11931 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11932 | #include <sys/socket.h> | 
 | 11933 | #include <netinet/in.h> | 
 | 11934 | #include <arpa/inet.h> | 
 | 11935 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11936 | int | 
 | 11937 | main () | 
 | 11938 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11939 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11940 |   ; | 
 | 11941 |   return 0; | 
 | 11942 | } | 
 | 11943 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11944 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11945 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11946 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11947 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11948 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11949 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11950 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11951 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11952 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11953 |  | 
 | 11954 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11955 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11956 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11957 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
 | 11959 | $as_echo_n "checking for inet_pton... " >&6; } | 
 | 11960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11961 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11962 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11963 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11964 | #include <sys/socket.h> | 
 | 11965 | #include <netinet/in.h> | 
 | 11966 | #include <arpa/inet.h> | 
 | 11967 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11968 | int | 
 | 11969 | main () | 
 | 11970 | { | 
 | 11971 | void* p = inet_pton | 
 | 11972 |   ; | 
 | 11973 |   return 0; | 
 | 11974 | } | 
 | 11975 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11976 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11977 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11978 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11979 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11980 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11981 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11982 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11983 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11984 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11985 |  | 
 | 11986 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11987 | 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] | 11988 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11989 | # 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] | 11990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
 | 11991 | $as_echo_n "checking for setgroups... " >&6; } | 
 | 11992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11993 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11994 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11995 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11996 | #ifdef HAVE_GRP_H | 
 | 11997 | #include <grp.h> | 
 | 11998 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11999 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12000 | int | 
 | 12001 | main () | 
 | 12002 | { | 
 | 12003 | void* p = setgroups | 
 | 12004 |   ; | 
 | 12005 |   return 0; | 
 | 12006 | } | 
 | 12007 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12008 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12009 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12010 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12011 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12012 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12013 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12014 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12015 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12016 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12017 |  | 
 | 12018 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12019 | 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] | 12020 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12021 | # check for openpty and forkpty | 
 | 12022 |  | 
 | 12023 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12024 | do : | 
 | 12025 |   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12026 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12027 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12028 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12029 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12030 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12031 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12032 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
 | 12033 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12034 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12035 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12036 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12037 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12038 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12040 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12041 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12042 | /* Override any GCC internal prototype to avoid an error. | 
 | 12043 |    Use char because int might match the return type of a GCC | 
 | 12044 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12045 | #ifdef __cplusplus | 
 | 12046 | extern "C" | 
 | 12047 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12048 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12049 | int | 
 | 12050 | main () | 
 | 12051 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12052 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12053 |   ; | 
 | 12054 |   return 0; | 
 | 12055 | } | 
 | 12056 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12057 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12058 |   ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12059 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12060 |   ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12061 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12062 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12063 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12064 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12065 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
 | 12067 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12068 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12069 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12070 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12071 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12072 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
 | 12073 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12074 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12075 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12076 | else | 
 | 12077 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12078 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12080 | /* end confdefs.h.  */ | 
 | 12081 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12082 | /* Override any GCC internal prototype to avoid an error. | 
 | 12083 |    Use char because int might match the return type of a GCC | 
 | 12084 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12085 | #ifdef __cplusplus | 
 | 12086 | extern "C" | 
 | 12087 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12088 | char openpty (); | 
 | 12089 | int | 
 | 12090 | main () | 
 | 12091 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12092 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12093 |   ; | 
 | 12094 |   return 0; | 
 | 12095 | } | 
 | 12096 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12097 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12098 |   ac_cv_lib_bsd_openpty=yes | 
 | 12099 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12100 |   ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12101 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12102 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12103 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12104 | LIBS=$ac_check_lib_save_LIBS | 
 | 12105 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
 | 12107 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12108 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12109 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12110 |  LIBS="$LIBS -lbsd" | 
 | 12111 | fi | 
 | 12112 |  | 
 | 12113 |  | 
 | 12114 | fi | 
 | 12115 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12116 |  | 
 | 12117 | fi | 
 | 12118 | done | 
 | 12119 |  | 
 | 12120 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12121 | do : | 
 | 12122 |   ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12123 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12124 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12125 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12126 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12127 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12128 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12129 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
 | 12130 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12131 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12132 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12133 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12134 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12135 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12137 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12139 | /* Override any GCC internal prototype to avoid an error. | 
 | 12140 |    Use char because int might match the return type of a GCC | 
 | 12141 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12142 | #ifdef __cplusplus | 
 | 12143 | extern "C" | 
 | 12144 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12145 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12146 | int | 
 | 12147 | main () | 
 | 12148 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12149 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12150 |   ; | 
 | 12151 |   return 0; | 
 | 12152 | } | 
 | 12153 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12154 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12155 |   ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12156 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12157 |   ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12158 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12159 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12160 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12162 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
 | 12164 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12165 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12166 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12167 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12168 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12169 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
 | 12170 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12171 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12172 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12173 | else | 
 | 12174 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12175 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12177 | /* end confdefs.h.  */ | 
 | 12178 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12179 | /* Override any GCC internal prototype to avoid an error. | 
 | 12180 |    Use char because int might match the return type of a GCC | 
 | 12181 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12182 | #ifdef __cplusplus | 
 | 12183 | extern "C" | 
 | 12184 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12185 | char forkpty (); | 
 | 12186 | int | 
 | 12187 | main () | 
 | 12188 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12189 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12190 |   ; | 
 | 12191 |   return 0; | 
 | 12192 | } | 
 | 12193 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12194 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12195 |   ac_cv_lib_bsd_forkpty=yes | 
 | 12196 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12197 |   ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12198 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12199 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12200 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12201 | LIBS=$ac_check_lib_save_LIBS | 
 | 12202 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
 | 12204 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12205 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12206 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12207 |  LIBS="$LIBS -lbsd" | 
 | 12208 | fi | 
 | 12209 |  | 
 | 12210 |  | 
 | 12211 | fi | 
 | 12212 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12213 |  | 
 | 12214 | fi | 
 | 12215 | done | 
 | 12216 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12217 |  | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12218 | # Stuff for expat. | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12219 | for ac_func in memmove | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12220 | do : | 
 | 12221 |   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12222 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12223 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12224 | #define HAVE_MEMMOVE 1 | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12225 | _ACEOF | 
 | 12226 |  | 
 | 12227 | fi | 
 | 12228 | done | 
 | 12229 |  | 
 | 12230 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12231 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12232 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12233 | do : | 
 | 12234 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12235 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12236 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12237 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12238 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12239 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12240 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12241 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12242 | done | 
 | 12243 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12244 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12245 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12246 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12247 |   $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12248 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12249 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12250 |   case " $LIBOBJS " in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12251 |   *" dup2.$ac_objext "* ) ;; | 
 | 12252 |   *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12253 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12254 | esac | 
 | 12255 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12256 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12257 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12258 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12259 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12260 |   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
 | 12261 |  | 
 | 12262 | else | 
 | 12263 |   case " $LIBOBJS " in | 
 | 12264 |   *" strdup.$ac_objext "* ) ;; | 
 | 12265 |   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
 | 12266 |  ;; | 
 | 12267 | esac | 
 | 12268 |  | 
 | 12269 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12270 |  | 
 | 12271 |  | 
 | 12272 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12273 | do : | 
 | 12274 |   ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12275 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12276 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12277 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12278 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12279 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12280 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12281 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12282 | int | 
 | 12283 | main () | 
 | 12284 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12285 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12286 |   ; | 
 | 12287 |   return 0; | 
 | 12288 | } | 
 | 12289 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12290 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12291 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12292 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12293 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12294 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12295 | 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] | 12296 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12297 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12298 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12299 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12300 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12301 | do : | 
 | 12302 |   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12303 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12304 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12305 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12306 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12307 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12308 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12309 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12310 | int | 
 | 12311 | main () | 
 | 12312 | { | 
 | 12313 | setpgrp(0,0); | 
 | 12314 |   ; | 
 | 12315 |   return 0; | 
 | 12316 | } | 
 | 12317 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12318 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12319 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12320 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12321 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12322 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12324 |  | 
 | 12325 | fi | 
 | 12326 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12327 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12328 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12329 | do : | 
 | 12330 |   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12331 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12332 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12333 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12334 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12335 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12336 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12337 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12338 | int | 
 | 12339 | main () | 
 | 12340 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12341 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12342 |   ; | 
 | 12343 |   return 0; | 
 | 12344 | } | 
 | 12345 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12346 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12347 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12348 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12349 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12350 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12351 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12352 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12353 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12354 | 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] | 12355 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12356 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12357 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12358 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12359 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12360 | for ac_func in clock_gettime | 
 | 12361 | do : | 
 | 12362 |   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | 
 | 12363 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | 
 | 12364 |   cat >>confdefs.h <<_ACEOF | 
 | 12365 | #define HAVE_CLOCK_GETTIME 1 | 
 | 12366 | _ACEOF | 
 | 12367 |  | 
 | 12368 | else | 
 | 12369 |  | 
 | 12370 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | 
 | 12371 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | 
 | 12372 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | 
 | 12373 |   $as_echo_n "(cached) " >&6 | 
 | 12374 | else | 
 | 12375 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12376 | LIBS="-lrt  $LIBS" | 
 | 12377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12378 | /* end confdefs.h.  */ | 
 | 12379 |  | 
 | 12380 | /* Override any GCC internal prototype to avoid an error. | 
 | 12381 |    Use char because int might match the return type of a GCC | 
 | 12382 |    builtin and then its argument prototype would still apply.  */ | 
 | 12383 | #ifdef __cplusplus | 
 | 12384 | extern "C" | 
 | 12385 | #endif | 
 | 12386 | char clock_gettime (); | 
 | 12387 | int | 
 | 12388 | main () | 
 | 12389 | { | 
 | 12390 | return clock_gettime (); | 
 | 12391 |   ; | 
 | 12392 |   return 0; | 
 | 12393 | } | 
 | 12394 | _ACEOF | 
 | 12395 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 12396 |   ac_cv_lib_rt_clock_gettime=yes | 
 | 12397 | else | 
 | 12398 |   ac_cv_lib_rt_clock_gettime=no | 
 | 12399 | fi | 
 | 12400 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12401 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12402 | LIBS=$ac_check_lib_save_LIBS | 
 | 12403 | fi | 
 | 12404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | 
 | 12405 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | 
 | 12406 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | 
 | 12407 |  | 
| Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 12408 |         LIBS="$LIBS -lrt" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12409 |         $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 
 | 12410 |  | 
 | 12411 |  | 
 | 12412 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | 
 | 12413 |  | 
 | 12414 |  | 
 | 12415 | fi | 
 | 12416 |  | 
 | 12417 |  | 
 | 12418 | fi | 
 | 12419 | done | 
 | 12420 |  | 
 | 12421 |  | 
 | 12422 | for ac_func in clock_getres | 
 | 12423 | do : | 
 | 12424 |   ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | 
 | 12425 | if test "x$ac_cv_func_clock_getres" = xyes; then : | 
 | 12426 |   cat >>confdefs.h <<_ACEOF | 
 | 12427 | #define HAVE_CLOCK_GETRES 1 | 
 | 12428 | _ACEOF | 
 | 12429 |  | 
 | 12430 | else | 
 | 12431 |  | 
 | 12432 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | 
 | 12433 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | 
 | 12434 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | 
 | 12435 |   $as_echo_n "(cached) " >&6 | 
 | 12436 | else | 
 | 12437 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12438 | LIBS="-lrt  $LIBS" | 
 | 12439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12440 | /* end confdefs.h.  */ | 
 | 12441 |  | 
 | 12442 | /* Override any GCC internal prototype to avoid an error. | 
 | 12443 |    Use char because int might match the return type of a GCC | 
 | 12444 |    builtin and then its argument prototype would still apply.  */ | 
 | 12445 | #ifdef __cplusplus | 
 | 12446 | extern "C" | 
 | 12447 | #endif | 
 | 12448 | char clock_getres (); | 
 | 12449 | int | 
 | 12450 | main () | 
 | 12451 | { | 
 | 12452 | return clock_getres (); | 
 | 12453 |   ; | 
 | 12454 |   return 0; | 
 | 12455 | } | 
 | 12456 | _ACEOF | 
 | 12457 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 12458 |   ac_cv_lib_rt_clock_getres=yes | 
 | 12459 | else | 
 | 12460 |   ac_cv_lib_rt_clock_getres=no | 
 | 12461 | fi | 
 | 12462 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12463 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12464 | LIBS=$ac_check_lib_save_LIBS | 
 | 12465 | fi | 
 | 12466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | 
 | 12467 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | 
 | 12468 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | 
 | 12469 |  | 
 | 12470 |         $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | 
 | 12471 |  | 
 | 12472 |  | 
 | 12473 | fi | 
 | 12474 |  | 
 | 12475 |  | 
 | 12476 | fi | 
 | 12477 | done | 
 | 12478 |  | 
 | 12479 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
 | 12481 | $as_echo_n "checking for major... " >&6; } | 
 | 12482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12483 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12484 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12485 | #if defined(MAJOR_IN_MKDEV) | 
 | 12486 | #include <sys/mkdev.h> | 
 | 12487 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 12488 | #include <sys/sysmacros.h> | 
 | 12489 | #else | 
 | 12490 | #include <sys/types.h> | 
 | 12491 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12492 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12493 | int | 
 | 12494 | main () | 
 | 12495 | { | 
 | 12496 |  | 
 | 12497 |   makedev(major(0),minor(0)); | 
 | 12498 |  | 
 | 12499 |   ; | 
 | 12500 |   return 0; | 
 | 12501 | } | 
 | 12502 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12503 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12504 |  | 
 | 12505 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12506 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12507 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12508 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12509 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12510 |  | 
 | 12511 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12512 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12513 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12514 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12515 |  | 
 | 12516 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12517 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12518 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12519 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12520 | # 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] | 12521 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
 | 12523 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
 | 12524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12525 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12526 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12527 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12528 | #include <sys/socket.h> | 
 | 12529 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12530 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12531 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12532 | int | 
 | 12533 | main () | 
 | 12534 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12535 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12536 |   ; | 
 | 12537 |   return 0; | 
 | 12538 | } | 
 | 12539 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12540 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12541 |   have_getaddrinfo=yes | 
 | 12542 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12543 |   have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12544 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12545 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12546 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
 | 12548 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12549 | if test $have_getaddrinfo = yes | 
 | 12550 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12551 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
 | 12552 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12553 |   if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12554 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12555 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12556 |   if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12557 |  | 
 | 12558 | if test "${enable_ipv6+set}" = set; then | 
 | 12559 |   ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
 | 12560 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12561 |   ac_cv_buggy_getaddrinfo=yes | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12562 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12563 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12564 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12565 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12566 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 12567 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12568 | #include <sys/types.h> | 
 | 12569 | #include <netdb.h> | 
 | 12570 | #include <string.h> | 
 | 12571 | #include <sys/socket.h> | 
 | 12572 | #include <netinet/in.h> | 
 | 12573 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12574 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12575 | { | 
 | 12576 |   int passive, gaierr, inet4 = 0, inet6 = 0; | 
 | 12577 |   struct addrinfo hints, *ai, *aitop; | 
 | 12578 |   char straddr[INET6_ADDRSTRLEN], strport[16]; | 
 | 12579 |  | 
 | 12580 |   for (passive = 0; passive <= 1; passive++) { | 
 | 12581 |     memset(&hints, 0, sizeof(hints)); | 
 | 12582 |     hints.ai_family = AF_UNSPEC; | 
 | 12583 |     hints.ai_flags = passive ? AI_PASSIVE : 0; | 
 | 12584 |     hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 12585 |     hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12586 |     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
 | 12587 |       (void)gai_strerror(gaierr); | 
 | 12588 |       goto bad; | 
 | 12589 |     } | 
 | 12590 |     for (ai = aitop; ai; ai = ai->ai_next) { | 
 | 12591 |       if (ai->ai_addr == NULL || | 
 | 12592 |           ai->ai_addrlen == 0 || | 
 | 12593 |           getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
 | 12594 |                       straddr, sizeof(straddr), strport, sizeof(strport), | 
 | 12595 |                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
 | 12596 |         goto bad; | 
 | 12597 |       } | 
 | 12598 |       switch (ai->ai_family) { | 
 | 12599 |       case AF_INET: | 
 | 12600 |         if (strcmp(strport, "54321") != 0) { | 
 | 12601 |           goto bad; | 
 | 12602 |         } | 
 | 12603 |         if (passive) { | 
 | 12604 |           if (strcmp(straddr, "0.0.0.0") != 0) { | 
 | 12605 |             goto bad; | 
 | 12606 |           } | 
 | 12607 |         } else { | 
 | 12608 |           if (strcmp(straddr, "127.0.0.1") != 0) { | 
 | 12609 |             goto bad; | 
 | 12610 |           } | 
 | 12611 |         } | 
 | 12612 |         inet4++; | 
 | 12613 |         break; | 
 | 12614 |       case AF_INET6: | 
 | 12615 |         if (strcmp(strport, "54321") != 0) { | 
 | 12616 |           goto bad; | 
 | 12617 |         } | 
 | 12618 |         if (passive) { | 
 | 12619 |           if (strcmp(straddr, "::") != 0) { | 
 | 12620 |             goto bad; | 
 | 12621 |           } | 
 | 12622 |         } else { | 
 | 12623 |           if (strcmp(straddr, "::1") != 0) { | 
 | 12624 |             goto bad; | 
 | 12625 |           } | 
 | 12626 |         } | 
 | 12627 |         inet6++; | 
 | 12628 |         break; | 
 | 12629 |       case AF_UNSPEC: | 
 | 12630 |         goto bad; | 
 | 12631 |         break; | 
 | 12632 |       default: | 
 | 12633 |         /* another family support? */ | 
 | 12634 |         break; | 
 | 12635 |       } | 
 | 12636 |     } | 
 | 12637 |   } | 
 | 12638 |  | 
 | 12639 |   if (!(inet4 == 0 || inet4 == 2)) | 
 | 12640 |     goto bad; | 
 | 12641 |   if (!(inet6 == 0 || inet6 == 2)) | 
 | 12642 |     goto bad; | 
 | 12643 |  | 
 | 12644 |   if (aitop) | 
 | 12645 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12646 |   return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12647 |  | 
 | 12648 |  bad: | 
 | 12649 |   if (aitop) | 
 | 12650 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12651 |   return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12652 | } | 
 | 12653 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12654 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12655 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12656 |   ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12657 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12658 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12659 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12660 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12661 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12662 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12663 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12664 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12665 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12666 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12667 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
 | 12669 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
 | 12670 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12671 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12672 | then | 
 | 12673 | 	if test $ipv6 = yes | 
 | 12674 | 	then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12675 | 		echo 'Fatal: You must get working getaddrinfo() function.' | 
 | 12676 | 		echo '       or you can specify "--disable-ipv6"'. | 
 | 12677 | 		exit 1 | 
 | 12678 | 	fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12679 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12680 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12681 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12682 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12683 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12684 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12685 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12686 | do : | 
 | 12687 |   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12688 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12689 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12690 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12691 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12692 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12693 | fi | 
 | 12694 | done | 
 | 12695 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12696 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12697 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 12699 | $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] | 12700 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12701 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12702 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12703 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12704 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12705 | #include <sys/types.h> | 
 | 12706 | #include <sys/time.h> | 
 | 12707 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12708 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12709 | int | 
 | 12710 | main () | 
 | 12711 | { | 
 | 12712 | if ((struct tm *) 0) | 
 | 12713 | return 0; | 
 | 12714 |   ; | 
 | 12715 |   return 0; | 
 | 12716 | } | 
 | 12717 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12718 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12719 |   ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12720 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12721 |   ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12722 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12724 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
 | 12726 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12727 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12728 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12729 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12730 |  | 
 | 12731 | fi | 
 | 12732 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 12734 | $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] | 12735 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12736 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12737 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12738 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12739 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12740 | #include <sys/types.h> | 
 | 12741 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12742 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12743 | int | 
 | 12744 | main () | 
 | 12745 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12746 | struct tm tm; | 
 | 12747 | 				     int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12748 | 				     return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12749 |   ; | 
 | 12750 |   return 0; | 
 | 12751 | } | 
 | 12752 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12753 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12754 |   ac_cv_struct_tm=time.h | 
 | 12755 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12756 |   ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12757 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12759 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
 | 12761 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12762 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12763 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12764 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12765 |  | 
 | 12766 | fi | 
 | 12767 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12768 | 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] | 12769 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12770 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12771 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12772 | 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] | 12773 |  | 
 | 12774 | cat >>confdefs.h <<_ACEOF | 
 | 12775 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 12776 | _ACEOF | 
 | 12777 |  | 
 | 12778 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12779 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12780 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12781 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 12782 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12783 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12784 |  | 
 | 12785 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12786 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 12787 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12788 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12789 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12790 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12791 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12792 | fi | 
 | 12793 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12794 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12795 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12796 | _ACEOF | 
 | 12797 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12798 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 12799 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12800 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12801 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12802 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12803 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12804 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12805 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12806 | #if !HAVE_DECL_TZNAME | 
 | 12807 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12808 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12809 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12810 | int | 
 | 12811 | main () | 
 | 12812 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12813 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12814 |   ; | 
 | 12815 |   return 0; | 
 | 12816 | } | 
 | 12817 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12818 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12819 |   ac_cv_var_tzname=yes | 
 | 12820 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12821 |   ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12822 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12823 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12824 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12825 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 12827 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12828 |   if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12829 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12830 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12831 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12832 |   fi | 
 | 12833 | fi | 
 | 12834 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12835 | 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] | 12836 | 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] | 12837 |  | 
 | 12838 | cat >>confdefs.h <<_ACEOF | 
 | 12839 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
 | 12840 | _ACEOF | 
 | 12841 |  | 
 | 12842 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12843 | fi | 
 | 12844 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12845 | 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] | 12846 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12847 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12848 | cat >>confdefs.h <<_ACEOF | 
 | 12849 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
 | 12850 | _ACEOF | 
 | 12851 |  | 
 | 12852 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12853 | fi | 
 | 12854 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12855 | 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] | 12856 | 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] | 12857 |  | 
 | 12858 | cat >>confdefs.h <<_ACEOF | 
 | 12859 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
 | 12860 | _ACEOF | 
 | 12861 |  | 
 | 12862 |  | 
 | 12863 | fi | 
 | 12864 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12865 | 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] | 12866 | 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] | 12867 |  | 
 | 12868 | cat >>confdefs.h <<_ACEOF | 
 | 12869 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
 | 12870 | _ACEOF | 
 | 12871 |  | 
 | 12872 |  | 
 | 12873 | fi | 
 | 12874 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12875 | 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] | 12876 | 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] | 12877 |  | 
 | 12878 | cat >>confdefs.h <<_ACEOF | 
 | 12879 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
 | 12880 | _ACEOF | 
 | 12881 |  | 
 | 12882 |  | 
 | 12883 | fi | 
 | 12884 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12885 | 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] | 12886 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12887 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12888 | cat >>confdefs.h <<_ACEOF | 
 | 12889 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
 | 12890 | _ACEOF | 
 | 12891 |  | 
 | 12892 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12893 | fi | 
 | 12894 |  | 
| Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 12895 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " | 
 | 12896 |   #include <sys/types.h> | 
 | 12897 |   #include <pwd.h> | 
 | 12898 |  | 
 | 12899 | " | 
 | 12900 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | 
 | 12901 |  | 
 | 12902 | cat >>confdefs.h <<_ACEOF | 
 | 12903 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | 
 | 12904 | _ACEOF | 
 | 12905 |  | 
 | 12906 |  | 
 | 12907 | fi | 
 | 12908 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " | 
 | 12909 |   #include <sys/types.h> | 
 | 12910 |   #include <pwd.h> | 
 | 12911 |  | 
 | 12912 | " | 
 | 12913 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : | 
 | 12914 |  | 
 | 12915 | cat >>confdefs.h <<_ACEOF | 
 | 12916 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 | 
 | 12917 | _ACEOF | 
 | 12918 |  | 
 | 12919 |  | 
 | 12920 | fi | 
 | 12921 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12922 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
 | 12924 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12925 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12926 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12927 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12928 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12929 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12930 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12931 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12932 | int | 
 | 12933 | main () | 
 | 12934 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12935 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12936 |   ; | 
 | 12937 |   return 0; | 
 | 12938 | } | 
 | 12939 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12940 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12941 |   ac_cv_header_time_altzone=yes | 
 | 12942 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12943 |   ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12944 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12946 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12947 | fi | 
 | 12948 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
 | 12950 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12951 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12952 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12953 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12954 |  | 
 | 12955 | fi | 
 | 12956 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12957 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
 | 12959 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
 | 12960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12961 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12962 |  | 
 | 12963 | #include <sys/types.h> | 
 | 12964 | #include <sys/select.h> | 
 | 12965 | #include <sys/time.h> | 
 | 12966 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | int | 
 | 12968 | main () | 
 | 12969 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12970 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12971 |   ; | 
 | 12972 |   return 0; | 
 | 12973 | } | 
 | 12974 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12975 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12976 |  | 
 | 12977 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12978 | $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] | 12979 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12980 |   was_it_defined=yes | 
 | 12981 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12982 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 12985 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12986 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
 | 12988 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12989 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12990 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12991 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12992 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12993 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12994 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12995 | int | 
 | 12996 | main () | 
 | 12997 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12998 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12999 |   ; | 
 | 13000 |   return 0; | 
 | 13001 | } | 
 | 13002 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13003 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13004 |   ac_cv_struct_addrinfo=yes | 
 | 13005 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13006 |   ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13007 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13009 | fi | 
 | 13010 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
 | 13012 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13013 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13014 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13015 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13016 |  | 
 | 13017 | fi | 
 | 13018 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
 | 13020 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13021 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13022 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13023 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13024 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13025 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13026 |  | 
 | 13027 | #		include <sys/types.h> | 
 | 13028 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13029 | int | 
 | 13030 | main () | 
 | 13031 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13032 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13033 |   ; | 
 | 13034 |   return 0; | 
 | 13035 | } | 
 | 13036 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13037 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13038 |   ac_cv_struct_sockaddr_storage=yes | 
 | 13039 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13040 |   ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13041 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13043 | fi | 
 | 13044 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
 | 13046 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13047 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13048 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13049 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13050 |  | 
 | 13051 | fi | 
 | 13052 |  | 
| Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 | 
 | 13054 | $as_echo_n "checking for sockaddr_alg... " >&6; } | 
 | 13055 | if ${ac_cv_struct_sockaddr_alg+:} false; then : | 
 | 13056 |   $as_echo_n "(cached) " >&6 | 
 | 13057 | else | 
 | 13058 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13059 | /* end confdefs.h.  */ | 
 | 13060 |  | 
 | 13061 | #		include <sys/types.h> | 
 | 13062 | #		include <sys/socket.h> | 
 | 13063 | #		include <linux/if_alg.h> | 
 | 13064 | int | 
 | 13065 | main () | 
 | 13066 | { | 
 | 13067 | struct sockaddr_alg s | 
 | 13068 |   ; | 
 | 13069 |   return 0; | 
 | 13070 | } | 
 | 13071 | _ACEOF | 
 | 13072 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13073 |   ac_cv_struct_sockaddr_alg=yes | 
 | 13074 | else | 
 | 13075 |   ac_cv_struct_sockaddr_alg=no | 
 | 13076 | fi | 
 | 13077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13078 | fi | 
 | 13079 |  | 
 | 13080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 | 
 | 13081 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } | 
 | 13082 | if test $ac_cv_struct_sockaddr_alg = yes; then | 
 | 13083 |  | 
 | 13084 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h | 
 | 13085 |  | 
 | 13086 | fi | 
 | 13087 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13088 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13089 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
 | 13091 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13092 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13093 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13094 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13095 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13096 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13097 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13098 | int | 
 | 13099 | main () | 
 | 13100 | { | 
 | 13101 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13102 | test_array [0] = 0; | 
 | 13103 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13104 |  | 
 | 13105 |   ; | 
 | 13106 |   return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13107 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13108 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13109 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13110 |   ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13111 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13112 |   ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13113 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13115 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
 | 13117 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13118 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13119 |   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13120 |  | 
 | 13121 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13122 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
 | 13124 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13125 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13126 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13127 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13128 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13129 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13130 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13131 | int | 
 | 13132 | main () | 
 | 13133 | { | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13134 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13135 | #ifndef __cplusplus | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13136 |   /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13137 |   typedef int charset[2]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13138 |   const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13139 |   /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13140 |   char const *const *pcpcc; | 
 | 13141 |   char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13142 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 13143 |   struct point {int x, y;}; | 
 | 13144 |   static struct point const zero = {0,0}; | 
 | 13145 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 13146 |      It does not let you subtract one const X* pointer from another in | 
 | 13147 |      an arm of an if-expression whose if-part is not a constant | 
 | 13148 |      expression */ | 
 | 13149 |   const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13150 |   pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13151 |   /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13152 |   ++pcpcc; | 
 | 13153 |   ppc = (char**) pcpcc; | 
 | 13154 |   pcpcc = (char const *const *) ppc; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13155 |   { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
 | 13156 |     char tx; | 
 | 13157 |     char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13158 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13159 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13160 |     *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13161 |     if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13162 |   } | 
 | 13163 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 13164 |     int x[] = {25, 17}; | 
 | 13165 |     const int *foo = &x[0]; | 
 | 13166 |     ++foo; | 
 | 13167 |   } | 
 | 13168 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 13169 |     typedef const int *iptr; | 
 | 13170 |     iptr p = 0; | 
 | 13171 |     ++p; | 
 | 13172 |   } | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13173 |   { /* 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] | 13174 |        "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] | 13175 |     struct s { int j; const int *ap[3]; } bx; | 
 | 13176 |     struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13177 |   } | 
 | 13178 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 13179 |     const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13180 |     if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13181 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13182 |   return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13183 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13184 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13185 |   ; | 
 | 13186 |   return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13187 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13188 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13189 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13190 |   ac_cv_c_const=yes | 
 | 13191 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13192 |   ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13193 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13195 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
 | 13197 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13198 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13199 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13200 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13201 |  | 
 | 13202 | fi | 
 | 13203 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13204 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13205 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
 | 13207 | $as_echo_n "checking for working volatile... " >&6; } | 
 | 13208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13209 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13210 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13211 | int | 
 | 13212 | main () | 
 | 13213 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13214 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13215 |   ; | 
 | 13216 |   return 0; | 
 | 13217 | } | 
 | 13218 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13219 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13220 |   works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13221 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13222 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13223 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13224 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13225 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13226 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 13229 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13230 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13231 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
 | 13233 | $as_echo_n "checking for working signed char... " >&6; } | 
 | 13234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13235 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13236 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13237 | int | 
 | 13238 | main () | 
 | 13239 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13240 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13241 |   ; | 
 | 13242 |   return 0; | 
 | 13243 | } | 
 | 13244 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13245 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13246 |   works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13247 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13248 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13249 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13250 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13251 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13252 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 13255 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13256 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13257 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
 | 13259 | $as_echo_n "checking for prototypes... " >&6; } | 
 | 13260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13261 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13262 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13263 | int | 
 | 13264 | main () | 
 | 13265 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13266 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13267 |   ; | 
 | 13268 |   return 0; | 
 | 13269 | } | 
 | 13270 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13271 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13272 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13273 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13274 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13275 |    have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13276 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
 | 13279 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13280 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13281 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
 | 13283 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
 | 13284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13285 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13286 |  | 
 | 13287 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13288 | int foo(int x, ...) { | 
 | 13289 | 	va_list va; | 
 | 13290 | 	va_start(va, x); | 
 | 13291 | 	va_arg(va, int); | 
 | 13292 | 	va_arg(va, char *); | 
 | 13293 | 	va_arg(va, double); | 
 | 13294 | 	return 0; | 
 | 13295 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13296 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13297 | int | 
 | 13298 | main () | 
 | 13299 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13300 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13301 |   ; | 
 | 13302 |   return 0; | 
 | 13303 | } | 
 | 13304 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13305 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13306 |  | 
 | 13307 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13308 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13309 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13310 |   works=yes | 
 | 13311 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13312 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 13315 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13316 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13317 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
 | 13319 | $as_echo_n "checking for socketpair... " >&6; } | 
 | 13320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13321 | /* end confdefs.h.  */ | 
 | 13322 |  | 
 | 13323 | #include <sys/types.h> | 
 | 13324 | #include <sys/socket.h> | 
 | 13325 |  | 
 | 13326 | int | 
 | 13327 | main () | 
 | 13328 | { | 
 | 13329 | void *x=socketpair | 
 | 13330 |   ; | 
 | 13331 |   return 0; | 
 | 13332 | } | 
 | 13333 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13334 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13335 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13336 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13337 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13338 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13339 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13340 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13341 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13342 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13343 |  | 
 | 13344 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13345 | 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] | 13346 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13347 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
 | 13349 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
 | 13350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13351 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13352 | #include <sys/types.h> | 
 | 13353 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13354 | int | 
 | 13355 | main () | 
 | 13356 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13357 | struct sockaddr x; | 
 | 13358 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13359 |   ; | 
 | 13360 |   return 0; | 
 | 13361 | } | 
 | 13362 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13363 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13364 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13365 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13366 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13367 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13368 |  | 
 | 13369 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13370 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13371 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13372 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13373 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13374 | 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] | 13375 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13376 | va_list_is_array=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
 | 13378 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
 | 13379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13380 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13381 |  | 
 | 13382 | #ifdef HAVE_STDARG_PROTOTYPES | 
 | 13383 | #include <stdarg.h> | 
 | 13384 | #else | 
 | 13385 | #include <varargs.h> | 
 | 13386 | #endif | 
 | 13387 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13388 | int | 
 | 13389 | main () | 
 | 13390 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13391 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13392 |   ; | 
 | 13393 |   return 0; | 
 | 13394 | } | 
 | 13395 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13396 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13397 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13398 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13399 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13400 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13401 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13402 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13403 |  va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13404 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13405 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
 | 13408 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13409 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13410 | # 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] | 13411 |  | 
 | 13412 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13413 | 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] | 13414 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13415 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13416 |   $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13417 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13418 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
 | 13419 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13420 |   OLD_CFLAGS=$CFLAGS | 
 | 13421 |   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13422 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13423 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13424 |  | 
 | 13425 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13426 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13427 | int | 
 | 13428 | main () | 
 | 13429 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13430 |  | 
 | 13431 |     char *name; | 
 | 13432 |     struct hostent *he, *res; | 
 | 13433 |     char buffer[2048]; | 
 | 13434 |     int buflen = 2048; | 
 | 13435 |     int h_errnop; | 
 | 13436 |  | 
 | 13437 |     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13438 |  | 
 | 13439 |   ; | 
 | 13440 |   return 0; | 
 | 13441 | } | 
 | 13442 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13443 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13444 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13445 |     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13446 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13447 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13448 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13449 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13450 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13451 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13452 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13453 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13454 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13455 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13456 | $as_echo "no" >&6; } | 
 | 13457 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
 | 13458 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
 | 13459 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13460 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13461 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13462 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13463 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13464 | int | 
 | 13465 | main () | 
 | 13466 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13467 |  | 
 | 13468 |         char *name; | 
 | 13469 |         struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13470 |         char buffer[2048]; | 
 | 13471 |         int buflen = 2048; | 
 | 13472 |         int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13473 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13474 |         (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13475 |  | 
 | 13476 |   ; | 
 | 13477 |   return 0; | 
 | 13478 | } | 
 | 13479 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13480 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13481 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13482 |         $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13483 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13484 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13485 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13486 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13487 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13488 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13489 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13490 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13491 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13492 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13493 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13494 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
 | 13495 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
 | 13496 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13497 | /* end confdefs.h.  */ | 
 | 13498 |  | 
 | 13499 | #           include <netdb.h> | 
 | 13500 |  | 
 | 13501 | int | 
 | 13502 | main () | 
 | 13503 | { | 
 | 13504 |  | 
 | 13505 |             char *name; | 
 | 13506 |             struct hostent *he; | 
 | 13507 |             struct hostent_data data; | 
 | 13508 |  | 
 | 13509 |             (void) gethostbyname_r(name, he, &data); | 
 | 13510 |  | 
 | 13511 |   ; | 
 | 13512 |   return 0; | 
 | 13513 | } | 
 | 13514 | _ACEOF | 
 | 13515 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13516 |  | 
 | 13517 |             $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
 | 13518 |  | 
 | 13519 |  | 
 | 13520 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
 | 13521 |  | 
 | 13522 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13523 | $as_echo "yes" >&6; } | 
 | 13524 |  | 
 | 13525 | else | 
 | 13526 |  | 
 | 13527 |            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13528 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13529 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13530 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13531 | 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] | 13532 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13533 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13534 | 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] | 13535 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13536 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13538 |   CFLAGS=$OLD_CFLAGS | 
 | 13539 |  | 
 | 13540 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13541 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13542 |   for ac_func in gethostbyname | 
 | 13543 | do : | 
 | 13544 |   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13545 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13546 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13547 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13548 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13549 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13550 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13551 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13552 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13553 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13554 | fi | 
 | 13555 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13556 |  | 
 | 13557 |  | 
 | 13558 |  | 
 | 13559 |  | 
 | 13560 |  | 
 | 13561 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13562 | # checks for system services | 
 | 13563 | # (none yet) | 
 | 13564 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13565 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13566 | 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] | 13567 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13568 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13569 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13570 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
 | 13571 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13572 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13573 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13574 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13575 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13576 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13578 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13579 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13580 | /* Override any GCC internal prototype to avoid an error. | 
 | 13581 |    Use char because int might match the return type of a GCC | 
 | 13582 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13583 | #ifdef __cplusplus | 
 | 13584 | extern "C" | 
 | 13585 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13586 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13587 | int | 
 | 13588 | main () | 
 | 13589 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13590 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13591 |   ; | 
 | 13592 |   return 0; | 
 | 13593 | } | 
 | 13594 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13595 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13596 |   ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13597 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13598 |   ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13599 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13600 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13601 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13602 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13603 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
 | 13605 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13606 | 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] | 13607 |   cat >>confdefs.h <<_ACEOF | 
 | 13608 | #define HAVE_LIBIEEE 1 | 
 | 13609 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13610 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13611 |   LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13612 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13613 | fi | 
 | 13614 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13615 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13616 | fi | 
 | 13617 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13618 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13619 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
 | 13621 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13622 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13623 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13624 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13625 |   withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13626 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13627 | then | 
 | 13628 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13629 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13630 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13631 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13632 | $as_echo "yes" >&6; } | 
 | 13633 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13634 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13635 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13636 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13637 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13638 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13639 | fi | 
 | 13640 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13641 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13642 | # check for --with-libm=... | 
 | 13643 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13644 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 13645 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13646 | *) LIBM=-lm | 
 | 13647 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
 | 13649 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13650 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13651 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13652 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13653 |   withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13654 | if test "$withval" = no | 
 | 13655 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13656 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
 | 13657 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13658 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13659 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13660 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
 | 13661 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13662 | 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] | 13663 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13664 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13665 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
 | 13666 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13667 | fi | 
 | 13668 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13669 |  | 
 | 13670 | # check for --with-libc=... | 
 | 13671 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
 | 13673 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13674 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13675 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13676 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13677 |   withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13678 | if test "$withval" = no | 
 | 13679 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13680 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
 | 13681 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13682 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13683 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13684 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
 | 13685 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13686 | 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] | 13687 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13688 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13689 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
 | 13690 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13691 | fi | 
 | 13692 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13693 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13694 | # ************************************** | 
 | 13695 | # * Check for gcc x64 inline assembler * | 
 | 13696 | # ************************************** | 
 | 13697 |  | 
 | 13698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | 
 | 13699 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | 
 | 13700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13701 | /* end confdefs.h.  */ | 
 | 13702 |  | 
 | 13703 | int | 
 | 13704 | main () | 
 | 13705 | { | 
 | 13706 |  | 
 | 13707 |   __asm__ __volatile__ ("movq %rcx, %rax"); | 
 | 13708 |  | 
 | 13709 |   ; | 
 | 13710 |   return 0; | 
 | 13711 | } | 
 | 13712 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13713 | if ac_fn_c_try_link "$LINENO"; then : | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13714 |   have_gcc_asm_for_x64=yes | 
 | 13715 | else | 
 | 13716 |   have_gcc_asm_for_x64=no | 
 | 13717 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13718 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13719 |     conftest$ac_exeext conftest.$ac_ext | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 | 
 | 13721 | $as_echo "$have_gcc_asm_for_x64" >&6; } | 
 | 13722 | if test "$have_gcc_asm_for_x64" = yes | 
 | 13723 | then | 
 | 13724 |  | 
 | 13725 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | 
 | 13726 |  | 
 | 13727 | fi | 
 | 13728 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13729 | # ************************************************** | 
 | 13730 | # * Check for various properties of floating point * | 
 | 13731 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13732 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
 | 13734 | $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] | 13735 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13736 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13737 | else | 
 | 13738 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13739 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13740 |   ac_cv_little_endian_double=no | 
 | 13741 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13742 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13743 | /* end confdefs.h.  */ | 
 | 13744 |  | 
 | 13745 | #include <string.h> | 
 | 13746 | int main() { | 
 | 13747 |     double x = 9006104071832581.0; | 
 | 13748 |     if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
 | 13749 |         return 0; | 
 | 13750 |     else | 
 | 13751 |         return 1; | 
 | 13752 | } | 
 | 13753 |  | 
 | 13754 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13755 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13756 |   ac_cv_little_endian_double=yes | 
 | 13757 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13758 |   ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13759 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13760 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13761 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13762 | fi | 
 | 13763 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13764 | fi | 
 | 13765 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
 | 13767 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13768 | if test "$ac_cv_little_endian_double" = yes | 
 | 13769 | then | 
 | 13770 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13771 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13772 |  | 
 | 13773 | fi | 
 | 13774 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
 | 13776 | $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] | 13777 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13778 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13779 | else | 
 | 13780 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13781 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13782 |   ac_cv_big_endian_double=no | 
 | 13783 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13784 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13785 | /* end confdefs.h.  */ | 
 | 13786 |  | 
 | 13787 | #include <string.h> | 
 | 13788 | int main() { | 
 | 13789 |     double x = 9006104071832581.0; | 
 | 13790 |     if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
 | 13791 |         return 0; | 
 | 13792 |     else | 
 | 13793 |         return 1; | 
 | 13794 | } | 
 | 13795 |  | 
 | 13796 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13797 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13798 |   ac_cv_big_endian_double=yes | 
 | 13799 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13800 |   ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13801 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13802 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13803 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13804 | fi | 
 | 13805 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13806 | fi | 
 | 13807 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
 | 13809 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13810 | if test "$ac_cv_big_endian_double" = yes | 
 | 13811 | then | 
 | 13812 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13813 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13814 |  | 
 | 13815 | fi | 
 | 13816 |  | 
 | 13817 | # Some ARM platforms use a mixed-endian representation for doubles. | 
 | 13818 | # While Python doesn't currently have full support for these platforms | 
 | 13819 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
 | 13820 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
 | 13822 | $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] | 13823 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13824 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13825 | else | 
 | 13826 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13827 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13828 |   ac_cv_mixed_endian_double=no | 
 | 13829 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13830 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13831 | /* end confdefs.h.  */ | 
 | 13832 |  | 
 | 13833 | #include <string.h> | 
 | 13834 | int main() { | 
 | 13835 |     double x = 9006104071832581.0; | 
 | 13836 |     if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
 | 13837 |         return 0; | 
 | 13838 |     else | 
 | 13839 |         return 1; | 
 | 13840 | } | 
 | 13841 |  | 
 | 13842 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13843 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13844 |   ac_cv_mixed_endian_double=yes | 
 | 13845 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13846 |   ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13847 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13848 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13849 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13850 | fi | 
 | 13851 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13852 | fi | 
 | 13853 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
 | 13855 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13856 | if test "$ac_cv_mixed_endian_double" = yes | 
 | 13857 | then | 
 | 13858 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13859 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13860 |  | 
 | 13861 | fi | 
 | 13862 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13863 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13864 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13865 | # 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] | 13866 | # 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] | 13867 | # 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] | 13868 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13869 |  | 
 | 13870 | # This inline assembler syntax may also work for suncc and icc, | 
 | 13871 | # so we try it on all platforms. | 
 | 13872 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
 | 13874 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
 | 13875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13876 | /* end confdefs.h.  */ | 
 | 13877 |  | 
 | 13878 | int | 
 | 13879 | main () | 
 | 13880 | { | 
 | 13881 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13882 |   unsigned short cw; | 
 | 13883 |   __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
 | 13884 |   __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13885 |  | 
 | 13886 |   ; | 
 | 13887 |   return 0; | 
 | 13888 | } | 
 | 13889 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13890 | if ac_fn_c_try_link "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13891 |   have_gcc_asm_for_x87=yes | 
 | 13892 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13893 |   have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13894 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13895 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13896 |     conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
 | 13898 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13899 | if test "$have_gcc_asm_for_x87" = yes | 
 | 13900 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13901 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13902 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13903 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13904 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13905 |  | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 | 
 | 13907 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | 
 | 13908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13909 | /* end confdefs.h.  */ | 
 | 13910 |  | 
 | 13911 | int | 
 | 13912 | main () | 
 | 13913 | { | 
 | 13914 |  | 
 | 13915 |   unsigned int fpcr; | 
 | 13916 |   __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | 
 | 13917 |   __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | 
 | 13918 |  | 
 | 13919 |   ; | 
 | 13920 |   return 0; | 
 | 13921 | } | 
 | 13922 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13923 | if ac_fn_c_try_link "$LINENO"; then : | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13924 |   have_gcc_asm_for_mc68881=yes | 
 | 13925 | else | 
 | 13926 |   have_gcc_asm_for_mc68881=no | 
 | 13927 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13928 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13929 |     conftest$ac_exeext conftest.$ac_ext | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 | 
 | 13931 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | 
 | 13932 | if test "$have_gcc_asm_for_mc68881" = yes | 
 | 13933 | then | 
 | 13934 |  | 
 | 13935 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h | 
 | 13936 |  | 
 | 13937 | fi | 
 | 13938 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13939 | # Detect whether system arithmetic is subject to x87-style double | 
 | 13940 | # rounding issues.  The result of this test has little meaning on non | 
 | 13941 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
 | 13942 | # mode is round-to-nearest and double rounding issues are present, and | 
 | 13943 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
 | 13945 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13946 | # $BASECFLAGS may affect the result | 
 | 13947 | ac_save_cc="$CC" | 
 | 13948 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13949 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13950 |   ac_cv_x87_double_rounding=no | 
 | 13951 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13952 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13953 | /* end confdefs.h.  */ | 
 | 13954 |  | 
 | 13955 | #include <stdlib.h> | 
 | 13956 | #include <math.h> | 
 | 13957 | int main() { | 
 | 13958 |     volatile double x, y, z; | 
 | 13959 |     /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
 | 13960 |     x = 0.99999999999999989; /* 1-2**-53 */ | 
 | 13961 |     y = 1./x; | 
 | 13962 |     if (y != 1.) | 
 | 13963 |         exit(0); | 
 | 13964 |     /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
 | 13965 |     x = 1e16; | 
 | 13966 |     y = 2.99999; | 
 | 13967 |     z = x + y; | 
 | 13968 |     if (z != 1e16+4.) | 
 | 13969 |         exit(0); | 
 | 13970 |     /* both tests show evidence of double rounding */ | 
 | 13971 |     exit(1); | 
 | 13972 | } | 
 | 13973 |  | 
 | 13974 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13975 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13976 |   ac_cv_x87_double_rounding=no | 
 | 13977 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13978 |   ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13979 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13980 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13981 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13982 | fi | 
 | 13983 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13984 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
 | 13986 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13987 | if test "$ac_cv_x87_double_rounding" = yes | 
 | 13988 | then | 
 | 13989 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13990 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13991 |  | 
 | 13992 | fi | 
 | 13993 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13994 | # ************************************ | 
 | 13995 | # * Check for mathematical functions * | 
 | 13996 | # ************************************ | 
 | 13997 |  | 
 | 13998 | LIBS_SAVE=$LIBS | 
 | 13999 | LIBS="$LIBS $LIBM" | 
 | 14000 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14001 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
 | 14002 | do : | 
 | 14003 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 14004 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14005 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14006 |   cat >>confdefs.h <<_ACEOF | 
 | 14007 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 14008 | _ACEOF | 
 | 14009 |  | 
 | 14010 | fi | 
 | 14011 | done | 
 | 14012 |  | 
| Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 14013 | for ac_func in hypot lgamma log1p log2 round tgamma | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14014 | do : | 
 | 14015 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 14016 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14017 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14018 |   cat >>confdefs.h <<_ACEOF | 
 | 14019 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 14020 | _ACEOF | 
 | 14021 |  | 
 | 14022 | fi | 
 | 14023 | done | 
 | 14024 |  | 
 | 14025 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
 | 14026 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14027 | if test "x$ac_cv_have_decl_isinf" = 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_ISINF $ac_have_decl | 
 | 14035 | _ACEOF | 
 | 14036 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
 | 14037 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14038 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14039 |   ac_have_decl=1 | 
 | 14040 | else | 
 | 14041 |   ac_have_decl=0 | 
 | 14042 | fi | 
 | 14043 |  | 
 | 14044 | cat >>confdefs.h <<_ACEOF | 
 | 14045 | #define HAVE_DECL_ISNAN $ac_have_decl | 
 | 14046 | _ACEOF | 
 | 14047 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
 | 14048 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14049 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14050 |   ac_have_decl=1 | 
 | 14051 | else | 
 | 14052 |   ac_have_decl=0 | 
 | 14053 | fi | 
 | 14054 |  | 
 | 14055 | cat >>confdefs.h <<_ACEOF | 
 | 14056 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
 | 14057 | _ACEOF | 
 | 14058 |  | 
 | 14059 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14060 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
 | 14061 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
 | 14063 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14064 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14065 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14066 | else | 
 | 14067 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14068 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14069 |   ac_cv_tanh_preserves_zero_sign=no | 
 | 14070 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14071 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14072 | /* end confdefs.h.  */ | 
 | 14073 |  | 
 | 14074 | #include <math.h> | 
 | 14075 | #include <stdlib.h> | 
 | 14076 | int main() { | 
 | 14077 |     /* return 0 if either negative zeros don't exist | 
 | 14078 |        on this platform or if negative zeros exist | 
 | 14079 |        and tanh(-0.) == -0. */ | 
 | 14080 |   if (atan2(0., -1.) == atan2(-0., -1.) || | 
 | 14081 |       atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
 | 14082 |   else exit(1); | 
 | 14083 | } | 
 | 14084 |  | 
 | 14085 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14086 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14087 |   ac_cv_tanh_preserves_zero_sign=yes | 
 | 14088 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14089 |   ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14090 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14091 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14092 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14093 | fi | 
 | 14094 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14095 | fi | 
 | 14096 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
 | 14098 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14099 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
 | 14100 | then | 
 | 14101 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14102 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14103 |  | 
 | 14104 | fi | 
 | 14105 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14106 | if test "$ac_cv_func_log1p" = yes | 
 | 14107 | then | 
 | 14108 |     # On some versions of AIX, log1p(-0.) returns 0. instead of | 
 | 14109 |     # -0.  See issue #9920. | 
 | 14110 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
 | 14111 | $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] | 14112 |     if ${ac_cv_log1p_drops_zero_sign+:} false; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14113 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14114 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14115 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14116 |     if test "$cross_compiling" = yes; then : | 
 | 14117 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14118 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14119 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14120 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14121 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14122 |     #include <math.h> | 
 | 14123 |     #include <stdlib.h> | 
 | 14124 |     int main() { | 
 | 14125 |         /* Fail if the signs of log1p(-0.) and -0. can be | 
 | 14126 | 	   distinguished. */ | 
 | 14127 |         if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
 | 14128 |             return 0; | 
 | 14129 |         else | 
 | 14130 |             return 1; | 
 | 14131 |     } | 
 | 14132 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14133 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14134 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 14135 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14136 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14137 |   ac_cv_log1p_drops_zero_sign=yes | 
 | 14138 | fi | 
 | 14139 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14140 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14141 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14142 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14143 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14144 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14145 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
 | 14146 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
 | 14147 | fi | 
 | 14148 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
 | 14149 | then | 
 | 14150 |  | 
 | 14151 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
 | 14152 |  | 
 | 14153 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14154 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14155 | LIBS=$LIBS_SAVE | 
 | 14156 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14157 | # For multiprocessing module, check that sem_open | 
 | 14158 | # actually works.  For FreeBSD versions <= 7.2, | 
 | 14159 | # the kernel module that provides POSIX semaphores | 
 | 14160 | # isn't loaded by default, so an attempt to call | 
 | 14161 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
 | 14163 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14164 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14165 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14166 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14167 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14168 |   ac_cv_posix_semaphores_enabled=yes | 
 | 14169 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14170 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14171 | /* end confdefs.h.  */ | 
 | 14172 |  | 
 | 14173 | #include <unistd.h> | 
 | 14174 | #include <fcntl.h> | 
 | 14175 | #include <stdio.h> | 
 | 14176 | #include <semaphore.h> | 
 | 14177 | #include <sys/stat.h> | 
 | 14178 |  | 
 | 14179 | int main(void) { | 
 | 14180 |   sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
 | 14181 |   if (a == SEM_FAILED) { | 
 | 14182 |     perror("sem_open"); | 
 | 14183 |     return 1; | 
 | 14184 |   } | 
 | 14185 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14186 |   sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14187 |   return 0; | 
 | 14188 | } | 
 | 14189 |  | 
 | 14190 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14191 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14192 |   ac_cv_posix_semaphores_enabled=yes | 
 | 14193 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14194 |   ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14195 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14196 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14197 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14198 | fi | 
 | 14199 |  | 
 | 14200 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14201 | fi | 
 | 14202 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
 | 14204 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14205 | if test $ac_cv_posix_semaphores_enabled = no | 
 | 14206 | then | 
 | 14207 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14208 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14209 |  | 
 | 14210 | fi | 
 | 14211 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14212 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
 | 14214 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14215 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14216 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14217 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14218 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14219 |   ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14220 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14221 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14222 | /* end confdefs.h.  */ | 
 | 14223 |  | 
 | 14224 | #include <unistd.h> | 
 | 14225 | #include <fcntl.h> | 
 | 14226 | #include <stdio.h> | 
 | 14227 | #include <semaphore.h> | 
 | 14228 | #include <sys/stat.h> | 
 | 14229 |  | 
 | 14230 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14231 |   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] | 14232 |   int count; | 
 | 14233 |   int res; | 
 | 14234 |   if(a==SEM_FAILED){ | 
 | 14235 |     perror("sem_open"); | 
 | 14236 |     return 1; | 
 | 14237 |  | 
 | 14238 |   } | 
 | 14239 |   res = sem_getvalue(a, &count); | 
 | 14240 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14241 |   sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14242 |   return res==-1 ? 1 : 0; | 
 | 14243 | } | 
 | 14244 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14245 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14246 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14247 |   ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14248 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14249 |   ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14250 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14251 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14252 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14253 | fi | 
 | 14254 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14255 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14256 | fi | 
 | 14257 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
 | 14259 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14260 | if test $ac_cv_broken_sem_getvalue = yes | 
 | 14261 | then | 
 | 14262 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14263 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14264 |  | 
 | 14265 | fi | 
 | 14266 |  | 
| Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14267 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> | 
 | 14268 | " | 
 | 14269 | if test "x$ac_cv_have_decl_RTLD_LAZY" = 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_LAZY $ac_have_decl | 
 | 14277 | _ACEOF | 
 | 14278 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | 
 | 14279 | " | 
 | 14280 | if test "x$ac_cv_have_decl_RTLD_NOW" = 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_NOW $ac_have_decl | 
 | 14288 | _ACEOF | 
 | 14289 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> | 
 | 14290 | " | 
 | 14291 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = 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_GLOBAL $ac_have_decl | 
 | 14299 | _ACEOF | 
 | 14300 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> | 
 | 14301 | " | 
 | 14302 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = 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_LOCAL $ac_have_decl | 
 | 14310 | _ACEOF | 
 | 14311 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> | 
 | 14312 | " | 
 | 14313 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = 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_NODELETE $ac_have_decl | 
 | 14321 | _ACEOF | 
 | 14322 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> | 
 | 14323 | " | 
 | 14324 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : | 
 | 14325 |   ac_have_decl=1 | 
 | 14326 | else | 
 | 14327 |   ac_have_decl=0 | 
 | 14328 | fi | 
 | 14329 |  | 
 | 14330 | cat >>confdefs.h <<_ACEOF | 
 | 14331 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl | 
 | 14332 | _ACEOF | 
 | 14333 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> | 
 | 14334 | " | 
 | 14335 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : | 
 | 14336 |   ac_have_decl=1 | 
 | 14337 | else | 
 | 14338 |   ac_have_decl=0 | 
 | 14339 | fi | 
 | 14340 |  | 
 | 14341 | cat >>confdefs.h <<_ACEOF | 
 | 14342 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl | 
 | 14343 | _ACEOF | 
 | 14344 |  | 
 | 14345 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14346 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
 | 14348 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14349 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14350 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14351 |   enableval=$enable_big_digits; case $enable_big_digits in | 
 | 14352 | yes) | 
 | 14353 |   enable_big_digits=30 ;; | 
 | 14354 | no) | 
 | 14355 |   enable_big_digits=15 ;; | 
 | 14356 | 15|30) | 
 | 14357 |   ;; | 
 | 14358 | *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14359 |   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] | 14360 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
 | 14362 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14363 |  | 
 | 14364 | cat >>confdefs.h <<_ACEOF | 
 | 14365 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
 | 14366 | _ACEOF | 
 | 14367 |  | 
 | 14368 |  | 
 | 14369 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14370 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 14371 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14372 | fi | 
 | 14373 |  | 
 | 14374 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14375 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14376 | 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] | 14377 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14378 |  | 
 | 14379 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14380 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14381 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14382 |   wchar_h="yes" | 
 | 14383 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14384 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14385 |   wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14386 |  | 
 | 14387 | fi | 
 | 14388 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14389 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14390 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14391 | # determine wchar_t size | 
 | 14392 | if test "$wchar_h" = yes | 
 | 14393 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14394 |   # 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] | 14395 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 14396 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 14397 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
 | 14399 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14400 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14401 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14402 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14403 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
 | 14404 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14405 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14406 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14407 |   if test "$ac_cv_type_wchar_t" = yes; then | 
 | 14408 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 14409 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14410 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14411 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14412 |    else | 
 | 14413 |      ac_cv_sizeof_wchar_t=0 | 
 | 14414 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14415 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14416 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14417 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
 | 14419 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14420 |  | 
 | 14421 |  | 
 | 14422 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14423 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14424 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14425 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14426 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14427 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14428 | fi | 
 | 14429 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
 | 14431 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14432 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14434 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14435 |  | 
 | 14436 | #include <tcl.h> | 
 | 14437 | #if TCL_UTF_MAX != 6 | 
 | 14438 | # error "NOT UCS4_TCL" | 
 | 14439 | #endif | 
 | 14440 | int | 
 | 14441 | main () | 
 | 14442 | { | 
 | 14443 |  | 
 | 14444 |   ; | 
 | 14445 |   return 0; | 
 | 14446 | } | 
 | 14447 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14448 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14449 |  | 
 | 14450 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14451 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14452 |  | 
 | 14453 |   have_ucs4_tcl=yes | 
 | 14454 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14455 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
 | 14458 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14459 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14460 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14461 | if test "$wchar_h" = yes | 
 | 14462 | then | 
 | 14463 |   # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14464 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
 | 14465 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14466 |   if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14467 |   $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14468 | else | 
 | 14469 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14470 |   if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14471 |   ac_cv_wchar_t_signed=yes | 
 | 14472 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14473 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14474 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14475 |  | 
 | 14476 |   #include <wchar.h> | 
 | 14477 |   int main() | 
 | 14478 |   { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14479 | 	/* Success: exit code 0 */ | 
 | 14480 |         exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14481 |   } | 
 | 14482 |  | 
 | 14483 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14484 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14485 |   ac_cv_wchar_t_signed=yes | 
 | 14486 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14487 |   ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14488 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14489 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14490 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14491 | fi | 
 | 14492 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14493 | fi | 
 | 14494 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14495 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
 | 14496 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14497 | fi | 
 | 14498 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14499 | # 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] | 14500 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 14501 |           -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14502 | then | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14503 |   HAVE_USABLE_WCHAR_T="yes" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14504 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14505 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14506 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14507 | else | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14508 |   HAVE_USABLE_WCHAR_T="no usable wchar_t found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14509 | fi | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 | 
 | 14511 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14512 |  | 
 | 14513 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14514 |  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
 | 14515 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14516 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14517 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14518 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14519 |   ac_cv_c_bigendian=unknown | 
 | 14520 |     # See if we're dealing with a universal compiler. | 
 | 14521 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14522 | /* end confdefs.h.  */ | 
 | 14523 | #ifndef __APPLE_CC__ | 
 | 14524 | 	       not a universal capable compiler | 
 | 14525 | 	     #endif | 
 | 14526 | 	     typedef int dummy; | 
 | 14527 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14528 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14529 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14530 |  | 
 | 14531 | 	# Check for potential -arch flags.  It is not universal unless | 
 | 14532 | 	# there are at least two -arch flags with different values. | 
 | 14533 | 	ac_arch= | 
 | 14534 | 	ac_prev= | 
 | 14535 | 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
 | 14536 | 	 if test -n "$ac_prev"; then | 
 | 14537 | 	   case $ac_word in | 
 | 14538 | 	     i?86 | x86_64 | ppc | ppc64) | 
 | 14539 | 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
 | 14540 | 		 ac_arch=$ac_word | 
 | 14541 | 	       else | 
 | 14542 | 		 ac_cv_c_bigendian=universal | 
 | 14543 | 		 break | 
 | 14544 | 	       fi | 
 | 14545 | 	       ;; | 
 | 14546 | 	   esac | 
 | 14547 | 	   ac_prev= | 
 | 14548 | 	 elif test "x$ac_word" = "x-arch"; then | 
 | 14549 | 	   ac_prev=arch | 
 | 14550 | 	 fi | 
 | 14551 |        done | 
 | 14552 | fi | 
 | 14553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14554 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 14555 |       # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 14556 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14557 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14558 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14559 | 	     #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14560 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14561 | int | 
 | 14562 | main () | 
 | 14563 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14564 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
 | 14565 | 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
 | 14566 | 		     && LITTLE_ENDIAN) | 
 | 14567 | 	      bogus endian macros | 
 | 14568 | 	     #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14569 |  | 
 | 14570 |   ; | 
 | 14571 |   return 0; | 
 | 14572 | } | 
 | 14573 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14574 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14575 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14576 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14577 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14578 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14579 | 		#include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14580 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14581 | int | 
 | 14582 | main () | 
 | 14583 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14584 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14585 | 		 not big endian | 
 | 14586 | 		#endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14587 |  | 
 | 14588 |   ; | 
 | 14589 |   return 0; | 
 | 14590 | } | 
 | 14591 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14592 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14593 |   ac_cv_c_bigendian=yes | 
 | 14594 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14595 |   ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14596 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14598 | fi | 
 | 14599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14600 |     fi | 
 | 14601 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 14602 |       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
 | 14603 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14604 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14605 | #include <limits.h> | 
 | 14606 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14607 | int | 
 | 14608 | main () | 
 | 14609 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14610 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
 | 14611 | 	      bogus endian macros | 
 | 14612 | 	     #endif | 
 | 14613 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14614 |   ; | 
 | 14615 |   return 0; | 
 | 14616 | } | 
 | 14617 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14618 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14619 |   # It does; now see whether it defined to _BIG_ENDIAN or not. | 
 | 14620 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14621 | /* end confdefs.h.  */ | 
 | 14622 | #include <limits.h> | 
 | 14623 |  | 
 | 14624 | int | 
 | 14625 | main () | 
 | 14626 | { | 
 | 14627 | #ifndef _BIG_ENDIAN | 
 | 14628 | 		 not big endian | 
 | 14629 | 		#endif | 
 | 14630 |  | 
 | 14631 |   ; | 
 | 14632 |   return 0; | 
 | 14633 | } | 
 | 14634 | _ACEOF | 
 | 14635 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14636 |   ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14637 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14638 |   ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14639 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14641 | fi | 
 | 14642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14643 |     fi | 
 | 14644 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 14645 |       # Compile a test program. | 
 | 14646 |       if test "$cross_compiling" = yes; then : | 
 | 14647 |   # Try to guess by grepping values from an object file. | 
 | 14648 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14649 | /* end confdefs.h.  */ | 
 | 14650 | short int ascii_mm[] = | 
 | 14651 | 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 14652 | 		short int ascii_ii[] = | 
 | 14653 | 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 14654 | 		int use_ascii (int i) { | 
 | 14655 | 		  return ascii_mm[i] + ascii_ii[i]; | 
 | 14656 | 		} | 
 | 14657 | 		short int ebcdic_ii[] = | 
 | 14658 | 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 14659 | 		short int ebcdic_mm[] = | 
 | 14660 | 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 14661 | 		int use_ebcdic (int i) { | 
 | 14662 | 		  return ebcdic_mm[i] + ebcdic_ii[i]; | 
 | 14663 | 		} | 
 | 14664 | 		extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14665 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14666 | int | 
 | 14667 | main () | 
 | 14668 | { | 
 | 14669 | return use_ascii (foo) == use_ebcdic (foo); | 
 | 14670 |   ; | 
 | 14671 |   return 0; | 
 | 14672 | } | 
 | 14673 | _ACEOF | 
 | 14674 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14675 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
 | 14676 | 	      ac_cv_c_bigendian=yes | 
 | 14677 | 	    fi | 
 | 14678 | 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 14679 | 	      if test "$ac_cv_c_bigendian" = unknown; then | 
 | 14680 | 		ac_cv_c_bigendian=no | 
 | 14681 | 	      else | 
 | 14682 | 		# finding both strings is unlikely to happen, but who knows? | 
 | 14683 | 		ac_cv_c_bigendian=unknown | 
 | 14684 | 	      fi | 
 | 14685 | 	    fi | 
 | 14686 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14687 | 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] | 14688 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14689 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14690 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14691 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14692 | int | 
 | 14693 | main () | 
 | 14694 | { | 
| 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 | 	     /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 14697 | 	     union | 
 | 14698 | 	     { | 
 | 14699 | 	       long int l; | 
 | 14700 | 	       char c[sizeof (long int)]; | 
 | 14701 | 	     } u; | 
 | 14702 | 	     u.l = 1; | 
 | 14703 | 	     return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14704 |  | 
 | 14705 |   ; | 
 | 14706 |   return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14707 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14708 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14709 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14710 |   ac_cv_c_bigendian=no | 
 | 14711 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14712 |   ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14713 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14714 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14715 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14716 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14717 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14718 |     fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14719 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
 | 14721 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
 | 14722 |  case $ac_cv_c_bigendian in #( | 
 | 14723 |    yes) | 
 | 14724 |      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
 | 14725 | ;; #( | 
 | 14726 |    no) | 
 | 14727 |       ;; #( | 
 | 14728 |    universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14729 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14730 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14731 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14732 |      ;; #( | 
 | 14733 |    *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14734 |      as_fn_error $? "unknown endianness | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14735 |  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14736 |  esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14737 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14738 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14739 | # ABI version string for Python extension modules.  This appears between the | 
 | 14740 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
 | 14741 | # from the following attributes which affect the ABI of this Python build (in | 
 | 14742 | # this order): | 
 | 14743 | # | 
 | 14744 | # * The Python implementation (always 'cpython-' for us) | 
 | 14745 | # * The major and minor version numbers | 
 | 14746 | # * --with-pydebug (adds a 'd') | 
 | 14747 | # * --with-pymalloc (adds a 'm') | 
 | 14748 | # * --with-wide-unicode (adds a 'u') | 
 | 14749 | # | 
 | 14750 | # 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] | 14751 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
 | 14752 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14753 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
 | 14755 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
 | 14756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
 | 14757 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
 | 14759 | $as_echo_n "checking SOABI... " >&6; } | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 14760 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
 | 14762 | $as_echo "$SOABI" >&6; } | 
 | 14763 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14764 |  | 
 | 14765 | case $ac_sys_system in | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 14766 |     Linux*|GNU*|Darwin) | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14767 | 	EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; | 
 | 14768 |     *) | 
 | 14769 | 	EXT_SUFFIX=${SHLIB_SUFFIX};; | 
 | 14770 | esac | 
 | 14771 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
 | 14773 | $as_echo_n "checking LDVERSION... " >&6; } | 
 | 14774 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
 | 14775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
 | 14776 | $as_echo "$LDVERSION" >&6; } | 
 | 14777 |  | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14778 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 14779 | if test x$PLATFORM_TRIPLET = x; then | 
 | 14780 |   LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | 
 | 14781 | else | 
 | 14782 |   LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | 
 | 14783 | fi | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14784 |  | 
 | 14785 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14786 | # Check whether right shifting a negative integer extends the sign bit | 
 | 14787 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
 | 14789 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14790 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14791 |   $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14792 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14793 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14794 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14795 |   ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14796 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14797 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14798 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14799 |  | 
 | 14800 | int main() | 
 | 14801 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14802 | 	exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14803 | } | 
 | 14804 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14805 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14806 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14807 |   ac_cv_rshift_extends_sign=yes | 
 | 14808 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14809 |   ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14810 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14811 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14812 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14813 | fi | 
 | 14814 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14815 | fi | 
 | 14816 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
 | 14818 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14819 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14820 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14821 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14822 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14823 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14824 | fi | 
 | 14825 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14826 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
 | 14828 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14829 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14830 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14831 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14832 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14834 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14835 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14836 | int | 
 | 14837 | main () | 
 | 14838 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14839 |  | 
 | 14840 | 	FILE *f = fopen("/dev/null", "r"); | 
 | 14841 | 	flockfile(f); | 
 | 14842 | 	getc_unlocked(f); | 
 | 14843 | 	funlockfile(f); | 
 | 14844 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14845 |   ; | 
 | 14846 |   return 0; | 
 | 14847 | } | 
 | 14848 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14849 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14850 |   ac_cv_have_getc_unlocked=yes | 
 | 14851 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14852 |   ac_cv_have_getc_unlocked=no | 
 | 14853 | fi | 
 | 14854 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14855 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14856 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14857 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
 | 14859 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14860 | if test "$ac_cv_have_getc_unlocked" = yes | 
 | 14861 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14862 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14863 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14864 |  | 
 | 14865 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14866 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14867 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14868 | # save the value of LIBS so we don't actually link Python with readline | 
 | 14869 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14870 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14871 | # On some systems we need to link readline to a termcap compatible | 
 | 14872 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
 | 14873 | # with setup.py. | 
 | 14874 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
 | 14876 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 14877 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14878 |   if test -z "$py_libtermcap"; then | 
 | 14879 |     READLINE_LIBS="-lreadline" | 
 | 14880 |   else | 
 | 14881 |     READLINE_LIBS="-lreadline -l$py_libtermcap" | 
 | 14882 |   fi | 
 | 14883 |   LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14884 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14885 | /* end confdefs.h.  */ | 
 | 14886 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14887 | /* Override any GCC internal prototype to avoid an error. | 
 | 14888 |    Use char because int might match the return type of a GCC | 
 | 14889 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14890 | #ifdef __cplusplus | 
 | 14891 | extern "C" | 
 | 14892 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14893 | char readline (); | 
 | 14894 | int | 
 | 14895 | main () | 
 | 14896 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14897 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14898 |   ; | 
 | 14899 |   return 0; | 
 | 14900 | } | 
 | 14901 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14902 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14903 |   py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14904 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14905 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14906 |     conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14907 |   if test $py_cv_lib_readline = yes; then | 
 | 14908 |     break | 
 | 14909 |   fi | 
 | 14910 | done | 
 | 14911 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
 | 14912 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 14913 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14914 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 14915 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14916 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14917 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
 | 14918 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14919 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14920 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14921 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14922 | fi | 
 | 14923 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14924 | # check for readline 2.1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
 | 14926 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14927 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14928 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14929 | else | 
 | 14930 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14931 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14933 | /* end confdefs.h.  */ | 
 | 14934 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14935 | /* Override any GCC internal prototype to avoid an error. | 
 | 14936 |    Use char because int might match the return type of a GCC | 
 | 14937 |    builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14938 | #ifdef __cplusplus | 
 | 14939 | extern "C" | 
 | 14940 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14941 | char rl_callback_handler_install (); | 
 | 14942 | int | 
 | 14943 | main () | 
 | 14944 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14945 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14946 |   ; | 
 | 14947 |   return 0; | 
 | 14948 | } | 
 | 14949 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14950 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14951 |   ac_cv_lib_readline_rl_callback_handler_install=yes | 
 | 14952 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14953 |   ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14954 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14955 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14956 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14957 | LIBS=$ac_check_lib_save_LIBS | 
 | 14958 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
 | 14960 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14961 | 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] | 14962 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14963 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14964 |  | 
 | 14965 | fi | 
 | 14966 |  | 
 | 14967 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14968 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14970 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14971 | #include <readline/readline.h> | 
 | 14972 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14973 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14974 |   have_readline=yes | 
 | 14975 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14976 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14977 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14978 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14979 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14980 | if test $have_readline = yes | 
 | 14981 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14982 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14983 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14984 | #include <readline/readline.h> | 
 | 14985 |  | 
 | 14986 | _ACEOF | 
 | 14987 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14988 |   $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] | 14989 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14990 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14991 |  | 
 | 14992 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14993 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14994 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14995 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14996 | /* end confdefs.h.  */ | 
 | 14997 | #include <readline/readline.h> | 
 | 14998 |  | 
 | 14999 | _ACEOF | 
 | 15000 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15001 |   $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15002 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15003 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15004 |  | 
 | 15005 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15006 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15007 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15008 | fi | 
 | 15009 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15010 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
 | 15012 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15013 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15014 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15015 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15016 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15017 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15019 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15021 | /* Override any GCC internal prototype to avoid an error. | 
 | 15022 |    Use char because int might match the return type of a GCC | 
 | 15023 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 | #ifdef __cplusplus | 
 | 15025 | extern "C" | 
 | 15026 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15027 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15028 | int | 
 | 15029 | main () | 
 | 15030 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15031 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15032 |   ; | 
 | 15033 |   return 0; | 
 | 15034 | } | 
 | 15035 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15036 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15037 |   ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15038 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15039 |   ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15040 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15041 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15042 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15043 | LIBS=$ac_check_lib_save_LIBS | 
 | 15044 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
 | 15046 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15047 | 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] | 15048 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15049 | $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] | 15050 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15051 | fi | 
 | 15052 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15053 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15054 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
 | 15056 | $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] | 15057 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15058 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15059 | else | 
 | 15060 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15061 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15063 | /* end confdefs.h.  */ | 
 | 15064 |  | 
 | 15065 | /* Override any GCC internal prototype to avoid an error. | 
 | 15066 |    Use char because int might match the return type of a GCC | 
 | 15067 |    builtin and then its argument prototype would still apply.  */ | 
 | 15068 | #ifdef __cplusplus | 
 | 15069 | extern "C" | 
 | 15070 | #endif | 
 | 15071 | char rl_completion_display_matches_hook (); | 
 | 15072 | int | 
 | 15073 | main () | 
 | 15074 | { | 
 | 15075 | return rl_completion_display_matches_hook (); | 
 | 15076 |   ; | 
 | 15077 |   return 0; | 
 | 15078 | } | 
 | 15079 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15080 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15081 |   ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
 | 15082 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15083 |   ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15084 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15085 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15086 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15087 | LIBS=$ac_check_lib_save_LIBS | 
 | 15088 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
 | 15090 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15091 | 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] | 15092 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15093 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15094 |  | 
 | 15095 | fi | 
 | 15096 |  | 
 | 15097 |  | 
| Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15098 | # also in 4.0, but not in editline | 
 | 15099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | 
 | 15100 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | 
 | 15101 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | 
 | 15102 |   $as_echo_n "(cached) " >&6 | 
 | 15103 | else | 
 | 15104 |   ac_check_lib_save_LIBS=$LIBS | 
 | 15105 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
 | 15106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15107 | /* end confdefs.h.  */ | 
 | 15108 |  | 
 | 15109 | /* Override any GCC internal prototype to avoid an error. | 
 | 15110 |    Use char because int might match the return type of a GCC | 
 | 15111 |    builtin and then its argument prototype would still apply.  */ | 
 | 15112 | #ifdef __cplusplus | 
 | 15113 | extern "C" | 
 | 15114 | #endif | 
 | 15115 | char rl_resize_terminal (); | 
 | 15116 | int | 
 | 15117 | main () | 
 | 15118 | { | 
 | 15119 | return rl_resize_terminal (); | 
 | 15120 |   ; | 
 | 15121 |   return 0; | 
 | 15122 | } | 
 | 15123 | _ACEOF | 
 | 15124 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 15125 |   ac_cv_lib_readline_rl_resize_terminal=yes | 
 | 15126 | else | 
 | 15127 |   ac_cv_lib_readline_rl_resize_terminal=no | 
 | 15128 | fi | 
 | 15129 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15130 |     conftest$ac_exeext conftest.$ac_ext | 
 | 15131 | LIBS=$ac_check_lib_save_LIBS | 
 | 15132 | fi | 
 | 15133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | 
 | 15134 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | 
 | 15135 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | 
 | 15136 |  | 
 | 15137 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | 
 | 15138 |  | 
 | 15139 | fi | 
 | 15140 |  | 
 | 15141 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15142 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
 | 15144 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15145 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15146 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15147 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15148 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15149 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15151 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15152 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15153 | /* Override any GCC internal prototype to avoid an error. | 
 | 15154 |    Use char because int might match the return type of a GCC | 
 | 15155 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15156 | #ifdef __cplusplus | 
 | 15157 | extern "C" | 
 | 15158 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15159 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15160 | int | 
 | 15161 | main () | 
 | 15162 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15163 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15164 |   ; | 
 | 15165 |   return 0; | 
 | 15166 | } | 
 | 15167 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15168 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 |   ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15170 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15171 |   ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15172 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15173 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15174 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15175 | LIBS=$ac_check_lib_save_LIBS | 
 | 15176 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
 | 15178 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15179 | 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] | 15180 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15181 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15182 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15183 | fi | 
 | 15184 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15185 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15186 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15188 | /* end confdefs.h.  */ | 
 | 15189 | #include <readline/readline.h> | 
 | 15190 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15191 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15192 |   have_readline=yes | 
 | 15193 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15194 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15195 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15196 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15197 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15198 | if test $have_readline = yes | 
 | 15199 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15200 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15201 | /* end confdefs.h.  */ | 
 | 15202 | #include <readline/readline.h> | 
 | 15203 |  | 
 | 15204 | _ACEOF | 
 | 15205 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15206 |   $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15207 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15208 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15209 |  | 
 | 15210 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15211 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15212 |  | 
 | 15213 | fi | 
 | 15214 |  | 
| Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 | 
 | 15216 | $as_echo_n "checking for append_history in -lreadline... " >&6; } | 
 | 15217 | if ${ac_cv_lib_readline_append_history+:} false; then : | 
 | 15218 |   $as_echo_n "(cached) " >&6 | 
 | 15219 | else | 
 | 15220 |   ac_check_lib_save_LIBS=$LIBS | 
 | 15221 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
 | 15222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15223 | /* end confdefs.h.  */ | 
 | 15224 |  | 
 | 15225 | /* Override any GCC internal prototype to avoid an error. | 
 | 15226 |    Use char because int might match the return type of a GCC | 
 | 15227 |    builtin and then its argument prototype would still apply.  */ | 
 | 15228 | #ifdef __cplusplus | 
 | 15229 | extern "C" | 
 | 15230 | #endif | 
 | 15231 | char append_history (); | 
 | 15232 | int | 
 | 15233 | main () | 
 | 15234 | { | 
 | 15235 | return append_history (); | 
 | 15236 |   ; | 
 | 15237 |   return 0; | 
 | 15238 | } | 
 | 15239 | _ACEOF | 
 | 15240 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 15241 |   ac_cv_lib_readline_append_history=yes | 
 | 15242 | else | 
 | 15243 |   ac_cv_lib_readline_append_history=no | 
 | 15244 | fi | 
 | 15245 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15246 |     conftest$ac_exeext conftest.$ac_ext | 
 | 15247 | LIBS=$ac_check_lib_save_LIBS | 
 | 15248 | fi | 
 | 15249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 | 
 | 15250 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } | 
 | 15251 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : | 
 | 15252 |  | 
 | 15253 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h | 
 | 15254 |  | 
 | 15255 | fi | 
 | 15256 |  | 
 | 15257 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15258 | # End of readline checks: restore LIBS | 
 | 15259 | LIBS=$LIBS_no_readline | 
 | 15260 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
 | 15262 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15263 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15264 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15265 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15266 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15267 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15268 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15269 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15270 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15271 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15272 |  | 
 | 15273 | int main() | 
 | 15274 | { | 
 | 15275 | 	int val1 = nice(1); | 
 | 15276 | 	if (val1 != -1 && val1 == nice(2)) | 
 | 15277 | 		exit(0); | 
 | 15278 | 	exit(1); | 
 | 15279 | } | 
 | 15280 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15281 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15282 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15283 |   ac_cv_broken_nice=yes | 
 | 15284 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15285 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15286 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15287 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15288 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15289 | fi | 
 | 15290 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15291 | fi | 
 | 15292 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
 | 15294 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15295 | if test "$ac_cv_broken_nice" = yes | 
 | 15296 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15297 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15298 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15299 |  | 
 | 15300 | fi | 
 | 15301 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
 | 15303 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15304 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15305 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15306 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15307 |   if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15308 |   ac_cv_broken_poll=no | 
 | 15309 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15310 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15311 | /* end confdefs.h.  */ | 
 | 15312 |  | 
 | 15313 | #include <poll.h> | 
 | 15314 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15315 | int main() | 
 | 15316 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15317 |     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15318 |     int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15319 |  | 
 | 15320 |     close (42); | 
 | 15321 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15322 |     poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15323 |     if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15324 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15325 |     else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15326 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15327 |     else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15328 |         return 1; | 
 | 15329 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15330 |  | 
 | 15331 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15332 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15333 |   ac_cv_broken_poll=yes | 
 | 15334 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15335 |   ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15336 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15337 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15338 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15339 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15340 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15341 | fi | 
 | 15342 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
 | 15344 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15345 | if test "$ac_cv_broken_poll" = yes | 
 | 15346 | then | 
 | 15347 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15348 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15349 |  | 
 | 15350 | fi | 
 | 15351 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15352 | # 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] | 15353 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
 | 15354 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15355 | 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] | 15356 | #include <$ac_cv_struct_tm> | 
 | 15357 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15358 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15359 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15360 |  | 
 | 15361 | cat >>confdefs.h <<_ACEOF | 
 | 15362 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 15363 | _ACEOF | 
 | 15364 |  | 
 | 15365 |  | 
 | 15366 | fi | 
 | 15367 |  | 
 | 15368 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 15369 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15370 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15371 |  | 
 | 15372 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15373 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 15374 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15375 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15376 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15377 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15378 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15379 | fi | 
 | 15380 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15381 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15382 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15383 | _ACEOF | 
 | 15384 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15385 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 15386 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15387 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15388 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15389 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15390 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15391 | /* end confdefs.h.  */ | 
 | 15392 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15393 | #if !HAVE_DECL_TZNAME | 
 | 15394 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15395 | #endif | 
 | 15396 |  | 
 | 15397 | int | 
 | 15398 | main () | 
 | 15399 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15400 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15401 |   ; | 
 | 15402 |   return 0; | 
 | 15403 | } | 
 | 15404 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15405 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15406 |   ac_cv_var_tzname=yes | 
 | 15407 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15408 |   ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15409 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15410 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15411 |     conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15412 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 15414 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15415 |   if test $ac_cv_var_tzname = yes; then | 
 | 15416 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15417 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15418 |  | 
 | 15419 |   fi | 
 | 15420 | fi | 
 | 15421 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15422 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15423 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
 | 15425 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15426 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15427 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15428 | else | 
 | 15429 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15430 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15431 |   ac_cv_working_tzset=no | 
 | 15432 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15433 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15434 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15435 |  | 
 | 15436 | #include <stdlib.h> | 
 | 15437 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15438 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15439 |  | 
 | 15440 | #if HAVE_TZNAME | 
 | 15441 | extern char *tzname[]; | 
 | 15442 | #endif | 
 | 15443 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15444 | int main() | 
 | 15445 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15446 | 	/* Note that we need to ensure that not only does tzset(3) | 
 | 15447 | 	   do 'something' with localtime, but it works as documented | 
 | 15448 | 	   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] | 15449 | 	   This includes making sure that tzname is set properly if | 
 | 15450 | 	   tm->tm_zone does not exist since it is the alternative way | 
 | 15451 | 	   of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15452 |  | 
 | 15453 | 	   Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15454 | 	   after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15455 | 	*/ | 
 | 15456 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15457 | 	time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15458 | 	time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
 | 15459 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15460 | 	putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15461 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15462 | 	if (localtime(&groundhogday)->tm_hour != 0) | 
 | 15463 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15464 | #if HAVE_TZNAME | 
 | 15465 | 	/* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
 | 15466 | 	if (strcmp(tzname[0], "UTC") || | 
 | 15467 | 		(tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
 | 15468 | 	    exit(1); | 
 | 15469 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15470 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15471 | 	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15472 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15473 | 	if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15474 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15475 | #if HAVE_TZNAME | 
 | 15476 | 	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
 | 15477 | 	    exit(1); | 
 | 15478 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15479 |  | 
 | 15480 | 	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
 | 15481 | 	tzset(); | 
 | 15482 | 	if (localtime(&groundhogday)->tm_hour != 11) | 
 | 15483 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15484 | #if HAVE_TZNAME | 
 | 15485 | 	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
 | 15486 | 	    exit(1); | 
 | 15487 | #endif | 
 | 15488 |  | 
 | 15489 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15490 | 	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
 | 15491 | 	    exit(1); | 
 | 15492 | 	if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
 | 15493 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15494 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15495 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15496 | 	exit(0); | 
 | 15497 | } | 
 | 15498 |  | 
 | 15499 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15500 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15501 |   ac_cv_working_tzset=yes | 
 | 15502 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15503 |   ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15504 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15505 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15506 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15507 | fi | 
 | 15508 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15509 | fi | 
 | 15510 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
 | 15512 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15513 | if test "$ac_cv_working_tzset" = yes | 
 | 15514 | then | 
 | 15515 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15516 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15517 |  | 
 | 15518 | fi | 
 | 15519 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15520 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
 | 15522 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15523 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15524 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15525 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15526 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15527 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15528 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15529 | int | 
 | 15530 | main () | 
 | 15531 | { | 
 | 15532 |  | 
 | 15533 | struct stat st; | 
 | 15534 | st.st_mtim.tv_nsec = 1; | 
 | 15535 |  | 
 | 15536 |   ; | 
 | 15537 |   return 0; | 
 | 15538 | } | 
 | 15539 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15540 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15541 |   ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15542 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15543 |   ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15544 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15546 | fi | 
 | 15547 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
 | 15549 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15550 | if test "$ac_cv_stat_tv_nsec" = yes | 
 | 15551 | then | 
 | 15552 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15553 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15554 |  | 
 | 15555 | fi | 
 | 15556 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15557 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
 | 15559 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15560 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15561 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15562 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15563 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15564 | /* end confdefs.h.  */ | 
 | 15565 | #include <sys/stat.h> | 
 | 15566 | int | 
 | 15567 | main () | 
 | 15568 | { | 
 | 15569 |  | 
 | 15570 | struct stat st; | 
 | 15571 | st.st_mtimespec.tv_nsec = 1; | 
 | 15572 |  | 
 | 15573 |   ; | 
 | 15574 |   return 0; | 
 | 15575 | } | 
 | 15576 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15577 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15578 |   ac_cv_stat_tv_nsec2=yes | 
 | 15579 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15580 |   ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15581 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15583 | fi | 
 | 15584 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
 | 15586 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15587 | if test "$ac_cv_stat_tv_nsec2" = yes | 
 | 15588 | then | 
 | 15589 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15590 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15591 |  | 
 | 15592 | fi | 
 | 15593 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15594 | # first curses header check | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15595 | ac_save_cppflags="$CPPFLAGS" | 
 | 15596 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15597 |  | 
 | 15598 | for ac_header in curses.h ncurses.h | 
 | 15599 | do : | 
 | 15600 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 15601 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
 | 15602 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
 | 15603 |   cat >>confdefs.h <<_ACEOF | 
 | 15604 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 15605 | _ACEOF | 
 | 15606 |  | 
 | 15607 | fi | 
 | 15608 |  | 
 | 15609 | done | 
 | 15610 |  | 
 | 15611 |  | 
 | 15612 | # On Solaris, term.h requires curses.h | 
 | 15613 | for ac_header in term.h | 
 | 15614 | do : | 
 | 15615 |   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
 | 15616 | #ifdef HAVE_CURSES_H | 
 | 15617 | #include <curses.h> | 
 | 15618 | #endif | 
 | 15619 |  | 
 | 15620 | " | 
 | 15621 | if test "x$ac_cv_header_term_h" = xyes; then : | 
 | 15622 |   cat >>confdefs.h <<_ACEOF | 
 | 15623 | #define HAVE_TERM_H 1 | 
 | 15624 | _ACEOF | 
 | 15625 |  | 
 | 15626 | fi | 
 | 15627 |  | 
 | 15628 | done | 
 | 15629 |  | 
 | 15630 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15631 | # 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] | 15632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
 | 15633 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15634 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15635 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15636 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15637 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15638 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15639 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15640 | int | 
 | 15641 | main () | 
 | 15642 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15643 |  | 
 | 15644 |   int rtn; | 
 | 15645 |   rtn = mvwdelch(0,0,0); | 
 | 15646 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15647 |   ; | 
 | 15648 |   return 0; | 
 | 15649 | } | 
 | 15650 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15651 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15652 |   ac_cv_mvwdelch_is_expression=yes | 
 | 15653 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15654 |   ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15655 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15657 | fi | 
 | 15658 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
 | 15660 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15661 |  | 
 | 15662 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
 | 15663 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15664 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15665 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15666 |  | 
 | 15667 | fi | 
 | 15668 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
 | 15670 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15671 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15672 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15673 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15674 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15675 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15676 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15677 | int | 
 | 15678 | main () | 
 | 15679 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15680 |  | 
 | 15681 |   WINDOW *w; | 
 | 15682 |   w->_flags = 0; | 
 | 15683 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15684 |   ; | 
 | 15685 |   return 0; | 
 | 15686 | } | 
 | 15687 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15688 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15689 |   ac_cv_window_has_flags=yes | 
 | 15690 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15691 |   ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15692 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15694 | fi | 
 | 15695 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
 | 15697 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15698 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15699 |  | 
 | 15700 | if test "$ac_cv_window_has_flags" = yes | 
 | 15701 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15702 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15703 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15704 |  | 
 | 15705 | fi | 
 | 15706 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
 | 15708 | $as_echo_n "checking for is_term_resized... " >&6; } | 
 | 15709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15710 | /* end confdefs.h.  */ | 
 | 15711 | #include <curses.h> | 
 | 15712 | int | 
 | 15713 | main () | 
 | 15714 | { | 
 | 15715 | void *x=is_term_resized | 
 | 15716 |   ; | 
 | 15717 |   return 0; | 
 | 15718 | } | 
 | 15719 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15720 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15721 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15722 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15723 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15724 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15725 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15726 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15727 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15728 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15729 |  | 
 | 15730 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15732 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
 | 15734 | $as_echo_n "checking for resize_term... " >&6; } | 
 | 15735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15736 | /* end confdefs.h.  */ | 
 | 15737 | #include <curses.h> | 
 | 15738 | int | 
 | 15739 | main () | 
 | 15740 | { | 
 | 15741 | void *x=resize_term | 
 | 15742 |   ; | 
 | 15743 |   return 0; | 
 | 15744 | } | 
 | 15745 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15746 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15747 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15748 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15749 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15750 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15751 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15752 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15753 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15754 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15755 |  | 
 | 15756 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15758 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
 | 15760 | $as_echo_n "checking for resizeterm... " >&6; } | 
 | 15761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15762 | /* end confdefs.h.  */ | 
 | 15763 | #include <curses.h> | 
 | 15764 | int | 
 | 15765 | main () | 
 | 15766 | { | 
 | 15767 | void *x=resizeterm | 
 | 15768 |   ; | 
 | 15769 |   return 0; | 
 | 15770 | } | 
 | 15771 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15772 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15773 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15774 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15775 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15776 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15777 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15778 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15779 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15780 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15781 |  | 
 | 15782 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15784 | # last curses configure check | 
 | 15785 | CPPFLAGS=$ac_save_cppflags | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15786 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
 | 15788 | $as_echo "$as_me: checking for device files" >&6;} | 
 | 15789 |  | 
 | 15790 | if test "x$cross_compiling" = xyes; then | 
 | 15791 |   if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
 | 15792 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 15793 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
 | 15794 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 15795 | $as_echo "not set" >&6; } | 
 | 15796 |     as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 15797 |   fi | 
 | 15798 |   if test "${ac_cv_file__dev_ptc+set}" != set; then | 
 | 15799 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 15800 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
 | 15801 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 15802 | $as_echo "not set" >&6; } | 
 | 15803 |     as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 15804 |   fi | 
 | 15805 | fi | 
 | 15806 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 15808 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15809 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
 | 15810 |   $as_echo_n "(cached) " >&6 | 
 | 15811 | else | 
 | 15812 |   test "$cross_compiling" = yes && | 
 | 15813 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 15814 | if test -r "/dev/ptmx"; then | 
 | 15815 |   ac_cv_file__dev_ptmx=yes | 
 | 15816 | else | 
 | 15817 |   ac_cv_file__dev_ptmx=no | 
 | 15818 | fi | 
 | 15819 | fi | 
 | 15820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
 | 15821 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
 | 15822 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15823 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15824 | fi | 
 | 15825 |  | 
 | 15826 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15827 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15828 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15829 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15830 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 15832 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15833 | if ${ac_cv_file__dev_ptc+:} false; then : | 
 | 15834 |   $as_echo_n "(cached) " >&6 | 
 | 15835 | else | 
 | 15836 |   test "$cross_compiling" = yes && | 
 | 15837 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 15838 | if test -r "/dev/ptc"; then | 
 | 15839 |   ac_cv_file__dev_ptc=yes | 
 | 15840 | else | 
 | 15841 |   ac_cv_file__dev_ptc=no | 
 | 15842 | fi | 
 | 15843 | fi | 
 | 15844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
 | 15845 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
 | 15846 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15847 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15848 | fi | 
 | 15849 |  | 
 | 15850 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15851 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15852 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15853 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15854 | fi | 
 | 15855 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15856 | if test "$have_long_long" = yes | 
 | 15857 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15858 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
 | 15859 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15860 |   if ${ac_cv_have_long_long_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15861 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15862 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15863 |   if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 15864 |   ac_cv_have_long_long_format="cross -- assuming no" | 
 | 15865 |    if test x$GCC = xyes; then | 
 | 15866 |     save_CFLAGS=$CFLAGS | 
 | 15867 |     CFLAGS="$CFLAGS -Werror -Wformat" | 
 | 15868 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15869 | /* end confdefs.h.  */ | 
 | 15870 |  | 
 | 15871 |         #include <stdio.h> | 
 | 15872 |         #include <stddef.h> | 
 | 15873 |  | 
 | 15874 | int | 
 | 15875 | main () | 
 | 15876 | { | 
 | 15877 |  | 
 | 15878 |       char *buffer; | 
 | 15879 |       sprintf(buffer, "%lld", (long long)123); | 
 | 15880 |       sprintf(buffer, "%lld", (long long)-123); | 
 | 15881 |       sprintf(buffer, "%llu", (unsigned long long)123); | 
 | 15882 |  | 
 | 15883 |   ; | 
 | 15884 |   return 0; | 
 | 15885 | } | 
 | 15886 | _ACEOF | 
 | 15887 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 15888 |   ac_cv_have_long_long_format=yes | 
 | 15889 |  | 
 | 15890 | fi | 
 | 15891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15892 |     CFLAGS=$save_CFLAGS | 
 | 15893 |    fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15894 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15895 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15896 | /* end confdefs.h.  */ | 
 | 15897 |  | 
 | 15898 |   #include <stdio.h> | 
 | 15899 |   #include <stddef.h> | 
 | 15900 |   #include <string.h> | 
 | 15901 |  | 
 | 15902 |   #ifdef HAVE_SYS_TYPES_H | 
 | 15903 |   #include <sys/types.h> | 
 | 15904 |   #endif | 
 | 15905 |  | 
 | 15906 |   int main() | 
 | 15907 |   { | 
 | 15908 |       char buffer[256]; | 
 | 15909 |  | 
 | 15910 |       if (sprintf(buffer, "%lld", (long long)123) < 0) | 
 | 15911 |           return 1; | 
 | 15912 |       if (strcmp(buffer, "123")) | 
 | 15913 |           return 1; | 
 | 15914 |  | 
 | 15915 |       if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
 | 15916 |           return 1; | 
 | 15917 |       if (strcmp(buffer, "-123")) | 
 | 15918 |           return 1; | 
 | 15919 |  | 
 | 15920 |       if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
 | 15921 |           return 1; | 
 | 15922 |       if (strcmp(buffer, "123")) | 
 | 15923 |           return 1; | 
 | 15924 |  | 
 | 15925 |       return 0; | 
 | 15926 |   } | 
 | 15927 |  | 
 | 15928 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15929 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15930 |   ac_cv_have_long_long_format=yes | 
 | 15931 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15932 |   ac_cv_have_long_long_format=no | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15933 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15934 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15935 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15936 | fi | 
 | 15937 |  | 
 | 15938 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15939 | fi | 
 | 15940 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15941 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
 | 15942 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15943 | fi | 
 | 15944 |  | 
| Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 15945 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15946 | then | 
 | 15947 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15948 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15949 |  | 
 | 15950 | fi | 
 | 15951 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 15952 | if test $ac_sys_system = Darwin | 
 | 15953 | then | 
 | 15954 | 	LIBS="$LIBS -framework CoreFoundation" | 
 | 15955 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15956 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
 | 15958 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15959 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15960 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15961 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15962 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15963 |   ac_cv_have_size_t_format="cross -- assuming yes" | 
 | 15964 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15965 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15966 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15967 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15968 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15969 | #include <stdio.h> | 
 | 15970 | #include <stddef.h> | 
 | 15971 | #include <string.h> | 
 | 15972 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15973 | #ifdef HAVE_SYS_TYPES_H | 
 | 15974 | #include <sys/types.h> | 
 | 15975 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15976 |  | 
 | 15977 | #ifdef HAVE_SSIZE_T | 
 | 15978 | typedef ssize_t Py_ssize_t; | 
 | 15979 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
 | 15980 | typedef long Py_ssize_t; | 
 | 15981 | #else | 
 | 15982 | typedef int Py_ssize_t; | 
 | 15983 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15984 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15985 | int main() | 
 | 15986 | { | 
 | 15987 |     char buffer[256]; | 
 | 15988 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15989 |     if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
 | 15990 |        	return 1; | 
 | 15991 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15992 |     if (strcmp(buffer, "123")) | 
 | 15993 | 	return 1; | 
 | 15994 |  | 
 | 15995 |     if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
 | 15996 |        	return 1; | 
 | 15997 |  | 
 | 15998 |     if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15999 | 	return 1; | 
 | 16000 |  | 
 | 16001 |     return 0; | 
 | 16002 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16003 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16004 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16005 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16006 |   ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16007 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16008 |   ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16009 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16010 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16011 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 16012 | fi | 
 | 16013 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16014 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
 | 16016 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16017 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16018 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16019 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16020 |  | 
 | 16021 | fi | 
 | 16022 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16023 | 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] | 16024 | #ifdef HAVE_SYS_TYPES_H | 
 | 16025 | #include <sys/types.h> | 
 | 16026 | #endif | 
 | 16027 | #ifdef HAVE_SYS_SOCKET_H | 
 | 16028 | #include <sys/socket.h> | 
 | 16029 | #endif | 
 | 16030 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16031 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16032 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16033 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16034 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16035 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16036 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16037 |  | 
 | 16038 | fi | 
 | 16039 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16040 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
 | 16042 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16043 | if ${ac_cv_broken_mbstowcs+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16044 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16045 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16046 |   if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16047 |   ac_cv_broken_mbstowcs=no | 
 | 16048 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16049 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16050 | /* end confdefs.h.  */ | 
 | 16051 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 16052 | #include <stdio.h> | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16053 | #include<stdlib.h> | 
 | 16054 | int main() { | 
 | 16055 |     size_t len = -1; | 
 | 16056 |     const char *str = "text"; | 
 | 16057 |     len = mbstowcs(NULL, str, 0); | 
 | 16058 |     return (len != 4); | 
 | 16059 | } | 
 | 16060 |  | 
 | 16061 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16062 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16063 |   ac_cv_broken_mbstowcs=no | 
 | 16064 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16065 |   ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16066 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16067 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16068 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16069 | fi | 
 | 16070 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16071 | fi | 
 | 16072 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
 | 16074 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16075 | if test "$ac_cv_broken_mbstowcs" = yes | 
 | 16076 | then | 
 | 16077 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16078 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16079 |  | 
 | 16080 | fi | 
 | 16081 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16082 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
 | 16084 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16085 |  | 
 | 16086 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16087 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16088 |   withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16089 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16090 | then | 
 | 16091 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16092 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16093 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16094 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 16095 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16096 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16097 | if test "$withval" = no | 
 | 16098 | then | 
 | 16099 |  | 
 | 16100 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
 | 16101 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16102 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 16103 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16104 | fi | 
 | 16105 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16106 | else | 
 | 16107 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 16108 | $as_echo "no value specified" >&6; } | 
 | 16109 | fi | 
 | 16110 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16111 |  | 
| Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
 | 16113 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
 | 16114 | if ${ac_cv_computed_gotos+:} false; then : | 
 | 16115 |   $as_echo_n "(cached) " >&6 | 
 | 16116 | else | 
 | 16117 |   if test "$cross_compiling" = yes; then : | 
 | 16118 |   if test "${with_computed_gotos+set}" = set; then | 
 | 16119 |    ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | 
 | 16120 |  else | 
 | 16121 |    ac_cv_computed_gotos=no | 
 | 16122 |  fi | 
 | 16123 | else | 
 | 16124 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16125 | /* end confdefs.h.  */ | 
 | 16126 |  | 
 | 16127 | int main(int argc, char **argv) | 
 | 16128 | { | 
 | 16129 |     static void *targets[1] = { &&LABEL1 }; | 
 | 16130 |     goto LABEL2; | 
 | 16131 | LABEL1: | 
 | 16132 |     return 0; | 
 | 16133 | LABEL2: | 
 | 16134 |     goto *targets[0]; | 
 | 16135 |     return 1; | 
 | 16136 | } | 
 | 16137 |  | 
 | 16138 | _ACEOF | 
 | 16139 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 16140 |   ac_cv_computed_gotos=yes | 
 | 16141 | else | 
 | 16142 |   ac_cv_computed_gotos=no | 
 | 16143 | fi | 
 | 16144 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16145 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 16146 | fi | 
 | 16147 |  | 
 | 16148 | fi | 
 | 16149 |  | 
 | 16150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
 | 16151 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
 | 16152 | case "$ac_cv_computed_gotos" in yes*) | 
 | 16153 |  | 
 | 16154 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
 | 16155 |  | 
 | 16156 | esac | 
 | 16157 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 16158 | case $ac_sys_system in | 
 | 16159 | AIX*) | 
 | 16160 |  | 
 | 16161 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
 | 16162 |  ;; | 
 | 16163 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16164 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16165 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 16166 |  | 
 | 16167 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16168 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
 | 16169 | do | 
 | 16170 |   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
 | 16171 | done | 
 | 16172 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16173 |  | 
| Ned Deily | 0db50cf | 2014-07-25 12:41:31 -0700 | [diff] [blame] | 16174 | SRCDIRS="Parser Grammar Objects Python Modules Mac Programs" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
 | 16176 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16177 | for dir in $SRCDIRS; do | 
 | 16178 |     if test ! -d $dir; then | 
 | 16179 |         mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16180 |     fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16181 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
 | 16183 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16184 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16185 | # Availability of -O2: | 
 | 16186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | 
 | 16187 | $as_echo_n "checking for -O2... " >&6; } | 
 | 16188 | saved_cflags="$CFLAGS" | 
 | 16189 | CFLAGS="-O2" | 
 | 16190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16191 | /* end confdefs.h.  */ | 
 | 16192 |  | 
 | 16193 | int | 
 | 16194 | main () | 
 | 16195 | { | 
 | 16196 |  | 
 | 16197 |  | 
 | 16198 |   ; | 
 | 16199 |   return 0; | 
 | 16200 | } | 
 | 16201 | _ACEOF | 
 | 16202 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 16203 |   have_O2=yes | 
 | 16204 | else | 
 | 16205 |   have_O2=no | 
 | 16206 | fi | 
 | 16207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 16208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | 
 | 16209 | $as_echo "$have_O2" >&6; } | 
 | 16210 | CFLAGS="$saved_cflags" | 
 | 16211 |  | 
 | 16212 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | 
 | 16213 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | 
 | 16214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | 
 | 16215 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | 
 | 16216 | saved_cflags="$CFLAGS" | 
 | 16217 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | 
 | 16218 | if test "$have_O2" = no; then | 
 | 16219 |     CFLAGS="" | 
 | 16220 | fi | 
 | 16221 | if test "$cross_compiling" = yes; then : | 
 | 16222 |   have_glibc_memmove_bug=undefined | 
 | 16223 | else | 
 | 16224 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16225 | /* end confdefs.h.  */ | 
 | 16226 |  | 
 | 16227 | #include <stdio.h> | 
 | 16228 | #include <stdlib.h> | 
 | 16229 | #include <string.h> | 
 | 16230 | void foo(void *p, void *q) { memmove(p, q, 19); } | 
 | 16231 | int main() { | 
 | 16232 |   char a[32] = "123456789000000000"; | 
 | 16233 |   foo(&a[9], a); | 
 | 16234 |   if (strcmp(a, "123456789123456789000000000") != 0) | 
 | 16235 |     return 1; | 
 | 16236 |   foo(a, &a[9]); | 
 | 16237 |   if (strcmp(a, "123456789000000000") != 0) | 
 | 16238 |     return 1; | 
 | 16239 |   return 0; | 
 | 16240 | } | 
 | 16241 |  | 
 | 16242 | _ACEOF | 
 | 16243 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 16244 |   have_glibc_memmove_bug=no | 
 | 16245 | else | 
 | 16246 |   have_glibc_memmove_bug=yes | 
 | 16247 | fi | 
 | 16248 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16249 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 16250 | fi | 
 | 16251 |  | 
 | 16252 | CFLAGS="$saved_cflags" | 
 | 16253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | 
 | 16254 | $as_echo "$have_glibc_memmove_bug" >&6; } | 
 | 16255 | if test "$have_glibc_memmove_bug" = yes; then | 
 | 16256 |  | 
 | 16257 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | 
 | 16258 |  | 
 | 16259 | fi | 
 | 16260 |  | 
 | 16261 | if test "$have_gcc_asm_for_x87" = yes; then | 
 | 16262 |     # Some versions of gcc miscompile inline asm: | 
 | 16263 |     # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | 
 | 16264 |     # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | 
 | 16265 |     case $CC in | 
 | 16266 |         *gcc*) | 
 | 16267 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | 
 | 16268 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | 
 | 16269 |             saved_cflags="$CFLAGS" | 
 | 16270 |             CFLAGS="-O2" | 
 | 16271 |             if test "$cross_compiling" = yes; then : | 
 | 16272 |   have_ipa_pure_const_bug=undefined | 
 | 16273 | else | 
 | 16274 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16275 | /* end confdefs.h.  */ | 
 | 16276 |  | 
 | 16277 |             __attribute__((noinline)) int | 
 | 16278 |             foo(int *p) { | 
 | 16279 |               int r; | 
 | 16280 |               asm ( "movl \$6, (%1)\n\t" | 
 | 16281 |                     "xorl %0, %0\n\t" | 
 | 16282 |                     : "=r" (r) : "r" (p) : "memory" | 
 | 16283 |               ); | 
 | 16284 |               return r; | 
 | 16285 |             } | 
 | 16286 |             int main() { | 
 | 16287 |               int p = 8; | 
 | 16288 |               if ((foo(&p) ? : p) != 6) | 
 | 16289 |                 return 1; | 
 | 16290 |               return 0; | 
 | 16291 |             } | 
 | 16292 |  | 
 | 16293 | _ACEOF | 
 | 16294 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 16295 |   have_ipa_pure_const_bug=no | 
 | 16296 | else | 
 | 16297 |   have_ipa_pure_const_bug=yes | 
 | 16298 | fi | 
 | 16299 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16300 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 16301 | fi | 
 | 16302 |  | 
 | 16303 |             CFLAGS="$saved_cflags" | 
 | 16304 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | 
 | 16305 | $as_echo "$have_ipa_pure_const_bug" >&6; } | 
 | 16306 |             if test "$have_ipa_pure_const_bug" = yes; then | 
 | 16307 |  | 
 | 16308 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | 
 | 16309 |  | 
 | 16310 |             fi | 
 | 16311 |         ;; | 
 | 16312 |     esac | 
 | 16313 | fi | 
 | 16314 |  | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16315 | # Check for stdatomic.h | 
 | 16316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 | 
 | 16317 | $as_echo_n "checking for stdatomic.h... " >&6; } | 
 | 16318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16319 | /* end confdefs.h.  */ | 
 | 16320 |  | 
 | 16321 |  | 
 | 16322 |     #include <stdatomic.h> | 
| Victor Stinner | 923e06f | 2015-01-14 16:01:46 +0100 | [diff] [blame] | 16323 |     atomic_int value = ATOMIC_VAR_INIT(1); | 
 | 16324 |     _Atomic void *py_atomic_address = (void*) &value; | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16325 |     int main() { | 
 | 16326 |       int loaded_value = atomic_load(&value); | 
 | 16327 |       return 0; | 
 | 16328 |     } | 
 | 16329 |  | 
 | 16330 |  | 
 | 16331 | _ACEOF | 
 | 16332 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16333 |   have_stdatomic_h=yes | 
 | 16334 | else | 
 | 16335 |   have_stdatomic_h=no | 
 | 16336 | fi | 
 | 16337 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16338 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16339 |  | 
 | 16340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 | 
 | 16341 | $as_echo "$have_stdatomic_h" >&6; } | 
 | 16342 |  | 
 | 16343 | if test "$have_stdatomic_h" = yes; then | 
 | 16344 |  | 
 | 16345 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h | 
 | 16346 |  | 
 | 16347 | fi | 
 | 16348 |  | 
 | 16349 | # Check for GCC >= 4.7 __atomic builtins | 
 | 16350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 | 
 | 16351 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } | 
 | 16352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16353 | /* end confdefs.h.  */ | 
 | 16354 |  | 
 | 16355 |  | 
 | 16356 |     volatile int val = 1; | 
 | 16357 |     int main() { | 
 | 16358 |       __atomic_load_n(&val, __ATOMIC_SEQ_CST); | 
 | 16359 |       return 0; | 
 | 16360 |     } | 
 | 16361 |  | 
 | 16362 |  | 
 | 16363 | _ACEOF | 
 | 16364 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16365 |   have_builtin_atomic=yes | 
 | 16366 | else | 
 | 16367 |   have_builtin_atomic=no | 
 | 16368 | fi | 
 | 16369 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16370 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16371 |  | 
 | 16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 | 
 | 16373 | $as_echo "$have_builtin_atomic" >&6; } | 
 | 16374 |  | 
 | 16375 | if test "$have_builtin_atomic" = yes; then | 
 | 16376 |  | 
 | 16377 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h | 
 | 16378 |  | 
 | 16379 | fi | 
 | 16380 |  | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 16381 | # ensurepip option | 
 | 16382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | 
 | 16383 | $as_echo_n "checking for ensurepip... " >&6; } | 
 | 16384 |  | 
 | 16385 | # Check whether --with-ensurepip was given. | 
 | 16386 | if test "${with_ensurepip+set}" = set; then : | 
 | 16387 |   withval=$with_ensurepip; | 
 | 16388 | else | 
 | 16389 |   with_ensurepip=upgrade | 
 | 16390 | fi | 
 | 16391 |  | 
 | 16392 | case $with_ensurepip in #( | 
 | 16393 |   yes|upgrade) : | 
 | 16394 |     ENSUREPIP=upgrade ;; #( | 
 | 16395 |   install) : | 
 | 16396 |     ENSUREPIP=install ;; #( | 
 | 16397 |   no) : | 
 | 16398 |     ENSUREPIP=no ;; #( | 
 | 16399 |   *) : | 
 | 16400 |     as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | 
 | 16401 | esac | 
 | 16402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | 
 | 16403 | $as_echo "$ENSUREPIP" >&6; } | 
 | 16404 |  | 
 | 16405 |  | 
| Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 16406 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined | 
 | 16407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 | 
 | 16408 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | 
 | 16409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16410 | /* end confdefs.h.  */ | 
 | 16411 |  | 
 | 16412 |  | 
 | 16413 |     #include <dirent.h> | 
 | 16414 |  | 
 | 16415 |     int main() { | 
 | 16416 |       struct dirent entry; | 
 | 16417 |       return entry.d_type == DT_UNKNOWN; | 
 | 16418 |     } | 
 | 16419 |  | 
 | 16420 |  | 
 | 16421 | _ACEOF | 
 | 16422 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16423 |   have_dirent_d_type=yes | 
 | 16424 | else | 
 | 16425 |   have_dirent_d_type=no | 
 | 16426 | fi | 
 | 16427 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16428 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 | 
 | 16430 | $as_echo "$have_dirent_d_type" >&6; } | 
 | 16431 |  | 
 | 16432 | if test "$have_dirent_d_type" = yes; then | 
 | 16433 |  | 
 | 16434 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h | 
 | 16435 |  | 
 | 16436 | fi | 
 | 16437 |  | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16438 | # check if the Linux getrandom() syscall is available | 
 | 16439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 | 
 | 16440 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | 
 | 16441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16442 | /* end confdefs.h.  */ | 
 | 16443 |  | 
 | 16444 |  | 
| Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 16445 |     #include <unistd.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16446 |     #include <sys/syscall.h> | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16447 |     #include <linux/random.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16448 |  | 
 | 16449 |     int main() { | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16450 |         char buffer[1]; | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16451 |         const size_t buflen = sizeof(buffer); | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16452 |         const int flags = GRND_NONBLOCK; | 
 | 16453 |         /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16454 |         (void)syscall(SYS_getrandom, buffer, buflen, flags); | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16455 |         return 0; | 
 | 16456 |     } | 
 | 16457 |  | 
 | 16458 |  | 
 | 16459 | _ACEOF | 
 | 16460 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16461 |   have_getrandom_syscall=yes | 
 | 16462 | else | 
 | 16463 |   have_getrandom_syscall=no | 
 | 16464 | fi | 
 | 16465 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16466 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 | 
 | 16468 | $as_echo "$have_getrandom_syscall" >&6; } | 
 | 16469 |  | 
 | 16470 | if test "$have_getrandom_syscall" = yes; then | 
 | 16471 |  | 
 | 16472 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h | 
 | 16473 |  | 
 | 16474 | fi | 
 | 16475 |  | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16476 | # check if the getrandom() function is available | 
 | 16477 | # the test was written for the Solaris function of <sys/random.h> | 
 | 16478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 | 
 | 16479 | $as_echo_n "checking for the getrandom() function... " >&6; } | 
 | 16480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16481 | /* end confdefs.h.  */ | 
 | 16482 |  | 
 | 16483 |  | 
 | 16484 |     #include <sys/random.h> | 
 | 16485 |  | 
 | 16486 |     int main() { | 
 | 16487 |         char buffer[1]; | 
 | 16488 |         const size_t buflen = sizeof(buffer); | 
 | 16489 |         const int flags = 0; | 
 | 16490 |         /* ignore the result, Python checks for ENOSYS at runtime */ | 
 | 16491 |         (void)getrandom(buffer, buflen, flags); | 
 | 16492 |         return 0; | 
 | 16493 |     } | 
 | 16494 |  | 
 | 16495 |  | 
 | 16496 | _ACEOF | 
 | 16497 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16498 |   have_getrandom=yes | 
 | 16499 | else | 
 | 16500 |   have_getrandom=no | 
 | 16501 | fi | 
 | 16502 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16503 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 | 
 | 16505 | $as_echo "$have_getrandom" >&6; } | 
 | 16506 |  | 
 | 16507 | if test "$have_getrandom" = yes; then | 
 | 16508 |  | 
 | 16509 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h | 
 | 16510 |  | 
 | 16511 | fi | 
 | 16512 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16513 | # generate output files | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 16514 | 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] | 16515 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16516 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
 | 16517 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16518 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16519 | # This file is a shell script that caches the results of configure | 
 | 16520 | # 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] | 16521 | # scripts and configure runs, see configure's option --config-cache. | 
 | 16522 | # It is not useful on other systems.  If it contains results you don't | 
 | 16523 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16524 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16525 | # config.status only pays attention to the cache file if you give it | 
 | 16526 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16527 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16528 | # `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] | 16529 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 16530 | # following values. | 
 | 16531 |  | 
 | 16532 | _ACEOF | 
 | 16533 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16534 | # The following way of writing the cache mishandles newlines in values, | 
 | 16535 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16536 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16537 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 16538 | # 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] | 16539 | ( | 
 | 16540 |   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
 | 16541 |     eval ac_val=\$$ac_var | 
 | 16542 |     case $ac_val in #( | 
 | 16543 |     *${as_nl}*) | 
 | 16544 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16545 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 16546 | $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] | 16547 |       esac | 
 | 16548 |       case $ac_var in #( | 
 | 16549 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16550 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 16551 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16552 |       esac ;; | 
 | 16553 |     esac | 
 | 16554 |   done | 
 | 16555 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16556 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16557 |     case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
 | 16558 |     *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16559 |       # `set' does not quote correctly, so add quotes: double-quote | 
 | 16560 |       # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16561 |       sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16562 | 	"s/'/'\\\\''/g; | 
 | 16563 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16564 |       ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16565 |     *) | 
 | 16566 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16567 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16568 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16569 |     esac | | 
 | 16570 |     sort | 
 | 16571 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16572 |   sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16573 |      /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 |      t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16575 |      :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16576 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 16577 |      t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16578 |      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 16579 |      :end' >>confcache | 
 | 16580 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
 | 16581 |   if test -w "$cache_file"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16582 |     if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16583 |       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
 | 16584 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16585 |       if test ! -f "$cache_file" || test -h "$cache_file"; then | 
 | 16586 | 	cat confcache >"$cache_file" | 
 | 16587 |       else | 
 | 16588 |         case $cache_file in #( | 
 | 16589 |         */* | ?:*) | 
 | 16590 | 	  mv -f confcache "$cache_file"$$ && | 
 | 16591 | 	  mv -f "$cache_file"$$ "$cache_file" ;; #( | 
 | 16592 |         *) | 
 | 16593 | 	  mv -f confcache "$cache_file" ;; | 
 | 16594 | 	esac | 
 | 16595 |       fi | 
 | 16596 |     fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16597 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16598 |     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
 | 16599 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16600 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16601 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16602 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16603 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16604 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 16605 | # Let make expand exec_prefix. | 
 | 16606 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16607 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16608 | DEFS=-DHAVE_CONFIG_H | 
 | 16609 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16610 | ac_libobjs= | 
 | 16611 | ac_ltlibobjs= | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16612 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16613 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 16614 |   # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16615 |   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16616 |   ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16617 |   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
 | 16618 |   #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16619 |   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
 | 16620 |   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16621 | done | 
 | 16622 | LIBOBJS=$ac_libobjs | 
 | 16623 |  | 
 | 16624 | LTLIBOBJS=$ac_ltlibobjs | 
 | 16625 |  | 
 | 16626 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16627 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16628 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16629 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16630 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16631 | ac_clean_files_save=$ac_clean_files | 
 | 16632 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16633 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
 | 16634 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 16635 | as_write_fail=0 | 
 | 16636 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16637 | #! $SHELL | 
 | 16638 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16639 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16640 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16641 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16642 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16643 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16644 | ac_cs_recheck=false | 
 | 16645 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16646 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16647 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 16648 | export SHELL | 
 | 16649 | _ASEOF | 
 | 16650 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
 | 16651 | ## -------------------- ## | 
 | 16652 | ## M4sh Initialization. ## | 
 | 16653 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16654 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16655 | # Be more Bourne compatible | 
 | 16656 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16657 | 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] | 16658 |   emulate sh | 
 | 16659 |   NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16660 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16661 |   # is contrary to our usage.  Disable this feature. | 
 | 16662 |   alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16663 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16664 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16665 |   case `(set -o) 2>/dev/null` in #( | 
 | 16666 |   *posix*) : | 
 | 16667 |     set -o posix ;; #( | 
 | 16668 |   *) : | 
 | 16669 |      ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16670 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16671 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16672 |  | 
 | 16673 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16674 | as_nl=' | 
 | 16675 | ' | 
 | 16676 | export as_nl | 
 | 16677 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 16678 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 16679 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 16680 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 16681 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 16682 | # but without wasting forks for bash or zsh. | 
 | 16683 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 16684 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 16685 |   as_echo='print -r --' | 
 | 16686 |   as_echo_n='print -rn --' | 
 | 16687 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 16688 |   as_echo='printf %s\n' | 
 | 16689 |   as_echo_n='printf %s' | 
 | 16690 | else | 
 | 16691 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 16692 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 16693 |     as_echo_n='/usr/ucb/echo -n' | 
 | 16694 |   else | 
 | 16695 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 16696 |     as_echo_n_body='eval | 
 | 16697 |       arg=$1; | 
 | 16698 |       case $arg in #( | 
 | 16699 |       *"$as_nl"*) | 
 | 16700 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 16701 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 16702 |       esac; | 
 | 16703 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 16704 |     ' | 
 | 16705 |     export as_echo_n_body | 
 | 16706 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 16707 |   fi | 
 | 16708 |   export as_echo_body | 
 | 16709 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 16710 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16711 |  | 
 | 16712 | # The user is always right. | 
 | 16713 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16714 |   PATH_SEPARATOR=: | 
 | 16715 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 16716 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 16717 |       PATH_SEPARATOR=';' | 
 | 16718 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16719 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16720 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16721 |  | 
 | 16722 | # IFS | 
 | 16723 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 16724 | # there to prevent editors from complaining about space-tab. | 
 | 16725 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 16726 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16727 | IFS=" ""	$as_nl" | 
 | 16728 |  | 
 | 16729 | # 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] | 16730 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16731 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16732 |   *[\\/]* ) as_myself=$0 ;; | 
 | 16733 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16734 | for as_dir in $PATH | 
 | 16735 | do | 
 | 16736 |   IFS=$as_save_IFS | 
 | 16737 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16738 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 16739 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16740 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16741 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16742 |      ;; | 
 | 16743 | esac | 
 | 16744 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 16745 | # in which case we are not to be found in the path. | 
 | 16746 | if test "x$as_myself" = x; then | 
 | 16747 |   as_myself=$0 | 
 | 16748 | fi | 
 | 16749 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16750 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 16751 |   exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16752 | fi | 
 | 16753 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16754 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 16755 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 16756 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 16757 | # trigger a bug in pdksh 5.2.14. | 
 | 16758 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 16759 | do eval test x\${$as_var+set} = xset \ | 
 | 16760 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16761 | done | 
 | 16762 | PS1='$ ' | 
 | 16763 | PS2='> ' | 
 | 16764 | PS4='+ ' | 
 | 16765 |  | 
 | 16766 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16767 | LC_ALL=C | 
 | 16768 | export LC_ALL | 
 | 16769 | LANGUAGE=C | 
 | 16770 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16771 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16772 | # CDPATH. | 
 | 16773 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 16774 |  | 
 | 16775 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16776 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 16777 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16778 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 16779 | # 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] | 16780 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16781 | as_fn_error () | 
 | 16782 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16783 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 16784 |   if test "$4"; then | 
 | 16785 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 16786 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16787 |   fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16788 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16789 |   as_fn_exit $as_status | 
 | 16790 | } # as_fn_error | 
 | 16791 |  | 
 | 16792 |  | 
 | 16793 | # as_fn_set_status STATUS | 
 | 16794 | # ----------------------- | 
 | 16795 | # Set $? to STATUS, without forking. | 
 | 16796 | as_fn_set_status () | 
 | 16797 | { | 
 | 16798 |   return $1 | 
 | 16799 | } # as_fn_set_status | 
 | 16800 |  | 
 | 16801 | # as_fn_exit STATUS | 
 | 16802 | # ----------------- | 
 | 16803 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 16804 | as_fn_exit () | 
 | 16805 | { | 
 | 16806 |   set +e | 
 | 16807 |   as_fn_set_status $1 | 
 | 16808 |   exit $1 | 
 | 16809 | } # as_fn_exit | 
 | 16810 |  | 
 | 16811 | # as_fn_unset VAR | 
 | 16812 | # --------------- | 
 | 16813 | # Portably unset VAR. | 
 | 16814 | as_fn_unset () | 
 | 16815 | { | 
 | 16816 |   { eval $1=; unset $1;} | 
 | 16817 | } | 
 | 16818 | as_unset=as_fn_unset | 
 | 16819 | # as_fn_append VAR VALUE | 
 | 16820 | # ---------------------- | 
 | 16821 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 16822 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 16823 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 16824 | # implementations. | 
 | 16825 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 16826 |   eval 'as_fn_append () | 
 | 16827 |   { | 
 | 16828 |     eval $1+=\$2 | 
 | 16829 |   }' | 
 | 16830 | else | 
 | 16831 |   as_fn_append () | 
 | 16832 |   { | 
 | 16833 |     eval $1=\$$1\$2 | 
 | 16834 |   } | 
 | 16835 | fi # as_fn_append | 
 | 16836 |  | 
 | 16837 | # as_fn_arith ARG... | 
 | 16838 | # ------------------ | 
 | 16839 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 16840 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 16841 | # must be portable across $(()) and expr. | 
 | 16842 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 16843 |   eval 'as_fn_arith () | 
 | 16844 |   { | 
 | 16845 |     as_val=$(( $* )) | 
 | 16846 |   }' | 
 | 16847 | else | 
 | 16848 |   as_fn_arith () | 
 | 16849 |   { | 
 | 16850 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 16851 |   } | 
 | 16852 | fi # as_fn_arith | 
 | 16853 |  | 
 | 16854 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16855 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 16856 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 16857 |   as_expr=expr | 
 | 16858 | else | 
 | 16859 |   as_expr=false | 
 | 16860 | fi | 
 | 16861 |  | 
 | 16862 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 16863 |   as_basename=basename | 
 | 16864 | else | 
 | 16865 |   as_basename=false | 
 | 16866 | fi | 
 | 16867 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16868 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 16869 |   as_dirname=dirname | 
 | 16870 | else | 
 | 16871 |   as_dirname=false | 
 | 16872 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16873 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16874 | as_me=`$as_basename -- "$0" || | 
 | 16875 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 16876 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 16877 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16878 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16879 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 16880 | 	    s//\1/ | 
 | 16881 | 	    q | 
 | 16882 | 	  } | 
 | 16883 | 	  /^X\/\(\/\/\)$/{ | 
 | 16884 | 	    s//\1/ | 
 | 16885 | 	    q | 
 | 16886 | 	  } | 
 | 16887 | 	  /^X\/\(\/\).*/{ | 
 | 16888 | 	    s//\1/ | 
 | 16889 | 	    q | 
 | 16890 | 	  } | 
 | 16891 | 	  s/.*/./; q'` | 
 | 16892 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16893 | # Avoid depending upon Character Ranges. | 
 | 16894 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 16895 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 16896 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 16897 | as_cr_digits='0123456789' | 
 | 16898 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16899 |  | 
 | 16900 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16901 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16902 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16903 |   case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16904 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16905 |   xy)  ECHO_C='\c';; | 
 | 16906 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 16907 |        ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16908 |   esac;; | 
 | 16909 | *) | 
 | 16910 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16911 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 16912 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16913 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16914 | if test -d conf$$.dir; then | 
 | 16915 |   rm -f conf$$.dir/conf$$.file | 
 | 16916 | else | 
 | 16917 |   rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16918 |   mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16919 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16920 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 16921 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 16922 |     as_ln_s='ln -s' | 
 | 16923 |     # ... but there are two gotchas: | 
 | 16924 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 16925 |     # 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] | 16926 |     # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16927 |     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] | 16928 |       as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16929 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 16930 |     as_ln_s=ln | 
 | 16931 |   else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16932 |     as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16933 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16934 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16935 |   as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16936 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16937 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 16938 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16939 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16940 |  | 
 | 16941 | # as_fn_mkdir_p | 
 | 16942 | # ------------- | 
 | 16943 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 16944 | as_fn_mkdir_p () | 
 | 16945 | { | 
 | 16946 |  | 
 | 16947 |   case $as_dir in #( | 
 | 16948 |   -*) as_dir=./$as_dir;; | 
 | 16949 |   esac | 
 | 16950 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 16951 |     as_dirs= | 
 | 16952 |     while :; do | 
 | 16953 |       case $as_dir in #( | 
 | 16954 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 16955 |       *) as_qdir=$as_dir;; | 
 | 16956 |       esac | 
 | 16957 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 16958 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 16959 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 16960 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 16961 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 16962 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 16963 | $as_echo X"$as_dir" | | 
 | 16964 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 16965 | 	    s//\1/ | 
 | 16966 | 	    q | 
 | 16967 | 	  } | 
 | 16968 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 16969 | 	    s//\1/ | 
 | 16970 | 	    q | 
 | 16971 | 	  } | 
 | 16972 | 	  /^X\(\/\/\)$/{ | 
 | 16973 | 	    s//\1/ | 
 | 16974 | 	    q | 
 | 16975 | 	  } | 
 | 16976 | 	  /^X\(\/\).*/{ | 
 | 16977 | 	    s//\1/ | 
 | 16978 | 	    q | 
 | 16979 | 	  } | 
 | 16980 | 	  s/.*/./; q'` | 
 | 16981 |       test -d "$as_dir" && break | 
 | 16982 |     done | 
 | 16983 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16984 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16985 |  | 
 | 16986 |  | 
 | 16987 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16988 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16989 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16990 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16991 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16992 |   as_mkdir_p=false | 
 | 16993 | fi | 
 | 16994 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16995 |  | 
 | 16996 | # as_fn_executable_p FILE | 
 | 16997 | # ----------------------- | 
 | 16998 | # Test if FILE is an executable regular file. | 
 | 16999 | as_fn_executable_p () | 
 | 17000 | { | 
 | 17001 |   test -f "$1" && test -x "$1" | 
 | 17002 | } # as_fn_executable_p | 
 | 17003 | as_test_x='test -x' | 
 | 17004 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17005 |  | 
 | 17006 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17007 | 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] | 17008 |  | 
 | 17009 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17010 | 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] | 17011 |  | 
 | 17012 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17013 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17014 | ## ----------------------------------- ## | 
 | 17015 | ## Main body of $CONFIG_STATUS script. ## | 
 | 17016 | ## ----------------------------------- ## | 
 | 17017 | _ASEOF | 
 | 17018 | 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] | 17019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17020 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 17021 | # 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] | 17022 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17023 | # values after options handling. | 
 | 17024 | ac_log=" | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 17025 | This file was extended by python $as_me 3.6, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17026 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17027 |  | 
 | 17028 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 17029 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 17030 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 17031 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 17032 |   $ $0 $@ | 
 | 17033 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17034 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 17035 | " | 
 | 17036 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17037 | _ACEOF | 
 | 17038 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17039 | case $ac_config_files in *" | 
 | 17040 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
 | 17041 | esac | 
 | 17042 |  | 
 | 17043 | case $ac_config_headers in *" | 
 | 17044 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
 | 17045 | esac | 
 | 17046 |  | 
 | 17047 |  | 
 | 17048 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17049 | # Files that config.status was made for. | 
| Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 17050 | config_files="$ac_config_files" | 
 | 17051 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17052 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17053 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17054 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17055 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17056 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17057 | \`$as_me' instantiates files and other configuration actions | 
 | 17058 | from templates according to the current configuration.  Unless the files | 
 | 17059 | 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] | 17060 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17061 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17062 |  | 
 | 17063 |   -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17064 |   -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17065 |       --config     print configuration, then exit | 
 | 17066 |   -q, --quiet, --silent | 
 | 17067 |                    do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17068 |   -d, --debug      don't remove temporary files | 
 | 17069 |       --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17070 |       --file=FILE[:TEMPLATE] | 
 | 17071 |                    instantiate the configuration file FILE | 
 | 17072 |       --header=FILE[:TEMPLATE] | 
 | 17073 |                    instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17074 |  | 
 | 17075 | Configuration files: | 
 | 17076 | $config_files | 
 | 17077 |  | 
 | 17078 | Configuration headers: | 
 | 17079 | $config_headers | 
 | 17080 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 17081 | Report bugs to <https://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 17082 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17083 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17084 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17085 | 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] | 17086 | ac_cs_version="\\ | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 17087 | python config.status 3.6 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17088 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17089 |   with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17090 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17091 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17092 | This config.status script is free software; the Free Software Foundation | 
 | 17093 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17094 |  | 
 | 17095 | ac_pwd='$ac_pwd' | 
 | 17096 | srcdir='$srcdir' | 
 | 17097 | INSTALL='$INSTALL' | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17098 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17099 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17100 | _ACEOF | 
 | 17101 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17102 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 17103 | # 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] | 17104 | ac_need_defaults=: | 
 | 17105 | while test $# != 0 | 
 | 17106 | do | 
 | 17107 |   case $1 in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17108 |   --*=?*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17109 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 17110 |     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17111 |     ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17112 |     ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17113 |   --*=) | 
 | 17114 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 17115 |     ac_optarg= | 
 | 17116 |     ac_shift=: | 
 | 17117 |     ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17118 |   *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17119 |     ac_option=$1 | 
 | 17120 |     ac_optarg=$2 | 
 | 17121 |     ac_shift=shift | 
 | 17122 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17123 |   esac | 
 | 17124 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17125 |   case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17126 |   # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17127 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 17128 |     ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17129 |   --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17130 |     $as_echo "$ac_cs_version"; exit ;; | 
 | 17131 |   --config | --confi | --conf | --con | --co | --c ) | 
 | 17132 |     $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17133 |   --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17134 |     debug=: ;; | 
 | 17135 |   --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17136 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17137 |     case $ac_optarg in | 
 | 17138 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17139 |     '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17140 |     esac | 
 | 17141 |     as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17142 |     ac_need_defaults=false;; | 
 | 17143 |   --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17144 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17145 |     case $ac_optarg in | 
 | 17146 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 17147 |     esac | 
 | 17148 |     as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17149 |     ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17150 |   --he | --h) | 
 | 17151 |     # Conflict between --help and --header | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17152 |     as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17153 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17154 |   --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17155 |     $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17156 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 17157 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 17158 |     ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17159 |  | 
 | 17160 |   # This is an error. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17161 |   -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17162 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17163 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17164 |   *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17165 |      ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17166 |  | 
 | 17167 |   esac | 
 | 17168 |   shift | 
 | 17169 | done | 
 | 17170 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17171 | ac_configure_extra_args= | 
 | 17172 |  | 
 | 17173 | if $ac_cs_silent; then | 
 | 17174 |   exec 6>/dev/null | 
 | 17175 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 17176 | fi | 
 | 17177 |  | 
 | 17178 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17179 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17180 | if \$ac_cs_recheck; then | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17181 |   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] | 17182 |   shift | 
 | 17183 |   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
 | 17184 |   CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17185 |   export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17186 |   exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17187 | fi | 
 | 17188 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17189 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17190 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17191 | exec 5>>config.log | 
 | 17192 | { | 
 | 17193 |   echo | 
 | 17194 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 17195 | ## Running $as_me. ## | 
 | 17196 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17197 |   $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17198 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17199 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17200 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17201 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17202 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17203 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17204 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17205 |  | 
 | 17206 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17207 | for ac_config_target in $ac_config_targets | 
 | 17208 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17209 |   case $ac_config_target in | 
 | 17210 |     "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
 | 17211 |     "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
 | 17212 |     "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 17213 |     "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
 | 17214 |     "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] | 17215 |     "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
 | 17216 |     "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17217 |     "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17218 |     "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17219 |     "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17220 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17221 |   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17222 |   esac | 
 | 17223 | done | 
 | 17224 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17225 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17226 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 17227 | # then the envvar interface is used.  Set only those that are not. | 
 | 17228 | # We use the long form for the default assignment because of an extremely | 
 | 17229 | # bizarre bug on SunOS 4.1.3. | 
 | 17230 | if $ac_need_defaults; then | 
 | 17231 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 17232 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
 | 17233 | fi | 
 | 17234 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17235 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17236 | # 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] | 17237 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17238 | # Hook for its removal unless debugging. | 
 | 17239 | # Note that there is a small window in which the directory will not be cleaned: | 
 | 17240 | # 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] | 17241 | $debug || | 
 | 17242 | { | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17243 |   tmp= ac_tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17244 |   trap 'exit_status=$? | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17245 |   : "${ac_tmp:=$tmp}" | 
 | 17246 |   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17247 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17248 |   trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17249 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17250 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17251 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17252 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17253 |   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17254 |   test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17255 | }  || | 
 | 17256 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17257 |   tmp=./conf$$-$RANDOM | 
 | 17258 |   (umask 077 && mkdir "$tmp") | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17259 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17260 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17261 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17262 | # Set up the scripts for CONFIG_FILES section. | 
 | 17263 | # No need to generate them if there are no CONFIG_FILES. | 
 | 17264 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17265 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17266 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17267 |  | 
 | 17268 | ac_cr=`echo X | tr X '\015'` | 
 | 17269 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
 | 17270 | # But we know of no other shell where ac_cr would be empty at this | 
 | 17271 | # point, so we can use a bashism as a fallback. | 
 | 17272 | if test "x$ac_cr" = x; then | 
 | 17273 |   eval ac_cr=\$\'\\r\' | 
 | 17274 | fi | 
 | 17275 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
 | 17276 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17277 |   ac_cs_awk_cr='\\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17278 | else | 
 | 17279 |   ac_cs_awk_cr=$ac_cr | 
 | 17280 | fi | 
 | 17281 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17282 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17283 | _ACEOF | 
 | 17284 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17285 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17286 | { | 
 | 17287 |   echo "cat >conf$$subs.awk <<_ACEOF" && | 
 | 17288 |   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
 | 17289 |   echo "_ACEOF" | 
 | 17290 | } >conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17291 |   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
 | 17292 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17293 | ac_delim='%!_!# ' | 
 | 17294 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17295 |   . ./conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17296 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17297 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17298 |   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
 | 17299 |   if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17300 |     break | 
 | 17301 |   elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17302 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17303 |   else | 
 | 17304 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17305 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17306 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17307 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17308 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17309 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17310 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17311 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17312 | sed -n ' | 
 | 17313 | h | 
 | 17314 | s/^/S["/; s/!.*/"]=/ | 
 | 17315 | p | 
 | 17316 | g | 
 | 17317 | s/^[^!]*!// | 
 | 17318 | :repl | 
 | 17319 | t repl | 
 | 17320 | s/'"$ac_delim"'$// | 
 | 17321 | t delim | 
 | 17322 | :nl | 
 | 17323 | h | 
 | 17324 | s/\(.\{148\}\)..*/\1/ | 
 | 17325 | t more1 | 
 | 17326 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
 | 17327 | p | 
 | 17328 | n | 
 | 17329 | b repl | 
 | 17330 | :more1 | 
 | 17331 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 17332 | p | 
 | 17333 | g | 
 | 17334 | s/.\{148\}// | 
 | 17335 | t nl | 
 | 17336 | :delim | 
 | 17337 | h | 
 | 17338 | s/\(.\{148\}\)..*/\1/ | 
 | 17339 | t more2 | 
 | 17340 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
 | 17341 | p | 
 | 17342 | b | 
 | 17343 | :more2 | 
 | 17344 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 17345 | p | 
 | 17346 | g | 
 | 17347 | s/.\{148\}// | 
 | 17348 | t delim | 
 | 17349 | ' <conf$$subs.awk | sed ' | 
 | 17350 | /^[^""]/{ | 
 | 17351 |   N | 
 | 17352 |   s/\n// | 
 | 17353 | } | 
 | 17354 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 17355 | rm -f conf$$subs.awk | 
 | 17356 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17357 | _ACAWK | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17358 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17359 |   for (key in S) S_is_set[key] = 1 | 
 | 17360 |   FS = "" | 
 | 17361 |  | 
 | 17362 | } | 
 | 17363 | { | 
 | 17364 |   line = $ 0 | 
 | 17365 |   nfields = split(line, field, "@") | 
 | 17366 |   substed = 0 | 
 | 17367 |   len = length(field[1]) | 
 | 17368 |   for (i = 2; i < nfields; i++) { | 
 | 17369 |     key = field[i] | 
 | 17370 |     keylen = length(key) | 
 | 17371 |     if (S_is_set[key]) { | 
 | 17372 |       value = S[key] | 
 | 17373 |       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
 | 17374 |       len += length(value) + length(field[++i]) | 
 | 17375 |       substed = 1 | 
 | 17376 |     } else | 
 | 17377 |       len += 1 + keylen | 
 | 17378 |   } | 
 | 17379 |  | 
 | 17380 |   print line | 
 | 17381 | } | 
 | 17382 |  | 
 | 17383 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17384 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17385 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 17386 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
 | 17387 |   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
 | 17388 | else | 
 | 17389 |   cat | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17390 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17391 |   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17392 | _ACEOF | 
 | 17393 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17394 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
 | 17395 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17396 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 17397 | # (actually we leave an empty line to preserve line numbers). | 
 | 17398 | if test "x$srcdir" = x.; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17399 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
 | 17400 | h | 
 | 17401 | s/// | 
 | 17402 | s/^/:/ | 
 | 17403 | s/[	 ]*$/:/ | 
 | 17404 | s/:\$(srcdir):/:/g | 
 | 17405 | s/:\${srcdir}:/:/g | 
 | 17406 | s/:@srcdir@:/:/g | 
 | 17407 | s/^:*// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17408 | s/:*$// | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17409 | x | 
 | 17410 | s/\(=[	 ]*\).*/\1/ | 
 | 17411 | G | 
 | 17412 | s/\n// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17413 | s/^[^=]*=[	 ]*$// | 
 | 17414 | }' | 
 | 17415 | fi | 
 | 17416 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17417 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17418 | fi # test -n "$CONFIG_FILES" | 
 | 17419 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17420 | # Set up the scripts for CONFIG_HEADERS section. | 
 | 17421 | # No need to generate them if there are no CONFIG_HEADERS. | 
 | 17422 | # This happens for instance with `./config.status Makefile'. | 
 | 17423 | if test -n "$CONFIG_HEADERS"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17424 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17425 | BEGIN { | 
 | 17426 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17427 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17428 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
 | 17429 | # here-document in config.status, that substitutes the proper values into | 
 | 17430 | # config.h.in to produce config.h. | 
 | 17431 |  | 
 | 17432 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
 | 17433 | # handling of long lines. | 
 | 17434 | ac_delim='%!_!# ' | 
 | 17435 | for ac_last_try in false false :; do | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17436 |   ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
 | 17437 |   if test -z "$ac_tt"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17438 |     break | 
 | 17439 |   elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17440 |     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17441 |   else | 
 | 17442 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 17443 |   fi | 
 | 17444 | done | 
 | 17445 |  | 
 | 17446 | # For the awk script, D is an array of macro values keyed by name, | 
 | 17447 | # likewise P contains macro parameters if any.  Preserve backslash | 
 | 17448 | # newline sequences. | 
 | 17449 |  | 
 | 17450 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
 | 17451 | sed -n ' | 
 | 17452 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 17453 | t rset | 
 | 17454 | :rset | 
 | 17455 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
 | 17456 | t def | 
 | 17457 | d | 
 | 17458 | :def | 
 | 17459 | s/\\$// | 
 | 17460 | t bsnl | 
 | 17461 | s/["\\]/\\&/g | 
 | 17462 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 17463 | D["\1"]=" \3"/p | 
 | 17464 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
 | 17465 | d | 
 | 17466 | :bsnl | 
 | 17467 | s/["\\]/\\&/g | 
 | 17468 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 17469 | D["\1"]=" \3\\\\\\n"\\/p | 
 | 17470 | t cont | 
 | 17471 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
 | 17472 | t cont | 
 | 17473 | d | 
 | 17474 | :cont | 
 | 17475 | n | 
 | 17476 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 17477 | t clear | 
 | 17478 | :clear | 
 | 17479 | s/\\$// | 
 | 17480 | t bsnlc | 
 | 17481 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
 | 17482 | d | 
 | 17483 | :bsnlc | 
 | 17484 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
 | 17485 | b cont | 
 | 17486 | ' <confdefs.h | sed ' | 
 | 17487 | s/'"$ac_delim"'/"\\\ | 
 | 17488 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 17489 |  | 
 | 17490 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17491 |   for (key in D) D_is_set[key] = 1 | 
 | 17492 |   FS = "" | 
 | 17493 | } | 
 | 17494 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
 | 17495 |   line = \$ 0 | 
 | 17496 |   split(line, arg, " ") | 
 | 17497 |   if (arg[1] == "#") { | 
 | 17498 |     defundef = arg[2] | 
 | 17499 |     mac1 = arg[3] | 
 | 17500 |   } else { | 
 | 17501 |     defundef = substr(arg[1], 2) | 
 | 17502 |     mac1 = arg[2] | 
 | 17503 |   } | 
 | 17504 |   split(mac1, mac2, "(") #) | 
 | 17505 |   macro = mac2[1] | 
 | 17506 |   prefix = substr(line, 1, index(line, defundef) - 1) | 
 | 17507 |   if (D_is_set[macro]) { | 
 | 17508 |     # Preserve the white space surrounding the "#". | 
 | 17509 |     print prefix "define", macro P[macro] D[macro] | 
 | 17510 |     next | 
 | 17511 |   } else { | 
 | 17512 |     # Replace #undef with comments.  This is necessary, for example, | 
 | 17513 |     # in the case of _POSIX_SOURCE, which is predefined and required | 
 | 17514 |     # on some systems where configure will not decide to define it. | 
 | 17515 |     if (defundef == "undef") { | 
 | 17516 |       print "/*", prefix defundef, macro, "*/" | 
 | 17517 |       next | 
 | 17518 |     } | 
 | 17519 |   } | 
 | 17520 | } | 
 | 17521 | { print } | 
 | 17522 | _ACAWK | 
 | 17523 | _ACEOF | 
 | 17524 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17525 |   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17526 | fi # test -n "$CONFIG_HEADERS" | 
 | 17527 |  | 
 | 17528 |  | 
 | 17529 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
 | 17530 | shift | 
 | 17531 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17532 | do | 
 | 17533 |   case $ac_tag in | 
 | 17534 |   :[FHLC]) ac_mode=$ac_tag; continue;; | 
 | 17535 |   esac | 
 | 17536 |   case $ac_mode$ac_tag in | 
 | 17537 |   :[FHL]*:*);; | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17538 |   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17539 |   :[FH]-) ac_tag=-:-;; | 
 | 17540 |   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
 | 17541 |   esac | 
 | 17542 |   ac_save_IFS=$IFS | 
 | 17543 |   IFS=: | 
 | 17544 |   set x $ac_tag | 
 | 17545 |   IFS=$ac_save_IFS | 
 | 17546 |   shift | 
 | 17547 |   ac_file=$1 | 
 | 17548 |   shift | 
 | 17549 |  | 
 | 17550 |   case $ac_mode in | 
 | 17551 |   :L) ac_source=$1;; | 
 | 17552 |   :[FH]) | 
 | 17553 |     ac_file_inputs= | 
 | 17554 |     for ac_f | 
 | 17555 |     do | 
 | 17556 |       case $ac_f in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17557 |       -) ac_f="$ac_tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17558 |       *) # Look for the file first in the build tree, then in the source tree | 
 | 17559 | 	 # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
 | 17560 | 	 # because $ac_f cannot contain `:'. | 
 | 17561 | 	 test -f "$ac_f" || | 
 | 17562 | 	   case $ac_f in | 
 | 17563 | 	   [\\/$]*) false;; | 
 | 17564 | 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
 | 17565 | 	   esac || | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17566 | 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17567 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17568 |       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
 | 17569 |       as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17570 |     done | 
 | 17571 |  | 
 | 17572 |     # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 17573 |     # use $as_me), people would be surprised to read: | 
 | 17574 |     #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17575 |     configure_input='Generated from '` | 
 | 17576 | 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
 | 17577 | 	`' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17578 |     if test x"$ac_file" != x-; then | 
 | 17579 |       configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17580 |       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
 | 17581 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17582 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17583 |     # Neutralize special characters interpreted by sed in replacement strings. | 
 | 17584 |     case $configure_input in #( | 
 | 17585 |     *\&* | *\|* | *\\* ) | 
 | 17586 |        ac_sed_conf_input=`$as_echo "$configure_input" | | 
 | 17587 |        sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
 | 17588 |     *) ac_sed_conf_input=$configure_input;; | 
 | 17589 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17590 |  | 
 | 17591 |     case $ac_tag in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17592 |     *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
 | 17593 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17594 |     esac | 
 | 17595 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17596 |   esac | 
 | 17597 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17598 |   ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17599 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17600 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 17601 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17602 | 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17603 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17604 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 17605 | 	    s//\1/ | 
 | 17606 | 	    q | 
 | 17607 | 	  } | 
 | 17608 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 17609 | 	    s//\1/ | 
 | 17610 | 	    q | 
 | 17611 | 	  } | 
 | 17612 | 	  /^X\(\/\/\)$/{ | 
 | 17613 | 	    s//\1/ | 
 | 17614 | 	    q | 
 | 17615 | 	  } | 
 | 17616 | 	  /^X\(\/\).*/{ | 
 | 17617 | 	    s//\1/ | 
 | 17618 | 	    q | 
 | 17619 | 	  } | 
 | 17620 | 	  s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17621 |   as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17622 |   ac_builddir=. | 
 | 17623 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17624 | case "$ac_dir" in | 
 | 17625 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 17626 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17627 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17628 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17629 |   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] | 17630 |   case $ac_top_builddir_sub in | 
 | 17631 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 17632 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 17633 |   esac ;; | 
 | 17634 | esac | 
 | 17635 | ac_abs_top_builddir=$ac_pwd | 
 | 17636 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 17637 | # for backward compatibility: | 
 | 17638 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17639 |  | 
 | 17640 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17641 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17642 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17643 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 17644 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 17645 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17646 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17647 |     ac_top_srcdir=$srcdir | 
 | 17648 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 17649 |   *) # Relative name. | 
 | 17650 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 17651 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 17652 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17653 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17654 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17655 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17656 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17657 |   case $ac_mode in | 
 | 17658 |   :F) | 
 | 17659 |   # | 
 | 17660 |   # CONFIG_FILE | 
 | 17661 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17662 |  | 
 | 17663 |   case $INSTALL in | 
 | 17664 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17665 |   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17666 |   esac | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17667 |   ac_MKDIR_P=$MKDIR_P | 
 | 17668 |   case $MKDIR_P in | 
 | 17669 |   [\\/$]* | ?:[\\/]* ) ;; | 
 | 17670 |   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
 | 17671 |   esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17672 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17673 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17674 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17675 | # If the template does not know about datarootdir, expand it. | 
 | 17676 | # FIXME: This hack should be removed a few years after 2.60. | 
 | 17677 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17678 | ac_sed_dataroot=' | 
 | 17679 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17680 |   p | 
 | 17681 |   q | 
 | 17682 | } | 
 | 17683 | /@datadir@/p | 
 | 17684 | /@docdir@/p | 
 | 17685 | /@infodir@/p | 
 | 17686 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17687 | /@mandir@/p' | 
 | 17688 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17689 | *datarootdir*) ac_datarootdir_seen=yes;; | 
 | 17690 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17691 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
 | 17692 | $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] | 17693 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17694 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17695 |   ac_datarootdir_hack=' | 
 | 17696 |   s&@datadir@&$datadir&g | 
 | 17697 |   s&@docdir@&$docdir&g | 
 | 17698 |   s&@infodir@&$infodir&g | 
 | 17699 |   s&@localedir@&$localedir&g | 
 | 17700 |   s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17701 |   s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17702 | esac | 
 | 17703 | _ACEOF | 
 | 17704 |  | 
 | 17705 | # Neutralize VPATH when `$srcdir' = `.'. | 
 | 17706 | # Shell code in configure.ac might set extrasub. | 
 | 17707 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17708 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17709 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17710 | $extrasub | 
 | 17711 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17712 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17713 | :t | 
 | 17714 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17715 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17716 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17717 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17718 | s&@srcdir@&$ac_srcdir&;t t | 
 | 17719 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
 | 17720 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
 | 17721 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
 | 17722 | s&@builddir@&$ac_builddir&;t t | 
 | 17723 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
 | 17724 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
 | 17725 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17726 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17727 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17728 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17729 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
 | 17730 |   >$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] | 17731 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17732 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17733 |   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
 | 17734 |   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
 | 17735 |       "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17736 |   { $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] | 17737 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17738 | $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] | 17739 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17740 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17741 |   rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17742 |   case $ac_file in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17743 |   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
 | 17744 |   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17745 |   esac \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17746 |   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17747 |  ;; | 
 | 17748 |   :H) | 
 | 17749 |   # | 
 | 17750 |   # CONFIG_HEADER | 
 | 17751 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17752 |   if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17753 |     { | 
 | 17754 |       $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17755 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
 | 17756 |     } >"$ac_tmp/config.h" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17757 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17758 |     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] | 17759 |       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
 | 17760 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17761 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17762 |       rm -f "$ac_file" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17763 |       mv "$ac_tmp/config.h" "$ac_file" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17764 | 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17765 |     fi | 
 | 17766 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17767 |     $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17768 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17769 |       || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17770 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17771 |  ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17772 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17773 |  | 
 | 17774 |   esac | 
 | 17775 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17776 |  | 
 | 17777 |   case $ac_file$ac_mode in | 
 | 17778 |     "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
 | 17779 |  | 
 | 17780 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17781 | done # for ac_tag | 
 | 17782 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17783 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17784 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17785 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17786 | ac_clean_files=$ac_clean_files_save | 
 | 17787 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17788 | test $ac_write_fail = 0 || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17789 |   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17790 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17791 |  | 
 | 17792 | # configure is writing to config.log, and then calls config.status. | 
 | 17793 | # config.status does its own redirection, appending to config.log. | 
 | 17794 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 17795 | # by configure, so config.status won't be able to write to it; its | 
 | 17796 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 17797 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 17798 | # appended to by config.status.  When coming back to configure, we | 
 | 17799 | # need to make the FD available again. | 
 | 17800 | if test "$no_create" != yes; then | 
 | 17801 |   ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17802 |   ac_config_status_args= | 
 | 17803 |   test "$silent" = yes && | 
 | 17804 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17805 |   exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17806 |   $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] | 17807 |   exec 5>>config.log | 
 | 17808 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 17809 |   # would make configure fail if this is the last instruction. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17810 |   $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17811 | fi | 
 | 17812 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
 | 17813 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
 | 17814 | $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] | 17815 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17816 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17817 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17818 | echo "creating Modules/Setup" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17819 | if test ! -f Modules/Setup | 
 | 17820 | then | 
 | 17821 | 	cp $srcdir/Modules/Setup.dist Modules/Setup | 
 | 17822 | fi | 
 | 17823 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17824 | echo "creating Modules/Setup.local" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17825 | if test ! -f Modules/Setup.local | 
 | 17826 | then | 
 | 17827 | 	echo "# Edit this file for local setup changes" >Modules/Setup.local | 
 | 17828 | fi | 
 | 17829 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17830 | echo "creating Makefile" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17831 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
 | 17832 | 			-s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17833 | 			Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17834 | mv config.c Modules |